Tomcat, JNDI, Active Directory
Hi! Is there anyone out there who would like to figure out what I am doing wrong when trying to create a realm in Tomcat that is supposed to authenitcate users over JNDI against an Active Directory server. In my server.xml I have the following ldap://192.168.10.10:389"; alternateURL="ldap://192.168.10.10:389"; userBase="ou=Users,dc=alfa-moving,dc=se" userPattern="uid={0},ou=Users,dc=alfa-moving,dc=se" roleBase="ou=Users,dc=alfa-moving,dc=se" roleName="cn" debug="99" /> The log from tomcat says the following 004-10-14 16:04:04 JNDIRealm[Catalina]: Connecting to URL ldap://192.168.10.10:389 2004-10-14 16:04:16 JNDIRealm[Catalina]: lookupUser(JKP_konf) 2004-10-14 16:04:16 JNDIRealm[Catalina]: dn=uid=JKP_konf,ou=Users,dc=alfa-moving,dc=se 2004-10-14 16:04:16 JNDIRealm[Catalina]: validating credentials by binding as the user 2004-10-14 16:04:16 JNDIRealm[Catalina]: binding as uid=JKP_konf,ou=Users,dc=alfa-moving,dc=se 2004-10-14 16:04:16 JNDIRealm[Catalina]: bind attempt failed 2004-10-14 16:04:16 JNDIRealm[Catalina]: Username JKP_konf NOT successfully authenticated When I look in the gui of AD I se a tree like this Active Directory Users and Computers --+alfa-moving.se + Users --+JKP_konf So, what have I done wrong ... somehow it always seem to be me who does the errors... .-) Thanks in advance Roland Carlsson ps: This is a crosspost of what I posted in the JNDI-forum at java.sun.com yesterday but got no answers (jet). Sent using the Microsoft Entourage 2004 for Mac Test Drive. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: bad syntax - ignore or throw exception?
Try... 404 >/WEB-INF/jsp/Error.jsp 406 >/WEB-INF/jsp/Error.jsp I am not sure if you can combine them in one tag however some of our more experienced people on this list might be able to field this one. This is what I do in my web.xml file and it works as I want it to (I check for 404 and 500). Kindest Regards, Matt Anderson > > I'm trying to work out how to configure web.xml to use a custom error page > when one of a list of HTTP status codes are encountered. Couldn't find > any > documentation, so pure guesswork led me to try this: > > > 404,406 > /WEB-INF/jsp/Error.jsp > > > It doesn't do what I was intending, in that neither 404 nor 406 codes are > handled by Error.jsp - however I was surprised that there is no Exception > logged by Tomcat when parsing this web.xml - shouldn't it throw an > Exception, rather than ignore it?? I've found that Tomcat is usually very > thorough at reporting problems with web.xml, so this seems unusual. > > > > - > 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: What's up with all these "Hi" virus
I am getting those too. Hundreds of them. Irritating. V D wrote: Should the server has email filter that throws out these. Or maybe it comes from different server? - 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 redirect http to https automatically?
Is it possible to switch from https to http using this kind of configuration ? I tried with NONE for user constraint but it still remains in https. rgds Antony Paul On Thu, 14 Oct 2004 08:40:31 -0700, David Wall <[EMAIL PROTECTED]> wrote: > This is part of the servlet specs. In your WEB-INF/web.xml file, you need > a security constraint that says the site should be secure, something like: > > > >Entire site >/* >GET >POST > > >CONFIDENTIAL > > > > The "confidential" keyword ensures that the webapp will require https, so if > you try to get it via http, then the redirect stuff specifed in your > server.xml will be applied. > > David > > > > - Original Message - > From: "Won Sim" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, October 13, 2004 8:13 AM > Subject: How to redirect http to https automatically? > > > I set redirectPort attribute to 443, which is my SSL connector port > number, > > from port 80 connector in the server.xml. This doesn't redirect http to > > https automatically. In other words, I still can access the application > via > > http://server/myapp. I want to know how to redirect http to https > > automatically so when I enter http://server/myapp, Tomcat redirects to > > htts://server/myapp. I am using Tomcat 4.1.30. > > > > Thanks in advance. > > Won. > > > > _ > > Don't just search. Find. Check out the new MSN Search! > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > > > > - > > 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]
bad syntax - ignore or throw exception?
I'm trying to work out how to configure web.xml to use a custom error page when one of a list of HTTP status codes are encountered. Couldn't find any documentation, so pure guesswork led me to try this: 404,406 /WEB-INF/jsp/Error.jsp It doesn't do what I was intending, in that neither 404 nor 406 codes are handled by Error.jsp - however I was surprised that there is no Exception logged by Tomcat when parsing this web.xml - shouldn't it throw an Exception, rather than ignore it?? I've found that Tomcat is usually very thorough at reporting problems with web.xml, so this seems unusual. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error on Tomcat startup
Thanks, tag in wrong order... >>> "Shapira, Yoav" <[EMAIL PROTECTED]> 13/10/2004 10:55:19 pm >>> Hi, There should be a message in the (normal, not error) log like "deploying web application at /path" -- that's how you can tell what web.xml caused the error. An alternative approach (which should be done anyways as a matter of habit) is to independently (that is, outside of Tomcat) validate your web.xml file using a tool like XMLSpy or one of the free online alternatives. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Aziz Yacoub [ mailto:[EMAIL PROTECTED] >Sent: Wednesday, October 13, 2004 8:17 AM >To: [EMAIL PROTECTED] >Subject: Error on Tomcat startup > >I notice the following error on starting TC 4.1.30 on WinXP in >stderr.log. What file is it parsing? I assume it's one of the web.xml >files, but is there a quick way of finding out which one without having >to go through each of them? > >Thanks for any help. > >13/10/2004 21:30:42 org.apache.commons.digester.Digester error >SEVERE: Parse Error at line 59 column 11: The content of element type >"web-app" must match >"(icon?,display-name?,description?,distributable?,context- >param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,sess ion- >config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-e nv- >ref*,resource-ref*,security-constraint*,login-config?,security-role*,en v- >entry*,ejb-ref*,ejb-local-ref*)". >org.xml.sax.SAXParseException: The content of element type "web-app" >must match >"(icon?,display-name?,description?,distributable?,context- >param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,sess ion- >config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-e nv- >ref*,resource-ref*,security-constraint*,login-config?,security-role*,en v- >entry*,ejb-ref*,ejb-local-ref*)". > at >org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkn own >Source) >etc > 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.
What's up with all these "Hi" virus
Should the server has email filter that throws out these. Or maybe it comes from different server? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
re: optimizing Tomcat 5 for webservices, that is using encryption
When I had rolled out my application, where the client is on about 400 machines, we ran into problems when the useage was too high, but didn't have time to figure out what was going on. One thing I noticed is that one field in the webservice may be encrypted, and decrypting is a slow operation, at least slower than I thought. Are there any good resources on optimization, where I can determine a good number of threads to have created initially, for example, as well as any other optimizations we may do? We are moving to JDK1.5.0 on the production machines soon, so that should help, but we will not be moving to Tomcat 5.5 until it comes out of beta. Thank you for any suggestions. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5 pause (free gmail account for fix :-)
I haven't gotten around to really investigating the issue yet, but I'm having a similar problem, though on Windows with IIS. But what I have noticed is that the pause corresponds to connection errors being logged in the Windows event log from the ajp connector piece. It might just be a side effect of the root cause, but it may be worth thinking about that it could be the ajp/connector piece. -Stephen Duncan Jr - Everyone, Thanks in advance for any help. Also I have a gmail invite for the person who has a fix for this if they are interested. My company has been using Tomcat for several years, but a problem has crept up that we have not been able to solve. Basically, tomcat will stop processing requests for 2-60 second period several times a day. Here is a list of software that we have tried. (Note we have tried changing each key componant to see if we isolate the componant that is the problem, but no luck yet) OS: RedHat 9 & AS3 Threading model: linux threads & nptl JVM: sun 1.4.2_4 & latest ibm Http connector: ajp w/apache 2 and coyote connector JBDC connector 1.0 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How todestroy a session manually???
Yes. session.invalidate(). What is cool is that it even works with single-sign-on! Thanks to the Tomcat team! -- Rick John MccLain wrote: I have a session listener that clears out some static data on sessionDestroy. Is there a way for a logout button in a .jsp view to call some kind of destroy session function so that a sessionDestroyed(..) handler in a session listener gets called? John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 "Before you criticize someone, walk a mile in their shoes. That way, you'll be a mile from them, and you'll have their shoes." - 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]
Customizing Tomcat error page
Hi, I am trying to replace the default Tomcat error page for my web applications. I understand that I can specify in the web.xml deployment descriptor, but that would require me to do that for every single error code. Looking at the HTTP response code, there is a potentially long list of code that I might be interested in handling. Is there a simple way to trap these errors and redirect to my specific error page? Thanks, -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 pause (free gmail account for fix :-)
> From: "Cox, Charlie" <[EMAIL PROTECTED]> > Sent: Thursday, October 14, 2004 12:54 PM > Is your machine swapping? 512MB can go quickly... It sounds like swapping to me. The problem is that even though you say "256MB" on the Java Heap, the heap consumes a LOT more than that in Real Ram, and could easily be bouncing off of the 512MB RAM limit of the machine. If there is anything else on this machine I'd be extra concerned. GC and Swap DO NOT mix. Try lowering your Xmx size, and try to get a better grasp on the real image size of your Java process. You could also try added RAM to the machine as well. Regards, Will Hartung ([EMAIL PROTECTED]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How todestroy a session manually???
I have a session listener that clears out some static data on sessionDestroy. Is there a way for a logout button in a .jsp view to call some kind of destroy session function so that a sessionDestroyed(..) handler in a session listener gets called? John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 "Before you criticize someone, walk a mile in their shoes. That way, you'll be a mile from them, and you'll have their shoes." - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help with mod_jk2
OK, I'm coming in a little late to this thread. Here is my configuration for a "typical" web application using mod_jk2.so. I am running this on Fedora Core 2 with httpd 2.0.52 and Tomcat 5.0.28. httpd.conf == # # general section - for all virtual hosts # LoadModule jk2_module modules/mod_jk2.so # # particular virtual host # ServerName lvh.mdeggers.org ServerAlias lvh DocumentRoot "/home/apache/lvh" ErrorLog logs/lvh-error.log LogLevel warn CustomLog logs/lvh-access.log common # # Directory for application # Options Indexes FollowSymlinks MultiViews AllowOverride None Order allow,deny Allow from 192.168.1 Allow from 127.0.0.1 AllowOverride None Deny from all # # Aliases # Alias /beg-servlets/ "/home/tomcat/lvh/beg-servlets/" workers2.properties === [shm] file=/home/apache/logs/shm.file size=1048576 # Alternate file logger [logger.file:0] level=ERROR file=${serverRoot}/logs/jk2.log [workerEnv:] info=Global server options timing=1 debug=0 logger=logger.file:0 # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # # could place the following in httpd.conf with JkUriSet # [uri:lvh/beg-servlets/servlet/*] worker=ajp13:localhost:8009 [uri:lvh.mdeggers.org/beg-servlets/servlet/*] worker=ajp13:localhost:8009 server.xml == lvh If the beg-servlets application had jsp files, then I would need to add the following lines to workers2.properties. [uri:lvh/beg-servlets/*.jsp] worker=ajp13:localhost:8009 [uri:lvh.mdeggers.org/beg-servlets/*.jsp] worker=ajp13:localhost:8009 The above configuration maps all jsp and servlets to Tomcat, while letting Apache httpd serve all other files. I run both httpd and Tomcat in the same group (webgroup). However, each server has its own user id. Marking the directories 750, and the files 640 solves the access problems. In a production setting (this is a development server), I would probably recommend 550 and 440 for the permissions. There's really no reason to allow write access. Alter the above for your host names and virtual host structure. I run three virtual hosts on both httpd and Tomcat. I am fixing to add ssl to this mix sometime in the near future. HTH /mde/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: VirtualHost problem
A few things: 1. It's helpful to try connecting directly to Tomcat before dealing with the connectors. 2. The invoker servlet is not active by default so you will need to either activate it (not recommended) or map the servlet in your web.xml file. This also means that you can pull the "servlet" part from your URL. 3. I believe packages are now required. On Thu, 2004-10-14 at 19:29, Jason Cook wrote: > Hi, everybody! > > I'm brand new to Tomcat, and I'm having problems making a customer's > site accessible on a new Tomcat 5.0.27 installation. > > For the purposes of discussion, the customer's virtualhost name is > secure.customername.com. The customer's website is located in > /home/www/customername.com/secure, and the directory contains what I > think to be a valid WEB-INF file structure, with the servlet jar in > /lib, and a web.xml. > > Apache 1.3 is being used to serve the site, with mod_jk being used to > pass the servlet requests on to Tomcat. My Apache virtualhost directive > contains: > > JkMount /*.jsp ajp13 > JkMount /servlet/* ajp13 > > And I have the following Host directive in my server.xml: > > appBase="/home/www/customername.com/secure"> >debug="0" reloadable="true" /> > directory="logs" prefix="secure.customername.com_log." > suffix=".txt" > timestamp="true" verbosity="4"/> > > > Attempts to access the servlet named 'porder' at > http://secure.customersite.com/servlet/porder return a HTTP Status 404 - > /servlet/porder error from Tomcat. Additionally, the log I'm trying to > configure above isn't even showing up. > > What am I missing here? > > Thanks in advance, > Jason L. Cook > > > > > > > > - > 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]
Hi
-- Virus Warning Message (on uusnwa0p) Found virus WORM_NETSKY.Z in file Part-2.txt .exe (in Part-2.zip) The file is deleted. - Important! -- Virus Warning Message (on uusnwa0p) Part-2.zip is removed from here because it contains a virus. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
VirtualHost problem
Hi, everybody! I'm brand new to Tomcat, and I'm having problems making a customer's site accessible on a new Tomcat 5.0.27 installation. For the purposes of discussion, the customer's virtualhost name is secure.customername.com. The customer's website is located in /home/www/customername.com/secure, and the directory contains what I think to be a valid WEB-INF file structure, with the servlet jar in /lib, and a web.xml. Apache 1.3 is being used to serve the site, with mod_jk being used to pass the servlet requests on to Tomcat. My Apache virtualhost directive contains: JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 And I have the following Host directive in my server.xml: Attempts to access the servlet named 'porder' at http://secure.customersite.com/servlet/porder return a HTTP Status 404 - /servlet/porder error from Tomcat. Additionally, the log I'm trying to configure above isn't even showing up. What am I missing here? Thanks in advance, Jason L. Cook - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MySQL driver randomly not found?
In my experience, the driver in driverClassName should be a Driver class as in com.mysql.jdbc.Driver, not a Datasource like com.mysql.jdbc.jdbc2.optional.MysqlDataSource. However, individual mileage may vary. ;-) --David Larry Meadors wrote: Hahah, similar reasoning wth my symlink question...shouldn't matter, but... [EMAIL PROTECTED] 10/14/04 10:47 AM >>> Hi, It might not, but it's always a question, because it's part of the KISS principle. The simpler the environment, the easier it is for the OP to test and for others to reproduce the OP's test results. The less moving pieces, the less chance for error. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 12:38 PM To: [EMAIL PROTECTED] Subject: RE: MySQL driver randomly not found? Interesting question...how does that impact classloading? [EMAIL PROTECTED] 10/14/04 10:15 AM >>> Hi, Does it happen without the connectors/Apache in front? Yoav Shapira http://www.yoavshapira.com -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 12:13 PM To: [EMAIL PROTECTED] Subject: Re: MySQL driver randomly not found? Just curious...Why are you using a symlink? [EMAIL PROTECTED] 10/14/04 9:59 AM >>> Hello! I'm having an interesting problem wherein about 5-10% of the time, for no apparent reason whatsover, the MySQL driver just can not be found. I have a symlink to it in TOMCAT_DIR/common/lib. I just replaced the symlink with a copy of the actual library to see if that would make a difference, but it doesn't make sense that it would work 90-95% of the time and then fail the rest of the time if that were the problem. The traceback I get is as follows: // NOTE: replaced org.apache. with ''. Cannot load JDBC driver class 'com.mysql.jdbc.jdbc2.optional.MysqlDataSource' java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlDataSource at catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java : 854) at catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java : 721) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:760 ) at commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540) at RequestFilterServlet.getUrlMapping(RequestFilterServlet.java:187) at RequestFilterServlet.doFilter(RequestFilterServlet.java:277) at catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilte r Chai n.java:186) at catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.j a va:1 57) at catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:21 4 ) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.jav a :104 ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardContextValve.invokeInternal(StandardContextValve . java :198) at catalina.core.StandardContextValve.invoke(StandardContextValve.java:14 4 ) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.jav a :104 ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.jav a :104 ) at catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.jav a :102 ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.jav a :104 ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.ContainerBase.invoke(ContainerBase.java:929) at coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at jk.common.SocketConnection.runIt(ChannelSocket.java:866) at tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683 ) at java.lang.Thread.run(Thread.java:534) Any suggestions welcome. Thanks. --Kaleb PS: I'm using to
Re: Sun J2SE JVM + tomcat + Debian??
Phillip Qin wrote: Find out jsvc. It's new, not in 4.1. Why don't you use startup.sh instead? I'm using jsvc because the shutdown.sh script gave me some problems... I don't know why, sometimes, shutdown.sh can't fully stop tomcat, this means, some threads don't "shut down", so I couldn't stop Tomcat, neither startup it again (because the ports were used by the remaining tomcat process), and the only way to really stop tomcat was using "killall java" or "pkill -u tomcat"... With jsvc I don't have these problems, so I use jsvc at least on production servers. Horacio -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: October 14, 2004 10:16 AM To: 'Tomcat Users List' Subject: RE: Sun J2SE JVM + tomcat + Debian?? Sorry, but what is jsvc? -Original Message- From: Horacio de Oro [mailto:[EMAIL PROTECTED] Sent: October 14, 2004 1:47 AM To: Tomcat Users List Subject: Re: Sun J2SE JVM + tomcat + Debian?? Hi! Just to add some info: I've found some problem with Debian Woody + Sun 1.4.2 JDK... at least Tomcat 5 started up from jsvc fail at File.mkdirs (more info on http://www.mail-archive.com/[EMAIL PROTECTED]/msg131293.html and http://issues.apache.org/bugzilla/show_bug.cgi?id=30177)... These problems doesn't exist on Debian versions others than Woody (to solve that, you should compile jsvc with "-lpthread", so, I think it is a Debian Woody libc + Sun JVM only issue)... Horacio Jeff Bowden wrote: Is anyone using tomcat on debian with a Sun JVM? We've just experimented with running it on bleeding edge Gentoo and Debian boxes as well as a trailing edge Redhat 7.3 box. Of the three, Debian is the only one where things don't go quite right. It sort of works but it never spawns any threads and consquently doesn't perform very well on our 4 cpu box. We've gone over the configurations in these pretty carefully and it doesn't seem to be a config issue. We've tried all four combinations of j2se 1.4.2, j2se 1.5, tomcat4 and tomcat5 always with the same result. I also tried switching between 2.6.7 and 2.6.8 kernel. I'm guessing it's a library issue, probably libc, but I don't know how to tell. I realize that this is the tomcat user list and not the Sun Java/Debian support list so if you just want to tell me where to go I would be happy with that :-) -- El éxito debe medirse, no por la posición a la que ha llegado una persona, sino por su esfuerzo por triunfar. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5 help: POST not getting content from server
I've used tomcat since 2001 with our database sync product, use sysdeo in eclipse, etc. and tomcat 4.1.3 has been working fine. We have a new feature to do content-encoding: gzip and I tried tomcat 5.5 and tomcat 5.0 which have the following in server.xml: compression="on" compressionMinSize="2048" noCompressionUserAgents="gozilla, traviata" compressableMimeType="text/html,text/xml" So without turning it on in 5.5 or 5.0 I tried our product which does POSTs to our servlet. There are 4 msgs that return no data that work fine, then the request which should return data always returns 0 bytes, content-length=0, din.available() = 0. I've run it through an http sniffer and the response from the server ends with: 0210: 6F 76 67 71 45 46 42 65 46 62 66 48 44 0D 0A 43 ovgqEFBeFbfHD..C 0220: 6F 6E 74 65 6E 74 2D 4C 65 6E 67 74 68 3A 20 30 ontent-Length: 0 0230: 0D 0A 44 61 74 65 3A 20 54 68 75 2C 20 31 34 20 ..Date: Thu, 14 0240: 4F 63 74 20 32 30 30 34 20 32 31 3A 31 31 3A 34 Oct 2004 21:11:4 0250: 32 20 47 4D 54 0D 0A 53 65 72 76 65 72 3A 20 41 2 GMT..Server: A 0260: 70 61 63 68 65 2D 43 6F 79 6F 74 65 2F 31 2E 31 pache-Coyote/1.1 0270: 0D 0A 0D 0A Is there anything new to v5 which anyone can think of which might cause my data to not be returned?Its still HTTP 1.1 and our server runs on many different web servers without a problem. At first I thought i was getting chunked data, but there is no length in the CRLF's its a typical java client using java.net classes. thanks very much for your time and thoughts ... Dave Been
Tomcat smtp SSL transport?
I need to send email from Tomcat: - smtp server on localhost. - port 465. - smtp encrypts messages using SSL. - smtp authenticates users via CRAM-MD5. I probably need to add more parameters mail.smtp.host127.0.0.1 mail.smtp.port465 1. Do I need to set a specific mail.class of the provider, which and how ? 2. How to specify SSL encryption ? 3. How to specify CRAM-MD5 authentication ? Thanks! Evgeny __ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 pause (free gmail account for fix :-)
We are going to run a test this evening with an application that someone else wrote other than our own developers to see if the problem still exists. When the problem occurs we hit 100% cpu util with jsvc (tomcat deamon) taking all of the cpu. Also we switched back to the standard collector with 128 mb min / 256 mb max which resolves the out of memory problem, but we still have the pauses every so often. We have watched Visualgc and went through the jvmstat logs that showed us that new and old gen had plenty of memory when the problem exibited itself. We didn't have any gc for a period of time before and after the problem occured. Again thanks for all of the help and suggestions. On Thu, 14 Oct 2004 21:42:52 +0100, Dale, Matt <[EMAIL PROTECTED]> wrote: > > My next line of attack would be at the application itself. Is it possible that the > application is locking somewhere or is poorly threaded in some respect? > > What does top say when the cpu spikes? ie what is the load? what is the top process? > > If you experienced out of memory errors before you used the incremental collector > have you tried switching back to the standard collector but increasing the Xmx > setting to what is required by the app so as not to experience out of memory > exceptions. > > > > > -Original Message- > From: Sam Gallant [mailto:[EMAIL PROTECTED] > Sent: 14 October 2004 21:25 > To: Tomcat Users List > Subject: Re: Tomcat 5 pause (free gmail account for fix :-) > > Matt, > We have used jvmstat/visualgc which is how we found out that the > problem happens at times when no gc is taking place. We are actually > logging every second with jvmstat everyday at this point. The problem > we are stuck at now is trying to figure out how to get more infomation > out of the jvm when we can't catch the problem with a profiler and > can't run verbose gc for a long period of time. > > On Thu, 14 Oct 2004 16:06:37 -0400, Shapira, Yoav <[EMAIL PROTECTED]> wrote: > > > > Hi, > > Excellent post, that one from Matt Dale -- good advice. > > > > Yoav Shapira http://www.yoavshapira.com > > > > > > > > > > >-Original Message- > > >From: Dale, Matt [mailto:[EMAIL PROTECTED] > > >Sent: Thursday, October 14, 2004 4:04 PM > > >To: Tomcat Users List; Sam Gallant > > >Subject: RE: Tomcat 5 pause (free gmail account for fix :-) > > > > > >I reckon this still might be a garbage collection problem. > > > > > >I would download jvmstat from sun and use visualgc to monitor this. It > > >gives a good graphical representation of when the box is garbage > > collecting > > >and how much stuff is in each of the generations. > > > > > >We had a similar situation and this arose because the app created lots > > of > > >very short lived objects. Increasing the young generation size > > alleviated > > >this problem and also reducing tenuring so medium term objects made it > > to > > >the old generation. > > > > > >There are also a few more garbage collection parameters you can play > > with. > > >If you have multiple processors you could try enabling the parallel > > >collector. There is also the Concurrent Mark Sweep collector which > > locks > > >the JVM only in a small part of it's collection. You could try using > > the > > >aggressive heap settings which will try to use all the memory in the > > >machine that it can. > > > > > >I think more visibility of your garbage collection cycles is the first > > port > > >of call in any event. > > > > > >-Original Message- > > >From: Sam Gallant [mailto:[EMAIL PROTECTED] > > >Sent: 14 October 2004 20:17 > > >To: [EMAIL PROTECTED] > > >Subject: Tomcat 5 pause (free gmail account for fix :-) > > > > > > > > >Everyone, > > >Thanks in advance for any help. Also I have a gmail invite for the > > >person who has a fix for this if they are interested. > > > > > >My company has been using Tomcat for several years, but a problem has > > >crept up that we have not been able to solve. Basically, tomcat will > > >stop processing requests for 2-60 second period several times a day. > > > > > >Here is a list of software that we have tried. (Note we have tried > > >changing each key componant to see if we isolate the componant that is > > >the problem, but no luck yet) > > > > > >OS: RedHat 9 & AS3 > > >Threading model: linux threads & nptl > > >JVM: sun 1.4.2_4 & latest ibm > > >Http connector: ajp w/apache 2 and coyote connector > > >JBDC connector 1.0 > > > > > > > > >1. Doesn't always happen durning old gen garbage collection, but does > > >sometimes > > >2. Before switching to incremental gc we received out of memory errors > > >which resulted in Tomcat completly hanging > > >3. After switching to incremental gc the effect changed to 2-60 second > > >periods of time that Tomcat won't process request, but it does resume > > >on its' own. > > >4. Cpu usage for most of the day is less than 20% utiliztion, but when > > >the problem occurs the cpu spikes to 100% utiliztion briefly. > > > > > >
Re: mandatory packages for beans in Tomcat 5.0?
Thanks to Larry and Yoav. I'm sorry that I didn't search hard enough(TC FAQ. duh!) and asked such a simple question. :) --JW Shapira, Yoav wrote: Hola, http://jakarta.apache.org/tomcat/faq/classnotfound.html Yoav Shapira http://www.yoavshapira.com -Original Message- From: Jonathan Wilson [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 4:27 PM To: Tomcat Users List Subject: mandatory packages for beans in Tomcat 5.0? I'm evaluating TC 5.0 on Windows XP, coming from TC 3.3.1 on RH7.3. I can't get TC 5.0 to recognize any beans I put in the WEB-INF/classes directory(windows perms all good). If I put the bean into a package and create the proper subdirectory under WEB-INF/classes/ it sees the bean. I don't have to use a package in TC3.3.1 - is this something new or ??? Thanks, JW - 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: Tomcat 5 pause (free gmail account for fix :-)
My next line of attack would be at the application itself. Is it possible that the application is locking somewhere or is poorly threaded in some respect? What does top say when the cpu spikes? ie what is the load? what is the top process? If you experienced out of memory errors before you used the incremental collector have you tried switching back to the standard collector but increasing the Xmx setting to what is required by the app so as not to experience out of memory exceptions. -Original Message- From: Sam Gallant [mailto:[EMAIL PROTECTED] Sent: 14 October 2004 21:25 To: Tomcat Users List Subject: Re: Tomcat 5 pause (free gmail account for fix :-) Matt, We have used jvmstat/visualgc which is how we found out that the problem happens at times when no gc is taking place. We are actually logging every second with jvmstat everyday at this point. The problem we are stuck at now is trying to figure out how to get more infomation out of the jvm when we can't catch the problem with a profiler and can't run verbose gc for a long period of time. On Thu, 14 Oct 2004 16:06:37 -0400, Shapira, Yoav <[EMAIL PROTECTED]> wrote: > > Hi, > Excellent post, that one from Matt Dale -- good advice. > > Yoav Shapira http://www.yoavshapira.com > > > > > >-Original Message- > >From: Dale, Matt [mailto:[EMAIL PROTECTED] > >Sent: Thursday, October 14, 2004 4:04 PM > >To: Tomcat Users List; Sam Gallant > >Subject: RE: Tomcat 5 pause (free gmail account for fix :-) > > > >I reckon this still might be a garbage collection problem. > > > >I would download jvmstat from sun and use visualgc to monitor this. It > >gives a good graphical representation of when the box is garbage > collecting > >and how much stuff is in each of the generations. > > > >We had a similar situation and this arose because the app created lots > of > >very short lived objects. Increasing the young generation size > alleviated > >this problem and also reducing tenuring so medium term objects made it > to > >the old generation. > > > >There are also a few more garbage collection parameters you can play > with. > >If you have multiple processors you could try enabling the parallel > >collector. There is also the Concurrent Mark Sweep collector which > locks > >the JVM only in a small part of it's collection. You could try using > the > >aggressive heap settings which will try to use all the memory in the > >machine that it can. > > > >I think more visibility of your garbage collection cycles is the first > port > >of call in any event. > > > >-Original Message- > >From: Sam Gallant [mailto:[EMAIL PROTECTED] > >Sent: 14 October 2004 20:17 > >To: [EMAIL PROTECTED] > >Subject: Tomcat 5 pause (free gmail account for fix :-) > > > > > >Everyone, > >Thanks in advance for any help. Also I have a gmail invite for the > >person who has a fix for this if they are interested. > > > >My company has been using Tomcat for several years, but a problem has > >crept up that we have not been able to solve. Basically, tomcat will > >stop processing requests for 2-60 second period several times a day. > > > >Here is a list of software that we have tried. (Note we have tried > >changing each key componant to see if we isolate the componant that is > >the problem, but no luck yet) > > > >OS: RedHat 9 & AS3 > >Threading model: linux threads & nptl > >JVM: sun 1.4.2_4 & latest ibm > >Http connector: ajp w/apache 2 and coyote connector > >JBDC connector 1.0 > > > > > >1. Doesn't always happen durning old gen garbage collection, but does > >sometimes > >2. Before switching to incremental gc we received out of memory errors > >which resulted in Tomcat completly hanging > >3. After switching to incremental gc the effect changed to 2-60 second > >periods of time that Tomcat won't process request, but it does resume > >on its' own. > >4. Cpu usage for most of the day is less than 20% utiliztion, but when > >the problem occurs the cpu spikes to 100% utiliztion briefly. > > > >- > >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] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE
Re: mandatory packages for beans in Tomcat 5.0?
Yes, this was added in tomcat 4.x, and is required. >>> [EMAIL PROTECTED] 10/14/04 2:27 PM >>> I'm evaluating TC 5.0 on Windows XP, coming from TC 3.3.1 on RH7.3. I can't get TC 5.0 to recognize any beans I put in the WEB-INF/classes directory(windows perms all good). If I put the bean into a package and create the proper subdirectory under WEB-INF/classes/ it sees the bean. I don't have to use a package in TC3.3.1 - is this something new or ??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mandatory packages for beans in Tomcat 5.0?
Hola, http://jakarta.apache.org/tomcat/faq/classnotfound.html Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Jonathan Wilson [mailto:[EMAIL PROTECTED] >Sent: Thursday, October 14, 2004 4:27 PM >To: Tomcat Users List >Subject: mandatory packages for beans in Tomcat 5.0? > >I'm evaluating TC 5.0 on Windows XP, coming from TC 3.3.1 on RH7.3. >I can't get TC 5.0 to recognize any beans I put in the WEB-INF/classes >directory(windows perms all good). If I put the bean into a package and >create the proper subdirectory under WEB-INF/classes/ it sees the bean. >I don't have to use a package in TC3.3.1 - is this something new or ??? > >Thanks, >JW > >- >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: Servlet caching?
Hi, >I would think that after reloading the servlet all the >classes that it had used would cease to exist. That is, any class that had >been instantiated or used by the servlet would not remain instantiated >after >I reload the servlet. Under most instances, but not all. For example, if the library you're using the find the list of printers is in common/lib or shared/lib, your thought above is false. Yoav 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]
mandatory packages for beans in Tomcat 5.0?
I'm evaluating TC 5.0 on Windows XP, coming from TC 3.3.1 on RH7.3. I can't get TC 5.0 to recognize any beans I put in the WEB-INF/classes directory(windows perms all good). If I put the bean into a package and create the proper subdirectory under WEB-INF/classes/ it sees the bean. I don't have to use a package in TC3.3.1 - is this something new or ??? Thanks, JW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 pause (free gmail account for fix :-)
Nope not swapping. Based on what we see in jvmstat/visualgc we typically have 64mb of data in old gen, 12mb of app data, and about 12 mb of new gen data. The OS still has free memory as well. On Thu, 14 Oct 2004 15:54:59 -0400, Cox, Charlie <[EMAIL PROTECTED]> wrote: > Is your machine swapping? 512MB can go quickly... > > > > > -Original Message- > > From: Sam Gallant [mailto:[EMAIL PROTECTED] > > Sent: Thursday, October 14, 2004 3:40 PM > > To: Montz, James C. (James Tower) > > Cc: Tomcat Users List > > Subject: Re: Tomcat 5 pause (free gmail account for fix :-) > > > > We have done default gc with 8mb/256mb min/max, default gc with > > 128mb/256mb min/max, and incremental with the same settings. The > > machine has 512mb ram. When we turn on verbose gc the gc logging just > > stops after a period of time both on the sun jvm and the ibm. When > > there is 100% cpu util jsvc is using 99% of the cpu. > > > > > > On Thu, 14 Oct 2004 14:33:13 -0500, Montz, James C. (James Tower) > > <[EMAIL PROTECTED]> wrote: > > > Are you defining any Memory Min/Max (-Xms/-Xmx) constraints on the JVM? > > > Are you collecting any verbose GC information (-verbose:gc)? > > > > > > How much physical memory available on the machine? > > > > > > At times of 100% CPU Utilization, is it java that is consumnig the > > > majority of it? > > > > > > > > > > > > -Original Message- > > > From: Sam Gallant [mailto:[EMAIL PROTECTED] > > > Sent: Thursday, October 14, 2004 2:17 PM > > > To: [EMAIL PROTECTED] > > > Subject: Tomcat 5 pause (free gmail account for fix :-) > > > > > > Everyone, > > > Thanks in advance for any help. Also I have a gmail invite for the > > > person who has a fix for this if they are interested. > > > > > > My company has been using Tomcat for several years, but a problem has > > > crept up that we have not been able to solve. Basically, tomcat will > > > stop processing requests for 2-60 second period several times a day. > > > > > > Here is a list of software that we have tried. (Note we have tried > > > changing each key componant to see if we isolate the componant that is > > > the problem, but no luck yet) > > > > > > OS: RedHat 9 & AS3 > > > Threading model: linux threads & nptl > > > JVM: sun 1.4.2_4 & latest ibm > > > Http connector: ajp w/apache 2 and coyote connector > > > JBDC connector 1.0 > > > > > > 1. Doesn't always happen durning old gen garbage collection, but does > > > sometimes > > > 2. Before switching to incremental gc we received out of memory errors > > > which resulted in Tomcat completly hanging > > > 3. After switching to incremental gc the effect changed to 2-60 second > > > periods of time that Tomcat won't process request, but it does resume > > > on its' own. > > > 4. Cpu usage for most of the day is less than 20% utiliztion, but when > > > the problem occurs the cpu spikes to 100% utiliztion briefly. > > > > > > - > > > 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: Servlet caching?
On Thu, Oct 14, 2004 at 04:20:08PM -0400, Carlos Oliva wrote: : I have found that even if I terminate every connection of the servlet to the : database and reload the servlet, the servlet still does not find the newly : installed printer. Please post the servlet, or provide a walk-through. It really sounds like you're storing data somewhere (instance variable, whatever) but not properly updating it second time around. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 pause (free gmail account for fix :-)
Matt, We have used jvmstat/visualgc which is how we found out that the problem happens at times when no gc is taking place. We are actually logging every second with jvmstat everyday at this point. The problem we are stuck at now is trying to figure out how to get more infomation out of the jvm when we can't catch the problem with a profiler and can't run verbose gc for a long period of time. On Thu, 14 Oct 2004 16:06:37 -0400, Shapira, Yoav <[EMAIL PROTECTED]> wrote: > > Hi, > Excellent post, that one from Matt Dale -- good advice. > > Yoav Shapira http://www.yoavshapira.com > > > > > >-Original Message- > >From: Dale, Matt [mailto:[EMAIL PROTECTED] > >Sent: Thursday, October 14, 2004 4:04 PM > >To: Tomcat Users List; Sam Gallant > >Subject: RE: Tomcat 5 pause (free gmail account for fix :-) > > > >I reckon this still might be a garbage collection problem. > > > >I would download jvmstat from sun and use visualgc to monitor this. It > >gives a good graphical representation of when the box is garbage > collecting > >and how much stuff is in each of the generations. > > > >We had a similar situation and this arose because the app created lots > of > >very short lived objects. Increasing the young generation size > alleviated > >this problem and also reducing tenuring so medium term objects made it > to > >the old generation. > > > >There are also a few more garbage collection parameters you can play > with. > >If you have multiple processors you could try enabling the parallel > >collector. There is also the Concurrent Mark Sweep collector which > locks > >the JVM only in a small part of it's collection. You could try using > the > >aggressive heap settings which will try to use all the memory in the > >machine that it can. > > > >I think more visibility of your garbage collection cycles is the first > port > >of call in any event. > > > >-Original Message- > >From: Sam Gallant [mailto:[EMAIL PROTECTED] > >Sent: 14 October 2004 20:17 > >To: [EMAIL PROTECTED] > >Subject: Tomcat 5 pause (free gmail account for fix :-) > > > > > >Everyone, > >Thanks in advance for any help. Also I have a gmail invite for the > >person who has a fix for this if they are interested. > > > >My company has been using Tomcat for several years, but a problem has > >crept up that we have not been able to solve. Basically, tomcat will > >stop processing requests for 2-60 second period several times a day. > > > >Here is a list of software that we have tried. (Note we have tried > >changing each key componant to see if we isolate the componant that is > >the problem, but no luck yet) > > > >OS: RedHat 9 & AS3 > >Threading model: linux threads & nptl > >JVM: sun 1.4.2_4 & latest ibm > >Http connector: ajp w/apache 2 and coyote connector > >JBDC connector 1.0 > > > > > >1. Doesn't always happen durning old gen garbage collection, but does > >sometimes > >2. Before switching to incremental gc we received out of memory errors > >which resulted in Tomcat completly hanging > >3. After switching to incremental gc the effect changed to 2-60 second > >periods of time that Tomcat won't process request, but it does resume > >on its' own. > >4. Cpu usage for most of the day is less than 20% utiliztion, but when > >the problem occurs the cpu spikes to 100% utiliztion briefly. > > > >- > >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] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Servlet caching?
Hi Tim, I have found that even if I terminate every connection of the servlet to the database and reload the servlet, the servlet still does not find the newly installed printer. I would think that after reloading the servlet all the classes that it had used would cease to exist. That is, any class that had been instantiated or used by the servlet would not remain instantiated after I reload the servlet. So I am thinking that re-starting tomcat somehow makes Tomcat aware of the services that have been installed after Tomcat was started -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 9:50 AM To: Tomcat Users List Subject: Re: Servlet caching? It sounds like one of the classes the Servlet is depending on is caching the result. -Tim Carlos wrote: > Do servlets in Tomcat (1.4) catch results of programs that they run? I have > a java servlet that lists the print services of printers installed in the > server (Linux Red Hat). I run the servlet before and after I install a > couple of printers in the server; however, the list of printer services does > not change until I restart Tomcat. At the same time, I run a test program > in the server from the command line to list the print services and this > program lists the newly installed printers right away. This has led me to > believe that the servlet is caching the list of printer services when it is > run the first time and does not re-run the code until Tomcat has been > re-started. > > - 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: Servlet caching?
Hi Yoav, I have found that even if I terminate every connection of the servlet to the database and reload the servlet, the servlet still does not find the newly installed printer. I would think that after reloading the servlet all the classes that it had used would cease to exist. That is, any class that had been instantiated or used by the servlet would not remain instantiated after I reload the servlet. So I am thinking that re-starting tomcat somehow makes Tomcat aware of the services that have been installed after Tomcat was started -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 10:00 AM To: Tomcat Users List Subject: RE: Servlet caching? Hi, The servlets by themselves do what you tell them to: you wrote them, after all ;) Tomcat doesn't provide any caching of response content by itself without special effort or configuration on your behalf. As Tim said, my guess is a utility class used by your servlet is doing the caching for the printer services list. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Carlos [mailto:[EMAIL PROTECTED] >Sent: Thursday, October 14, 2004 9:43 AM >To: Tomcat-User ([EMAIL PROTECTED]) >Subject: Servlet caching? > >Do servlets in Tomcat (1.4) catch results of programs that they run? I >have >a java servlet that lists the print services of printers installed in the >server (Linux Red Hat). I run the servlet before and after I install a >couple of printers in the server; however, the list of printer services >does >not change until I restart Tomcat. At the same time, I run a test program >in the server from the command line to list the print services and this >program lists the newly installed printers right away. This has led me to >believe that the servlet is caching the list of printer services when it is >run the first time and does not re-run the code until Tomcat has been >re-started. > > > >Thanks in advance for your response. 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: AW: mod_jk2 Ready/Recommended For Production?
I have not run benchmarks, no... thus the likely... which is based on past articles and discussions. However, here's an interesting/fairly recent thread: http://marc.theaimsgroup.com/?l=tomcat-user&m=106036177509367&w=2 Thank you, -Raiden Johnson On Thu, 14 Oct 2004, Steffen Heil wrote: > Hi > > > Apache is likely much better than tomcat in serving static content, ... > > I assume you cannot prove that, right? > > Regards, > Steffen > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5 pause (free gmail account for fix :-)
Hi, Excellent post, that one from Matt Dale -- good advice. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Dale, Matt [mailto:[EMAIL PROTECTED] >Sent: Thursday, October 14, 2004 4:04 PM >To: Tomcat Users List; Sam Gallant >Subject: RE: Tomcat 5 pause (free gmail account for fix :-) > >I reckon this still might be a garbage collection problem. > >I would download jvmstat from sun and use visualgc to monitor this. It >gives a good graphical representation of when the box is garbage collecting >and how much stuff is in each of the generations. > >We had a similar situation and this arose because the app created lots of >very short lived objects. Increasing the young generation size alleviated >this problem and also reducing tenuring so medium term objects made it to >the old generation. > >There are also a few more garbage collection parameters you can play with. >If you have multiple processors you could try enabling the parallel >collector. There is also the Concurrent Mark Sweep collector which locks >the JVM only in a small part of it's collection. You could try using the >aggressive heap settings which will try to use all the memory in the >machine that it can. > >I think more visibility of your garbage collection cycles is the first port >of call in any event. > >-Original Message- >From: Sam Gallant [mailto:[EMAIL PROTECTED] >Sent: 14 October 2004 20:17 >To: [EMAIL PROTECTED] >Subject: Tomcat 5 pause (free gmail account for fix :-) > > >Everyone, >Thanks in advance for any help. Also I have a gmail invite for the >person who has a fix for this if they are interested. > >My company has been using Tomcat for several years, but a problem has >crept up that we have not been able to solve. Basically, tomcat will >stop processing requests for 2-60 second period several times a day. > >Here is a list of software that we have tried. (Note we have tried >changing each key componant to see if we isolate the componant that is >the problem, but no luck yet) > >OS: RedHat 9 & AS3 >Threading model: linux threads & nptl >JVM: sun 1.4.2_4 & latest ibm >Http connector: ajp w/apache 2 and coyote connector >JBDC connector 1.0 > > >1. Doesn't always happen durning old gen garbage collection, but does >sometimes >2. Before switching to incremental gc we received out of memory errors >which resulted in Tomcat completly hanging >3. After switching to incremental gc the effect changed to 2-60 second >periods of time that Tomcat won't process request, but it does resume >on its' own. >4. Cpu usage for most of the day is less than 20% utiliztion, but when >the problem occurs the cpu spikes to 100% utiliztion briefly. > >- >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: Tomcat 5 pause (free gmail account for fix :-)
I reckon this still might be a garbage collection problem. I would download jvmstat from sun and use visualgc to monitor this. It gives a good graphical representation of when the box is garbage collecting and how much stuff is in each of the generations. We had a similar situation and this arose because the app created lots of very short lived objects. Increasing the young generation size alleviated this problem and also reducing tenuring so medium term objects made it to the old generation. There are also a few more garbage collection parameters you can play with. If you have multiple processors you could try enabling the parallel collector. There is also the Concurrent Mark Sweep collector which locks the JVM only in a small part of it's collection. You could try using the aggressive heap settings which will try to use all the memory in the machine that it can. I think more visibility of your garbage collection cycles is the first port of call in any event. -Original Message- From: Sam Gallant [mailto:[EMAIL PROTECTED] Sent: 14 October 2004 20:17 To: [EMAIL PROTECTED] Subject: Tomcat 5 pause (free gmail account for fix :-) Everyone, Thanks in advance for any help. Also I have a gmail invite for the person who has a fix for this if they are interested. My company has been using Tomcat for several years, but a problem has crept up that we have not been able to solve. Basically, tomcat will stop processing requests for 2-60 second period several times a day. Here is a list of software that we have tried. (Note we have tried changing each key componant to see if we isolate the componant that is the problem, but no luck yet) OS: RedHat 9 & AS3 Threading model: linux threads & nptl JVM: sun 1.4.2_4 & latest ibm Http connector: ajp w/apache 2 and coyote connector JBDC connector 1.0 1. Doesn't always happen durning old gen garbage collection, but does sometimes 2. Before switching to incremental gc we received out of memory errors which resulted in Tomcat completly hanging 3. After switching to incremental gc the effect changed to 2-60 second periods of time that Tomcat won't process request, but it does resume on its' own. 4. Cpu usage for most of the day is less than 20% utiliztion, but when the problem occurs the cpu spikes to 100% utiliztion briefly. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
caching taglibs
Hello folks, i noticed that everytime tomcat-5.0.x needs a taglib it just create a new one, i´d like to cached all tag in my JSPs, how ca i do that? Is there any taglib container like we have with servlets? Regards, Edson
AW: mod_jk2 Ready/Recommended For Production?
Hi > Apache is likely much better than tomcat in serving static content, ... I assume you cannot prove that, right? Regards, Steffen smime.p7s Description: S/MIME cryptographic signature
RE: mod_jk2 Ready/Recommended For Production?
On a somewhat related note; Anyone have best practices/recommendations on handling traditional .htaccess control on content? I don't particularly care to have the 2 separate layers of security, purely from an ease of administration perspective. .htaccess controls are totally bypassed when requesting content handled by Tomcat. For example, simply clicking cancel during the authentication dialog box will still present the default index.jsp page, or ignored all together if requesting the .jsp directly. In addition to creating the .htaccess, you then must also create your Tomcat Security Realm. Is there anyway to have Apache & Tomcat use the same user/pass file? Can a Realm be created that is simply; username:MD5 encrypted password (such as the format of .htaccess) I'd rather not have to go to the extent of creating user/password pairs in a database, then setting up something like mod_auth_mysql and JDBC for centralized authentication (is this even possible?). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 2:27 PM To: Tomcat Users List Subject: RE: mod_jk2 Ready/Recommended For Production? I have been using mod_jk2 for a couple of years now, and I have not had to compile it, either. I use it on Linux production systems... (currently I am using Redhat Enterprise Linux and the Fedora binary). The biggest problem has always been extremely poor documentation. However, the Fedora download has a directory structure that quickly shows you where to place the needed files. I was setup in less than 30 seconds. I am a big fan of a 3-tier architecture. I think it's important to have web requests intercepted on one layer, and only handed off to the processing layer (tomcat) when need be. Apache is likely much better than tomcat in serving static content, and even though tomcat has lots of security, I feel much more comfortable with Apache being at the front door, because of its extremely wide use and history. -Raiden Johnson On Thu, 14 Oct 2004, Angus Mezick wrote: > I have been using mod_jk2 for a long time now. I have no idea why so > many people dislike it (well, after they get it compiled that is). I > might just be blessed in that I run on win2k servers and can just get > the binary for mod_jk2. I have never had to deal with the pain of > compiling this thing. It is working great for me on a rather busy > little cluster of servers. > --Angus > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, October 13, 2004 7:27 PM > > To: Tomcat Users List > > Subject: Re: mod_jk2 Ready/Recommended For Production? > > > > > > Boy am I confused now. If mod_jk2 is dead, so what is everyone using? > > Still using just the first mod_jk? I had just gotten > > everythign working > > with mod_jk2 - more or less- but configurationwise mod_jk2 is > > a pain since > > the syntax was completely changed and requires you to map > > every nook and > > cranny. > > > > 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: Problem with web.xml not invoking servlet filter
Hi, Ahh, good. We spent a ton of time on this issue a while ago, when 2.4 was finalized and it wasn't exactly clear how these should be implemented. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Rick Wong [mailto:[EMAIL PROTECTED] >Sent: Thursday, October 14, 2004 3:57 PM >To: Tomcat Users List >Subject: Re: Problem with web.xml not invoking servlet filter > >Thank you very much. I re-read the servlet 2.4 spec, and it works after >I added the following to my filter: > > >ChannelFilter >/* >REQUEST >ERROR > > >-- >Rick > >Shapira, Yoav wrote: > >>Hi, >>I think this is according to the spec. It took us a while to sort this >>out, and several consultations with the JSP Spec leads. It's related to >>those new filter mapping types defined in Spec version 2.4. >> >>Yoav Shapira http://www.yoavshapira.com >> >> >> >> >>>-Original Message- >>>From: Rick Wong [mailto:[EMAIL PROTECTED] >>>Sent: Wednesday, October 13, 2004 8:14 PM >>>To: Tomcat Users List >>>Subject: Problem with web.xml not invoking servlet filter >>> >>>Hi, >>> >>>I am using Tomcat 5. In my application, my web.xml declares a >>> >>> >>, >> >> >>>and a global error page >>> >>> >>> java.lang.Exception >>> /error.jsp >>> >>> >>>By examining the call stack in my error page JSP, I notice that when >>>this error page is invoked, my filter is not called. However, if I >>>define <%@ page errorPage="/error.jsp" %> in my JSP file, my >>> >>> >>is >> >> >>>invoked (and as a part of the call stack). >>> >>>Is this a Tomcat bug? Or does this behavior conform with the Servlet >>>2.4 spec? >>> >>>Thanks, >>>-- >>>Rick >>> >>>- >>>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] >> >> >> > >- >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: Tomcat 5 pause (free gmail account for fix :-)
We have tried using a profiler, but it hasn't worked well because the problem only happens a few times over an eight hour day. When we run the profiler the we get a different effect which may or may not be the same problem plus the new effect happens quite often. Has anyone else run into problem running the verbose gc for several hours? On Thu, 14 Oct 2004 14:33:34 -0500, QM <[EMAIL PROTECTED]> wrote: > On Thu, Oct 14, 2004 at 02:16:56PM -0500, Sam Gallant wrote: > : My company has been using Tomcat for several years, but a problem has > : crept up that we have not been able to solve. Basically, tomcat will > : stop processing requests for 2-60 second period several times a day. > > It still may be some sort of GC activity. A profiler will show you > exactly what's going on, and (better still) whether it's a particular > type of object or place of object creation that's causing a GC spike. > > Be sure to give the profiler the Gmail invite. ;) > > -QM > > -- > > software -- http://www.brandxdev.net > tech news -- http://www.RoarNetworX.com > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
test
Just testing.
Re: Problem with web.xml not invoking servlet filter
Thank you very much. I re-read the servlet 2.4 spec, and it works after I added the following to my filter: ChannelFilter /* REQUEST ERROR -- Rick Shapira, Yoav wrote: Hi, I think this is according to the spec. It took us a while to sort this out, and several consultations with the JSP Spec leads. It's related to those new filter mapping types defined in Spec version 2.4. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Rick Wong [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 8:14 PM To: Tomcat Users List Subject: Problem with web.xml not invoking servlet filter Hi, I am using Tomcat 5. In my application, my web.xml declares a , and a global error page java.lang.Exception /error.jsp By examining the call stack in my error page JSP, I notice that when this error page is invoked, my filter is not called. However, if I define <%@ page errorPage="/error.jsp" %> in my JSP file, my is invoked (and as a part of the call stack). Is this a Tomcat bug? Or does this behavior conform with the Servlet 2.4 spec? Thanks, -- Rick - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 pause (free gmail account for fix :-)
I have a similar problem(TC 3.3.1) but it is related to our pooling solution running out of connections and/or it trying to reap not-checked-in connections. The lockups users reported were during a reap cycle. After a few seconds up to a minute(sound familiar) it would "go away" and the app would start servicing requests again(checkout "netstat -a" and count your connections before and after your hicup). It only happens when someone "hits" the place where I didn't checkin enough times to deplete the pool. I'm feverishly trying to finish implementation so as a bandaid I've increased my pools depth to 100 connections for alpha testing...working for now. Question: Anyone have any ideas on how to track what/where a checkout doesn't get checked-in(better pooling solution? I'm using bitmechanic now). What benefits does TC 4/5 built-in pooling mechanism have over my current solution? Also, when my TC ran out of memory(out of Resources Exception) I just increased the Heap size using TOMCAT_OPTS="$TOMCAT_OPTS -Xmx300m" placed in the tomcat.sh script(TC 3.3.1 remember) and it's never happened again(no object loitering, just lots of objects!). If you grow too large(and/or never stop growing!) I'd look into indirectly referenced objects..here's a link to an article about this behavior(good performance analysis info): http://www.opensourcetutorials.com/tutorials/Server-Side-Coding/Java/java-garbage-collection-performance/page4.html --Jonathan Sam Gallant wrote: Everyone, Thanks in advance for any help. Also I have a gmail invite for the person who has a fix for this if they are interested. My company has been using Tomcat for several years, but a problem has crept up that we have not been able to solve. Basically, tomcat will stop processing requests for 2-60 second period several times a day. Here is a list of software that we have tried. (Note we have tried changing each key componant to see if we isolate the componant that is the problem, but no luck yet) OS: RedHat 9 & AS3 Threading model: linux threads & nptl JVM: sun 1.4.2_4 & latest ibm Http connector: ajp w/apache 2 and coyote connector JBDC connector 1.0 1. Doesn't always happen durning old gen garbage collection, but does sometimes 2. Before switching to incremental gc we received out of memory errors which resulted in Tomcat completly hanging 3. After switching to incremental gc the effect changed to 2-60 second periods of time that Tomcat won't process request, but it does resume on its' own. 4. Cpu usage for most of the day is less than 20% utiliztion, but when the problem occurs the cpu spikes to 100% utiliztion briefly. - 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 pause (free gmail account for fix :-)
Is your machine swapping? 512MB can go quickly... > -Original Message- > From: Sam Gallant [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 14, 2004 3:40 PM > To: Montz, James C. (James Tower) > Cc: Tomcat Users List > Subject: Re: Tomcat 5 pause (free gmail account for fix :-) > > We have done default gc with 8mb/256mb min/max, default gc with > 128mb/256mb min/max, and incremental with the same settings. The > machine has 512mb ram. When we turn on verbose gc the gc logging just > stops after a period of time both on the sun jvm and the ibm. When > there is 100% cpu util jsvc is using 99% of the cpu. > > > On Thu, 14 Oct 2004 14:33:13 -0500, Montz, James C. (James Tower) > <[EMAIL PROTECTED]> wrote: > > Are you defining any Memory Min/Max (-Xms/-Xmx) constraints on the JVM? > > Are you collecting any verbose GC information (-verbose:gc)? > > > > How much physical memory available on the machine? > > > > At times of 100% CPU Utilization, is it java that is consumnig the > > majority of it? > > > > > > > > -Original Message- > > From: Sam Gallant [mailto:[EMAIL PROTECTED] > > Sent: Thursday, October 14, 2004 2:17 PM > > To: [EMAIL PROTECTED] > > Subject: Tomcat 5 pause (free gmail account for fix :-) > > > > Everyone, > > Thanks in advance for any help. Also I have a gmail invite for the > > person who has a fix for this if they are interested. > > > > My company has been using Tomcat for several years, but a problem has > > crept up that we have not been able to solve. Basically, tomcat will > > stop processing requests for 2-60 second period several times a day. > > > > Here is a list of software that we have tried. (Note we have tried > > changing each key componant to see if we isolate the componant that is > > the problem, but no luck yet) > > > > OS: RedHat 9 & AS3 > > Threading model: linux threads & nptl > > JVM: sun 1.4.2_4 & latest ibm > > Http connector: ajp w/apache 2 and coyote connector > > JBDC connector 1.0 > > > > 1. Doesn't always happen durning old gen garbage collection, but does > > sometimes > > 2. Before switching to incremental gc we received out of memory errors > > which resulted in Tomcat completly hanging > > 3. After switching to incremental gc the effect changed to 2-60 second > > periods of time that Tomcat won't process request, but it does resume > > on its' own. > > 4. Cpu usage for most of the day is less than 20% utiliztion, but when > > the problem occurs the cpu spikes to 100% utiliztion briefly. > > > > - > > 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 pause (free gmail account for fix :-)
We have done default gc with 8mb/256mb min/max, default gc with 128mb/256mb min/max, and incremental with the same settings. The machine has 512mb ram. When we turn on verbose gc the gc logging just stops after a period of time both on the sun jvm and the ibm. When there is 100% cpu util jsvc is using 99% of the cpu. On Thu, 14 Oct 2004 14:33:13 -0500, Montz, James C. (James Tower) <[EMAIL PROTECTED]> wrote: > Are you defining any Memory Min/Max (-Xms/-Xmx) constraints on the JVM? > Are you collecting any verbose GC information (-verbose:gc)? > > How much physical memory available on the machine? > > At times of 100% CPU Utilization, is it java that is consumnig the > majority of it? > > > > -Original Message- > From: Sam Gallant [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 14, 2004 2:17 PM > To: [EMAIL PROTECTED] > Subject: Tomcat 5 pause (free gmail account for fix :-) > > Everyone, > Thanks in advance for any help. Also I have a gmail invite for the > person who has a fix for this if they are interested. > > My company has been using Tomcat for several years, but a problem has > crept up that we have not been able to solve. Basically, tomcat will > stop processing requests for 2-60 second period several times a day. > > Here is a list of software that we have tried. (Note we have tried > changing each key componant to see if we isolate the componant that is > the problem, but no luck yet) > > OS: RedHat 9 & AS3 > Threading model: linux threads & nptl > JVM: sun 1.4.2_4 & latest ibm > Http connector: ajp w/apache 2 and coyote connector > JBDC connector 1.0 > > 1. Doesn't always happen durning old gen garbage collection, but does > sometimes > 2. Before switching to incremental gc we received out of memory errors > which resulted in Tomcat completly hanging > 3. After switching to incremental gc the effect changed to 2-60 second > periods of time that Tomcat won't process request, but it does resume > on its' own. > 4. Cpu usage for most of the day is less than 20% utiliztion, but when > the problem occurs the cpu spikes to 100% utiliztion briefly. > > - > 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 pause (free gmail account for fix :-)
On Thu, Oct 14, 2004 at 02:16:56PM -0500, Sam Gallant wrote: : My company has been using Tomcat for several years, but a problem has : crept up that we have not been able to solve. Basically, tomcat will : stop processing requests for 2-60 second period several times a day. It still may be some sort of GC activity. A profiler will show you exactly what's going on, and (better still) whether it's a particular type of object or place of object creation that's causing a GC spike. Be sure to give the profiler the Gmail invite. ;) -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5 pause (free gmail account for fix :-)
Are you defining any Memory Min/Max (-Xms/-Xmx) constraints on the JVM? Are you collecting any verbose GC information (-verbose:gc)? How much physical memory available on the machine? At times of 100% CPU Utilization, is it java that is consumnig the majority of it? -Original Message- From: Sam Gallant [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 2:17 PM To: [EMAIL PROTECTED] Subject: Tomcat 5 pause (free gmail account for fix :-) Everyone, Thanks in advance for any help. Also I have a gmail invite for the person who has a fix for this if they are interested. My company has been using Tomcat for several years, but a problem has crept up that we have not been able to solve. Basically, tomcat will stop processing requests for 2-60 second period several times a day. Here is a list of software that we have tried. (Note we have tried changing each key componant to see if we isolate the componant that is the problem, but no luck yet) OS: RedHat 9 & AS3 Threading model: linux threads & nptl JVM: sun 1.4.2_4 & latest ibm Http connector: ajp w/apache 2 and coyote connector JBDC connector 1.0 1. Doesn't always happen durning old gen garbage collection, but does sometimes 2. Before switching to incremental gc we received out of memory errors which resulted in Tomcat completly hanging 3. After switching to incremental gc the effect changed to 2-60 second periods of time that Tomcat won't process request, but it does resume on its' own. 4. Cpu usage for most of the day is less than 20% utiliztion, but when the problem occurs the cpu spikes to 100% utiliztion briefly. - 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]
mod_jk2 MaxPocessors... what happens when limit is reached?
Hello, We have two Apache instances talking to one tomcat instance. The two Apache instances have 200 MaxClients each... so 400 total. I assume this means that the tomcat instance should be set for 400 MaxProcessors? If we set it for lower, what happens with mod_jk2 when the MaxProcessor limit is reached? Do Apache connections wait for a turn, or is an error immediately returned? (With the older mod_jk, an error was returned... which is pretty undesirable.) Thank you, -Raiden Johnson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk2 Ready/Recommended For Production?
I have been using mod_jk2 for a couple of years now, and I have not had to compile it, either. I use it on Linux production systems... (currently I am using Redhat Enterprise Linux and the Fedora binary). The biggest problem has always been extremely poor documentation. However, the Fedora download has a directory structure that quickly shows you where to place the needed files. I was setup in less than 30 seconds. I am a big fan of a 3-tier architecture. I think it's important to have web requests intercepted on one layer, and only handed off to the processing layer (tomcat) when need be. Apache is likely much better than tomcat in serving static content, and even though tomcat has lots of security, I feel much more comfortable with Apache being at the front door, because of its extremely wide use and history. -Raiden Johnson On Thu, 14 Oct 2004, Angus Mezick wrote: > I have been using mod_jk2 for a long time now. I have no idea why so > many people dislike it (well, after they get it compiled that is). I > might just be blessed in that I run on win2k servers and can just get > the binary for mod_jk2. I have never had to deal with the pain of > compiling this thing. It is working great for me on a rather busy > little cluster of servers. > --Angus > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, October 13, 2004 7:27 PM > > To: Tomcat Users List > > Subject: Re: mod_jk2 Ready/Recommended For Production? > > > > > > Boy am I confused now. If mod_jk2 is dead, so what is everyone using? > > Still using just the first mod_jk? I had just gotten > > everythign working > > with mod_jk2 - more or less- but configurationwise mod_jk2 is > > a pain since > > the syntax was completely changed and requires you to map > > every nook and > > cranny. > > > > 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]
Tomcat 5 pause (free gmail account for fix :-)
Everyone, Thanks in advance for any help. Also I have a gmail invite for the person who has a fix for this if they are interested. My company has been using Tomcat for several years, but a problem has crept up that we have not been able to solve. Basically, tomcat will stop processing requests for 2-60 second period several times a day. Here is a list of software that we have tried. (Note we have tried changing each key componant to see if we isolate the componant that is the problem, but no luck yet) OS: RedHat 9 & AS3 Threading model: linux threads & nptl JVM: sun 1.4.2_4 & latest ibm Http connector: ajp w/apache 2 and coyote connector JBDC connector 1.0 1. Doesn't always happen durning old gen garbage collection, but does sometimes 2. Before switching to incremental gc we received out of memory errors which resulted in Tomcat completly hanging 3. After switching to incremental gc the effect changed to 2-60 second periods of time that Tomcat won't process request, but it does resume on its' own. 4. Cpu usage for most of the day is less than 20% utiliztion, but when the problem occurs the cpu spikes to 100% utiliztion briefly. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help with mod_jk2
I set the Apache Vhost DocumentRoot to the same directory where the JSP pages reside; i.e. DocumentRoot /home/tomcatapp/webapps/ROOT -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 1:22 PM To: Tomcat Users List Subject: RE: Help with mod_jk2 Ok I got it working by adding the opening and closing I didnt think those worked with apache2. Still have problem, How do you handle the images? Images dont show up. Do I need to add jkuriset for images? Thanks you guys have been most helpful! John > Hello, > > Using jkUriSet I get this now: > [Thu Oct 14 10:57:32 2004] [notice] uriEnv.setAttribute() the worker > directive is deprecated. Use 'group' instead. > > (I removed all the uri mapping for that instance in workers2) > > And tomcat isnt getting routed to port 80. > > Any ideas? > > Thanks! > >> Just a simple questions, then an answer. >> >> If you are front-ending Tomcat with a web server, why are you passing >> things like .html, .gif, .jpg, etc. to Tomcat to process? The web >> server itself is a bit more efficient in handling this content. >> >> Secondly, what web server front end are you using? >> >> On Apache2/Tomcat4.1/mod_jk2, workers2.properties only defines my >> workers, I set URI matching in my Apache Virtual Hosts Config; >> >> Add something similar to the following for each vhost (copy & pasts is a >> wonderful thing). >> >> >> ... >> >> JkUriSet worker ajp13:localhost:8201 >> >> >> JkUriSet worker ajp13:localhost:8201 >> >> >> JkUriSet worker ajp13:localhost:8201 >> >> >> JkUriSet worker ajp13:localhost:8201 >> >> >> AllowOverride None >> deny from all >> >> >> >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> Sent: Thursday, October 14, 2004 9:08 AM >> To: Tomcat Users List >> Subject: Help with mod_jk2 >> >> Hello all, >> >> I have gotten mod_jk2 working just fine for multiple instances of tomcat >> and jvm. However, could one of you jk2 experts help me streamline this? >> worker2.properties is a pain for each instance. Is there a way to set it >> so that all processes are processed by tomcat instead of having the list >> every single uri mapping? >> >> Heres example of a set of entries in my workers2.properties for one >> instance: >> [channel.socket:groupname] >> info=ajp13 forwarding to privatejvm.com >> debug=0 >> group=groupname >> port=8059 >> host=localhost >> >> [ajp13:groupname] >> channel:channel.socket:groupname >> group=groupname >> >> [uri:domain1.com:80/*.html] >> group=ajp13:groupname >> >> [uri:domain1.com:80/*.jsp] >> group=ajp13:groupname >> >> [uri:domain1.com:80/*.xml] >> group=ajp13:groupname >> >> [uri:domain1.com:80/*.do] >> group=ajp13:groupname >> >> [uri:domain1.com:80/*.gif] >> group=ajp13:groupname >> >> [uri:domain1.com:80/*.jpg] >> group=ajp13:groupname >> >> [uri:domain1.com:80/*.png] >> group=ajp13:groupname >> >> [uri:domain1.com:80/servlet/*] >> group=ajp13:groupname >> >> [uri:domain1.com:80/manager/*] >> context=/manager >> group=ajp13:groupname >> >> [uri:domain1.com:80/admin/*] >> context=/admin >> group=ajp13:groupname >> >> [uri:domain1.com:80/servlets-examples/*] >> context=/servlets-examples >> group=ajp13:groupname >> >> [uri:www.domain1.com:80/*.html] >> group=ajp13:groupname >> >> [uri:www.domain1.com:80/*.jsp] >> group=ajp13:groupname >> >> [uri:www.domain1.com:80/*.xml] >> group=ajp13:groupname >> >> [uri:www.domain1.com:80/*.do] >> group=ajp13:groupname >> >> [uri:www.domain1.com:80/*.gif] >> group=ajp13:groupname >> >> [uri:www.domain1.com:80/*.jpg] >> group=ajp13:groupname >> >> [uri:www.domain1.com:80/*.png] >> group=ajp13:groupname >> >> [uri:www.domain1.com:80/servlet/*] >> group=ajp13:groupname >> >> [uri:www.domain1.com:80/manager/*] >> context=/manager >> group=ajp13:groupname >> >> [uri:www.domain1.com:80/admin/*] >> context=/admin >> group=ajp13:groupname >> >> [uri:www.domain1.com:80/servlets-examples/*] >> context=/servlets-examples >> group=ajp13:groupname >> >> >> then I have to do the above for domain2.com with different group name >> and >> port# >> >> Am I doing this right? It seems like a lot of entries compared to the >> old >> mod_jk. >> >> Thanks in advance! >> >> 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: Help with mod_jk2
Ok I got it working by adding the opening and closing I didnt think those worked with apache2. Still have problem, How do you handle the images? Images dont show up. Do I need to add jkuriset for images? Thanks you guys have been most helpful! John > Hello, > > Using jkUriSet I get this now: > [Thu Oct 14 10:57:32 2004] [notice] uriEnv.setAttribute() the worker > directive is deprecated. Use 'group' instead. > > (I removed all the uri mapping for that instance in workers2) > > And tomcat isnt getting routed to port 80. > > Any ideas? > > Thanks! > >> Just a simple questions, then an answer. >> >> If you are front-ending Tomcat with a web server, why are you passing >> things like .html, .gif, .jpg, etc. to Tomcat to process? The web >> server itself is a bit more efficient in handling this content. >> >> Secondly, what web server front end are you using? >> >> On Apache2/Tomcat4.1/mod_jk2, workers2.properties only defines my >> workers, I set URI matching in my Apache Virtual Hosts Config; >> >> Add something similar to the following for each vhost (copy & pasts is a >> wonderful thing). >> >> >> ... >> >> JkUriSet worker ajp13:localhost:8201 >> >> >> JkUriSet worker ajp13:localhost:8201 >> >> >> JkUriSet worker ajp13:localhost:8201 >> >> >> JkUriSet worker ajp13:localhost:8201 >> >> >> AllowOverride None >> deny from all >> >> >> >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> Sent: Thursday, October 14, 2004 9:08 AM >> To: Tomcat Users List >> Subject: Help with mod_jk2 >> >> Hello all, >> >> I have gotten mod_jk2 working just fine for multiple instances of tomcat >> and jvm. However, could one of you jk2 experts help me streamline this? >> worker2.properties is a pain for each instance. Is there a way to set it >> so that all processes are processed by tomcat instead of having the list >> every single uri mapping? >> >> Heres example of a set of entries in my workers2.properties for one >> instance: >> [channel.socket:groupname] >> info=ajp13 forwarding to privatejvm.com >> debug=0 >> group=groupname >> port=8059 >> host=localhost >> >> [ajp13:groupname] >> channel:channel.socket:groupname >> group=groupname >> >> [uri:domain1.com:80/*.html] >> group=ajp13:groupname >> >> [uri:domain1.com:80/*.jsp] >> group=ajp13:groupname >> >> [uri:domain1.com:80/*.xml] >> group=ajp13:groupname >> >> [uri:domain1.com:80/*.do] >> group=ajp13:groupname >> >> [uri:domain1.com:80/*.gif] >> group=ajp13:groupname >> >> [uri:domain1.com:80/*.jpg] >> group=ajp13:groupname >> >> [uri:domain1.com:80/*.png] >> group=ajp13:groupname >> >> [uri:domain1.com:80/servlet/*] >> group=ajp13:groupname >> >> [uri:domain1.com:80/manager/*] >> context=/manager >> group=ajp13:groupname >> >> [uri:domain1.com:80/admin/*] >> context=/admin >> group=ajp13:groupname >> >> [uri:domain1.com:80/servlets-examples/*] >> context=/servlets-examples >> group=ajp13:groupname >> >> [uri:www.domain1.com:80/*.html] >> group=ajp13:groupname >> >> [uri:www.domain1.com:80/*.jsp] >> group=ajp13:groupname >> >> [uri:www.domain1.com:80/*.xml] >> group=ajp13:groupname >> >> [uri:www.domain1.com:80/*.do] >> group=ajp13:groupname >> >> [uri:www.domain1.com:80/*.gif] >> group=ajp13:groupname >> >> [uri:www.domain1.com:80/*.jpg] >> group=ajp13:groupname >> >> [uri:www.domain1.com:80/*.png] >> group=ajp13:groupname >> >> [uri:www.domain1.com:80/servlet/*] >> group=ajp13:groupname >> >> [uri:www.domain1.com:80/manager/*] >> context=/manager >> group=ajp13:groupname >> >> [uri:www.domain1.com:80/admin/*] >> context=/admin >> group=ajp13:groupname >> >> [uri:www.domain1.com:80/servlets-examples/*] >> context=/servlets-examples >> group=ajp13:groupname >> >> >> then I have to do the above for domain2.com with different group name >> and >> port# >> >> Am I doing this right? It seems like a lot of entries compared to the >> old >> mod_jk. >> >> Thanks in advance! >> >> 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: Locked jar during Ant undeploy on Tomcat 5.5.3
> > Thank you for pointing out these redundant attributes. I applied these changes > > to the context, but got the same results. If I have time, I'll put together > > a small application that demonstrates the problem and send that to you. > > If the issue is real, then I think there will be someone to provide a webapp. > Yes, and that person's me! :) I just sent a test WAR that demonstrates the problem directly to your Gmail address. As I'm using Gmane, and Gmane does not allow attachments, I could not attach the WAR to this message. Derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help with mod_jk2
Hello, Using jkUriSet I get this now: [Thu Oct 14 10:57:32 2004] [notice] uriEnv.setAttribute() the worker directive is deprecated. Use 'group' instead. (I removed all the uri mapping for that instance in workers2) And tomcat isnt getting routed to port 80. Any ideas? Thanks! > Just a simple questions, then an answer. > > If you are front-ending Tomcat with a web server, why are you passing > things like .html, .gif, .jpg, etc. to Tomcat to process? The web > server itself is a bit more efficient in handling this content. > > Secondly, what web server front end are you using? > > On Apache2/Tomcat4.1/mod_jk2, workers2.properties only defines my > workers, I set URI matching in my Apache Virtual Hosts Config; > > Add something similar to the following for each vhost (copy & pasts is a > wonderful thing). > > > ... > > JkUriSet worker ajp13:localhost:8201 > > > JkUriSet worker ajp13:localhost:8201 > > > JkUriSet worker ajp13:localhost:8201 > > > JkUriSet worker ajp13:localhost:8201 > > > AllowOverride None > deny from all > > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 14, 2004 9:08 AM > To: Tomcat Users List > Subject: Help with mod_jk2 > > Hello all, > > I have gotten mod_jk2 working just fine for multiple instances of tomcat > and jvm. However, could one of you jk2 experts help me streamline this? > worker2.properties is a pain for each instance. Is there a way to set it > so that all processes are processed by tomcat instead of having the list > every single uri mapping? > > Heres example of a set of entries in my workers2.properties for one > instance: > [channel.socket:groupname] > info=ajp13 forwarding to privatejvm.com > debug=0 > group=groupname > port=8059 > host=localhost > > [ajp13:groupname] > channel:channel.socket:groupname > group=groupname > > [uri:domain1.com:80/*.html] > group=ajp13:groupname > > [uri:domain1.com:80/*.jsp] > group=ajp13:groupname > > [uri:domain1.com:80/*.xml] > group=ajp13:groupname > > [uri:domain1.com:80/*.do] > group=ajp13:groupname > > [uri:domain1.com:80/*.gif] > group=ajp13:groupname > > [uri:domain1.com:80/*.jpg] > group=ajp13:groupname > > [uri:domain1.com:80/*.png] > group=ajp13:groupname > > [uri:domain1.com:80/servlet/*] > group=ajp13:groupname > > [uri:domain1.com:80/manager/*] > context=/manager > group=ajp13:groupname > > [uri:domain1.com:80/admin/*] > context=/admin > group=ajp13:groupname > > [uri:domain1.com:80/servlets-examples/*] > context=/servlets-examples > group=ajp13:groupname > > [uri:www.domain1.com:80/*.html] > group=ajp13:groupname > > [uri:www.domain1.com:80/*.jsp] > group=ajp13:groupname > > [uri:www.domain1.com:80/*.xml] > group=ajp13:groupname > > [uri:www.domain1.com:80/*.do] > group=ajp13:groupname > > [uri:www.domain1.com:80/*.gif] > group=ajp13:groupname > > [uri:www.domain1.com:80/*.jpg] > group=ajp13:groupname > > [uri:www.domain1.com:80/*.png] > group=ajp13:groupname > > [uri:www.domain1.com:80/servlet/*] > group=ajp13:groupname > > [uri:www.domain1.com:80/manager/*] > context=/manager > group=ajp13:groupname > > [uri:www.domain1.com:80/admin/*] > context=/admin > group=ajp13:groupname > > [uri:www.domain1.com:80/servlets-examples/*] > context=/servlets-examples > group=ajp13:groupname > > > then I have to do the above for domain2.com with different group name > and > port# > > Am I doing this right? It seems like a lot of entries compared to the > old > mod_jk. > > Thanks in advance! > > 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]
RE: disable "Restart Persistence" using the standard Manager implementation
Hi, Case is significant. It's not . As to whether a Manager is included by default or not: I'll amend my previous statement to say *most* (not all) Tomcat versions in the past did include one in server.xml by default. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Sun House [mailto:[EMAIL PROTECTED] >Sent: Thursday, October 14, 2004 1:46 PM >To: Tomcat Users List >Subject: RE: disable "Restart Persistence" using the standard Manager >implementation > >Hi, > >When Tomcat ships, a Manager is in server.xml by default. Did you >remove it? > >SUN HOUSE: i "inhetit" a server.xml without a manager. originally was in >tc4 ... >Sorry for nagging, but i just open a distriblution server.xml . the manager >element does not exist there. > >This is my server.xml and I added the manager to my context, but still i >get the restart persistecy working: > > > > > enableLookups="true" redirectPort="8443" acceptCount="10" debug="0" >connectionTimeout="6" disableUploadTimeout="true"/> > acceptCount="10" redirectPort="8443" debug="0" protocol="AJP/1.3"/> > > prefix="catalina_log." suffix=".txt" timestamp="true"/> > xmlNamespaceAware="false" autoDeploy="false"> >directory="logs" prefix="localhost_access_log." suffix=".txt" >pattern="common"/> >directory="logs" prefix="localhost_log." suffix=".txt" timestamp="true"/> >debug="4" reloadable="false"> > className="org.apache.catalina.session.StandardManager" >distributable="false" /> > > > > acceptCount="10" debug="0" scheme="https" secure="true" clientAuth="false" >sslProtocol="TLS" port="8443" keystoreFile="C:\ssl\my_key999.keystore"/> > > > > >Where did I go wrong )-; >Sun House > > >- >Do you Yahoo!? >vote.yahoo.com - Register online to vote today! 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: disable "Restart Persistence" using the standard Manager implementation
Hi, When Tomcat ships, a Manager is in server.xml by default. Did you remove it? SUN HOUSE: i "inhetit" a server.xml without a manager. originally was in tc4 ... Sorry for nagging, but i just open a distriblution server.xml . the manager element does not exist there. This is my server.xml and I added the manager to my context, but still i get the restart persistecy working: Where did I go wrong )-; Sun House - Do you Yahoo!? vote.yahoo.com - Register online to vote today!
Re: MySQL driver randomly not found?
On Thursday 14 October 2004 9:15 am, Shapira, Yoav wrote: > Does it happen without the connectors/Apache in front? I'll see if I can reproduce it on my test server without the AJP connector and Apache. Thanks. --Kaleb > Yoav Shapira http://www.yoavshapira.com > > >-Original Message- > >From: Larry Meadors [mailto:[EMAIL PROTECTED] > >Sent: Thursday, October 14, 2004 12:13 PM > >To: [EMAIL PROTECTED] > >Subject: Re: MySQL driver randomly not found? > > > >Just curious...Why are you using a symlink? > > > [EMAIL PROTECTED] 10/14/04 9:59 AM >>> > > > >Hello! I'm having an interesting problem wherein about 5-10% of the > >time, for > >no apparent reason whatsover, the MySQL driver just can not be found. > > I > > >have > >a symlink to it in TOMCAT_DIR/common/lib. I just replaced the symlink > >with a > >copy of the actual library to see if that would make a difference, but > >it > >doesn't make sense that it would work 90-95% of the time and then fail > >the > >rest of the time if that were the problem. > > > >The traceback I get is as follows: > > > >// NOTE: replaced org.apache. with ''. > >Cannot load JDBC driver class > >'com.mysql.jdbc.jdbc2.optional.MysqlDataSource' > >java.lang.ClassNotFoundException: > >com.mysql.jdbc.jdbc2.optional.MysqlDataSource > >at > >catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java: > > 854) > > >at > >catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java: > > 721) > > >at > > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) > > >at java.lang.Class.forName0(Native Method) > >at java.lang.Class.forName(Class.java:141) > >at > >commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:760) > >at > >commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540) > >at > >RequestFilterServlet.getUrlMapping(RequestFilterServlet.java:187) > >at RequestFilterServlet.doFilter(RequestFilterServlet.java:277) > >at > >catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilter > > Chai > > >n.java:186) > >at > >catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.ja > > va:1 > > >57) > >at > >catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214 > > ) > > >at > >catalina.core.StandardValveContext.invokeNext(StandardValveContext.java > > > :104 > : > >) > >at > >catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > >at > >catalina.core.StandardContextValve.invokeInternal(StandardContextValve. > > java > > >:198) > > > >at > >catalina.core.StandardContextValve.invoke(StandardContextValve.java:144 > > ) > > >at > >catalina.core.StandardValveContext.invokeNext(StandardValveContext.java > > > :104 > : > >) > >at > >catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > >at > >catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) > >at > >catalina.core.StandardValveContext.invokeNext(StandardValveContext.java > > > :104 > : > >) > >at > >catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) > >at > >catalina.core.StandardValveContext.invokeNext(StandardValveContext.java > > > :102 > : > >) > >at > >catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > >at > >catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > >at > >catalina.core.StandardValveContext.invokeNext(StandardValveContext.java > > > :104 > : > >) > >at > >catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > >at catalina.core.ContainerBase.invoke(ContainerBase.java:929) > >at coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) > >at jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) > >at jk.common.HandlerRequest.invoke(HandlerRequest.java:374) > >at jk.common.ChannelSocket.invoke(ChannelSocket.java:743) > >at > >jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) > >at jk.common.SocketConnection.runIt(ChannelSocket.java:866) > >at > >tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) > >at java.lang.Thread.run(Thread.java:534) > > > >Any suggestions welcome. Thanks. > > > >--Kaleb > > > >PS: I'm using tomcat 5.0.28 and version 3.0.15 of the MySQL connector. > > > >- > >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. Th
Re: MySQL driver randomly not found?
On Thursday 14 October 2004 9:13 am, Larry Meadors wrote: > Just curious...Why are you using a symlink? I'm setting it up so that I can have multiple instances of tomcat running and I don't want many different copies of the files floating around if at all possible. It also makes it easy for me to perform upgrades on tomcat etc. when I use symlinks to some of the files (app specific) that don't change. --Kaleb > >>> [EMAIL PROTECTED] 10/14/04 9:59 AM >>> > > Hello! I'm having an interesting problem wherein about 5-10% of the > time, for > no apparent reason whatsover, the MySQL driver just can not be found. I > have > a symlink to it in TOMCAT_DIR/common/lib. I just replaced the symlink > with a > copy of the actual library to see if that would make a difference, but > it > doesn't make sense that it would work 90-95% of the time and then fail > the > rest of the time if that were the problem. > > The traceback I get is as follows: > > // NOTE: replaced org.apache. with ''. > Cannot load JDBC driver class > 'com.mysql.jdbc.jdbc2.optional.MysqlDataSource' > java.lang.ClassNotFoundException: > com.mysql.jdbc.jdbc2.optional.MysqlDataSource > at > catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:854) > at > catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:721) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:141) > at > commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:760) > at > commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540) > at > RequestFilterServlet.getUrlMapping(RequestFilterServlet.java:187) > at RequestFilterServlet.doFilter(RequestFilterServlet.java:277) > at > catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChai >n.java:186) at > catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:1 >57) at > catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) > at > catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104 >) at > catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java >:198) at > catalina.core.StandardContextValve.invoke(StandardContextValve.java:144) > at > catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104 >) at > catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) > at > catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104 >) at > catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) > at > catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102 >) at > catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at > catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104 >) at > catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at catalina.core.ContainerBase.invoke(ContainerBase.java:929) > at coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) > at jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) > at jk.common.HandlerRequest.invoke(HandlerRequest.java:374) > at jk.common.ChannelSocket.invoke(ChannelSocket.java:743) > at > jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) > at jk.common.SocketConnection.runIt(ChannelSocket.java:866) > at > tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) > at java.lang.Thread.run(Thread.java:534) > > Any suggestions welcome. Thanks. > > --Kaleb > > PS: I'm using tomcat 5.0.28 and version 3.0.15 of the MySQL connector. > > - > 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: Locked jar during Ant undeploy on Tomcat 5.5.3
On Thu, 14 Oct 2004 16:29:00 + (UTC), Derek Mahar <[EMAIL PROTECTED]> wrote: > Remy Maucherat gmail.com> writes: > > > > > Some random stuff: > > > > Only use either antiJARLocking or antiResourceLocking. Never both. > > > > Also, on your Context element, remove debug, path, and docBase, which > > are either gone, or are rundundant data. > > > > Thank you for pointing out these redundant attributes. I applied these changes > to the context, but got the same results. If I have time, I'll put together a > small application that demonstrates the problem and send that to you. If the issue is real, then I think there will be someone to provide a webapp. -- x Rémy Maucherat Developer & Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5.0.29 service start problem (JNI)
Thanks you for all the replies. I havent fixed it but I am sure that's the problem with windows update. Will play with the -Xmx parameter later Thanks shyam -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 11:05 AM To: Tomcat Users List Subject: RE: tomcat 5.0.29 service start problem (JNI) > From: shyam [mailto:[EMAIL PROTECTED] > Subject: RE: tomcat 5.0.29 service start problem (JNI) > > I have enough memory . I have set it up to use 1500mb where as I have > enough ram of 2000. This has nothing to do with physical memory. The maximum heap size is dependent on the largest contiguous virtual space available in the 2GB that Windows provides for each user process. Unfortunately, this space is fragmented by various DLLs that Windows preloads for you, so the biggest chunk you can use is noticeably smaller. I suspect the recently applied updates reduced this largest contiguous area, resulting in JVM initialization errors. You'll need to experiment with -Xmx to find the largest value that works in your current environment. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sun J2SE JVM + tomcat + Debian??
Yeah, I'm using -server. I tried kernel 2.4.27 on the debian box and that actually works. If I get a chance I'll try it w/o -server on 2.6.7 but for now I'm happy that I don't have to switch distros just to run Java. Eric Weidner wrote: My config single-cpu Debian Sid Kernel 2.6.7 Sun jdk 1.4.2_04 Tomcat 5.0.26 Apache 2.0.49 + mod_jk2 2.0.4 James Mail Server 2.2.0 (Java based) My servers run fine. Are you trying to run with the -server VM? I've always had trouble with that on Linux. Eric On Wednesday 13 October 2004 02:33 pm, Jeff Bowden wrote: Is anyone using tomcat on debian with a Sun JVM? We've just experimented with running it on bleeding edge Gentoo and Debian boxes as well as a trailing edge Redhat 7.3 box. Of the three, Debian is the only one where things don't go quite right. It sort of works but it never spawns any threads and consquently doesn't perform very well on our 4 cpu box. We've gone over the configurations in these pretty carefully and it doesn't seem to be a config issue. We've tried all four combinations of j2se 1.4.2, j2se 1.5, tomcat4 and tomcat5 always with the same result. I also tried switching between 2.6.7 and 2.6.8 kernel. I'm guessing it's a library issue, probably libc, but I don't know how to tell. I realize that this is the tomcat user list and not the Sun Java/Debian support list so if you just want to tell me where to go I would be happy with that :-) - 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: server can't compile some jsp.
Hi, Make sure the user running the Tomcat server has write permissions on the $CATALINA_HOME/work directory. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Andrey Rogov [mailto:[EMAIL PROTECTED] >Sent: Thursday, October 14, 2004 12:19 PM >To: Tomcat users >Subject: server can't compile some jsp. > > >Очень нужна помощь ! > >I have no problems with application working on my computer. >But, on the customers computer I am facing the problems >with the same application. Some pages are compiled, and some not. > >Configuration ... Wintel, Tomcat5.12, j2sdk1.4.1_02. >Tomcat log below. >Would you mind looking throw it. > >2004-10-14 17:43:05 createObjectName with >StandardEngine[Catalina].StandardHost[localhost].StandardContext[/cms] >2004-10-14 17:43:05 preRegister with >Catalina:type=Logger,path=/cms,host=localhost >2004-10-14 17:43:20 StandardWrapperValve[jsp]: Servlet.service() for >servlet jsp threw exception >java.io.FileNotFoundException: >C:\Apache\jakarta-tomcat- >5.0.12\work\Catalina\localhost\cms\org\apache\jsp\menu_jsp.java (Access is >denied) >at java.io.FileOutputStream.open(Native Method) >at java.io.FileOutputStream.(FileOutputStream.java:176) >at java.io.FileOutputStream.(FileOutputStream.java:70) >at >org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:229) >at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) >at org.apache.jasper.compiler.Compiler.compile(Compiler.java:437) >at >org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java: >555) >at >org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: >291) >at >org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) >at >org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) >at >org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio >nFilterChain.java:284) >at >org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC >hain.java:204) >at >org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j >ava:256) > >Thank you in advance. > >Best regards, > Andrey mailto:[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]
RE: disable "Restart Persistence" using the standard Manager implementation
Hi, >I do not have a manager element in my server.xml. When Tomcat ships, a Manager is in server.xml by default. Did you remove it? >Is this mean that i HAVE to set this element? Yes, as with all other elements, if you want non-default behavior you must specify it. That's the meaning of "default" ;) >And if so, how do i achieve the default behavior? Either grab a fresh server.xml from a Tomcat distro, or look at the Manager docs page and declare one with the default attribute values. >will this configuration do the work? > > org.apache.catalina.session.StandardManager >distributable="false" /> > Maybe if you're more careful about your quoting ;) But yes, that's pretty close. Yoav 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: disable "Restart Persistence" using the standard Manager implementation
Hi, I do not have a manager element in my server.xml. Thus, i use the default manager setting. Is this mean that i HAVE to set this element? And if so, how do i achieve the default behavior? I.e. will this configuration do the work? Regards Sun House "Shapira, Yoav" <[EMAIL PROTECTED]> wrote: Hi, Try setting pathname="" in the Manager declaration in server.xml. You could also try setting an invalid pathname. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Sun House [mailto:[EMAIL PROTECTED] >Sent: Thursday, October 14, 2004 12:32 PM >To: [EMAIL PROTECTED] >Subject: disable "Restart Persistence" using the standard Manager >implementation > >Hi all, >I use TC 5.27. >I have a server.xml cofigured without Manager element configured - thus >according to documentation, tomcat run, using it's standard manager >implementation. > >Also, according to documentation whenver Catalina is shut down normally and >restarted, or when an application reload is triggered, the standard Manager >implementation will attempt to serialize all currently active sessions. > >I wish to disable that. or to be more precise, i wish to disable >deserialize of serialized object, on server restart. this is because i have >un serialized objects on session, which i do not wish to serialize. > >currently i get "SEVERE: IOException while loading persisted sessions" >when ever i restart the server, and i wish to get rid of it. > >is there a way to do that? > >thanks in advance >Sun House > > > >- >Do you Yahoo!? >Express yourself with Y! Messenger! Free. Download now. 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] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[OT] Re: Porting a servlet app to ASP.NET?
On Thu, 2004-10-14 at 12:47, Steve Kirk wrote: > A customer is interested in licensing and developing the source code for a > servlet-based webapp that I am writing, but for maintenance and support > reasons they want it written in MS technologies (asp, asp.net, c#, etc) > rather than Java servlets. I have some experience of webapps written in ASP > from about 2-3 years ago, but don't know much about the newer MS stuff such > as asp.net or C#, so am not sure how big a task this might be. > > Can anyone comment on how similar the MS code might be compared to my > servlet code, and how easy it would be to re-write a servlet 2.4 app using > the MS technologies? > > Are there any tools that can "translate" servlet/JSP code to asp.net > equivalent? I have seen this, which appears to do the opposite: > http://www.netcoole.com/j-asp.htm > > I have read a MS article here > http://www.microsoft.com/resources/casestudies/CaseStudy.asp?CaseStudyID=158 > 64 > which appears to suggest that servlet code can be used with relatively few > changes and recompiled under J# then run under ASP.net - I'm more than a > little sceptical about this - can anyone with experience of j# comment on > that? > > > > - > 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: MySQL driver randomly not found?
Hahah, similar reasoning wth my symlink question...shouldn't matter, but... >>> [EMAIL PROTECTED] 10/14/04 10:47 AM >>> Hi, It might not, but it's always a question, because it's part of the KISS principle. The simpler the environment, the easier it is for the OP to test and for others to reproduce the OP's test results. The less moving pieces, the less chance for error. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Larry Meadors [mailto:[EMAIL PROTECTED] >Sent: Thursday, October 14, 2004 12:38 PM >To: [EMAIL PROTECTED] >Subject: RE: MySQL driver randomly not found? > >Interesting question...how does that impact classloading? > [EMAIL PROTECTED] 10/14/04 10:15 AM >>> > >Hi, >Does it happen without the connectors/Apache in front? > >Yoav Shapira http://www.yoavshapira.com > > >>-Original Message- >>From: Larry Meadors [mailto:[EMAIL PROTECTED] >>Sent: Thursday, October 14, 2004 12:13 PM >>To: [EMAIL PROTECTED] >>Subject: Re: MySQL driver randomly not found? >> >>Just curious...Why are you using a symlink? >> > [EMAIL PROTECTED] 10/14/04 9:59 AM >>> >>Hello! I'm having an interesting problem wherein about 5-10% of the >>time, for >>no apparent reason whatsover, the MySQL driver just can not be found. >I >>have >>a symlink to it in TOMCAT_DIR/common/lib. I just replaced the symlink >>with a >>copy of the actual library to see if that would make a difference, but >>it >>doesn't make sense that it would work 90-95% of the time and then fail >>the >>rest of the time if that were the problem. >> >>The traceback I get is as follows: >> >>// NOTE: replaced org.apache. with ''. >>Cannot load JDBC driver class >>'com.mysql.jdbc.jdbc2.optional.MysqlDataSource' >>java.lang.ClassNotFoundException: >>com.mysql.jdbc.jdbc2.optional.MysqlDataSource >>at >>catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java : >854) >>at >>catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java : >721) >>at >java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) >>at java.lang.Class.forName0(Native Method) >>at java.lang.Class.forName(Class.java:141) >>at >>commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:760 ) >>at >>commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540) >>at >>RequestFilterServlet.getUrlMapping(RequestFilterServlet.java:187) >>at RequestFilterServlet.doFilter(RequestFilterServlet.java:277) >>at >>catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilte r >Chai >>n.java:186) >>at >>catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.j a >va:1 >>57) >>at >>catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:21 4 >) >>at >>catalina.core.StandardValveContext.invokeNext(StandardValveContext.jav a >:104 >>) >>at >>catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) >>at >>catalina.core.StandardContextValve.invokeInternal(StandardContextValve . >java >>:198) >>at >>catalina.core.StandardContextValve.invoke(StandardContextValve.java:14 4 >) >>at >>catalina.core.StandardValveContext.invokeNext(StandardValveContext.jav a >:104 >>) >>at >>catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) >>at >>catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) >>at >>catalina.core.StandardValveContext.invokeNext(StandardValveContext.jav a >:104 >>) >>at >>catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) >>at >>catalina.core.StandardValveContext.invokeNext(StandardValveContext.jav a >:102 >>) >>at >>catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) >>at >>catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >>at >>catalina.core.StandardValveContext.invokeNext(StandardValveContext.jav a >:104 >>) >>at >>catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) >>at catalina.core.ContainerBase.invoke(ContainerBase.java:929) >>at coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) >>at jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) >>at jk.common.HandlerRequest.invoke(HandlerRequest.java:374) >>at jk.common.ChannelSocket.invoke(ChannelSocket.java:743) >>at >>jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) >>at jk.common.SocketConnection.runIt(ChannelSocket.java:866) >>at >>tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683 ) >>at java.lang.Thread.run(Thread.java:534) >> >>Any suggestions welcome. Thanks. >> >>--Kaleb >> >>PS: I'm using tomcat 5.0.28 and version 3.0.15 of the MySQL connector. >> >>- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAI
RE: disable "Restart Persistence" using the standard Manager implementation
Hi, Try setting pathname="" in the Manager declaration in server.xml. You could also try setting an invalid pathname. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Sun House [mailto:[EMAIL PROTECTED] >Sent: Thursday, October 14, 2004 12:32 PM >To: [EMAIL PROTECTED] >Subject: disable "Restart Persistence" using the standard Manager >implementation > >Hi all, >I use TC 5.27. >I have a server.xml cofigured without Manager element configured - thus >according to documentation, tomcat run, using it's standard manager >implementation. > >Also, according to documentation whenver Catalina is shut down normally and >restarted, or when an application reload is triggered, the standard Manager >implementation will attempt to serialize all currently active sessions. > >I wish to disable that. or to be more precise, i wish to disable >deserialize of serialized object, on server restart. this is because i have >un serialized objects on session, which i do not wish to serialize. > >currently i get "SEVERE: IOException while loading persisted sessions" >when ever i restart the server, and i wish to get rid of it. > >is there a way to do that? > >thanks in advance >Sun House > > > >- >Do you Yahoo!? >Express yourself with Y! Messenger! Free. Download now. 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]
Porting a servlet app to ASP.NET?
A customer is interested in licensing and developing the source code for a servlet-based webapp that I am writing, but for maintenance and support reasons they want it written in MS technologies (asp, asp.net, c#, etc) rather than Java servlets. I have some experience of webapps written in ASP from about 2-3 years ago, but don't know much about the newer MS stuff such as asp.net or C#, so am not sure how big a task this might be. Can anyone comment on how similar the MS code might be compared to my servlet code, and how easy it would be to re-write a servlet 2.4 app using the MS technologies? Are there any tools that can "translate" servlet/JSP code to asp.net equivalent? I have seen this, which appears to do the opposite: http://www.netcoole.com/j-asp.htm I have read a MS article here http://www.microsoft.com/resources/casestudies/CaseStudy.asp?CaseStudyID=158 64 which appears to suggest that servlet code can be used with relatively few changes and recompiled under J# then run under ASP.net - I'm more than a little sceptical about this - can anyone with experience of j# comment on that? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: MySQL driver randomly not found?
Hi, It might not, but it's always a question, because it's part of the KISS principle. The simpler the environment, the easier it is for the OP to test and for others to reproduce the OP's test results. The less moving pieces, the less chance for error. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Larry Meadors [mailto:[EMAIL PROTECTED] >Sent: Thursday, October 14, 2004 12:38 PM >To: [EMAIL PROTECTED] >Subject: RE: MySQL driver randomly not found? > >Interesting question...how does that impact classloading? > [EMAIL PROTECTED] 10/14/04 10:15 AM >>> > >Hi, >Does it happen without the connectors/Apache in front? > >Yoav Shapira http://www.yoavshapira.com > > >>-Original Message- >>From: Larry Meadors [mailto:[EMAIL PROTECTED] >>Sent: Thursday, October 14, 2004 12:13 PM >>To: [EMAIL PROTECTED] >>Subject: Re: MySQL driver randomly not found? >> >>Just curious...Why are you using a symlink? >> > [EMAIL PROTECTED] 10/14/04 9:59 AM >>> >>Hello! I'm having an interesting problem wherein about 5-10% of the >>time, for >>no apparent reason whatsover, the MySQL driver just can not be found. >I >>have >>a symlink to it in TOMCAT_DIR/common/lib. I just replaced the symlink >>with a >>copy of the actual library to see if that would make a difference, but >>it >>doesn't make sense that it would work 90-95% of the time and then fail >>the >>rest of the time if that were the problem. >> >>The traceback I get is as follows: >> >>// NOTE: replaced org.apache. with ''. >>Cannot load JDBC driver class >>'com.mysql.jdbc.jdbc2.optional.MysqlDataSource' >>java.lang.ClassNotFoundException: >>com.mysql.jdbc.jdbc2.optional.MysqlDataSource >>at >>catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java : >854) >>at >>catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java : >721) >>at >java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) >>at java.lang.Class.forName0(Native Method) >>at java.lang.Class.forName(Class.java:141) >>at >>commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:760 ) >>at >>commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540) >>at >>RequestFilterServlet.getUrlMapping(RequestFilterServlet.java:187) >>at RequestFilterServlet.doFilter(RequestFilterServlet.java:277) >>at >>catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilte r >Chai >>n.java:186) >>at >>catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.j a >va:1 >>57) >>at >>catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:21 4 >) >>at >>catalina.core.StandardValveContext.invokeNext(StandardValveContext.jav a >:104 >>) >>at >>catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) >>at >>catalina.core.StandardContextValve.invokeInternal(StandardContextValve . >java >>:198) >>at >>catalina.core.StandardContextValve.invoke(StandardContextValve.java:14 4 >) >>at >>catalina.core.StandardValveContext.invokeNext(StandardValveContext.jav a >:104 >>) >>at >>catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) >>at >>catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) >>at >>catalina.core.StandardValveContext.invokeNext(StandardValveContext.jav a >:104 >>) >>at >>catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) >>at >>catalina.core.StandardValveContext.invokeNext(StandardValveContext.jav a >:102 >>) >>at >>catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) >>at >>catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >>at >>catalina.core.StandardValveContext.invokeNext(StandardValveContext.jav a >:104 >>) >>at >>catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) >>at catalina.core.ContainerBase.invoke(ContainerBase.java:929) >>at coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) >>at jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) >>at jk.common.HandlerRequest.invoke(HandlerRequest.java:374) >>at jk.common.ChannelSocket.invoke(ChannelSocket.java:743) >>at >>jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) >>at jk.common.SocketConnection.runIt(ChannelSocket.java:866) >>at >>tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683 ) >>at java.lang.Thread.run(Thread.java:534) >> >>Any suggestions welcome. Thanks. >> >>--Kaleb >> >>PS: I'm using tomcat 5.0.28 and version 3.0.15 of the MySQL connector. >> >>- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >>- >>To unsubscribe, e-mail: [E
RE: MySQL driver randomly not found?
Interesting question...how does that impact classloading? >>> [EMAIL PROTECTED] 10/14/04 10:15 AM >>> Hi, Does it happen without the connectors/Apache in front? Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Larry Meadors [mailto:[EMAIL PROTECTED] >Sent: Thursday, October 14, 2004 12:13 PM >To: [EMAIL PROTECTED] >Subject: Re: MySQL driver randomly not found? > >Just curious...Why are you using a symlink? > [EMAIL PROTECTED] 10/14/04 9:59 AM >>> >Hello! I'm having an interesting problem wherein about 5-10% of the >time, for >no apparent reason whatsover, the MySQL driver just can not be found. I >have >a symlink to it in TOMCAT_DIR/common/lib. I just replaced the symlink >with a >copy of the actual library to see if that would make a difference, but >it >doesn't make sense that it would work 90-95% of the time and then fail >the >rest of the time if that were the problem. > >The traceback I get is as follows: > >// NOTE: replaced org.apache. with ''. >Cannot load JDBC driver class >'com.mysql.jdbc.jdbc2.optional.MysqlDataSource' >java.lang.ClassNotFoundException: >com.mysql.jdbc.jdbc2.optional.MysqlDataSource >at >catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java: 854) >at >catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java: 721) >at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) >at java.lang.Class.forName0(Native Method) >at java.lang.Class.forName(Class.java:141) >at >commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:760) >at >commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540) >at >RequestFilterServlet.getUrlMapping(RequestFilterServlet.java:187) >at RequestFilterServlet.doFilter(RequestFilterServlet.java:277) >at >catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilter Chai >n.java:186) >at >catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.ja va:1 >57) >at >catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214 ) >at >catalina.core.StandardValveContext.invokeNext(StandardValveContext.java :104 >) >at >catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) >at >catalina.core.StandardContextValve.invokeInternal(StandardContextValve. java >:198) >at >catalina.core.StandardContextValve.invoke(StandardContextValve.java:144 ) >at >catalina.core.StandardValveContext.invokeNext(StandardValveContext.java :104 >) >at >catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) >at >catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) >at >catalina.core.StandardValveContext.invokeNext(StandardValveContext.java :104 >) >at >catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) >at >catalina.core.StandardValveContext.invokeNext(StandardValveContext.java :102 >) >at >catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) >at >catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >at >catalina.core.StandardValveContext.invokeNext(StandardValveContext.java :104 >) >at >catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) >at catalina.core.ContainerBase.invoke(ContainerBase.java:929) >at coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) >at jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) >at jk.common.HandlerRequest.invoke(HandlerRequest.java:374) >at jk.common.ChannelSocket.invoke(ChannelSocket.java:743) >at >jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) >at jk.common.SocketConnection.runIt(ChannelSocket.java:866) >at >tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) >at java.lang.Thread.run(Thread.java:534) > >Any suggestions welcome. Thanks. > >--Kaleb > >PS: I'm using tomcat 5.0.28 and version 3.0.15 of the MySQL connector. > >- >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 PROTEC
disable "Restart Persistence" using the standard Manager implementation
Hi all, I use TC 5.27. I have a server.xml cofigured without Manager element configured - thus according to documentation, tomcat run, using it's standard manager implementation. Also, according to documentation whenver Catalina is shut down normally and restarted, or when an application reload is triggered, the standard Manager implementation will attempt to serialize all currently active sessions. I wish to disable that. or to be more precise, i wish to disable deserialize of serialized object, on server restart. this is because i have un serialized objects on session, which i do not wish to serialize. currently i get "SEVERE: IOException while loading persisted sessions" when ever i restart the server, and i wish to get rid of it. is there a way to do that? thanks in advance Sun House - Do you Yahoo!? Express yourself with Y! Messenger! Free. Download now.
Re: Locked jar during Ant undeploy on Tomcat 5.5.3
Remy Maucherat gmail.com> writes: > > Some random stuff: > > Only use either antiJARLocking or antiResourceLocking. Never both. > > Also, on your Context element, remove debug, path, and docBase, which > are either gone, or are rundundant data. > Thank you for pointing out these redundant attributes. I applied these changes to the context, but got the same results. If I have time, I'll put together a small application that demonstrates the problem and send that to you. Derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help with mod_jk2
Yes apache. Well, I thought it strange too that it wasnt passing the html, gif etc unless i added it to the workers2. So I can put this jkUriSet in the apache file. -nice Ill try this. This is what I did for mod_jk, but those jkmounts no longer worked in apache2. Thanks! John > Just a simple questions, then an answer. > > If you are front-ending Tomcat with a web server, why are you passing > things like .html, .gif, .jpg, etc. to Tomcat to process? The web > server itself is a bit more efficient in handling this content. > > Secondly, what web server front end are you using? > > On Apache2/Tomcat4.1/mod_jk2, workers2.properties only defines my > workers, I set URI matching in my Apache Virtual Hosts Config; > > Add something similar to the following for each vhost (copy & pasts is a > wonderful thing). > > > ... > > JkUriSet worker ajp13:localhost:8201 > > > JkUriSet worker ajp13:localhost:8201 > > > JkUriSet worker ajp13:localhost:8201 > > > JkUriSet worker ajp13:localhost:8201 > > > AllowOverride None > deny from all > > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 14, 2004 9:08 AM > To: Tomcat Users List > Subject: Help with mod_jk2 > > Hello all, > > I have gotten mod_jk2 working just fine for multiple instances of tomcat > and jvm. However, could one of you jk2 experts help me streamline this? > worker2.properties is a pain for each instance. Is there a way to set it > so that all processes are processed by tomcat instead of having the list > every single uri mapping? > > Heres example of a set of entries in my workers2.properties for one > instance: > [channel.socket:groupname] > info=ajp13 forwarding to privatejvm.com > debug=0 > group=groupname > port=8059 > host=localhost > > [ajp13:groupname] > channel:channel.socket:groupname > group=groupname > > [uri:domain1.com:80/*.html] > group=ajp13:groupname > > [uri:domain1.com:80/*.jsp] > group=ajp13:groupname > > [uri:domain1.com:80/*.xml] > group=ajp13:groupname > > [uri:domain1.com:80/*.do] > group=ajp13:groupname > > [uri:domain1.com:80/*.gif] > group=ajp13:groupname > > [uri:domain1.com:80/*.jpg] > group=ajp13:groupname > > [uri:domain1.com:80/*.png] > group=ajp13:groupname > > [uri:domain1.com:80/servlet/*] > group=ajp13:groupname > > [uri:domain1.com:80/manager/*] > context=/manager > group=ajp13:groupname > > [uri:domain1.com:80/admin/*] > context=/admin > group=ajp13:groupname > > [uri:domain1.com:80/servlets-examples/*] > context=/servlets-examples > group=ajp13:groupname > > [uri:www.domain1.com:80/*.html] > group=ajp13:groupname > > [uri:www.domain1.com:80/*.jsp] > group=ajp13:groupname > > [uri:www.domain1.com:80/*.xml] > group=ajp13:groupname > > [uri:www.domain1.com:80/*.do] > group=ajp13:groupname > > [uri:www.domain1.com:80/*.gif] > group=ajp13:groupname > > [uri:www.domain1.com:80/*.jpg] > group=ajp13:groupname > > [uri:www.domain1.com:80/*.png] > group=ajp13:groupname > > [uri:www.domain1.com:80/servlet/*] > group=ajp13:groupname > > [uri:www.domain1.com:80/manager/*] > context=/manager > group=ajp13:groupname > > [uri:www.domain1.com:80/admin/*] > context=/admin > group=ajp13:groupname > > [uri:www.domain1.com:80/servlets-examples/*] > context=/servlets-examples > group=ajp13:groupname > > > then I have to do the above for domain2.com with different group name > and > port# > > Am I doing this right? It seems like a lot of entries compared to the > old > mod_jk. > > Thanks in advance! > > 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]
server can't compile some jsp.
Очень нужна помощь ! I have no problems with application working on my computer. But, on the customers computer I am facing the problems with the same application. Some pages are compiled, and some not. Configuration ... Wintel, Tomcat5.12, j2sdk1.4.1_02. Tomcat log below. Would you mind looking throw it. 2004-10-14 17:43:05 createObjectName with StandardEngine[Catalina].StandardHost[localhost].StandardContext[/cms] 2004-10-14 17:43:05 preRegister with Catalina:type=Logger,path=/cms,host=localhost 2004-10-14 17:43:20 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception java.io.FileNotFoundException: C:\Apache\jakarta-tomcat-5.0.12\work\Catalina\localhost\cms\org\apache\jsp\menu_jsp.java (Access is denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.java:176) at java.io.FileOutputStream.(FileOutputStream.java:70) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:229) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:437) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:555) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) Thank you in advance. Best regards, Andrey mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: context file
I solved the problem. I was ok to put the context file in tomcat before the war file as long as you deployed the context file and war file together like this: http://localhost:8080/manager/deploy?config=file:/path/context.xml&war=jar:file:/path/bar.war!/ /Kax > > From: kax <[EMAIL PROTECTED]> > Date: 2004/10/14 to PM 01:29:55 GMT > To: <[EMAIL PROTECTED]> > Ämne: context file > > Hi, > > We have an installation program that installs our application on a tomcat server. I > haven't build this installation program but I it's on my shoulders now to fix it. > When the program runs a context file is generated for each application and is placed > under the folder [TOMCAT_HOME]/conf/Catalina/localhost. After this, the application > is deployed via the manager (http://localhost/manager?deploy...). When the > application is initialized it reads some parameters from the context file with > getInitParameter() but it always returns null and we get a null pointer exception > and the deployment terminates. If we then restart the server all the parameters are > read and everything works ok. > > So my question is: It seems that we can't put the context file in the folder and > then deploy the application, is that correct? Is there any other way to fix this > without having the parameters in web.xml or deploy the application with the context > file bundled with the war? > > Thanks in advance > > /Kax > > > - > 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: Locked jar during Ant undeploy on Tomcat 5.5.3
> The only thing I am willing to look at is a ready to run WAR. I'd be happy to send it to you if it was mine to send, but it belongs to my employer. Plus, the database connections would all fail. Derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: MySQL driver randomly not found?
Hi, Does it happen without the connectors/Apache in front? Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Larry Meadors [mailto:[EMAIL PROTECTED] >Sent: Thursday, October 14, 2004 12:13 PM >To: [EMAIL PROTECTED] >Subject: Re: MySQL driver randomly not found? > >Just curious...Why are you using a symlink? > [EMAIL PROTECTED] 10/14/04 9:59 AM >>> >Hello! I'm having an interesting problem wherein about 5-10% of the >time, for >no apparent reason whatsover, the MySQL driver just can not be found. I >have >a symlink to it in TOMCAT_DIR/common/lib. I just replaced the symlink >with a >copy of the actual library to see if that would make a difference, but >it >doesn't make sense that it would work 90-95% of the time and then fail >the >rest of the time if that were the problem. > >The traceback I get is as follows: > >// NOTE: replaced org.apache. with ''. >Cannot load JDBC driver class >'com.mysql.jdbc.jdbc2.optional.MysqlDataSource' >java.lang.ClassNotFoundException: >com.mysql.jdbc.jdbc2.optional.MysqlDataSource >at >catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java: 854) >at >catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java: 721) >at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) >at java.lang.Class.forName0(Native Method) >at java.lang.Class.forName(Class.java:141) >at >commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:760) >at >commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540) >at >RequestFilterServlet.getUrlMapping(RequestFilterServlet.java:187) >at RequestFilterServlet.doFilter(RequestFilterServlet.java:277) >at >catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilter Chai >n.java:186) >at >catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.ja va:1 >57) >at >catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214 ) >at >catalina.core.StandardValveContext.invokeNext(StandardValveContext.java :104 >) >at >catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) >at >catalina.core.StandardContextValve.invokeInternal(StandardContextValve. java >:198) >at >catalina.core.StandardContextValve.invoke(StandardContextValve.java:144 ) >at >catalina.core.StandardValveContext.invokeNext(StandardValveContext.java :104 >) >at >catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) >at >catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) >at >catalina.core.StandardValveContext.invokeNext(StandardValveContext.java :104 >) >at >catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) >at >catalina.core.StandardValveContext.invokeNext(StandardValveContext.java :102 >) >at >catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) >at >catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >at >catalina.core.StandardValveContext.invokeNext(StandardValveContext.java :104 >) >at >catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) >at catalina.core.ContainerBase.invoke(ContainerBase.java:929) >at coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) >at jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) >at jk.common.HandlerRequest.invoke(HandlerRequest.java:374) >at jk.common.ChannelSocket.invoke(ChannelSocket.java:743) >at >jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) >at jk.common.SocketConnection.runIt(ChannelSocket.java:866) >at >tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) >at java.lang.Thread.run(Thread.java:534) > >Any suggestions welcome. Thanks. > >--Kaleb > >PS: I'm using tomcat 5.0.28 and version 3.0.15 of the MySQL connector. > >- >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]
Re: MySQL driver randomly not found?
Just curious...Why are you using a symlink? >>> [EMAIL PROTECTED] 10/14/04 9:59 AM >>> Hello! I'm having an interesting problem wherein about 5-10% of the time, for no apparent reason whatsover, the MySQL driver just can not be found. I have a symlink to it in TOMCAT_DIR/common/lib. I just replaced the symlink with a copy of the actual library to see if that would make a difference, but it doesn't make sense that it would work 90-95% of the time and then fail the rest of the time if that were the problem. The traceback I get is as follows: // NOTE: replaced org.apache. with ''. Cannot load JDBC driver class 'com.mysql.jdbc.jdbc2.optional.MysqlDataSource' java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlDataSource at catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:854) at catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:721) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:760) at commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540) at RequestFilterServlet.getUrlMapping(RequestFilterServlet.java:187) at RequestFilterServlet.doFilter(RequestFilterServlet.java:277) at catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at catalina.core.StandardContextValve.invoke(StandardContextValve.java:144) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.ContainerBase.invoke(ContainerBase.java:929) at coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at jk.common.SocketConnection.runIt(ChannelSocket.java:866) at tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) Any suggestions welcome. Thanks. --Kaleb PS: I'm using tomcat 5.0.28 and version 3.0.15 of the MySQL connector. - 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]
MySQL driver randomly not found?
Hello! I'm having an interesting problem wherein about 5-10% of the time, for no apparent reason whatsover, the MySQL driver just can not be found. I have a symlink to it in TOMCAT_DIR/common/lib. I just replaced the symlink with a copy of the actual library to see if that would make a difference, but it doesn't make sense that it would work 90-95% of the time and then fail the rest of the time if that were the problem. The traceback I get is as follows: // NOTE: replaced org.apache. with ''. Cannot load JDBC driver class 'com.mysql.jdbc.jdbc2.optional.MysqlDataSource' java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlDataSource at catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:854) at catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:721) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:760) at commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540) at RequestFilterServlet.getUrlMapping(RequestFilterServlet.java:187) at RequestFilterServlet.doFilter(RequestFilterServlet.java:277) at catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at catalina.core.StandardContextValve.invoke(StandardContextValve.java:144) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.ContainerBase.invoke(ContainerBase.java:929) at coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at jk.common.SocketConnection.runIt(ChannelSocket.java:866) at tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) Any suggestions welcome. Thanks. --Kaleb PS: I'm using tomcat 5.0.28 and version 3.0.15 of the MySQL connector. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Locked jar during Ant undeploy on Tomcat 5.5.3
Some random stuff: Only use either antiJARLocking or antiResourceLocking. Never both. Also, on your Context element, remove debug, path, and docBase, which are either gone, or are rundundant data. -- x Rémy Maucherat Developer & Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to redirect http to https automatically?
This is part of the servlet specs. In your WEB-INF/web.xml file, you need a security constraint that says the site should be secure, something like: Entire site /* GET POST CONFIDENTIAL The "confidential" keyword ensures that the webapp will require https, so if you try to get it via http, then the redirect stuff specifed in your server.xml will be applied. David - Original Message - From: "Won Sim" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 13, 2004 8:13 AM Subject: How to redirect http to https automatically? > I set redirectPort attribute to 443, which is my SSL connector port number, > from port 80 connector in the server.xml. This doesn't redirect http to > https automatically. In other words, I still can access the application via > http://server/myapp. I want to know how to redirect http to https > automatically so when I enter http://server/myapp, Tomcat redirects to > htts://server/myapp. I am using Tomcat 4.1.30. > > Thanks in advance. > Won. > > _ > Don't just search. Find. Check out the new MSN Search! > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk2 Ready/Recommended For Production?
Run it as a daemon then you can run it as a non root user with permissions on port 80 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 14 October 2004 15:20 To: Tomcat Users List Subject: RE: mod_jk2 Ready/Recommended For Production? Yes for static, but what about port 80? John > Dangerous. > > You should run tomcat as a non-root user, no login, no shell. The reason > Apache is involved is because we want Apache to serve static pages. > > -Original Message- > From: Mike Millson [mailto:[EMAIL PROTECTED] > Sent: October 14, 2004 9:58 AM > To: Tomcat Users List > Subject: Re: mod_jk2 Ready/Recommended For Production? > > > On Thu, 2004-10-14 at 05:56, Antony Paul wrote: >> Do you mean Apache dont have any security holes. I dont know about >> hacking a system. But in terms of security Tomcat is far better than >> Apache since it dont have any security vulnerabilities. >> > > But if you run tomcat standalone, you have to run tomcat as root. Apache > does not run as root, so if you run Apache in front of tomcat, you can > avoid > exposing the root account. > > Mike > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > !DSPAM:416e85e7242988496385758! > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Locked jar during Ant undeploy on Tomcat 5.5.3
On Thu, 14 Oct 2004 14:54:52 + (UTC), Derek Mahar <[EMAIL PROTECTED]> wrote: > Remy Maucherat gmail.com> writes: > > > > On Wed, 13 Oct 2004 21:38:00 + (UTC), Derek Mahar penson.ca> > wrote: > > > Shapira, Yoav mpi.com> writes: > > > > > > I should mention that originally, I did not have antiJARLocking enabled, but > > > enabling both antiJARLocking and antiResourceLocking does not appear to have > > > made any difference. > > > > This works for me. I don't find you convincing at all, overall. > > > > Then I'll just have to be more convincing. Note that in the following scenario, > I deployed and then undeployed in two distinct operations. The first deploy was > successful. I then ran my application, terminated the session by invoking tag > in taglibs-session.jar, invoked an undeploy, which > Ant/Tomcat reports as successful, and then attempted a deploy, which Ant/Tomcat > reports as failed. I found that Tomcat removed context file billing.xml and > billing.war, but left behind taglibs-session.jar and the billing work folder. > See details and additional commentary below. Contents of context file > billing.xml and tag are at the very end. The only thing I am willing to look at is a ready to run WAR. -- x Rémy Maucherat Developer & Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5.0.29 service start problem (JNI)
> From: shyam [mailto:[EMAIL PROTECTED] > Subject: RE: tomcat 5.0.29 service start problem (JNI) > > I have enough memory . I have set it up to use 1500mb where as I have > enough ram of 2000. This has nothing to do with physical memory. The maximum heap size is dependent on the largest contiguous virtual space available in the 2GB that Windows provides for each user process. Unfortunately, this space is fragmented by various DLLs that Windows preloads for you, so the biggest chunk you can use is noticeably smaller. I suspect the recently applied updates reduced this largest contiguous area, resulting in JVM initialization errors. You'll need to experiment with -Xmx to find the largest value that works in your current environment. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.x with Oracle OCI connection-Error
Any Idea..below is my prev post.may be i'm missing reply if any one did so Hi., I'm using OCI to connect the oracle8.x from my Tomcat. After some period of time tomcat get lost the DataBase Connection. I'm getting this two errors. ORA-03113: end-of-file on communication channel , ORA-03114: not connected to ORACLE If I restart the tomcat its working fine.Is there a way to setup autoRecconect or such parameter to eastablish the connection. Please help me out to resolve this problem. Thanks., MALAI - ALL-NEW Yahoo! Messenger - all new features - even more fun!
RE: administration webapp
Hi James. This is from the Digest documentation: "The value for this attribute must be one of the digest algorithms supported by the java.security.MessageDigest class (SHA, MD2, or MD5)." Tried it with MD5 and the digest param commented out - no joy. Yoav: bear with me, but how would I check the environment variable? Thanks. -Original Message- From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED] Sent: 14 October 2004 15:35 To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: administration webapp In server.xml, I'm not exactly sure what MD2 is. I know what MD5 is, and it's clear that your passwords in tomcat-users.xml are clear text. Try removing digest= from Realm and restart. -Original Message- From: Michael Simpson [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 7:08 AM To: '[EMAIL PROTECTED]' Subject: administration webapp Hello list. Just joined the list and I'm very new to Tomcat. I have a problem accessing the administration webapp and manager webapp links from the default Tomcat home page. The following is listed on the home page: NOTE: For security reasons, using the administration webapp is restricted to users with role "admin". The manager webapp is restricted to users with role "manager". Users are defined in $CATALINA_HOME/conf/tomcat-users.xml. This is the code from tomcat_users.xml : And this is a snippet from server.xml : I've looked at the manuals, etc. but it just does not seem to work - access always fails. Can anyone see the obvious mistake here. Thanks in advance. -- Michael Simpson Systems Development Express Newspapers mailto:[EMAIL PROTECTED] 020-7922-7225 (w) 020-7922-7799 (f) -- The NMA: Opening Up Newspapers http://www.nmauk.co.uk Visit Express Newspapers and OK Magazine online picture archive at http://www.expresspictures.com/ ###2004### Any views or opinions are solely those of the author and do not necessarily represent those of Express Newspapers The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.If you are not the intended recipient of this message please do not read ,copy, use or disclose this communication and notify the sender immediately. It should be noted that any review, retransmission, dissemination or other use of, or taking action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. E-mail communications may be monitored. ##EXN2000## - 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: Class loading in tomcat 5.0
Hi, >What I want to achieve is control the way jars are loaded. >I want to load a particular jar(say X.jar) before another jar(say Y.jar) . >Can this be achieved ? Only be putting X.jar in a repository that has higher priority than Y.jar. Within the same repository, you can't control loading order. For what repositories are available to you and their priority from the webapp's perspective, RTFM on the Classloader How-To. Yoav 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: Locked jar during Ant undeploy on Tomcat 5.5.3
Remy Maucherat gmail.com> writes: > > On Wed, 13 Oct 2004 21:38:00 + (UTC), Derek Mahar penson.ca> wrote: > > Shapira, Yoav mpi.com> writes: > > > > I should mention that originally, I did not have antiJARLocking enabled, but > > enabling both antiJARLocking and antiResourceLocking does not appear to have > > made any difference. > > This works for me. I don't find you convincing at all, overall. > Then I'll just have to be more convincing. Note that in the following scenario, I deployed and then undeployed in two distinct operations. The first deploy was successful. I then ran my application, terminated the session by invoking tag in taglibs-session.jar, invoked an undeploy, which Ant/Tomcat reports as successful, and then attempted a deploy, which Ant/Tomcat reports as failed. I found that Tomcat removed context file billing.xml and billing.war, but left behind taglibs-session.jar and the billing work folder. See details and additional commentary below. Contents of context file billing.xml and tag are at the very end. - Initial deploy is successful: C:\Documents and Settings\dmahar\My Projects\Billing\Develop\Latest> ant deploy Buildfile: build.xml prepare: compile: distribute: deploy: [echo] Deploy URL: file:/C:\Documents and Settings\dmahar\My Projects\Billing\Develop\Latest/output/distribution/billing.war [deploy] OK - Deployed application at context path /billing BUILD SUCCESSFUL Total time: 4 seconds -- Undeploy is OK: C:\Documents and Settings\dmahar\My Projects\Billing\Develop\Latest> ant undeploy Buildfile: build.xml undeploy: [undeploy] OK - Undeployed application at context path /billing BUILD SUCCESSFUL Total time: 2 seconds -- Second deploy fails: C:\Documents and Settings\dmahar\My Projects\Billing\Develop\Latest> ant deploy Buildfile: build.xml prepare: compile: distribute: deploy: [echo] Deploy URL: file:/C:\Documents and Settings\dmahar\My Projects\Billing\Develop\Latest/output/distribution/billing.war [deploy] OK - Undeployed application at context path /billing [deploy] FAIL - Application already exists at path /billing BUILD SUCCESSFUL Total time: 3 seconds -- File billing.war is gone: C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps>dir Volume in drive C is IBM_PRELOAD Volume Serial Number is 18AD-A9AE Directory of C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps 10/14/2004 10:31 AM . 10/14/2004 10:31 AM .. 10/06/2004 10:53 AM balancer 10/14/2004 10:31 AM billing 10/06/2004 10:53 AM jsp-examples 10/08/2004 04:34 PM penson 10/08/2004 04:34 PM 618,204 penson.war 10/06/2004 10:53 AM ROOT 10/06/2004 10:53 AM servlets-examples 10/06/2004 10:53 AM tomcat-docs 10/06/2004 10:53 AM webdav 1 File(s)618,204 bytes 10 Dir(s) 28,620,529,664 bytes free -- Context file billing.xml is gone: C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\Catalina> dir /s /b localhost C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\Catalina\localhost\admin.xml C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\Catalina\localhost\manager.xml C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\Catalina\localhost\penson.xml -- JAR taglibs-session.jar remains: C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\billing> dir /s /b C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\billing\WEB-INF C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\billing\WEB-INF\lib C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\billing\WEB-INF\lib\taglibs-session.jar -- Work folder billing also remains along with all the JSP files and classes. Notice that I accessed only the Login page, the MainMenu page, some tags, and the logout page, including the logout tag which invokes to invalidate the session. C:\Program Files\Apache Software Foundation\Tomcat 5.5\work\Catalina\localhost>dir /s /b billing C:\Program Files\Apache Software Foundation\Tomcat 5.5\work\Catalina\localhost\billing\org C:\Program Files\Apache Software Foundation\Tomcat 5.5\work\Catalina\localhost\billing\SESSIONS.ser C:\Program Files\Apache Software Foundation\Tomcat 5.5\work\Catalina\localhost\billing\tldCache.ser C:\Program Files\Apache Software Foundation\Tomca
RE: Class loading in tomcat 5.0
Hi , Thanks a lot for your help. What I want to achieve is control the way jars are loaded. I want to load a particular jar(say X.jar) before another jar(say Y.jar) . Can this be achieved ? Thanks and Regards, Satya -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 05:27 PM To: Tomcat Users List Subject: Re: Class loading in tomcat 5.0 On Thu, Oct 14, 2004 at 06:13:59AM +0200, Narayan, Satya wrote: : I have a doubt regarding class loading in tomcat 5.0 . Is it different from tomcat 4.0 ? Compare the classloader docs for the two versions and see. It's been a while since I've used Tomcat 4, but my guess is that if you stick with the standard locations (WEB-INF/lib, common/lib, etc.) then you should be fine. : Can I hav an order of class loading within a folder ? I'm not sure what this means. Are you trying to control which jar is loaded first in the classpath? What are you trying to do? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Resin slower than Tomcat, fails the AppFuse Test
+1 Shapira, Yoav wrote: Hi, Cool. Thanks for posting the link. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Andy Hutchinson [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 4:19 AM To: [EMAIL PROTECTED] Subject: Resin slower than Tomcat, fails the AppFuse Test So now you know! http://raibledesigns.com/page/rd/20041007#resin_slower_than_tomcat_fail s - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sun J2SE JVM + tomcat + Debian??
Find out jsvc. It's new, not in 4.1. Why don't you use startup.sh instead? -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: October 14, 2004 10:16 AM To: 'Tomcat Users List' Subject: RE: Sun J2SE JVM + tomcat + Debian?? Sorry, but what is jsvc? -Original Message- From: Horacio de Oro [mailto:[EMAIL PROTECTED] Sent: October 14, 2004 1:47 AM To: Tomcat Users List Subject: Re: Sun J2SE JVM + tomcat + Debian?? Hi! Just to add some info: I've found some problem with Debian Woody + Sun 1.4.2 JDK... at least Tomcat 5 started up from jsvc fail at File.mkdirs (more info on http://www.mail-archive.com/[EMAIL PROTECTED]/msg131293.html and http://issues.apache.org/bugzilla/show_bug.cgi?id=30177)... These problems doesn't exist on Debian versions others than Woody (to solve that, you should compile jsvc with "-lpthread", so, I think it is a Debian Woody libc + Sun JVM only issue)... Horacio Jeff Bowden wrote: > Is anyone using tomcat on debian with a Sun JVM? We've just > experimented with running it on bleeding edge Gentoo and Debian boxes > as well as a trailing edge Redhat 7.3 box. Of the three, Debian is > the only one where things don't go quite right. It sort of works but > it never spawns any threads and consquently doesn't perform very well > on our 4 cpu box. We've gone over the configurations in these pretty > carefully and it doesn't seem to be a config issue. > > We've tried all four combinations of j2se 1.4.2, j2se 1.5, tomcat4 and > tomcat5 always with the same result. I also tried switching between > 2.6.7 and 2.6.8 kernel. I'm guessing it's a library issue, probably > libc, but I don't know how to tell. > > I realize that this is the tomcat user list and not the Sun > Java/Debian > support list so if you just want to tell me where to go I would be happy > with that :-) > -- El éxito debe medirse, no por la posición a la que ha llegado una persona, sino por su esfuerzo por triunfar. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:416e8abf247361853017648!
RE: administration webapp
Hi, >I've commented out the Realm code in server.xml, so effectively there no >encyption on any passwords, just the password authentification from >tomcat-users.xml. What I said is not to comment out the Realm or modify it at all. The Realm and encryption are not one and the same. You must have a Realm to authenticate for the manager and admin webapps. >a) does Apache need to be restarted (aswell as tomcat) when any changes are >made to tomcat-user.xml, etc.? Generally no. But also generally, at the beginning you should turn off Apache and just work with Tomcat standalone, especially for basic issues like this. >b) which file can I look in to check $CATALINA_HOME? It's a variable setting, it's not in a file. Check your environment variables to see if it's set specifically. If it's not set, Tomcat will deduce it as the parent directory above the bin directory. Yoav 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: administration webapp
In server.xml, I'm not exactly sure what MD2 is. I know what MD5 is, and it's clear that your passwords in tomcat-users.xml are clear text. Try removing digest= from Realm and restart. -Original Message- From: Michael Simpson [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 7:08 AM To: '[EMAIL PROTECTED]' Subject: administration webapp Hello list. Just joined the list and I'm very new to Tomcat. I have a problem accessing the administration webapp and manager webapp links from the default Tomcat home page. The following is listed on the home page: NOTE: For security reasons, using the administration webapp is restricted to users with role "admin". The manager webapp is restricted to users with role "manager". Users are defined in $CATALINA_HOME/conf/tomcat-users.xml. This is the code from tomcat_users.xml : And this is a snippet from server.xml : I've looked at the manuals, etc. but it just does not seem to work - access always fails. Can anyone see the obvious mistake here. Thanks in advance. -- Michael Simpson Systems Development Express Newspapers mailto:[EMAIL PROTECTED] 020-7922-7225 (w) 020-7922-7799 (f) -- The NMA: Opening Up Newspapers http://www.nmauk.co.uk Visit Express Newspapers and OK Magazine online picture archive at http://www.expresspictures.com/ ###2004### Any views or opinions are solely those of the author and do not necessarily represent those of Express Newspapers The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.If you are not the intended recipient of this message please do not read ,copy, use or disclose this communication and notify the sender immediately. It should be noted that any review, retransmission, dissemination or other use of, or taking action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. E-mail communications may be monitored. ##EXN2000## - 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 command line arguments
At 15:15 14/10/2004, you wrote: Hey I give the following command to start Tomcat version 5 with a CATALINA_BASE different to the default one: ./startup.sh -Dcatalina.base=/some/dir/that/exists But it fails to pass the argument, what am I doing wrong? Set the environment variable CATALINA_OPTS instead. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: administration webapp
Hi Andoni & Yoav. Tried what Andoni recommended - no joy. >From the documentation, inorder to access admin and manager webapp the user must have those respective roles. I've commented out the Realm code in server.xml, so effectively there no encyption on any passwords, just the password authentification from tomcat-users.xml. Tried Yoav's suggestion of defining rolenames for admin and manager - no joy. I agree with you Yoav - it is a trivial thing, but it's not working. A couple of questions: a) does Apache need to be restarted (aswell as tomcat) when any changes are made to tomcat-user.xml, etc.? b) which file can I look in to check $CATALINA_HOME? Thanks. -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: 14 October 2004 14:43 To: Tomcat Users List Subject: Re: administration webapp Hi, Make the following the entire contents of your tomcat-users.xml file and all will be happy. Andoni. - Original Message - From: "Michael Simpson" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Thursday, October 14, 2004 2:26 PM Subject: RE: administration webapp > Hi Yoav. > > I actually tried that bit of code before - tried again just now and still > does not work. > Error generated is "Invalid username or password". > > Anything else I can check? > > -Original Message- > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > Sent: 14 October 2004 13:50 > To: Tomcat Users List > Subject: RE: administration webapp > > > > Hi, > > >This is the code from tomcat_users.xml : > > > > > > > > > > > > > > > > > > > > So the express user has the admin and manager roles, but those roles are > not defined. Add two lines to the file, > > > > Restart Tomcat, and try again. > > Yoav > > > > > 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] > > > The NMA: Opening Up Newspapers http://www.nmauk.co.uk > > Visit Express Newspapers and OK Magazine online picture archive at > http://www.expresspictures.com/ > > ###EXN2004### > > _ > Any views or opinions are solely those of the author > and do not necessarily represent those of Express Newspapers > _ > The information transmitted is intended only for the person > or entity to which it is addressed and may contain confidential > and/or privileged material.If you are not the intended recipient > of this message please do not read ,copy, use or disclose this > communication and notify the sender immediately. It should be > noted that any review, retransmission, dissemination or other > use of, or taking action in reliance upon, this information by > persons or entities other than the intended recipient is prohibited. > Email communications may be monitored > > > > ##EXN2000## > > > - > 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: mod_jk2 Ready/Recommended For Production?
If you want access to some of apaches more advanced features, yup, you need apache infront of tomcat. --Angus > -Original Message- > From: Peng Tuck Kwok [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 12, 2004 11:59 PM > To: Tomcat Users List; [EMAIL PROTECTED] > Subject: Re: mod_jk2 Ready/Recommended For Production? > > > Do you really need to put apache in front of tomcat ? Standalone > tomcat (since ver 4.x) > has always been pretty good in terms of performance > > > On Tue, 12 Oct 2004 22:07:34 -0400, Mike Millson > <[EMAIL PROTECTED]> wrote: > > The Tomcat FAQ page still says that "mod_jk is great and > should be used > > for production" and mod_jk2 "may not be production worthy > for everyone." > > > > http://jakarta.apache.org/tomcat/faq/connectors.html#vs > > > > Is this still accurate, or is mod_jk2 now ready/recommended for > > production? > > > > Thank you, > > Mike > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk2 Ready/Recommended For Production?
I have been using mod_jk2 for a long time now. I have no idea why so many people dislike it (well, after they get it compiled that is). I might just be blessed in that I run on win2k servers and can just get the binary for mod_jk2. I have never had to deal with the pain of compiling this thing. It is working great for me on a rather busy little cluster of servers. --Angus > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 13, 2004 7:27 PM > To: Tomcat Users List > Subject: Re: mod_jk2 Ready/Recommended For Production? > > > Boy am I confused now. If mod_jk2 is dead, so what is everyone using? > Still using just the first mod_jk? I had just gotten > everythign working > with mod_jk2 - more or less- but configurationwise mod_jk2 is > a pain since > the syntax was completely changed and requires you to map > every nook and > cranny. > > 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]
RE: Help with mod_jk2
Just a simple questions, then an answer. If you are front-ending Tomcat with a web server, why are you passing things like .html, .gif, .jpg, etc. to Tomcat to process? The web server itself is a bit more efficient in handling this content. Secondly, what web server front end are you using? On Apache2/Tomcat4.1/mod_jk2, workers2.properties only defines my workers, I set URI matching in my Apache Virtual Hosts Config; Add something similar to the following for each vhost (copy & pasts is a wonderful thing). ... JkUriSet worker ajp13:localhost:8201 JkUriSet worker ajp13:localhost:8201 JkUriSet worker ajp13:localhost:8201 JkUriSet worker ajp13:localhost:8201 AllowOverride None deny from all -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 9:08 AM To: Tomcat Users List Subject: Help with mod_jk2 Hello all, I have gotten mod_jk2 working just fine for multiple instances of tomcat and jvm. However, could one of you jk2 experts help me streamline this? worker2.properties is a pain for each instance. Is there a way to set it so that all processes are processed by tomcat instead of having the list every single uri mapping? Heres example of a set of entries in my workers2.properties for one instance: [channel.socket:groupname] info=ajp13 forwarding to privatejvm.com debug=0 group=groupname port=8059 host=localhost [ajp13:groupname] channel:channel.socket:groupname group=groupname [uri:domain1.com:80/*.html] group=ajp13:groupname [uri:domain1.com:80/*.jsp] group=ajp13:groupname [uri:domain1.com:80/*.xml] group=ajp13:groupname [uri:domain1.com:80/*.do] group=ajp13:groupname [uri:domain1.com:80/*.gif] group=ajp13:groupname [uri:domain1.com:80/*.jpg] group=ajp13:groupname [uri:domain1.com:80/*.png] group=ajp13:groupname [uri:domain1.com:80/servlet/*] group=ajp13:groupname [uri:domain1.com:80/manager/*] context=/manager group=ajp13:groupname [uri:domain1.com:80/admin/*] context=/admin group=ajp13:groupname [uri:domain1.com:80/servlets-examples/*] context=/servlets-examples group=ajp13:groupname [uri:www.domain1.com:80/*.html] group=ajp13:groupname [uri:www.domain1.com:80/*.jsp] group=ajp13:groupname [uri:www.domain1.com:80/*.xml] group=ajp13:groupname [uri:www.domain1.com:80/*.do] group=ajp13:groupname [uri:www.domain1.com:80/*.gif] group=ajp13:groupname [uri:www.domain1.com:80/*.jpg] group=ajp13:groupname [uri:www.domain1.com:80/*.png] group=ajp13:groupname [uri:www.domain1.com:80/servlet/*] group=ajp13:groupname [uri:www.domain1.com:80/manager/*] context=/manager group=ajp13:groupname [uri:www.domain1.com:80/admin/*] context=/admin group=ajp13:groupname [uri:www.domain1.com:80/servlets-examples/*] context=/servlets-examples group=ajp13:groupname then I have to do the above for domain2.com with different group name and port# Am I doing this right? It seems like a lot of entries compared to the old mod_jk. Thanks in advance! 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]
RE: mod_jk2 Ready/Recommended For Production?
Yes for static, but what about port 80? John > Dangerous. > > You should run tomcat as a non-root user, no login, no shell. The reason > Apache is involved is because we want Apache to serve static pages. > > -Original Message- > From: Mike Millson [mailto:[EMAIL PROTECTED] > Sent: October 14, 2004 9:58 AM > To: Tomcat Users List > Subject: Re: mod_jk2 Ready/Recommended For Production? > > > On Thu, 2004-10-14 at 05:56, Antony Paul wrote: >> Do you mean Apache dont have any security holes. I dont know about >> hacking a system. But in terms of security Tomcat is far better than >> Apache since it dont have any security vulnerabilities. >> > > But if you run tomcat standalone, you have to run tomcat as root. Apache > does not run as root, so if you run Apache in front of tomcat, you can > avoid > exposing the root account. > > Mike > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > !DSPAM:416e85e7242988496385758! > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]