Re: dodgy session class
Hmm, please check that all your applications with distributable=true have no configured Manager in there context.xml's regards Peter Filip Hanik - Dev schrieb: Any chance you have a test case to reproduce this? Shouldn't happen, unless the way sessions are created have changed. Filip - Original Message - From: [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Friday, February 11, 2005 11:47 AM Subject: dodgy session class Hi, I'm running tomcat 5.0.30 on two machines A and B (Linux RHAS3). When tomcat A restarts it fails to sync session state with session state not received or something to that effect and tomcat B logs this message: 11 Feb 2005 17:21:49 [org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] ERROR org.apache.catalina.cluster.session.SimpleTcpReplicationManager - Unable to receive message through TCP channel java.lang.ClassCastException at org.apache.catalina.cluster.session.SimpleTcpReplicationManager.messageR eceived(SimpleTcpReplicationManager.java:530) at org.apache.catalina.cluster.session.SimpleTcpReplicationManager.messageD ataReceived(SimpleTcpReplicationManager.java:596) at org.apache.catalina.cluster.tcp.SimpleTcpCluster.messageDataReceived(Sim pleTcpCluster.java:580) at org.apache.catalina.cluster.io.ObjectReader.execute(ObjectReader.java:70 ) at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpRep licationThread.java:129) at org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationT hread.java:67) I changed SimpleTcpReplicationManager to output class names of the sessions it is trying to cast to ReplicatedSession and got the following picture: 11 Feb 2005 17:21:44 [Cluster-MembershipReceiver] INFO org.apache.catalina.cluster.tcp.SimpleTcpCluster - Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.56.21: 4001,192.168.56.21,4001, alive=3] 11 Feb 2005 17:21:49 [org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO org.apache.catalina.cluster.session.SimpleTcpReplicationManager - SessionClass=org.apache.catalina.cluster.session.ReplicatedSession 11 Feb 2005 17:21:49 [org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO org.apache.catalina.cluster.session.SimpleTcpReplicationManager - SessionClass=org.apache.catalina.cluster.session.ReplicatedSession 11 Feb 2005 17:21:49 [org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO org.apache.catalina.cluster.session.SimpleTcpReplicationManager - SessionClass=org.apache.catalina.cluster.session.ReplicatedSession 11 Feb 2005 17:21:49 [org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO org.apache.catalina.cluster.session.SimpleTcpReplicationManager - SessionClass=org.apache.catalina.cluster.session.ReplicatedSession 11 Feb 2005 17:21:49 [org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO org.apache.catalina.cluster.session.SimpleTcpReplicationManager - SessionClass=org.apache.catalina.cluster.session.ReplicatedSession 11 Feb 2005 17:21:49 [org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO org.apache.catalina.cluster.session.SimpleTcpReplicationManager - SessionClass=org.apache.catalina.cluster.session.ReplicatedSession 11 Feb 2005 17:21:49 [org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO org.apache.catalina.cluster.session.SimpleTcpReplicationManager - SessionClass=org.apache.catalina.cluster.session.ReplicatedSession 11 Feb 2005 17:21:49 [org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO org.apache.catalina.cluster.session.SimpleTcpReplicationManager - SessionClass=org.apache.catalina.cluster.session.ReplicatedSession 11 Feb 2005 17:21:49 [org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO org.apache.catalina.cluster.session.SimpleTcpReplicationManager - SessionClass=org.apache.catalina.cluster.session.ReplicatedSession 11 Feb 2005 17:21:49 [org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO org.apache.catalina.cluster.session.SimpleTcpReplicationManager - SessionClass=org.apache.catalina.cluster.session.ReplicatedSession 11 Feb 2005 17:21:49 [org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO org.apache.catalina.cluster.session.SimpleTcpReplicationManager - SessionClass=org.apache.catalina.cluster.session.ReplicatedSession 11 Feb 2005 17:21:49 [org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO org.apache.catalina.cluster.session.SimpleTcpReplicationManager - SessionClass=org.apache.catalina.cluster.session.ReplicatedSession 11 Feb 2005 17:21:49 [org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO org.apache.catalina.cluster.session.SimpleTcpReplicationManager - SessionClass=org.apache.catalina.cluster.session.ReplicatedSession 11 Feb 2005 17:21:49 [org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO org.apache.catalina.cluster.session.SimpleTcpReplicationManager - SessionClass=org.apache.catalina.cluster.session.ReplicatedSession 11 Feb 2005
Re: Tomcat vs Jetty
Peter Lin wrote: For those who are curious. I decided to run apache AB against jetty to see if there are any differences. Max Request/sec -- tomcat 5.5.4 - 5584 jetty 5.1.2 - 2486 the results suggest tomcat's throughput for 1k static content is 2x higher than the jetty 5.1.2. peter looks quite nice! have you tried resin on the same machine too? greetings, joe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat vs Jetty
On Feb 12, 2005, at 06:20, Peter Lin wrote: For those who are curious. I decided to run apache AB against jetty to see if there are any differences. If you are into this kind of micro-benchmarks, take a look at Simple: http://simpleweb.sourceforge.net/ Niall Gallagher ran some comparisons between Apache, Resin and Tomcat: http://simpleweb.sourceforge.net/performance/comparison.php Quite instructive :P Cheers -- PA, Onnay Equitursay http://alt.textdrive.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: commons-logging logger instances - how to initialize in replicated session objects
Hi, I'm maybe stepping out of my territory here, but I think that static members are not serialized/deserialized. To re-initialize your static logger maybe you should try to implement the readObject(java.io.ObjectInputStream in) method from the java.io.Serializable interface something like this: readObject(...) { super.readObject(...); log = LogFactory.getLog(...); } Hope this is of some help Trond - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: The requested resource (/myApp/servlet/TestingServlet) is not available.
Do some reading before trying to code: http://www.coreservlets.com/Apache-Tomcat-Tutorial/ There are several issues with your example - too many to answer in a simple email. You need to get a deeper understanding of the process before building things. If you learn best by doing, follow the steps of the tutorial, and you will do fine. Larry On Sat, 12 Feb 2005 16:33:45 +1100, Marco Mastrocinque [EMAIL PROTECTED] wrote: Hi All, I'm new to Tomcat and Servlets, I'm having a problem with one of my first Servlets: This is my program: import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; public class TestingServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); out.println(HTML); out.println(HEAD); out.println(TITLEServlet Testing/TITLE); out.println(/HEAD); out.println(BODY); out.println(Welcome to the Servlet Testing Center); out.println(/BODY); out.println(/HTML); } } This is my web.xml file: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; wep-app servlet servlet-nameTesting/servlet-name servlet-classTestingServlet/servlet-class /servlet /wep-app I'm using Tomcat version 5.0.28. I create the Directory structure under Tomcat, underneath the webapps subdirectory: myApp | WEB-INF | classes I compile the file TestingServlet.java using javac -classpath C:\tomcat\common\lib\servlet-api.jar TestingServlet.jar Place the file TestingServelt.jar in the classes subdirectory. Place the file web.xml file in the WEB-INF subdirectory. I start Tomcat. The manager application says it there, and it seems to be okay. I type in the address bar of IE the following http://locahost:8080/myApp/servlet/TestingServlet I get the following message, from Tomcat The requested resource (/myApp/servlet/TestingServlet) is not available. I know it should be pretty simple, but sometimes the simplest things are the hardest to correct! Any suggestions most appreciated. Thanks Marco Mastrocinque - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: commons-logging logger instances - how to initialize in replicated session objects
Thanks Trond, I had forgotten about readObject.That may be a better option than creating yet another utility method. Trond G. Ziarkowski wrote: Hi, I'm maybe stepping out of my territory here, but I think that static members are not serialized/deserialized. To re-initialize your static logger maybe you should try to implement the readObject(java.io.ObjectInputStream in) method from the java.io.Serializable interface something like this: readObject(...) { super.readObject(...); log = LogFactory.getLog(...); } Hope this is of some help Trond - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk dynamic update of workers.properties
On Sun, 6 Feb 2005 16:17:16 -0500, bt [EMAIL PROTECTED] wrote: Why ddi you want to update the workers2.properties file dynamically? Sorry, I might have been a bit unclear.. I meant if mod_jk could read updated workers.properties at runtime. We are using mod_jk2 now, and it can do that.. I am interested in knowing if mod_jk can do the same thing. E.g. adding more servers to the workers.properties while apache2 is running, and that mod_jk discovers this. If mod_jk can do this, I would rather use that one, since it is still supported, which mod_jk2 is not. The documenation recommends using mod_jk, since it is supported. It also states that several of the improvements in mod_jk2 are backported to mod_jk, but it fails to state which... -- Olve On Sat, 5 Feb 2005 09:17:32 +0100, Olve Hansen [EMAIL PROTECTED] wrote: On Fri, 4 Feb 2005 17:25:58 +0100, Olve Hansen [EMAIL PROTECTED] wrote: Haven't found docs about this anywher (i might be short sighted though). Can mod_jk dynamically update the contents of workers.properties? Or do I have to use mod_jk2 to be able to do that.. Nevermind (not that too many did mind :-) ) The graceful shutdown of server nodes is too complicated in mod_jk - I'll take the gamble (as it is officially unsopported), and go for mod_jk2... -- \ Olve S. Hansen \ mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- \ Olve S. Hansen \ mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
folder for my jsp files
Hi, i would like to know if my web application (using jsp files) must be in folder /tomcat 5.5/webapps absolutely, or if i can place it in some other disk or other folder ? thanks a lot, Maileen __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session lost on netscape, mozilla and firefox, but not IE
Hi all! I have a webapplication that has been running for 8 years, currently on tomcat 5.5, but recently I have been trying to access it from linux with firefox, and I notice that in some situatons the session is lost. It happens when I submit a form with method POST using javascript triggered from selecting a select option. I ave tried to find any info on this, but have not been successful. Is this perhaps a known issue? Feel free to direct me to relevant documentation. donV - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: folder for my jsp files
From: P.M [mailto:[EMAIL PROTECTED] Subject: folder for my jsp files i would like to know if my web application (using jsp files) must be in folder /tomcat 5.5/webapps absolutely, or if i can place it in some other disk or other folder ? Take a look at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html, especially the reference to the docBase attribute. Tthe manager app and the deployer package manipulate this field based on your input. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
twice typing user and password
Hi, since today, everytime that i want to access to /admin application of tomcat 5.5.7, i have to type twice username and password... nothing was changed in configuration... so where can it come from ? thx, Maileen __ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Session lost on netscape, mozilla and firefox, but not IE
I use the default configuration, the JSESSION cookie. -Opprinnelig melding- Fra: Robert Hunt [mailto:[EMAIL PROTECTED] Sendt: 12. februar 2005 19:15 Til: tomcat-user@jakarta.apache.org Emne: Session lost on netscape, mozilla and firefox, but not IE How is the session maintained; cookies or URL mangling? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : Security Newbie - Need Help
Not to prolong, I would think if this was the case of misplaced element, the DTD for the web.xml would make the Digester throw an exception because it does not conform. --- Luke [EMAIL PROTECTED] wrote: Hello; I finally got this. It turned out I had my: login-config auth-methodBASIC/auth-method /login-config Inside my security-constraint instead of being in the web-app. Once I moved this to the correct place in the document. Everything worked fine. Thanks to all that posted advice. Luke Luke Shannon Web Design/Development Java Programmer http://www.lukeshannon.com phone: 416-570-1984 - Original Message - From: Luke [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Friday, February 11, 2005 9:05 PM Subject: Re: RE : Security Newbie - Need Help Hi; I can't get the memory realm to work either. I am still getting the error below without a login prompt: HTTP Status 403 - Configuration error: Cannot perform access control without an authenticated principal type Status report message Configuration error: Cannot perform access control without an authenticated principal description Access to the specified resource (Configuration error: Cannot perform access control without an authenticated principal) has been forbidden. Apache Tomcat/5.0.27 This has to be something with my application, WEB-INF, server.xml. How should I proceed to trouble shoot? Thanks, Luke - Original Message - From: LERBSCHER Jean-Pierre [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Sent: Friday, February 11, 2005 12:21 AM Subject: RE : RE : Security Newbie - Need Help Could you try MemoryRealm to evict filter mechanisms (like firewall or router configuration) between your tomcat serve rand your database ? As you can see in the servlet specification the security-role element isn't optional. !ELEMENT web-app (icon?, display-name?, description?, distributable?, context-param*, filter*, filter-mapping*, listener*, servlet*, servlet-mapping*, session-config?, mimemapping*, welcome-file-list?, error-page*, taglib*, resourceenv- ref*, resource-ref*, security-constraint*, login-config?, security-role*, env-entry*, ejb-ref*, ejb-local-ref*) -Message d'origine- De : Luke [mailto:[EMAIL PROTECTED] Envoy�: vendredi 11 f�rier 2005 08:18 �: Tomcat Users List Objet : Re: RE : Security Newbie - Need Help Hi Dennis; Where is IMS defined? Otherwise I have specified everything as you recommended. Yet I still get this error once I hit the page (no login prompt): HTTP Status 403 - Configuration error: Cannot perform access control without an authenticated principal type Status report message Configuration error: Cannot perform access control without an authenticated principal description Access to the specified resource (Configuration error: Cannot perform access control without an authenticated principal) has been forbidden. Apache Tomcat/5.0.28 Thanks, Luke - Original Message - From: Dennis Payne [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, February 10, 2005 11:23 AM Subject: Re: RE : Security Newbie - Need Help you will not need a roles table for tomcat... it is only useful to your own applications that will edit the data. The system only utilizes the the user-role table and the user-password table (at least for basic authentication). Each servlet in the system that is secure is setup this way and has an associated mapping: servlet servlet-nameEnterAssignment/servlet-name display-nameEnterAssignment/display-name descriptionEnter Assignment/description servlet-classcom.mtc.ims.ia.servlet.EnterAssignment/servlet-class security-role-ref role-nameIMS/role-name role-linkIMS/role-link /security-role-ref /servlet ... servlet-mapping servlet-nameEnterAssignment/servlet-name url-pattern/servlet/EnterAssignment/url-pattern /servlet-mapping The server.xml contains a reference to the security tables by using the Realm tag placed as shown (there are other ways to do it) and all db driver jars have been place in the classpath: Engine defaultHost=localhost name=Catalina Host appBase=webapps name=localhost Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_log. suffix=.txt timestamp=true / Realm className=org.apache.catalina.realm.JDBCRealm connectionName=username connectionPassword=password connectionURL=jdbc:mysql://xxx.xxx.xxx.xxx:3306/dbname driverName=com.mysql.jdbc.Driver userRoleTable=userrole userTable=userpassword roleNameCol=userrole userNameCol=userid userCredCol=passwordid /
Re: RE : Security Newbie - Need Help
You are right. A lot of changes were made to my configuration based on advice I recieved on the forum. There could be several things that fixed my problem. The main thing is I know how to set it up now :-) Luke Luke Shannon Web Design/Development Java Programmer http://www.lukeshannon.com phone: 416-570-1984 - Original Message - From: sven morales [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Saturday, February 12, 2005 10:28 AM Subject: Re: RE : Security Newbie - Need Help Not to prolong, I would think if this was the case of misplaced element, the DTD for the web.xml would make the Digester throw an exception because it does not conform. --- Luke [EMAIL PROTECTED] wrote: Hello; I finally got this. It turned out I had my: login-config auth-methodBASIC/auth-method /login-config Inside my security-constraint instead of being in the web-app. Once I moved this to the correct place in the document. Everything worked fine. Thanks to all that posted advice. Luke Luke Shannon Web Design/Development Java Programmer http://www.lukeshannon.com phone: 416-570-1984 - Original Message - From: Luke [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Friday, February 11, 2005 9:05 PM Subject: Re: RE : Security Newbie - Need Help Hi; I can't get the memory realm to work either. I am still getting the error below without a login prompt: HTTP Status 403 - Configuration error: Cannot perform access control without an authenticated principal type Status report message Configuration error: Cannot perform access control without an authenticated principal description Access to the specified resource (Configuration error: Cannot perform access control without an authenticated principal) has been forbidden. Apache Tomcat/5.0.27 This has to be something with my application, WEB-INF, server.xml. How should I proceed to trouble shoot? Thanks, Luke - Original Message - From: LERBSCHER Jean-Pierre [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Sent: Friday, February 11, 2005 12:21 AM Subject: RE : RE : Security Newbie - Need Help Could you try MemoryRealm to evict filter mechanisms (like firewall or router configuration) between your tomcat serve rand your database ? As you can see in the servlet specification the security-role element isn't optional. !ELEMENT web-app (icon?, display-name?, description?, distributable?, context-param*, filter*, filter-mapping*, listener*, servlet*, servlet-mapping*, session-config?, mimemapping*, welcome-file-list?, error-page*, taglib*, resourceenv- ref*, resource-ref*, security-constraint*, login-config?, security-role*, env-entry*, ejb-ref*, ejb-local-ref*) -Message d'origine- De : Luke [mailto:[EMAIL PROTECTED] Envoy�: vendredi 11 f�rier 2005 08:18 �: Tomcat Users List Objet : Re: RE : Security Newbie - Need Help Hi Dennis; Where is IMS defined? Otherwise I have specified everything as you recommended. Yet I still get this error once I hit the page (no login prompt): HTTP Status 403 - Configuration error: Cannot perform access control without an authenticated principal type Status report message Configuration error: Cannot perform access control without an authenticated principal description Access to the specified resource (Configuration error: Cannot perform access control without an authenticated principal) has been forbidden. Apache Tomcat/5.0.28 Thanks, Luke - Original Message - From: Dennis Payne [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, February 10, 2005 11:23 AM Subject: Re: RE : Security Newbie - Need Help you will not need a roles table for tomcat... it is only useful to your own applications that will edit the data. The system only utilizes the the user-role table and the user-password table (at least for basic authentication). Each servlet in the system that is secure is setup this way and has an associated mapping: servlet servlet-nameEnterAssignment/servlet-name display-nameEnterAssignment/display-name descriptionEnter Assignment/description servlet-classcom.mtc.ims.ia.servlet.EnterAssignment/servlet-class security-role-ref role-nameIMS/role-name role-linkIMS/role-link /security-role-ref /servlet ... servlet-mapping servlet-nameEnterAssignment/servlet-name url-pattern/servlet/EnterAssignment/url-pattern /servlet-mapping The server.xml contains a reference to the security
tomcat fails db connection
Hi everybody, I've a problem with an application running under tomcat 4.1.27. Every one-two days tomcat stops connecting to the database. Tomcat is still responding, but no queries can be executed. Restarting tomcat solves the problem. We have apache 2.0.47 and jk2 connector, and DBCP to connect to a mysql database which lies on a different machine. Both the pc's OS are RH enterprise. There aren't connections left on the db (at least show processlist doesn't show them). The tomcat logs don't tell anything but the sqlException about db not responding. Mysql is always up and our perl scripts keep going without any problems. That must be a tomcat or dbcb issue, I guess. What could be the problem? Any ideas? Daniele Innocenti - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Automated tool for creating mime-multipart e-mail from web page
I'd like to push a copy of a web page via e-mail in a background Tomcat thread/servlet. The idea is to serve up-to-date news and info without requiring patrons/subscribers to follow a link to the original page or require them bypass the Outlook Express warning about some items blocked to prevent sender from identifying your computer. That is, I'd like to use Java (and javamail) to create a mime/multipart message that bundles *everything* including items from link, img and script (et. al.) tags. Much like the IE Save As... web page archive to create a .MHT from a URL -- but have it done in an automated fashion. Thanks.
startup.bat and shutdown
Hi, I've installed on windows XP, tomcat 5.5.7 and no startup.bat or shutdown files are available in bin folder or anywhere else. so, what is inside these files ? does anyone have some example ? thx, Maileen __ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: startup.bat and shutdown
From: P.M [mailto:[EMAIL PROTECTED] Subject: startup.bat and shutdown I've installed on windows XP, tomcat 5.5.7 and no startup.bat or shutdown files are available in bin folder or anywhere else. Looks like your install did not go well. You should see something like this: C:\jakarta-tomcat-5.5.7\bindir Volume in drive C has no label. Volume Serial Number is 44B0-3C2E Directory of C:\jakarta-tomcat-5.5.7\bin 2005-01-20 13:43DIR . 2005-01-20 13:43DIR .. 2005-01-19 21:4022,539 bootstrap.jar 2005-01-19 21:40 7,517 catalina.bat 2005-01-19 21:4010,734 catalina.sh 2005-01-19 21:40 9,386 commons-daemon.jar 2005-01-19 21:4026,202 commons-logging-api.jar 2005-01-19 21:40 511 cpappend.bat 2005-01-19 21:40 1,284 digest.bat 2005-01-19 21:40 848 digest.sh 2005-01-19 21:4073,008 jsvc.tar.gz 2005-01-19 21:40 3,956 service.bat 2005-01-19 21:40 2,013 setclasspath.bat 2005-01-19 21:40 2,737 setclasspath.sh 2005-01-19 21:40 1,273 shutdown.bat 2005-01-19 21:40 787 shutdown.sh 2005-01-19 21:40 1,274 startup.bat 2005-01-19 21:40 1,141 startup.sh 2005-01-19 21:41 102,400 tomcat5.exe 2005-01-19 21:41 131,072 tomcat5w.exe 2005-01-19 21:40 2,235 tool-wrapper.bat 2005-01-19 21:40 2,549 tool-wrapper.sh 2005-01-19 21:40 1,280 version.bat 2005-01-19 21:40 790 version.sh 22 File(s)405,536 bytes 2 Dir(s) 30,284,890,112 bytes free If you don't see the above, clear everything out and do the install again. I'd recommend not trying to install Tomcat as a Windows service until you have more experience with it. Much easier to fiddle with as a regular program than a service. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: startup.bat and shutdown
In fact, when you use the windows's installer, these files are not there.. you have also to download the zip file and to update the windows installation with the zip files. strange no ? Maileen --- Caldarale, Charles R [EMAIL PROTECTED] wrote: From: P.M [mailto:[EMAIL PROTECTED] Subject: startup.bat and shutdown I've installed on windows XP, tomcat 5.5.7 and no startup.bat or shutdown files are available in bin folder or anywhere else. Looks like your install did not go well. You should see something like this: C:\jakarta-tomcat-5.5.7\bindir Volume in drive C has no label. Volume Serial Number is 44B0-3C2E Directory of C:\jakarta-tomcat-5.5.7\bin 2005-01-20 13:43DIR . 2005-01-20 13:43DIR .. 2005-01-19 21:4022,539 bootstrap.jar 2005-01-19 21:40 7,517 catalina.bat 2005-01-19 21:4010,734 catalina.sh 2005-01-19 21:40 9,386 commons-daemon.jar 2005-01-19 21:4026,202 commons-logging-api.jar 2005-01-19 21:40 511 cpappend.bat 2005-01-19 21:40 1,284 digest.bat 2005-01-19 21:40 848 digest.sh 2005-01-19 21:4073,008 jsvc.tar.gz 2005-01-19 21:40 3,956 service.bat 2005-01-19 21:40 2,013 setclasspath.bat 2005-01-19 21:40 2,737 setclasspath.sh 2005-01-19 21:40 1,273 shutdown.bat 2005-01-19 21:40 787 shutdown.sh 2005-01-19 21:40 1,274 startup.bat 2005-01-19 21:40 1,141 startup.sh 2005-01-19 21:41 102,400 tomcat5.exe 2005-01-19 21:41 131,072 tomcat5w.exe 2005-01-19 21:40 2,235 tool-wrapper.bat 2005-01-19 21:40 2,549 tool-wrapper.sh 2005-01-19 21:40 1,280 version.bat 2005-01-19 21:40 790 version.sh 22 File(s)405,536 bytes 2 Dir(s) 30,284,890,112 bytes free If you don't see the above, clear everything out and do the install again. I'd recommend not trying to install Tomcat as a Windows service until you have more experience with it. Much easier to fiddle with as a regular program than a service. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HTMLArea and SpellCheck plugin
Any spellchecker support in this? -Original Message- From: Steffen Heil [mailto:[EMAIL PROTECTED] Sent: 11 February 2005 19:11 To: 'Tomcat Users List'; 'David Wall' Subject: AW: HTMLArea and SpellCheck plugin See http://www.fckeditor.net/ -Ursprüngliche Nachricht- Von: David Wall [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 11. Februar 2005 19:15 An: Tomcat Users List Betreff: Re: HTMLArea and SpellCheck plugin Anybody successfully implemented a tomcat webapp that uses the HTMLArea editor and the SpellChecker plugin (both free from Interactive Tools and Dynarch) ? What do people think about HTMLArea? It seems one of the only free HTML textarea type widgets out there. I think the latest has greater support than just IE, which is critical in a public web site. David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session lost on netscape, mozilla and firefox, but not IE
I've seen some browsers (Netscape) truncate the query string portion of an action URL in the form tag: form action=http://target.com/servlet?param=val; ... such that the target servlet receives the HTTP request without param=val, but that's usually with method=GET. Perhaps you should check the log to see if the session cookie is being set and returned by the POST.
Re: [OT] Automated tool for creating mime-multipart e-mail from web page
Robert Hunt wrote: I'd like to push a copy of a web page via e-mail in a background Tomcat thread/servlet. The idea is to serve up-to-date news and info without requiring patrons/subscribers to follow a link to the original page or require them bypass the Outlook Express warning about some items blocked to prevent sender from identifying your computer. That is, I'd like to use Java (and javamail) to create a mime/multipart message that bundles *everything* including items from link, img and script (et. al.) tags. Much like the IE Save As... web page archive to create a .MHT from a URL -- but have it done in an automated fashion. Thanks. why not send a pdf instead. huy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sysadmin question
Hello, I currently have a number of sites in /var/www/sites/virtual_site directories, and I would like to enable them all with JSP abilities. Can someone tell me what I should do with Tomcat 4 in order to accomplish this. I am very new to Tomcat setup but I want to get playing with Tomcat. -- You never see a farmer driving around a muddy field in a mini saying its for when i go to the city - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat fails db connection
Regurgitated: Using db pool. DB responding to other apps (outside Tomcat). Run mysqladmin extended-status -u username -p and see how many connections are open. Compare to the max connections in the connection pool. Try adding the removeAbandoned parameters to the dbcp setup. Set log to true. Sounds like you have a leak and are using up all of your connections in the pool. Doug - Original Message - From: Daniele [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Saturday, February 12, 2005 2:06 PM Subject: tomcat fails db connection Hi everybody, I've a problem with an application running under tomcat 4.1.27. Every one-two days tomcat stops connecting to the database. Tomcat is still responding, but no queries can be executed. Restarting tomcat solves the problem. We have apache 2.0.47 and jk2 connector, and DBCP to connect to a mysql database which lies on a different machine. Both the pc's OS are RH enterprise. There aren't connections left on the db (at least show processlist doesn't show them). The tomcat logs don't tell anything but the sqlException about db not responding. Mysql is always up and our perl scripts keep going without any problems. That must be a tomcat or dbcb issue, I guess. What could be the problem? Any ideas? Daniele Innocenti - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: folder for my jsp files
You can put them where ever you like. Look at the docBase attribute of Context http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html On Sat, 2005-02-12 at 11:14, P.M wrote: Hi, i would like to know if my web application (using jsp files) must be in folder /tomcat 5.5/webapps absolutely, or if i can place it in some other disk or other folder ? thanks a lot, Maileen __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Java.lang.ClassNotFoundException: listeners.ContextListener
Hi, You did answer not my question. Is this problem specific only to one web application? From your exception, it points to listeners.ContextListener not being found. Per your listenerlistener-class tags, you should have this ContextListener class in a package called listener. This class should appear at your myLogin/WEB-INF/classes/listeners/ or it can be inside a jar file located at myLogin/WEB-INF/lib/. You are getting this error because Tomcat cannot find it in either of those two locations.If you look at the servlet-examples or the jsp-examples that came with tomcat, you should have same directory(package) structure. Best for you to check your myLogin.war file, by expanding it and locating the subject missing class. aka_sergio --- Harry Douglass, Jr. [EMAIL PROTECTED] wrote: Maybe I am still not understanding, but where do I place what files? In all my other struts projects, I never had to this listeners.ContextListener error, but now all the sudden it occurs?! Is there a jar file I need or should I copy the ContextListener.class provided in the Tomcat 5 servlet-examples in a particular folder of my project? Thanks, Struts newbie, Harry -Original Message- From: sven morales [mailto:[EMAIL PROTECTED] Sent: Monday, February 07, 2005 6:16 PM To: Tomcat Users List Subject: Re: Java.lang.ClassNotFoundException: listeners.ContextListener Hi, Do you have this class located in your appname/WEB-INF/classes/listeners/ ? If not, do you have it located in the appname/WEB-INF/lib/*.jar ? Basically I think it is looking for your listener.ContextListener class. I would expand your war file and search for this class, then make sure it is put located in the right directory. This is the only web applications not launching right and the rest is working okay? So limit your search right around your war file. aka_sergio --- Harry Douglass, Jr. [EMAIL PROTECTED] wrote: Need some addition help! Unfortunately, I am still getting this error even with adding this tag to my web.xml file: listener listener-classlisteners.ContextListener/listener-class /listener I verified that I am using the correct DTD schema: !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; But, I am still getting this application error right when it is deploying my project on the server container: INFO: Deploying web application archive myLogin.war Feb 6, 2005 1:13:17 PM org.apache.catalina.core.ApplicationContext log SEVERE: Error configuring application listener of class listeners.ContextListener java.lang.ClassNotFoundException: listeners.ContextListener Feb 6, 2005 1:13:17 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Skipped installing application listeners due to previous error(s) Feb 6, 2005 1:13:17 PM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart Feb 6, 2005 1:13:17 PM org.apache.catalina.core.StandardContext start SEVERE: Context startup failed due to previous errors Feb 6, 2005 1:13:17 PM org.apache.catalina.core.ApplicationContext log Any more suggestions? Thanks, Harry Hi There, The web.xml will have the following xml tag tag in it listener listener-classclasspath/listener-class /listener It sounds like the class file referenced by this tag does not exist or that the class path is wrong. Thanks Pete -Original Message- From: Harry Douglass, Jr. [mailto:[EMAIL PROTECTED] Sent: 05 February 2005 22:57 To: tomcat-user@jakarta.apache.org Subject: Java.lang.ClassNotFoundException: listeners.ContextListener Hello, When my Tomcat 5 server is started, it gets a SEVERE error in the output which states: SEVERE: Error configuring application listener of class listeners.ContextListener Java.lang.ClassNotFoundException: listeners.ContextListener SEVERE: Error configuring application listener of class listerners.SessionListener Java.lang.ClassNotFoundException: listeners.SessionListener SEVERE: Skipped installing application listeners due to previous error(s). Can anyone help with why this is occurring everytime I start the Tomcat 5 server. Thanks in advance, Harry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ === message truncated ===