RE: Multi processor issue
Appreciate your reply analyzing my guessing cases. So it is just a case of simple MT issue - multiple threads have accessed/operated on a class/object that is not MT safe. I thought they had done certain code review and did not find any MT safe issue. If an effective stress test had been done on single CPU environment, the issue should have been revealed too. Dong -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Monday, 11 December 2006 3:30 PM To: Tomcat Users List Subject: RE: Multi processor issue From: JiaDong Huang [mailto:[EMAIL PROTECTED] Subject: RE: Multi processor issue It is a MT issue, but MP specific. Strictly speaking, it's not MP-specific. If run long enough, the problem will appear on a single CPU. Its occurrence would require the first thread to exhaust its CPU time slice at a critical point, and have the second thread be dispatched immediately. (In most operating systems, when a thread uses up its time slice, it's placed at the end of the dispatch queue for its priority, thus allowing other threads of the same or higher priority to run ahead of it. Note that the OS-defined priority in this case often has little to do with the Java-specified priority for a thread.) That said, the situation is certainly much, much more likely to occur on an MP system. The Tomcat code you had dug out (having problem and throwing the exception) has been designed as single threaded. But in MP environment, multiple threads get in and cause issue like this. That means somewhere in Tomcat or JVM, the synchronization facility has already been broken While that would be true in general, it's not the case here. Objects of the Request class are never intended to be used concurrently by multiple threads, so there is no synchronization defined or implemented for them. No second thread - whatever its origin - should be operating on the same Request object that another thread is handling. As far as I understand, Tomcat connector may use JNI The APR and AJP connects are implemented with JNI, the standard HTTP and HTTPS ones are pure Java. not sure the threads we are talking about had run through the code implemented with JNI. They did not, but it's not really relevant, given the Tomcat requirement of only one thread manipulating a Request object at a time. Threads running through JNI may be re-marshaled between OS spaces - switching OS rings or VM. They can change ring (generically, the thread privilege level), but not VMs. If you're suggesting that one thread may change its process association, that is theoretically possible on some OS implementations (anybody remember Multics?), but it is certainly not happening here, and, in any event, is completely irrelevant. (Any such change from one process to another must be extremely tightly controlled for security purposes, and is a capability simply not available to typical user threads.) In another word, while switching between rings, the lock associated with the objects may have been lost, etc. That's erroneous, even if it were relevant to this situation, which it isn't. There's no synchronization issue involved, since the Request object is not intended to be manipulated concurrently by multiple threads. This problem is almost certainly an application problem, either starting an additional thread somewhere or exposing the Request object improperly (e.g., storing a reference to it in the session) so that another thread erroneously starts working with this Request instead of the one its supposed to be working on. Also, the JVM or OS API may need other synchronization facility underneath while switching rings. These are only my guess anyway. No code in the JVM depends on or expects to change privilege level (other than the privileges controlled entirely within the JVM), due to its platform independence. I think you may be trying to apply some rather esoteric capabilities of certain operating systems, but they really have no bearing on this situation. It could be the JVM's synchronization facility does not work properly in MP, for Tomcat. Or, Tomcat could be enhanced to prevent this sort synchronization issue from happening. You're ignoring one basic fact: this problem has been reported on only *one* system running *one* particular application. If there were a general synchronization problem in Tomcat, the JVM, or the OS, it would certainly show up on some of the thousands (millions?) of other multi-processor systems running Tomcat. As I stated earlier, we have zero problems running Tomcat on our 32x servers (of various architectures). There is a very small chance that something in the hardware on this particular system has gone bad (e.g., lock signal not being propagated on the bus), but such a problem would undoubtedly show up in more places than this one spot in Tomcat. After reviewing the messages, it is tomcat5.exe has been modified. That means it may be tomcat5.exe should
RE: Multi processor issue
From: JiaDong Huang [mailto:[EMAIL PROTECTED] I thought they had done certain code review and did not find any MT safe issue. They had (and I naively took them at their word), and they didn't find any such issue. However, as Chuck points out so effectively, we didn't find any issues isn't the same thing as there are no issues in the code. Unfortunately, code reviews merely increase the chance of revealing a defect - they don't increase it to 100%. Nor does any other technique, otherwise the safety-critical folks would be using it exclusively. - Peter -- So far as we know, we have never had an undiscovered error. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fwd: using Tomcat web server.
Thanh Vinh Nguyen wrote: Hi Using Tomcat web server.: Do you know why it is called Tomcat (where does that name come from)? http://tomcat.apache.org/faq/meta.html Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat service issue
hi there, i altered tomcat internals to read different files at startup. this works fine when starting up tomcat manually since the startup.bat and the read file are in the bin directory. but when running tomcat as a service, it does not find the file. somehow it uses a different path while starting up as a service. can someone tell me how this path looks like and how to change it so i can use the same paths as i did starting manually? --stephan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multi processor issue
Thanks for all replies, you have convinced me that we should investigate further. I propose to implement a bug catcher in Tomcat ParameterMap by storing the thread that called the constructor amd then check its invariance when calling other methods (e.g. isLocked) of this class, if the invariance is violated we will throw an exception. It seems to me that with this data, we should be able to determine which code is accessing the map and so we should know whether it's a bug in the application or not. Any other suggestion? Gael - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multi processor issue
From: JiaDong Huang [mailto:[EMAIL PROTECTED] Subject: RE: Multi processor issue So it is just a case of simple MT issue - multiple threads have accessed/operated on a class/object that is not MT safe. I wouldn't label the situation as simple - threading issues frequently are not. If an effective stress test had been done on single CPU environment, the issue should have been revealed too. In theory yes, but it could well take years to trigger the problem on a single CPU, unless artificial pauses are inserted to widen the timing windows. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multi processor issue
From: Marziou, Gael [mailto:[EMAIL PROTECTED] Subject: RE: Multi processor issue I propose to implement a bug catcher in Tomcat ParameterMap by storing the thread that called the constructor amd then check its invariance when calling other methods (e.g. isLocked) of this class, if the invariance is violated we will throw an exception. From a purely theoretical perspective, it is valid for two threads to call getParameterMap() (and therefore isLocked()), once the ParameterMap has been established. Probably not a concern in the real world. Since the only call to ParameterMap.isLocked() comes from Request.getParameterMap(), I'd put the saving of the calling Thread object in a synchronized block there, along with a check to insure no other thread had been there. In addition, I would also save the array returned by getStackTrace() (assuming you're running on SE 5) to provide some context for the call. This would also help to widen the window and hopefully cause the problem to occur sooner. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat service issue
From: Stephan Schöffel [mailto:[EMAIL PROTECTED] Subject: tomcat service issue can someone tell me how this path looks like and how to change it so i can use the same paths as i did starting manually? You should be able to use the Startup tab of tomcat5w.exe to set the working path, but I haven't tried it personally. Watch out for access permissions problems, since Tomcat as a service usually runs under the localy system account, not the account that installed it. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Multi processor issue
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, If you're suggesting that one thread may change its process association, that is theoretically possible on some OS implementations (anybody remember Multics?) There is an OS called Clouds where threads could actually migrate between machines in a cluster. I suppose the thread doesn't really migrate, but all of the associated data (or handles to them) do migrate. Kinda crazy, and unlikely to be happening here. Win32 is much more low-brow than this ACM toy. ;) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFfXgb9CaO5/Lv0PARAr0KAJ97Az0Gr7HN0BkkwRZ5nmq3EiIyQgCgwvT8 tswil9Y08VoU9FUvw6/qDQ8= =kvnm -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Multi processor issue
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: [OT] Multi processor issue There is an OS called Clouds where threads could actually migrate between machines in a cluster. I suppose the thread doesn't really migrate, but all of the associated data (or handles to them) do migrate. Yeah, we built something like that too, some years back. Never made it to market. A solution in search of a problem. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to configure etags in tomcat
Hi Can anyone please tell me how can I configure the strong etag, weak etag of a static resouce in tomcat? I see this in html capture, I would like to know how can i get rid of the 'W/' in etags. http://64.27.165.81/j.htm GET /j.htm HTTP/1.1 Host: 64.27.165.81 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive HTTP/1.x 200 OK Etag: W/211-1165844229000 Last-Modified: Mon, 11 Dec 2006 13:37:09 GMT Content-Type: text/html Content-Length: 211 Date: Mon, 11 Dec 2006 15:41:46 GMT Server: Apache-Coyote/1.1 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deploying shared .jar's
From what I've read in the Tomcat 5.5 docs, I should be able to deploy a .jar that is shared across multiple webapps on Windows by putting it in the (tomcat)/shared/lib folder, but I've never gotten that to work. I've always had to put that jar in the web-inf/lib folder of each of the webapps that need it, in order for them to be able to use it. Why is that? Is there something I'm missing about deploying shared jars? The wasted disk space doesn't matter, but the hassle of putting the same .jar file in multiple different places does... Any help or explanations would be appreciated! Dave - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploying shared .jar's
hi, By http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html Shared is the parent classloader of webapp. AFAIK the consequence of this in that a class loaded from webapp classloader can see other classes (whenever they come from shared, webapp or common), but the reverse is not true, and could lead to ClassNotDef or ClassNotFound exeption unless some classloader hack are performed ... On 12/11/06, David Kerber [EMAIL PROTECTED] wrote: From what I've read in the Tomcat 5.5 docs, I should be able to deploy a .jar that is shared across multiple webapps on Windows by putting it in the (tomcat)/shared/lib folder, but I've never gotten that to work. I've always had to put that jar in the web-inf/lib folder of each of the webapps that need it, in order for them to be able to use it. Why is that? Is there something I'm missing about deploying shared jars? The wasted disk space doesn't matter, but the hassle of putting the same .jar file in multiple different places does... Any help or explanations would be appreciated! Dave - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Souviens-toi qu'au moment de ta naissance tout le monde était dans la joie et toi dans les pleurs. Vis de manière qu'au moment de ta mort, tout le monde soit dans les pleurs et toi dans la joie.
Re: Deploying shared .jar's
olivier nouguier wrote: hi, By http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html Shared is the parent classloader of webapp. AFAIK the consequence of this in that a class loaded from webapp classloader can see other classes (whenever they come from shared, webapp or common), but the reverse is not true, and could lead to ClassNotDef or ClassNotFound exeption unless some classloader hack are performed ... This sentence: For classes and resources that must be shared across all web applications, place unpacked classes and resources under |$CATALINA_BASE/shared/classes|, or place JAR files containing those classes and resources under |$CATALINA_BASE/shared/lib|. is exactly what I'm referring to, but I've never gotten this to work. My webapps can't see classes in the .jar that is in the shared/lib folder; I get the ClassNotFound errors when I try. On 12/11/06, David Kerber [EMAIL PROTECTED] wrote: From what I've read in the Tomcat 5.5 docs, I should be able to deploy a .jar that is shared across multiple webapps on Windows by putting it in the (tomcat)/shared/lib folder, but I've never gotten that to work. I've always had to put that jar in the web-inf/lib folder of each of the webapps that need it, in order for them to be able to use it. Why is that? Is there something I'm missing about deploying shared jars? The wasted disk space doesn't matter, but the hassle of putting the same .jar file in multiple different places does... Any help or explanations would be appreciated! Dave - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running Tomcat5.5 as 64 bit application
Hi All, I am currently in the process of setting up a Windows 2003 AMD 64 bit server. I would like to know if it is possible to run Tomcat 5.5 as a service and as a 64 bit application. Does anybody have any experience with this? Any help would be greatly appreciated. THX, Andrew
Re: Running Tomcat5.5 as 64 bit application
Sinkinson,Andrew [NCR] wrote: Hi All, I am currently in the process of setting up a Windows 2003 AMD 64 bit server. I would like to know if it is possible to run Tomcat 5.5 as a service and as a 64 bit application. Does anybody have any experience with this? Any help would be greatly appreciated. I have been doing a lot of dev on a Gentoo 64 bit Tomcat 5.5, I don't have to worry about anything. I am pretty sure the Windows install would be the same. The JVM takes care of it, as far as I can tell. -- Scott Carr OpenOffice.org Documentation Co-Lead http://documentation.openoffice.org - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Deploying shared .jar's
From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: Deploying shared .jar's My webapps can't see classes in the .jar that is in the shared/lib folder; I get the ClassNotFound errors when I try. Check your conf/catalina.properties file and make sure this line is present: shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/li b/*.jar If the line is there (and not commented out), is there possibly an access permissions problem with the jars you're putting into shared/lib, especially if running as a service? You might also try turning on -verbose:class and see what's being loaded from where. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk and memory leaks?
Has anyone experienced memory leaks in there web app when using mod_jk? If so, how'd you fix the leaks? Thanks, B Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat5.5 as 64 bit application
Of course you should take the 64-bit VM to achieve best performance :-) regards Leon On 12/11/06, Sinkinson,Andrew [NCR] [EMAIL PROTECTED] wrote: Hi All, I am currently in the process of setting up a Windows 2003 AMD 64 bit server. I would like to know if it is possible to run Tomcat 5.5 as a service and as a 64 bit application. Does anybody have any experience with this? Any help would be greatly appreciated. THX, Andrew - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[tomcat 5.0] - DBCP pooling vs sharing a single open connection
Hi all, How does DBCP compare to application managed, single connection which stays open to share ? Thanks, ran
Re: [tomcat 5.0] - DBCP pooling vs sharing a single open connection
Ran wrote: Hi all, How does DBCP compare to application managed, single connection which stays open to share ? Do you realy need only one connection? If you need more than one connection you must manage something like a connection pool. DBCP can help you also in application debug (logging connection not closed) Edoardo -- [EMAIL PROTECTED] AIM: edoardopn Jabber: [EMAIL PROTECTED] tel:075 9142766 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [tomcat 5.0] - DBCP pooling vs sharing a single open connection
There are more than one connections. I have a number of Beans, each bean will have a number of prepared stmts. For different stmts in one bean (one stmt mapped to one webservice call indeed), do I need to use different connection ? My plan was to share an open-connection within a bean, pooled connection across beans. Will it exhaust the pool ? On 12/11/06, Edoardo Panfili [EMAIL PROTECTED] wrote: Ran wrote: Hi all, How does DBCP compare to application managed, single connection which stays open to share ? Do you realy need only one connection? If you need more than one connection you must manage something like a connection pool. DBCP can help you also in application debug (logging connection not closed) Edoardo -- [EMAIL PROTECTED] AIM: edoardopn Jabber: [EMAIL PROTECTED] tel:075 9142766 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Tomcat5.5 as 64 bit application
I have installed a 64 bit version of java. Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03) Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_10-b03, mixed mode) When I install tomcat 5.5.20 the service will not start. Here is the error: [2006-12-11 15:11:26] [924 prunsrv.c] [error] Failed creating java C:\jdk1.5.0_10\jre\bin\server\jvm.dll [2006-12-11 15:11:26] [1179 prunsrv.c] [error] ServiceStart returned 1 [2006-12-11 15:11:26] [info] Run service finished. [2006-12-11 15:11:26] [info] Procrun finished. This article suggested replacing the Tomcat5.exe in the bin folder with a version that has been compiled for 64 bit. http://www.mail-archive.com/users@tomcat.apache.org/msg18319.html Any help would be much appreciated. THX, Andrew -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Monday, December 11, 2006 2:26 PM To: Tomcat Users List Subject: Re: Running Tomcat5.5 as 64 bit application Of course you should take the 64-bit VM to achieve best performance :-) regards Leon On 12/11/06, Sinkinson,Andrew [NCR] [EMAIL PROTECTED] wrote: Hi All, I am currently in the process of setting up a Windows 2003 AMD 64 bit server. I would like to know if it is possible to run Tomcat 5.5 as a service and as a 64 bit application. Does anybody have any experience with this? Any help would be greatly appreciated. THX, Andrew - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat5.5 as 64 bit application
You would need to have a 64 bit version of the Service exe. http://wrapper.tanukisoftware.org/doc/english/introduction.html The above site has a Service wrapper that can be compiled on a 64 bit system. Sinkinson,Andrew [NCR] wrote: I have installed a 64 bit version of java. Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03) Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_10-b03, mixed mode) When I install tomcat 5.5.20 the service will not start. Here is the error: [2006-12-11 15:11:26] [924 prunsrv.c] [error] Failed creating java C:\jdk1.5.0_10\jre\bin\server\jvm.dll [2006-12-11 15:11:26] [1179 prunsrv.c] [error] ServiceStart returned 1 [2006-12-11 15:11:26] [info] Run service finished. [2006-12-11 15:11:26] [info] Procrun finished. This article suggested replacing the Tomcat5.exe in the bin folder with a version that has been compiled for 64 bit. http://www.mail-archive.com/users@tomcat.apache.org/msg18319.html Any help would be much appreciated. THX, Andrew -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Monday, December 11, 2006 2:26 PM To: Tomcat Users List Subject: Re: Running Tomcat5.5 as 64 bit application Of course you should take the 64-bit VM to achieve best performance :-) regards Leon On 12/11/06, Sinkinson,Andrew [NCR] [EMAIL PROTECTED] wrote: Hi All, I am currently in the process of setting up a Windows 2003 AMD 64 bit server. I would like to know if it is possible to run Tomcat 5.5 as a service and as a 64 bit application. Does anybody have any experience with this? Any help would be greatly appreciated. THX, Andrew - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Scott Carr OpenOffice.org Documentation Co-Lead http://documentation.openoffice.org - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Tomcat5.5 as 64 bit application
If I understand correctly I need to download a 64 bit service.exe that is installed in the Windows\system32 directory. Then re-install tomcat5.5.20 and all should be good. Do you have the direct link to the service.exe that would work? -Original Message- From: Scott Carr [mailto:[EMAIL PROTECTED] Sent: Monday, December 11, 2006 3:32 PM To: Tomcat Users List Subject: Re: Running Tomcat5.5 as 64 bit application You would need to have a 64 bit version of the Service exe. http://wrapper.tanukisoftware.org/doc/english/introduction.html The above site has a Service wrapper that can be compiled on a 64 bit system. Sinkinson,Andrew [NCR] wrote: I have installed a 64 bit version of java. Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03) Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_10-b03, mixed mode) When I install tomcat 5.5.20 the service will not start. Here is the error: [2006-12-11 15:11:26] [924 prunsrv.c] [error] Failed creating java C:\jdk1.5.0_10\jre\bin\server\jvm.dll [2006-12-11 15:11:26] [1179 prunsrv.c] [error] ServiceStart returned 1 [2006-12-11 15:11:26] [info] Run service finished. [2006-12-11 15:11:26] [info] Procrun finished. This article suggested replacing the Tomcat5.exe in the bin folder with a version that has been compiled for 64 bit. http://www.mail-archive.com/users@tomcat.apache.org/msg18319.html Any help would be much appreciated. THX, Andrew -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Monday, December 11, 2006 2:26 PM To: Tomcat Users List Subject: Re: Running Tomcat5.5 as 64 bit application Of course you should take the 64-bit VM to achieve best performance :-) regards Leon On 12/11/06, Sinkinson,Andrew [NCR] [EMAIL PROTECTED] wrote: Hi All, I am currently in the process of setting up a Windows 2003 AMD 64 bit server. I would like to know if it is possible to run Tomcat 5.5 as a service and as a 64 bit application. Does anybody have any experience with this? Any help would be greatly appreciated. THX, Andrew - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Scott Carr OpenOffice.org Documentation Co-Lead http://documentation.openoffice.org - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [tomcat 5.0] - DBCP pooling vs sharing a single open connection
Single connections create bottlenecks and slow down throughput when the site get's busy. DBCP allows for multiple managed connections for faster performance. Plus it can take care of when connections die and create new ones automatically. There are shades of grey as well. I have one solution that made use of commons-pool (the pool component of DBCP). The app manages a pool of workers, each with a set of prepared statements ready to go. It boosted performance on the app a lot over the original single connection design. --David Ran wrote: Hi all, How does DBCP compare to application managed, single connection which stays open to share ? Thanks, ran - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploying shared .jar's
Caldarale, Charles R wrote: From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: Deploying shared .jar's My webapps can't see classes in the .jar that is in the shared/lib folder; I get the ClassNotFound errors when I try. Check your conf/catalina.properties file and make sure this line is present: shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/li b/*.jar It's there, but it got me to looking at some other stuff, and I think I now know what's going on. Can you please tell me if this makes sense: I have 3 different apps on one machine, each running in its own tomcat instance using the catalina_base env var. The catalina_base locations are all outside of catalina_home. What I was hoping was that I could put my shared jars in catalina_home, but after re-reading the description of cataline_base (again), it appears that I can't put shared classes in catalina_home if I'm using the apps from catalina_base. What I have is this: Catalina_home = e:\program files\Apacha\Tomcat5\all the sub-dirs Catalina_base(s) = e:\tomcatclients\webapp1 \conf \webapps etc e:\tomcatclients\webapp2 \conf \webapps etc etc. With the way I read it now, anything I try to put under catalina_home/shared/lib won't be visible to the webapps in the various catalina_base folders. Is this correct? If so, it explains my trouble. If not, then I've got to dig even deeper. Thanks! If the line is there (and not commented out), is there possibly an access permissions problem with the jars you're putting into shared/lib, especially if running as a service? You might also try turning on -verbose:class and see what's being loaded from where. - Chuck - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat5.5 as 64 bit application
Doesn't look like they have a direct download of the 64 bit version. You don't need to reinstall Tomcat, you would need to run Tomcat through the new service exe. I don't have a 64 bit windows system, so I can't compile it for you. Sinkinson,Andrew [NCR] wrote: If I understand correctly I need to download a 64 bit service.exe that is installed in the Windows\system32 directory. Then re-install tomcat5.5.20 and all should be good. Do you have the direct link to the service.exe that would work? -Original Message- From: Scott Carr [mailto:[EMAIL PROTECTED] Sent: Monday, December 11, 2006 3:32 PM To: Tomcat Users List Subject: Re: Running Tomcat5.5 as 64 bit application You would need to have a 64 bit version of the Service exe. http://wrapper.tanukisoftware.org/doc/english/introduction.html The above site has a Service wrapper that can be compiled on a 64 bit system. Sinkinson,Andrew [NCR] wrote: I have installed a 64 bit version of java. Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03) Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_10-b03, mixed mode) When I install tomcat 5.5.20 the service will not start. Here is the error: [2006-12-11 15:11:26] [924 prunsrv.c] [error] Failed creating java C:\jdk1.5.0_10\jre\bin\server\jvm.dll [2006-12-11 15:11:26] [1179 prunsrv.c] [error] ServiceStart returned 1 [2006-12-11 15:11:26] [info] Run service finished. [2006-12-11 15:11:26] [info] Procrun finished. This article suggested replacing the Tomcat5.exe in the bin folder with a version that has been compiled for 64 bit. http://www.mail-archive.com/users@tomcat.apache.org/msg18319.html Any help would be much appreciated. THX, Andrew -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Monday, December 11, 2006 2:26 PM To: Tomcat Users List Subject: Re: Running Tomcat5.5 as 64 bit application Of course you should take the 64-bit VM to achieve best performance :-) regards Leon On 12/11/06, Sinkinson,Andrew [NCR] [EMAIL PROTECTED] wrote: Hi All, I am currently in the process of setting up a Windows 2003 AMD 64 bit server. I would like to know if it is possible to run Tomcat 5.5 as a service and as a 64 bit application. Does anybody have any experience with this? Any help would be greatly appreciated. THX, Andrew - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Scott Carr OpenOffice.org Documentation Co-Lead http://documentation.openoffice.org - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Scott Carr OpenOffice.org Documentation Co-Lead http://documentation.openoffice.org - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat errors
I need some assistance with a Tomcat application problem. I have a MySQL database that is accessed by users via web browser using Apache-Tomcat 5.5.15. Our system was designed and implemented specific to our court by a person who is no longer working here. Today Tomcat was failing when users attempted to log onto the database to input new data. As I began troubleshooting the problem I discovered that /usr was 100% full (13 gigs). I began looking at ways I can move files off of /usr and did move several logs from /usr/local/src/apache-tomcat-5.5.15/webapps/occa/WEB-INF/logs. I also moved some files from /usr/src that appeared to be zip files. There was a directory /usr/local/src that had a file titled occa.war that I also moved off of the /usr/ directory. This is when I believe my problems started. After I moved that file no one could access any data on the website even though we could access the database pages when we tried to view a case an error message returned stating file not found. I then moved occa.war back to the /usr/local/src directory and we could access the data again. However, now there are several different types of errors showing up when user try to view or input data. There are multiple error messages that are showing up depending on what the individual user was attempting to do. I know I am probably being much too vague in my explanations but I don't know enough about Tomcat to detail everything. I would like to ask that if anyone can offer help I would welcome any offers for assistance. If I can explain in more detail please let me know what information I need to provide. Below is one of the messages that is displayed when a user attempts to view one of the web pages. HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: ServletException in '/caser/extension/View.jsp': No getter method for property attributes.datefield of bean oneCol org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCont extImpl.java:848) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex tImpl.java:781) org.apache.jsp.caser.common.templates.docketLayout_jsp._jspService(org.a pache.jsp.caser.common.templates.docketLayout_jsp:77) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:322) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.j ava:39) org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav a:1063) org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProc essor.java:263) org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(Til esRequestProcessor.java:239) org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Tiles RequestProcessor.java:302) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java: 229) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.j ava:122) com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter. java:118) com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.j ava:52) root cause javax.servlet.jsp.JspException: ServletException in '/caser/extension/View.jsp': No getter method for property attributes.datefield of bean oneCol org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTa g.java:923) org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462) org.apache.jsp.caser.common.templates.docketLayout_jsp._jspx_meth_tiles_ insert_2(org.apache.jsp.caser.common.templates.docketLayout_jsp:235) org.apache.jsp.caser.common.templates.docketLayout_jsp._jspx_meth_html_h tml_0(org.apache.jsp.caser.common.templates.docketLayout_jsp:104) org.apache.jsp.caser.common.templates.docketLayout_jsp._jspService(org.a pache.jsp.caser.common.templates.docketLayout_jsp:70) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
jk 1.2.20 release candidate: Windows Binaries available
Hi, Mladen Turk provided Windows Binaries for win32 (Apache mod_jk, IIS isapi plugin and Netscape nsapi plugin) and for win64 (AMD+IA64 isapi plugin): http://tomcat.apache.org/dev/dist/tomcat-connectors/jk/binaries Thanks Mladen and happy testing to everybody. Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat errors
javax.servlet.ServletException: ServletException in '/caser/extension/View.jsp': No getter method for property attributes.datefield of bean oneCol The above error means the bean oneCol doesn't have a getta method. you have to declare a method of the sort getDateFieldif that problem was not occurring before you made your move, then most likely you have mixed up the versions of jar files or class filesUnfortunately it looks like you have moved al ot of stuff so it is probably to possible to revert the changes. Are you using struts? check View.jsp and make the bean oneCol has the appropriate getDatefield... On 12/11/06, Steve Ingraham [EMAIL PROTECTED] wrote: I need some assistance with a Tomcat application problem. I have a MySQL database that is accessed by users via web browser using Apache-Tomcat 5.5.15. Our system was designed and implemented specific to our court by a person who is no longer working here. Today Tomcat was failing when users attempted to log onto the database to input new data. As I began troubleshooting the problem I discovered that /usr was 100% full (13 gigs). I began looking at ways I can move files off of /usr and did move several logs from /usr/local/src/apache-tomcat-5.5.15/webapps/occa/WEB-INF/logs. I also moved some files from /usr/src that appeared to be zip files. There was a directory /usr/local/src that had a file titled occa.war that I also moved off of the /usr/ directory. This is when I believe my problems started. After I moved that file no one could access any data on the website even though we could access the database pages when we tried to view a case an error message returned stating file not found. I then moved occa.war back to the /usr/local/src directory and we could access the data again. However, now there are several different types of errors showing up when user try to view or input data. There are multiple error messages that are showing up depending on what the individual user was attempting to do. I know I am probably being much too vague in my explanations but I don't know enough about Tomcat to detail everything. I would like to ask that if anyone can offer help I would welcome any offers for assistance. If I can explain in more detail please let me know what information I need to provide. Below is one of the messages that is displayed when a user attempts to view one of the web pages. HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: ServletException in '/caser/extension/View.jsp': No getter method for property attributes.datefield of bean oneCol org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCont extImpl.java:848) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex tImpl.java:781) org.apache.jsp.caser.common.templates.docketLayout_jsp._jspService(org.a pache.jsp.caser.common.templates.docketLayout_jsp:77) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:322) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.j ava:39) org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav a:1063) org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProc essor.java:263) org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(Til esRequestProcessor.java:239) org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Tiles RequestProcessor.java:302) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java: 229) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.j ava:122) com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter. java:118) com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.j ava:52) root cause javax.servlet.jsp.JspException: ServletException in '/caser/extension/View.jsp': No getter method for property attributes.datefield of bean oneCol org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTa g.java:923) org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462) org.apache.jsp.caser.common.templates.docketLayout_jsp._jspx_meth_tiles_
RE: Tomcat errors
Did you restart Tomcat after removing and replacing the occa.war file? If not, you may want to do so, just to restore everything to a known state. --- Tracy Nelson / Nelnet Business Solutions 402 / 617-9449 | -Original Message- | From: Steve Ingraham [mailto:[EMAIL PROTECTED] | Sent: Monday, 11 December, 2006 15:26 | To: users@tomcat.apache.org | Subject: Tomcat errors | | I need some assistance with a Tomcat application problem. I have a | MySQL database that is accessed by users via web browser using | Apache-Tomcat 5.5.15. Our system was designed and implemented specific | to our court by a person who is no longer working here. | | Today Tomcat was failing when users attempted to log onto the database | to input new data. As I began troubleshooting the problem I discovered | that /usr was 100% full (13 gigs). I began looking at ways I can move | files off of /usr and did move several logs from | /usr/local/src/apache-tomcat-5.5.15/webapps/occa/WEB-INF/logs. I also | moved some files from /usr/src that appeared to be zip files. There was | a directory /usr/local/src that had a file titled occa.war that I also | moved off of the /usr/ directory. This is when I believe my problems | started. After I moved that file no one could access any data on the | website even though we could access the database pages when we tried to | view a case an error message returned stating file not found. I then | moved occa.war back to the /usr/local/src directory and we could | access the data again. However, now there are several different types | of errors showing up when user try to view or input data. There are | multiple error messages that are showing up depending on what the | individual user was attempting to do. I know I am probably being much | too vague in my explanations but I don't know enough about Tomcat to | detail everything. I would like to ask that if anyone can offer help I | would welcome any offers for assistance. If I can explain in more | detail please let me know what information I need to provide. | | Below is one of the messages that is displayed when a user attempts to | view one of the web pages. | | HTTP Status 500 - | | | | | type Exception report | | message | | description The server encountered an internal error () that prevented | it from fulfilling this request. | | exception | | javax.servlet.ServletException: ServletException in | '/caser/extension/View.jsp': No getter method for property | attributes.datefield of bean oneCol | | org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCont | extImpl.java:848) | | org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex | tImpl.java:781) | | org.apache.jsp.caser.common.templates.docketLayout_jsp._jspService(org.a | pache.jsp.caser.common.templates.docketLayout_jsp:77) | | org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) | javax.servlet.http.HttpServlet.service(HttpServlet.java:802) | | org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja | va:322) | | org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) | | org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) | javax.servlet.http.HttpServlet.service(HttpServlet.java:802) | | com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.j | ava:39) | | org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav | a:1063) | | org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProc | essor.java:263) | | org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(Til | esRequestProcessor.java:239) | | org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Tiles | RequestProcessor.java:302) | | org.apache.struts.action.RequestProcessor.process(RequestProcessor.java: | 229) | | org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) | | org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) | javax.servlet.http.HttpServlet.service(HttpServlet.java:689) | javax.servlet.http.HttpServlet.service(HttpServlet.java:802) | | filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.j | ava:122) | | com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter. | java:118) | | com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.j | ava:52) | | | root cause | | javax.servlet.jsp.JspException: ServletException in | '/caser/extension/View.jsp': No getter method for property | attributes.datefield of bean oneCol | | org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTa | g.java:923) | | org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462) | | org.apache.jsp.caser.common.templates.docketLayout_jsp._jspx_meth_tiles_ | insert_2(org.apache.jsp.caser.common.templates.docketLayout_jsp:235) | |
Installing Apache on Windows
Hi All, I have installed Jdk 1.5.0_09 and Tomcat 5.5.20 on Windows. I d'like to tune the service and make a separate instance of Tomcat (ie CATALINA_BASE). According the Windows Service How-To, i have suppress The default Service using tomcat5.exe //DS//Tomcat5 I'm trying to reinstall one using the following command : D:\Applis\Tomcat\Tomcat 5.5.16\bintomcat5.exe //IS//Tomcat --Description Apache Tomcat 5 Production --install=D:\Applis\Tomcat\Tomcat 5.5.16\bin\tomcat5.exe --Jvm=Auto --StartMode=Jvm --StopMode=jvm --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop --JvmMs=512M --JvmMx=512M --JavaHome=D:\Applis\Java\jdk1.5.0_04 --Classpath=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME\bin\bootstrap.jar Each time, i try to start the Window Service, it refuses to start with error 0 (0x0). What am i doing wrong ? As soon as my system variable JAVA_HOME and CATALINA_HOME Are well set. Can anyoine help me ? Kind Regards. Farid.
RE: Tomcat errors
Yes, I have restarted Tomcat several times now. Steve Ingraham Director of Information Services Oklahoma Court of Criminal Appeals [EMAIL PROTECTED] 405 522-5343 -Original Message- From: Nelson, Tracy [mailto:[EMAIL PROTECTED] Sent: Monday, December 11, 2006 3:34 PM To: Tomcat Users List Subject: RE: Tomcat errors Did you restart Tomcat after removing and replacing the occa.war file? If not, you may want to do so, just to restore everything to a known state. --- Tracy Nelson / Nelnet Business Solutions 402 / 617-9449 | -Original Message- | From: Steve Ingraham [mailto:[EMAIL PROTECTED] | Sent: Monday, 11 December, 2006 15:26 | To: users@tomcat.apache.org | Subject: Tomcat errors | | I need some assistance with a Tomcat application problem. I have a | MySQL database that is accessed by users via web browser using | Apache-Tomcat 5.5.15. Our system was designed and implemented specific | to our court by a person who is no longer working here. | | Today Tomcat was failing when users attempted to log onto the database | to input new data. As I began troubleshooting the problem I discovered | that /usr was 100% full (13 gigs). I began looking at ways I can move | files off of /usr and did move several logs from | /usr/local/src/apache-tomcat-5.5.15/webapps/occa/WEB-INF/logs. I also | moved some files from /usr/src that appeared to be zip files. There was | a directory /usr/local/src that had a file titled occa.war that I also | moved off of the /usr/ directory. This is when I believe my problems | started. After I moved that file no one could access any data on the | website even though we could access the database pages when we tried to | view a case an error message returned stating file not found. I then | moved occa.war back to the /usr/local/src directory and we could | access the data again. However, now there are several different types | of errors showing up when user try to view or input data. There are | multiple error messages that are showing up depending on what the | individual user was attempting to do. I know I am probably being much | too vague in my explanations but I don't know enough about Tomcat to | detail everything. I would like to ask that if anyone can offer help I | would welcome any offers for assistance. If I can explain in more | detail please let me know what information I need to provide. | | Below is one of the messages that is displayed when a user attempts to | view one of the web pages. | | HTTP Status 500 - | | | | | type Exception report | | message | | description The server encountered an internal error () that prevented | it from fulfilling this request. | | exception | | javax.servlet.ServletException: ServletException in | '/caser/extension/View.jsp': No getter method for property | attributes.datefield of bean oneCol | | org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCont | extImpl.java:848) | | org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex | tImpl.java:781) | | org.apache.jsp.caser.common.templates.docketLayout_jsp._jspService(org.a | pache.jsp.caser.common.templates.docketLayout_jsp:77) | | org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) | javax.servlet.http.HttpServlet.service(HttpServlet.java:802) | | org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja | va:322) | | org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) | | org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) | javax.servlet.http.HttpServlet.service(HttpServlet.java:802) | | com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.j | ava:39) | | org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav | a:1063) | | org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProc | essor.java:263) | | org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(Til | esRequestProcessor.java:239) | | org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Tiles | RequestProcessor.java:302) | | org.apache.struts.action.RequestProcessor.process(RequestProcessor.java: | 229) | | org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) | | org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) | javax.servlet.http.HttpServlet.service(HttpServlet.java:689) | javax.servlet.http.HttpServlet.service(HttpServlet.java:802) | | filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.j | ava:122) | | com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter. | java:118) | | com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.j | ava:52) | | | root cause | | javax.servlet.jsp.JspException: ServletException in | '/caser/extension/View.jsp': No getter method for property | attributes.datefield of bean oneCol | |
RE: Tomcat errors
This error was not occurring before. I am afraid I am not familiar with Tomcat enough to know the answers to your questions. How do I check View.jsp? I have been trying to revert the changes back by placing the files I moved back to where I thought they belonged. Whatever I am attempting to move back it is having no effect as I still am receiving the errors I mentioned before. I may have these files in the wrong locations. Is there a way that I can know which files should go where? As I know very little about Tomcat my fear is that I may be causing more damage if I make any other attempts to fix my mistakes. I am not sure now how I caused the damage already done nor how to correct it. Steve Ingraham Director of Information Services Oklahoma Court of Criminal Appeals [EMAIL PROTECTED] 405 522-5343 -Original Message- From: EDMOND KEMOKAI [mailto:[EMAIL PROTECTED] Sent: Monday, December 11, 2006 3:30 PM To: Tomcat Users List Subject: Re: Tomcat errors javax.servlet.ServletException: ServletException in '/caser/extension/View.jsp': No getter method for property attributes.datefield of bean oneCol The above error means the bean oneCol doesn't have a getta method. you have to declare a method of the sort getDateFieldif that problem was not occurring before you made your move, then most likely you have mixed up the versions of jar files or class filesUnfortunately it looks like you have moved al ot of stuff so it is probably to possible to revert the changes. Are you using struts? check View.jsp and make the bean oneCol has the appropriate getDatefield... On 12/11/06, Steve Ingraham [EMAIL PROTECTED] wrote: I need some assistance with a Tomcat application problem. I have a MySQL database that is accessed by users via web browser using Apache-Tomcat 5.5.15. Our system was designed and implemented specific to our court by a person who is no longer working here. Today Tomcat was failing when users attempted to log onto the database to input new data. As I began troubleshooting the problem I discovered that /usr was 100% full (13 gigs). I began looking at ways I can move files off of /usr and did move several logs from /usr/local/src/apache-tomcat-5.5.15/webapps/occa/WEB-INF/logs. I also moved some files from /usr/src that appeared to be zip files. There was a directory /usr/local/src that had a file titled occa.war that I also moved off of the /usr/ directory. This is when I believe my problems started. After I moved that file no one could access any data on the website even though we could access the database pages when we tried to view a case an error message returned stating file not found. I then moved occa.war back to the /usr/local/src directory and we could access the data again. However, now there are several different types of errors showing up when user try to view or input data. There are multiple error messages that are showing up depending on what the individual user was attempting to do. I know I am probably being much too vague in my explanations but I don't know enough about Tomcat to detail everything. I would like to ask that if anyone can offer help I would welcome any offers for assistance. If I can explain in more detail please let me know what information I need to provide. Below is one of the messages that is displayed when a user attempts to view one of the web pages. HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: ServletException in '/caser/extension/View.jsp': No getter method for property attributes.datefield of bean oneCol org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCo nt extImpl.java:848) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCont ex tImpl.java:781) org.apache.jsp.caser.common.templates.docketLayout_jsp._jspService(org .a pache.jsp.caser.common.templates.docketLayout_jsp:77) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper. ja va:322) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:29 1) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter .j ava:39) org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.j av a:1063) org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestPr oc essor.java:263) org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(T il esRequestProcessor.java:239)
Re: Tomcat errors
For one, you playing with tomcat so I'll presume you're familiar with JSP/Java/Servlet, your problem isn't tomcat, you Veiw.jsp is using an object (oneCol) which is missing a getta method that is used for introspection. Maybe there is a tag in the page that implicitly refereces the datefield property, you need to find that reference and either find the right class/jar file or recompile the oneCol bean class. Again this is a java/jsp/servlet/struts programming issue, not tomcat. On 12/11/06, Steve Ingraham [EMAIL PROTECTED] wrote: This error was not occurring before. I am afraid I am not familiar with Tomcat enough to know the answers to your questions. How do I check View.jsp? I have been trying to revert the changes back by placing the files I moved back to where I thought they belonged. Whatever I am attempting to move back it is having no effect as I still am receiving the errors I mentioned before. I may have these files in the wrong locations. Is there a way that I can know which files should go where? As I know very little about Tomcat my fear is that I may be causing more damage if I make any other attempts to fix my mistakes. I am not sure now how I caused the damage already done nor how to correct it. Steve Ingraham Director of Information Services Oklahoma Court of Criminal Appeals [EMAIL PROTECTED] 405 522-5343 -Original Message- From: EDMOND KEMOKAI [mailto:[EMAIL PROTECTED] Sent: Monday, December 11, 2006 3:30 PM To: Tomcat Users List Subject: Re: Tomcat errors javax.servlet.ServletException: ServletException in '/caser/extension/View.jsp': No getter method for property attributes.datefield of bean oneCol The above error means the bean oneCol doesn't have a getta method. you have to declare a method of the sort getDateFieldif that problem was not occurring before you made your move, then most likely you have mixed up the versions of jar files or class filesUnfortunately it looks like you have moved al ot of stuff so it is probably to possible to revert the changes. Are you using struts? check View.jsp and make the bean oneCol has the appropriate getDatefield... On 12/11/06, Steve Ingraham [EMAIL PROTECTED] wrote: I need some assistance with a Tomcat application problem. I have a MySQL database that is accessed by users via web browser using Apache-Tomcat 5.5.15. Our system was designed and implemented specific to our court by a person who is no longer working here. Today Tomcat was failing when users attempted to log onto the database to input new data. As I began troubleshooting the problem I discovered that /usr was 100% full (13 gigs). I began looking at ways I can move files off of /usr and did move several logs from /usr/local/src/apache-tomcat-5.5.15/webapps/occa/WEB-INF/logs. I also moved some files from /usr/src that appeared to be zip files. There was a directory /usr/local/src that had a file titled occa.war that I also moved off of the /usr/ directory. This is when I believe my problems started. After I moved that file no one could access any data on the website even though we could access the database pages when we tried to view a case an error message returned stating file not found. I then moved occa.war back to the /usr/local/src directory and we could access the data again. However, now there are several different types of errors showing up when user try to view or input data. There are multiple error messages that are showing up depending on what the individual user was attempting to do. I know I am probably being much too vague in my explanations but I don't know enough about Tomcat to detail everything. I would like to ask that if anyone can offer help I would welcome any offers for assistance. If I can explain in more detail please let me know what information I need to provide. Below is one of the messages that is displayed when a user attempts to view one of the web pages. HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: ServletException in '/caser/extension/View.jsp': No getter method for property attributes.datefield of bean oneCol org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCo nt extImpl.java:848) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCont ex tImpl.java:781) org.apache.jsp.caser.common.templates.docketLayout_jsp._jspService(org .a pache.jsp.caser.common.templates.docketLayout_jsp:77) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper. ja va:322) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:29 1)
RE: Tomcat errors
Thank you for your reply. I am afraid I am not familiar with JSP/Java/Servlet's at all. I was playing with it only in the context that I have a Linux RedHat server that had a /usr/ directory that was full. This caused a failure when our users attempted to access our database via their web browsers. In my exploration of the problem I discovered /usr at 100% on the server. So I attempted to free up space by moving some log files from the apache-tomcat/logs directory. I also attempted to move some files from /usr/src and from /usr/local/src/apache-tomcat-5.5.15/webapps. One of those files appears to have caused a separate failure of our web access to certain aspects of the database. My appologies if I am asking the wrong group about this problem. If there is any information anyone has concerning java I would welcome your input. If you can direct me to a java list I will ask there as well. Steve Ingraham Director of Information Services Oklahoma Court of Criminal Appeals [EMAIL PROTECTED] 405 522-5343 -Original Message- From: EDMOND KEMOKAI [mailto:[EMAIL PROTECTED] Sent: Monday, December 11, 2006 3:54 PM To: Tomcat Users List Subject: Re: Tomcat errors For one, you playing with tomcat so I'll presume you're familiar with JSP/Java/Servlet, your problem isn't tomcat, you Veiw.jsp is using an object (oneCol) which is missing a getta method that is used for introspection. Maybe there is a tag in the page that implicitly refereces the datefield property, you need to find that reference and either find the right class/jar file or recompile the oneCol bean class. Again this is a java/jsp/servlet/struts programming issue, not tomcat. On 12/11/06, Steve Ingraham [EMAIL PROTECTED] wrote: This error was not occurring before. I am afraid I am not familiar with Tomcat enough to know the answers to your questions. How do I check View.jsp? I have been trying to revert the changes back by placing the files I moved back to where I thought they belonged. Whatever I am attempting to move back it is having no effect as I still am receiving the errors I mentioned before. I may have these files in the wrong locations. Is there a way that I can know which files should go where? As I know very little about Tomcat my fear is that I may be causing more damage if I make any other attempts to fix my mistakes. I am not sure now how I caused the damage already done nor how to correct it. Steve Ingraham Director of Information Services Oklahoma Court of Criminal Appeals [EMAIL PROTECTED] 405 522-5343 -Original Message- From: EDMOND KEMOKAI [mailto:[EMAIL PROTECTED] Sent: Monday, December 11, 2006 3:30 PM To: Tomcat Users List Subject: Re: Tomcat errors javax.servlet.ServletException: ServletException in '/caser/extension/View.jsp': No getter method for property attributes.datefield of bean oneCol The above error means the bean oneCol doesn't have a getta method. you have to declare a method of the sort getDateFieldif that problem was not occurring before you made your move, then most likely you have mixed up the versions of jar files or class filesUnfortunately it looks like you have moved al ot of stuff so it is probably to possible to revert the changes. Are you using struts? check View.jsp and make the bean oneCol has the appropriate getDatefield... On 12/11/06, Steve Ingraham [EMAIL PROTECTED] wrote: I need some assistance with a Tomcat application problem. I have a MySQL database that is accessed by users via web browser using Apache-Tomcat 5.5.15. Our system was designed and implemented specific to our court by a person who is no longer working here. Today Tomcat was failing when users attempted to log onto the database to input new data. As I began troubleshooting the problem I discovered that /usr was 100% full (13 gigs). I began looking at ways I can move files off of /usr and did move several logs from /usr/local/src/apache-tomcat-5.5.15/webapps/occa/WEB-INF/logs. I also moved some files from /usr/src that appeared to be zip files. There was a directory /usr/local/src that had a file titled occa.war that I also moved off of the /usr/ directory. This is when I believe my problems started. After I moved that file no one could access any data on the website even though we could access the database pages when we tried to view a case an error message returned stating file not found. I then moved occa.war back to the /usr/local/src directory and we could access the data again. However, now there are several different types of errors showing up when user try to view or input data. There are multiple error messages that are showing up depending on what the individual user was attempting to do. I know I am probably being much too vague in my explanations but I don't know enough about Tomcat to detail everything. I would like to ask that if
Re: Tomcat errors
whatever files you removed from : /usr/local/src/apache-tomcat-5.5.15 /webapps you need to return... On 12/11/06, Steve Ingraham [EMAIL PROTECTED] wrote: Thank you for your reply. I am afraid I am not familiar with JSP/Java/Servlet's at all. I was playing with it only in the context that I have a Linux RedHat server that had a /usr/ directory that was full. This caused a failure when our users attempted to access our database via their web browsers. In my exploration of the problem I discovered /usr at 100% on the server. So I attempted to free up space by moving some log files from the apache-tomcat/logs directory. I also attempted to move some files from /usr/src and from /usr/local/src/apache-tomcat-5.5.15/webapps. One of those files appears to have caused a separate failure of our web access to certain aspects of the database. My appologies if I am asking the wrong group about this problem. If there is any information anyone has concerning java I would welcome your input. If you can direct me to a java list I will ask there as well. Steve Ingraham Director of Information Services Oklahoma Court of Criminal Appeals [EMAIL PROTECTED] 405 522-5343 -Original Message- From: EDMOND KEMOKAI [mailto:[EMAIL PROTECTED] Sent: Monday, December 11, 2006 3:54 PM To: Tomcat Users List Subject: Re: Tomcat errors For one, you playing with tomcat so I'll presume you're familiar with JSP/Java/Servlet, your problem isn't tomcat, you Veiw.jsp is using an object (oneCol) which is missing a getta method that is used for introspection. Maybe there is a tag in the page that implicitly refereces the datefield property, you need to find that reference and either find the right class/jar file or recompile the oneCol bean class. Again this is a java/jsp/servlet/struts programming issue, not tomcat. On 12/11/06, Steve Ingraham [EMAIL PROTECTED] wrote: This error was not occurring before. I am afraid I am not familiar with Tomcat enough to know the answers to your questions. How do I check View.jsp? I have been trying to revert the changes back by placing the files I moved back to where I thought they belonged. Whatever I am attempting to move back it is having no effect as I still am receiving the errors I mentioned before. I may have these files in the wrong locations. Is there a way that I can know which files should go where? As I know very little about Tomcat my fear is that I may be causing more damage if I make any other attempts to fix my mistakes. I am not sure now how I caused the damage already done nor how to correct it. Steve Ingraham Director of Information Services Oklahoma Court of Criminal Appeals [EMAIL PROTECTED] 405 522-5343 -Original Message- From: EDMOND KEMOKAI [mailto:[EMAIL PROTECTED] Sent: Monday, December 11, 2006 3:30 PM To: Tomcat Users List Subject: Re: Tomcat errors javax.servlet.ServletException: ServletException in '/caser/extension/View.jsp': No getter method for property attributes.datefield of bean oneCol The above error means the bean oneCol doesn't have a getta method. you have to declare a method of the sort getDateFieldif that problem was not occurring before you made your move, then most likely you have mixed up the versions of jar files or class filesUnfortunately it looks like you have moved al ot of stuff so it is probably to possible to revert the changes. Are you using struts? check View.jsp and make the bean oneCol has the appropriate getDatefield... On 12/11/06, Steve Ingraham [EMAIL PROTECTED] wrote: I need some assistance with a Tomcat application problem. I have a MySQL database that is accessed by users via web browser using Apache-Tomcat 5.5.15. Our system was designed and implemented specific to our court by a person who is no longer working here. Today Tomcat was failing when users attempted to log onto the database to input new data. As I began troubleshooting the problem I discovered that /usr was 100% full (13 gigs). I began looking at ways I can move files off of /usr and did move several logs from /usr/local/src/apache-tomcat-5.5.15/webapps/occa/WEB-INF/logs. I also moved some files from /usr/src that appeared to be zip files. There was a directory /usr/local/src that had a file titled occa.war that I also moved off of the /usr/ directory. This is when I believe my problems started. After I moved that file no one could access any data on the website even though we could access the database pages when we tried to view a case an error message returned stating file not found. I then moved occa.war back to the /usr/local/src directory and we could access the data again. However, now there are several different types of errors showing up when user try to view or input data. There are multiple error messages that are showing up depending on what the individual user was attempting to do. I know I am probably being much
RE: Tomcat errors
From: Steve Ingraham [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat errors I also attempted to move some files from /usr/src and from /usr/local/src/apache-tomcat-5.5.15/webapps. Do you have a backup of the file system prior to your shuffling things around? If you can examine the backup to determine what the file structure was, you might be able to put the missing pieces back in the right place. Generally, you probably don't want to remove anything that's not an obvious log file - even the .zip files may have been used by your apps (unlikely, but not impossible). And you can't necessarily go by the extension of .log - Hypersonic, for example, uses its .log file to recover the data base when necessary (hopefully you're not using Hypersonic in production). Hint: take written notes of everything you do when mucking about with production servers. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat errors
Any chance you can restore the system from a backup? You'll be back to square one (100% usage on /usr), but at least you'll know what not to touch! Once your restore is complete, copy the log files to somewhere that has space, then truncate them (cat logfile). Then restart Tomcat and your database (if necessary) and you should be in business. If you can't restore from a backup, maybe you can at least view the directory structure, to make sure you put everything back where it's supposed to be. --- Tracy Nelson / Nelnet Business Solutions 402 / 617-9449 | -Original Message- | From: Steve Ingraham [mailto:[EMAIL PROTECTED] | Sent: Monday, 11 December, 2006 16:09 | To: Tomcat Users List | Subject: RE: Tomcat errors | | Thank you for your reply. I am afraid I am not familiar with | JSP/Java/Servlet's at all. I was playing with it only in the context | that I have a Linux RedHat server that had a /usr/ directory that was | full. This caused a failure when our users attempted to access our | database via their web browsers. In my exploration of the problem I | discovered /usr at 100% on the server. So I attempted to free up space | by moving some log files from the apache-tomcat/logs directory. I also | attempted to move some files from /usr/src and from | /usr/local/src/apache-tomcat-5.5.15/webapps. One of those files appears | to have caused a separate failure of our web access to certain aspects | of the database. My appologies if I am asking the wrong group about | this problem. If there is any information anyone has concerning java I | would welcome your input. If you can direct me to a java list I will | ask there as well. | | Steve Ingraham | Director of Information Services | Oklahoma Court of Criminal Appeals | [EMAIL PROTECTED] | 405 522-5343 | | | | -Original Message- | From: EDMOND KEMOKAI [mailto:[EMAIL PROTECTED] | Sent: Monday, December 11, 2006 3:54 PM | To: Tomcat Users List | Subject: Re: Tomcat errors | | | For one, you playing with tomcat so I'll presume you're familiar with | JSP/Java/Servlet, your problem isn't tomcat, you Veiw.jsp is using an | object | (oneCol) which is missing a getta method that is used for introspection. | Maybe there is a tag in the page that implicitly refereces the datefield | property, you need to find that reference and either find the right | class/jar file or recompile the oneCol bean class. Again this is a | java/jsp/servlet/struts programming issue, not tomcat. | | On 12/11/06, Steve Ingraham [EMAIL PROTECTED] wrote: | | This error was not occurring before. I am afraid I am not familiar | with Tomcat enough to know the answers to your questions. How do I | check View.jsp? I have been trying to revert the changes back by | placing the files I moved back to where I thought they belonged. | Whatever I am attempting to move back it is having no effect as I | still am receiving the errors I mentioned before. I may have these | files in the wrong locations. Is there a way that I can know which | files should go where? As I know very little about Tomcat my fear is | that I may be causing more damage if I make any other attempts to | fix my mistakes. I am not sure now how I caused the damage already | done nor how to correct it. | | Steve Ingraham | Director of Information Services | Oklahoma Court of Criminal Appeals | [EMAIL PROTECTED] | 405 522-5343 | | | | -Original Message- | From: EDMOND KEMOKAI [mailto:[EMAIL PROTECTED] | Sent: Monday, December 11, 2006 3:30 PM | To: Tomcat Users List | Subject: Re: Tomcat errors | | | javax.servlet.ServletException: ServletException in | '/caser/extension/View.jsp': No getter method for property | attributes.datefield of bean oneCol | | | The above error means the bean oneCol doesn't have a getta method. you | | have to declare a method of the sort getDateFieldif that problem | was not occurring before you made your move, then most likely you have | | mixed up the versions of jar files or class filesUnfortunately it | looks like you have moved al ot of stuff so it is probably to possible | | to revert the changes. Are you using struts? check View.jsp and make | the bean oneCol has the appropriate getDatefield... | | On 12/11/06, Steve Ingraham [EMAIL PROTECTED] wrote: | | I need some assistance with a Tomcat application problem. I have a | MySQL database that is accessed by users via web browser using | Apache-Tomcat 5.5.15. Our system was designed and implemented | specific to our court by a person who is no longer working here. | | Today Tomcat was failing when users attempted to log onto the | database | | to input new data. As I began troubleshooting the problem I | discovered that /usr was 100% full (13 gigs). I began looking at | ways | | I can move files off of /usr and did move several logs from | /usr/local/src/apache-tomcat-5.5.15/webapps/occa/WEB-INF/logs. I | also | |
RE: Deploying shared .jar's
From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: Deploying shared .jar's With the way I read it now, anything I try to put under catalina_home/shared/lib won't be visible to the webapps in the various catalina_base folders. Is this correct? Yes. Look at RUNNING.txt in your Tomcat installation directory. To quote from it: When you use this -Dcatalina.base=$CATALINA_BASE argument, Tomcat will calculate all relative references for files in the following directories based on the value of $CATALINA_BASE instead of $CATALINA_HOME: * conf - Server configuration files (including server.xml) * logs - Log and output files * shared - For classes and resources that must be shared across all web applications * webapps - Automatically loaded web applications * work - Temporary working directories for web applications * temp - Directory used by the JVM for temporary files (java.io.tmpdir) Note the inclusion of shared in the CATALINA_BASE set. It would be better if it read For classes and resources that must be shared across all web applications within this Tomcat instance. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat errors
Sadly, I just checked my backup system. It is set up to backup the data but not the application. I am afraid I am in deep dodo as I know enough about Tomcat, Java and Linux to be the cause of this type of a problem but not enough to fix it. If anyone out there can talk to me and look at what I have I would love to hear from you. I will be interested to hear back from anyone that is intrigued by my problem tomorrow morning. I want to thank everyone for your time and efforts, Steve Ingraham Director of Information Services Oklahoma Court of Criminal Appeals [EMAIL PROTECTED] 405 522-5343 -Original Message- From: Nelson, Tracy [mailto:[EMAIL PROTECTED] Sent: Monday, December 11, 2006 4:34 PM To: Tomcat Users List Subject: RE: Tomcat errors Any chance you can restore the system from a backup? You'll be back to square one (100% usage on /usr), but at least you'll know what not to touch! Once your restore is complete, copy the log files to somewhere that has space, then truncate them (cat logfile). Then restart Tomcat and your database (if necessary) and you should be in business. If you can't restore from a backup, maybe you can at least view the directory structure, to make sure you put everything back where it's supposed to be. --- Tracy Nelson / Nelnet Business Solutions 402 / 617-9449 | -Original Message- | From: Steve Ingraham [mailto:[EMAIL PROTECTED] | Sent: Monday, 11 December, 2006 16:09 | To: Tomcat Users List | Subject: RE: Tomcat errors | | Thank you for your reply. I am afraid I am not familiar with | JSP/Java/Servlet's at all. I was playing with it only in the context | that I have a Linux RedHat server that had a /usr/ directory that was | full. This caused a failure when our users attempted to access our | database via their web browsers. In my exploration of the problem I | discovered /usr at 100% on the server. So I attempted to free up space | by moving some log files from the apache-tomcat/logs directory. I also | attempted to move some files from /usr/src and from | /usr/local/src/apache-tomcat-5.5.15/webapps. One of those files appears | to have caused a separate failure of our web access to certain aspects | of the database. My appologies if I am asking the wrong group about | this problem. If there is any information anyone has concerning java I | would welcome your input. If you can direct me to a java list I will | ask there as well. | | Steve Ingraham | Director of Information Services | Oklahoma Court of Criminal Appeals | [EMAIL PROTECTED] | 405 522-5343 | | | | -Original Message- | From: EDMOND KEMOKAI [mailto:[EMAIL PROTECTED] | Sent: Monday, December 11, 2006 3:54 PM | To: Tomcat Users List | Subject: Re: Tomcat errors | | | For one, you playing with tomcat so I'll presume you're familiar with | JSP/Java/Servlet, your problem isn't tomcat, you Veiw.jsp is using an | object | (oneCol) which is missing a getta method that is used for introspection. | Maybe there is a tag in the page that implicitly refereces the datefield | property, you need to find that reference and either find the right | class/jar file or recompile the oneCol bean class. Again this is a | java/jsp/servlet/struts programming issue, not tomcat. | | On 12/11/06, Steve Ingraham [EMAIL PROTECTED] wrote: | | This error was not occurring before. I am afraid I am not familiar | with Tomcat enough to know the answers to your questions. How do I | check View.jsp? I have been trying to revert the changes back by | placing the files I moved back to where I thought they belonged. | Whatever I am attempting to move back it is having no effect as I | still am receiving the errors I mentioned before. I may have these | files in the wrong locations. Is there a way that I can know which | files should go where? As I know very little about Tomcat my fear is | that I may be causing more damage if I make any other attempts to | fix my mistakes. I am not sure now how I caused the damage already | done nor how to correct it. | | Steve Ingraham | Director of Information Services | Oklahoma Court of Criminal Appeals | [EMAIL PROTECTED] | 405 522-5343 | | | | -Original Message- | From: EDMOND KEMOKAI [mailto:[EMAIL PROTECTED] | Sent: Monday, December 11, 2006 3:30 PM | To: Tomcat Users List | Subject: Re: Tomcat errors | | | javax.servlet.ServletException: ServletException in | '/caser/extension/View.jsp': No getter method for property | attributes.datefield of bean oneCol | | | The above error means the bean oneCol doesn't have a getta method. you | | have to declare a method of the sort getDateFieldif that problem | was not occurring before you made your move, then most likely you have | | mixed up the versions of jar files or class filesUnfortunately it | looks like you have moved al ot of stuff so it is probably to possible | | to revert the changes. Are you using struts? check
Re: Deploying shared .jar's
Caldarale, Charles R wrote: From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: Deploying shared .jar's With the way I read it now, anything I try to put under catalina_home/shared/lib won't be visible to the webapps in the various catalina_base folders. Is this correct? Yes. Look at RUNNING.txt in your Tomcat installation directory. To quote from it: When you use this -Dcatalina.base=$CATALINA_BASE argument, Tomcat will calculate all relative references for files in the following directories based on the value of $CATALINA_BASE instead of $CATALINA_HOME: * conf - Server configuration files (including server.xml) * logs - Log and output files * shared - For classes and resources that must be shared across all web applications * webapps - Automatically loaded web applications * work - Temporary working directories for web applications * temp - Directory used by the JVM for temporary files (java.io.tmpdir) Note the inclusion of shared in the CATALINA_BASE set. It would be better if it read For classes and resources that must be shared across all web applications within this Tomcat instance. Yes, that's what I decided on re-reading it for the umpteenth time, when I couldn't get it to work the way I wanted. A bit of clarification by the doc writers might be in order. Dave - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk and memory leaks?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 B, [EMAIL PROTECTED] wrote: Has anyone experienced memory leaks in there web app when using mod_jk? What kind of leak are you observing? Something on the Apache httpd side, or something in Tomcat? In either case, what is the (specific) behavior? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFffa69CaO5/Lv0PARAvCGAJ4pTre4tl6DBJZvHq9vgG11HJg54QCgwBIK Nfi5gAIww6McXg/KxGNZ70k= =td1h -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat pauses then crashes after a period of time
Ok, I have found the problem. A firewall between my tomcat server and a MySQL server was closing the database connection. I was checking if this was closed in the web service, using the Connection.isClosed() method, but that does not work as expected and was returning true even though the connection was closed. The execution continued and an exception was thrown, where in the catch{} section I was then calling System.exit(), which I thought would shut down the web service only, but it is actually shutting down the whole JVM, causing tomcat to stop too. Thanks for you help, Dave -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Monday, 11 December 2006 2:28 PM To: Tomcat Users List Subject: RE: tomcat pauses then crashes after a period of time From: David Wood [mailto:[EMAIL PROTECTED] Subject: tomcat pauses then crashes after a period of time I have set up tomcat to run as a daemon using jsvc, which is working well, except when tomcat is idle for a period of time (usually overnight), and I execute a web service client, tomcat receives the request then simply stops. No answers, but could you run Tomcat from a shell for a while and see if anything informative comes out on the console? - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat pauses then crashes after a period of time
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Wood wrote: Ok, I have found the problem. A firewall between my tomcat server and a MySQL server was closing the database connection. [snip] The execution continued and an exception was thrown, where in the catch{} section I was then calling System.exit(), which I thought would shut down the web service only, but it is actually shutting down the whole JVM, causing tomcat to stop too. Heh, well /there's/ yer problem. Firewalls are known for terminating idle TCP/IP connections after a certain period of time, which is unfortunate, as many deployments put the database behind the firewall and the app servers out front. Are you using any kind of database connection pooling? If so, perhaps there is an auto-reconnect feature available for that component. For instance, Jakarta Commons DBCP includes such a feature. Once you are using DBCP, your code doesn't have to know how to handle unexpected disconnects like that, since the connection pool handles the automatic reconnection for you. Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFffjT9CaO5/Lv0PARAl6EAJ4haR5ZfDodrGTK3oF3gdkotulG3ACgha8t wozRXyBuzTQDxPakjMFeqgI= =O8Fy -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploying shared .jar's
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: When you use this -Dcatalina.base=$CATALINA_BASE argument, Tomcat will calculate all relative references for files in the following directories based on the value of $CATALINA_BASE instead of $CATALINA_HOME: * conf - Server configuration files (including server.xml) * logs - Log and output files * shared - For classes and resources that must be shared across all web applications * webapps - Automatically loaded web applications * work - Temporary working directories for web applications * temp - Directory used by the JVM for temporary files (java.io.tmpdir) Note the inclusion of shared in the CATALINA_BASE set. It would be better if it read For classes and resources that must be shared across all web applications within this Tomcat instance. Was that feature changed in the 5.0 and later versions? My 4.1.x version allows me to put files into $CATALINA_HOME/common/lib and have them available to all webapps which are deployed in their own CATALINA_BASE's. (Hmm... I appear to have TOMCAT_HOME and not CATALINA_HOME in all my scripts.. That's odd.) It sounds like TC 5 only shares TC code, and what David wants to do must be done by either putting his shared libraries in CATALINA_BASE/shared/lib for all his different projects or by symlinking them all together back to CATALINA_HOME/shared/lib. Any reason this was changed? I thought it was great just the way it was. ;) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFffwF9CaO5/Lv0PARAhwqAJ0S8Kro+saNDpdyVMGIwQq8W0W4tACfXDbS WZuhQTbVij1vCLqU5Li2vIg= =rZLp -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat pauses then crashes after a period of time
Chris, Thanks very much for the suggestion. I'm not using connection pooling at this stage. I have deployed my web service scoped as an Application. It only uses one connection, and the classes maintain some medium sized data structures which I do not want to have to re-create each time the service is consumed. I'll investigate the pooling, as an auto-reconnect feature will be necessary in some form or another, and if DBCP can do it then that would be great, even if I maintain only one connection I guess... cheers Dave -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tuesday, 12 December 2006 10:33 AM To: Tomcat Users List Subject: Re: tomcat pauses then crashes after a period of time -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Wood wrote: Ok, I have found the problem. A firewall between my tomcat server and a MySQL server was closing the database connection. [snip] The execution continued and an exception was thrown, where in the catch{} section I was then calling System.exit(), which I thought would shut down the web service only, but it is actually shutting down the whole JVM, causing tomcat to stop too. Heh, well /there's/ yer problem. Firewalls are known for terminating idle TCP/IP connections after a certain period of time, which is unfortunate, as many deployments put the database behind the firewall and the app servers out front. Are you using any kind of database connection pooling? If so, perhaps there is an auto-reconnect feature available for that component. For instance, Jakarta Commons DBCP includes such a feature. Once you are using DBCP, your code doesn't have to know how to handle unexpected disconnects like that, since the connection pool handles the automatic reconnection for you. Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFffjT9CaO5/Lv0PARAl6EAJ4haR5ZfDodrGTK3oF3gdkotulG3ACgha8t wozRXyBuzTQDxPakjMFeqgI= =O8Fy -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat5.5.x cannot run on Java6
Hello, How can run Tomcat5.5 in Java6 ? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat5.5.x cannot run on Java6
Eric Chow wrote: Hello, How can run Tomcat5.5 in Java6 ? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploying shared .jar's
Larry Isaacs wrote: Hi Dave, I believe one of the primary reasons that the conf/catalina.properties file exists is so things like this are configurable. If: shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar doesn't do what you want, change it to: shared.loader=${catalina.home}/shared/classes,${catalina.home}/shared/lib/*.jar or something else that achieves your goal. D'oh Why didn't I think of that??? Cheers, Larry -Original Message- From: David Kerber [mailto:[EMAIL PROTECTED] Sent: Monday, December 11, 2006 6:55 PM To: Tomcat Users List Subject: Re: Deploying shared .jar's Caldarale, Charles R wrote: From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: Deploying shared .jar's With the way I read it now, anything I try to put under catalina_home/shared/lib won't be visible to the webapps in the various catalina_base folders. Is this correct? Yes. Look at RUNNING.txt in your Tomcat installation directory. To quote from it: When you use this -Dcatalina.base=$CATALINA_BASE argument, Tomcat will calculate all relative references for files in the following directories based on the value of $CATALINA_BASE instead of $CATALINA_HOME: * conf - Server configuration files (including server.xml) * logs - Log and output files * shared - For classes and resources that must be shared across all web applications * webapps - Automatically loaded web applications * work - Temporary working directories for web applications * temp - Directory used by the JVM for temporary files (java.io.tmpdir) Note the inclusion of shared in the CATALINA_BASE set. It would be better if it read For classes and resources that must be shared across all web applications within this Tomcat instance. Yes, that's what I decided on re-reading it for the umpteenth time, when I couldn't get it to work the way I wanted. A bit of clarification by the doc writers might be in order. Dave - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat5.5.x cannot run on Java6
While I haven't had a chance to actually try it yet, I would imagine just change the JAVA_HOME to point to 6 and start. You could try it and let us know what happens. --David Eric Chow wrote: Hello, How can run Tomcat5.5 in Java6 ? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Squid with Tomcat not caching
Hello all, I've been trying to debug a problem with caching of Tomcat requests for a few days now, and can't seem to find an answer. Hopefully someone here can help. The system right now consists of Squid 2.6-stable5 on a front end server setup as an accelerator with basic authentication, pointing at a single backend web server. On the backend, I have both apache, and Tomcat installed. Tomcat is version 5.5.20 with the minimal server.xml file from the distribution. When squid is accelerating requests routed to apache, everything works fine. Pages and images are cached as expected. The problem occurs when I point squid to the Tomcat server. In this configuration, no pages are cached at all. All access requests show up as RELEASE -1 in the squid store logs, which indicates that the page isn't cacheable. I've combed over the headers and tried turning off the jsession cookie, adding a Cache-Control filter (Cache-Control:max-age=3600) and a bunch of other things. At this point, I'm sure I must be missing something. I know I can't be the only person using this configuration though. =) Any words of wisdom would be appreciated. Regards, F. Potetz - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGImageEncoder
From: Mon Cab [mailto:[EMAIL PROTECTED] Subject: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGImageEncoder Caused by: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGImageEncoder This class is normally part of the Sun JRE download in rt.jar. It appears that either your JRE installation is corrupted, or you're using some unusual JRE that does not include the standard classes. Try downloading and installing a fresh JRE from the Sun web site. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGImageEncoder
Thanks Chris. I pulled the codec package from this and put it in its own jar, and added to the tomcat/common/lib dir. Its working now. --- Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Mon Cab [mailto:[EMAIL PROTECTED] Subject: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGImageEncoder Caused by: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGImageEncoder This class is normally part of the Sun JRE download in rt.jar. It appears that either your JRE installation is corrupted, or you're using some unusual JRE that does not include the standard classes. Try downloading and installing a fresh JRE from the Sun web site. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGImageEncoder
From: Mon Cab [mailto:[EMAIL PROTECTED] Subject: RE: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGImageEncoder Thanks Chris. Chris? That's my ex-wife... So what JVM do you have installed? - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.io.IOException: No such file or directory when using serverFile.createNewFile();
Hi I am trying to store a file in my webapp (Tomcat on Fedora) and am using File serverFile = new File(file_pathname); serverFile.createNewFile(); FileOutputStream os = new FileOutputStream(serverFile); os.write(fileData); os.close(); but I am getting a java.io.IOException: No such file or directory at java.io.File.performCreate() (/usr/lib/libgcj.so.6.0.0) at java.io.File.createNewFile() (/usr/lib/libgcj.so.6.0.0) at datingapp.Photo.store() (Unknown Source) at datingapp.PhotoProfileAction.addPhoto(javax.servlet.http.HttpServletRequest, org.apache.struts.action.DynaActionForm, datingapp.utils.DatingappSession) (Unknown Source) at datingapp.PhotoProfileAction.execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) (Unknown Source) at org.apache.struts.action.RequestProcessor.processActionPerform(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.Action, org.apache.struts.action.ActionForm, org.apache.struts.action.ActionMapping) (Unknown Source) at org.apache.struts.action.RequestProcessor.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) (Unknown Source) bla.. bla... for the pathname I have used the following (always getting the same error): datingapp2/user_images/337247852440.jpg /datingapp2/user_images/2342051028.jpeg datingapp2/user_images/337247852440_thumb.jpg user_images/427613272763.jpeg where datingapp2 is the folder (in webapps) for datingapp, and user_images is a folder I have placed directly under datingapp2. Permissions to user_images is set at 775. When I use the following as the pathname /var/lib/tomcat5/webapps/datingapp2/user_images/ I get a this web page could not be displayed message and can no longer access any Tomcat web page (defalt EI6 page), which I am presuming means that Tomcat has barfed. Does anyone know what might be going wrong here? What should I do to fix this? Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
File not found with file include in a jsp file.
Hello, I am using tomcat 5.5.20, apache 2.0 and mod_jk.so to building a jsp server on a RHEL 4. And there is a very strange problem here: There is a file named headerCon.jsp in the document root of a virtual host. And there is a folder named product. There is a file named product_view.jsp in the folder product. Here is a folder structure wwwroot--headerCon.jsp | -product/ | -product_view.jsp And there are the follow sentences in product_view.jsp: %@ page contentType=text/html; charset=gb2312 language=java errorPage= % %@ include file =../headerCon.jsp% %@ page import=com.longtopsystem.comm.* % %@ page import=com.handle.common.* % Then there web browser will show me the follow error messages: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: /product_view.jsp(2,0) File /../headerCon.jsp not found org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause org.apache.jasper.JasperException: /product_view.jsp(2,0) File /../headerCon.jsp not found org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:86) org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:339) org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:372) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:484) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1556) org.apache.jasper.compiler.Parser.parse(Parser.java:126) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211) org.apache.jasper.compiler.ParserController.parse(ParserController.java:100) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155) org.apache.jasper.compiler.Compiler.compile(Compiler.java:295) org.apache.jasper.compiler.Compiler.compile(Compiler.java:276) org.apache.jasper.compiler.Compiler.compile(Compiler.java:264) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs. Apache Tomcat/5.5.20 But if i copy the file headerCon.jsp to the product/ folder. and change the line %@ include file =../headerCon.jsp% to %@ include file =headerCon.jsp% It works great. And i have also tried use a absolute path, it doesn't work. I have digged this for a while, but no result. Could someone pick me up? Every repsonse is appreciated. Best regards Wang. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGImageEncoder
Chuck Apologies (nice). Java version is 1.4.2 on Fedora. Is that what you mean? --- Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Mon Cab [mailto:[EMAIL PROTECTED] Subject: RE: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGImageEncoder Thanks Chris. Chris? That's my ex-wife... So what JVM do you have installed? - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGImageEncoder
From: Mon Cab [mailto:[EMAIL PROTECTED] Subject: RE: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGImageEncoder Apologies (nice). No worries. There is a Chris Schultz who is a frequent contributor to this list. Java version is 1.4.2 on Fedora. Is that what you mean? Partly. The class in question is definitely in Sun's 1.4.2 JRE; are you using Sun or some other vendor (e.g., IBM, JRockit, ...)? - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGImageEncoder
I believe its Suns JRE. But I have heard that on UNIX there is no access to awt ( presumable other image packages), due to UNIX being headles server. Does this make any sense? Would the packages in the JRE distribution for UNIX? --- Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Mon Cab [mailto:[EMAIL PROTECTED] Subject: RE: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGImageEncoder Apologies (nice). No worries. There is a Chris Schultz who is a frequent contributor to this list. Java version is 1.4.2 on Fedora. Is that what you mean? Partly. The class in question is definitely in Sun's 1.4.2 JRE; are you using Sun or some other vendor (e.g., IBM, JRockit, ...)? - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Want to start your own business? Learn how on Yahoo! Small Business. http://smallbusiness.yahoo.com/r-index - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Webapp barfing when saving Image
Hi I am trying to store a file in my webapp (Tomcat on Fedora) and am using File serverFile = new File(file_pathname); serverFile.createNewFile(); FileOutputStream os = new FileOutputStream(serverFile); os.write(fileData); os.close(); but I am getting an IE6 page cant be displayed error when I use the following as the pathname /var/lib/tomcat5/webapps/datingapp2/user_images/ The image is actually saving to the user_images folder BUT, it seems that the webapp is no longer accessible after the image is saved. As soon as the save image code is executed the log file shws the following (is this Tomcat restarting!?) 2006-12-11 22:57:50,489 [main] INFO org.apache.coyote.http11.Http11Protocol - Initializing Coyote HTTP/1.1 on http-8080 2006-12-11 22:57:50,686 [main] INFO org.apache.coyote.http11.Http11Protocol - Initializing Coyote HTTP/1.1 on http-9080 2006-12-11 22:57:50,686 [main] INFO org.apache.catalina.startup.Catalina - Initialization processed in 2203 ms 2006-12-11 22:57:50,930 [main] INFO org.apache.catalina.realm.JAASRealm - Set JAAS app name PSA 2006-12-11 22:57:51,109 [main] INFO org.apache.catalina.core.StandardService - Starting service Catalina 2006-12-11 22:57:51,123 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/5.0 2006-12-11 22:57:51,261 [main] INFO org.apache.catalina.core.StandardHost - XML validation disabled 2006-12-11 22:57:54,503 [main] INFO org.apache.struts.tiles.TilesPlugin - Tiles definition factory loaded for module ''. 2006-12-11 22:57:54,534 [main] INFO org.apache.struts.validator.ValidatorPlugIn - Loading validation rules file from '/WEB-INF/validator-rules.xml' 2006-12-11 22:57:54,535 [main] INFO org.apache.struts.validator.ValidatorPlugIn - Loading validation rules file from '/WEB-INF/validation.xml' 2006-12-11 22:57:55,666 [main] INFO org.apache.catalina.core.StandardHost - Create Host deployer for direct deployment ( non-jmx ) 2006-12-11 22:57:55,673 [main] INFO org.apache.catalina.core.StandardHostDeployer - Processing Context configuration file URL file:/etc/tomcat5/Catalina/localhost/balancer.xml 2006-12-11 22:57:56,196 [main] INFO org.apache.catalina.core.StandardHostDeployer - Processing Context configuration file URL file:/etc/tomcat5/Catalina/localhost/admin.xml 2006-12-11 22:57:56,911 [main] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true 2006-12-11 22:57:57,051 [main] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true 2006-12-11 22:57:57,914 [main] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true 2006-12-11 22:57:59,449 [main] INFO org.apache.catalina.core.StandardHostDeployer - Processing Context configuration file URL file:/etc/tomcat5/Catalina/localhost/manager.xml 2006-12-11 22:57:59,979 [main] INFO org.apache.catalina.core.StandardHostDeployer - Processing Context configuration file URL file:/etc/tomcat5/Catalina/localhost/datingapp.xml 2006-12-11 22:58:00,036 [main] ERROR tomcat.localhost./datingapp.Context - Error starting static Resources java.lang.IllegalArgumentException: Document base /datingapp does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(java.lang.String) (/usr/lib/libnaming-resources-5.0.30.jar.so) at org.apache.catalina.core.StandardContext.resourcesStart() (/usr/lib/libcatalina-5.0.30.jar.so) at org.apache.catalina.core.StandardContext.start() (/usr/lib/libcatalina-5.0.30.jar.so) at org.apache.catalina.core.ContainerBase.addChildInternal(org.apache.catalina.Container) (/usr/lib/libcatalina-5.0.30.jar.so) at org.apache.catalina.core.ContainerBase.addChild(org.apache.catalina.Container) (/usr/lib/libcatalina-5.0.30.jar.so) at org.apache.catalina.core.StandardHost.addChild(org.apache.catalina.Container) (/usr/lib/libcatalina-5.0.30.jar.so) at org.apache.catalina.core.StandardHostDeployer.addChild(org.apache.catalina.Container) (/usr/lib/libcatalina-5.0.30.jar.so) at java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (/usr/lib/libgcj.so.6.0.0) at org.apache.commons.beanutils.MethodUtils.invokeMethod(java.lang.Object, java.lang.String, java.lang.Object[], java.lang.Class[]) (/tmp/libjakarta-commons-beanutils-1.7.0.jar.sofxwvo0.so) at org.apache.commons.digester.SetNextRule.end() (/usr/lib/libjakarta-commons-digester-1.6.jar.so) at org.apache.commons.digester.Rule.end(java.lang.String, java.lang.String) (/usr/lib/libjakarta-commons-digester-1.6.jar.so) at org.apache.commons.digester.Digester.endElement(java.lang.String, java.lang.String, java.lang.String) (/usr/lib/libjakarta-commons-digester-1.6.jar.so) at
RE: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGImageEncoder
From: Mon Cab [mailto:[EMAIL PROTECTED] Subject: RE: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGImageEncoder I believe its Suns JRE. Doing java -version from a shell prompt will tell you. But I have heard that on UNIX there is no access to awt ( presumable other image packages), due to UNIX being headles server. Operating in a headless mode restricts some AWT functions, but image manipulation is still allowed. Headless is used when there's no graphical rendering mechanism (e.g., an X11 client) directly on platform. The JPEG encode/decode classes are definitely in the standard JRE distribution. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGImageEncoder
Chuck Here's the results of java -version java version 1.4.2 gij (GNU libgcj) version 4.0.2 20051125 (Red Hat 4.0.2-8) Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. according to http://gcc.gnu.org/java/ GCJ is a portable, optimizing, ahead-of-time compiler for the Java Programming Language. It can compile Java source code to Java bytecode (class files) or directly to native machine code, and Java bytecode to native machine code. Compiled applications are linked with the GCJ runtime, libgcj, which provides the core class libraries, a garbage collector, and a bytecode interpreter. libgcj can dynamically load and interpret class files, resulting in mixed compiled/interpreted applications. It has been merged with GNU Classpath and supports most of the 1.4 libraries plus some 1.5 additions. I see no rt.jar under usr/share/java. contents include (first 4 are directories): ant gcj-endorsed javamail mx4j activation.jar ant.jar ant-1.6.2.jar ant-launcher.jar ant-launcher-1.6.2.jar bcel.jar bcel-5.1.jar catalina-ant-5.0.30.jar catalina-ant5.jar commons-beanutils.jar commons-beanutils-1.7.0.jar commons-collections.jar commons-collections-3.1.jar commons-dbcp.jar commons-dbcp-1.2.1.jar commons-digester.jar commons-digester-1.6.jar commons-digester-1.6-rss.jar commons-digester-rss.jar commons-el.jar commons-el-1.0.jar commons-fileupload.jar commons-fileupload-1.0.jar commons-launcher.jar commons-launcher-0.9.jar commons-logging.jar commons-logging-1.0.4.jar commons-logging-api.jar commons-logging-api-1.0.4.jar commons-modeler.jar commons-modeler-1.1.jar commons-pool.jar commons-pool-1.2.jar commons-validator.jar commons-validator-1.1.3.jar com-sun-javadoc-0.7.7.jar com-sun-tools-doclets-Taglet-0.7.7.jar cryptix.jar cryptix-3.2.0.jar cryptix-asn1.jar cryptix-asn1-2009.jar eclipse-ecj.jar gnu-classpath-tools-gjdoc-0.7.7.jar gnu-crypto.jar gnu-crypto-2.0.1.jar hibernate_jdbc_cache.jar jaf.jar jaf-1.0.2.jar Does this explain why com.sun.image.codec package is not accessible? --- Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Mon Cab [mailto:[EMAIL PROTECTED] Subject: RE: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGImageEncoder I believe its Suns JRE. Doing java -version from a shell prompt will tell you. But I have heard that on UNIX there is no access to awt ( presumable other image packages), due to UNIX being headles server. Operating in a headless mode restricts some AWT functions, but image manipulation is still allowed. Headless is used when there's no graphical rendering mechanism (e.g., an X11 client) directly on platform. The JPEG encode/decode classes are definitely in the standard JRE distribution. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Yahoo! Music Unlimited Access over 1 million songs. http://music.yahoo.com/unlimited - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File not found with file include in a jsp file.
If /product_view.jsp is at the root of your tree (a top level document), surely it can not know how to go up above the root. This is by design. I say it's at the root of the tree of the virtual host based on the parse error /product_view.jsp(2,0) dik On 12/12/2006 1:22 AM also sprach Wang Penghui : Hello, I am using tomcat 5.5.20, apache 2.0 and mod_jk.so to building a jsp server on a RHEL 4. And there is a very strange problem here: There is a file named headerCon.jsp in the document root of a virtual host. And there is a folder named product. There is a file named product_view.jsp in the folder product. Here is a folder structure wwwroot--headerCon.jsp | -product/ | -product_view.jsp And there are the follow sentences in product_view.jsp: %@ page contentType=text/html; charset=gb2312 language=java errorPage= % %@ include file =../headerCon.jsp% %@ page import=com.longtopsystem.comm.* % %@ page import=com.handle.common.* % Then there web browser will show me the follow error messages: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: /product_view.jsp(2,0) File /../headerCon.jsp not found org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause org.apache.jasper.JasperException: /product_view.jsp(2,0) File /../headerCon.jsp not found org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:86) org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:339) org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:372) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:484) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1556) org.apache.jasper.compiler.Parser.parse(Parser.java:126) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211) org.apache.jasper.compiler.ParserController.parse(ParserController.java:100) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155) org.apache.jasper.compiler.Compiler.compile(Compiler.java:295) org.apache.jasper.compiler.Compiler.compile(Compiler.java:276) org.apache.jasper.compiler.Compiler.compile(Compiler.java:264) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs. Apache Tomcat/5.5.20 But if i copy the file headerCon.jsp to the product/ folder. and change the line %@ include file =../headerCon.jsp% to %@ include file =headerCon.jsp% It works great. And i have also tried use a absolute path, it doesn't work. I have digged this for a while, but no result. Could someone pick me up? Every repsonse is appreciated. Best regards Wang. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]