Difficulties with Windows 2000 Installation of Tomcat 4.1
Folks, I downloaded a copy of the Windows .zip file for the Tomcat 4.1 distribution over the weekend. I believe I unzipped it satisfactorily and extracted all of the files into an unoccupied directory. Then, I ran the self-extracting file to create the operational version of the Tomcat server and its documentation. I am running a Windows 2000 machine that is not connected to any outside network. The following happened during installation, as the Apache version of an install shield operated: 1. A large number of files were extracted and placed in the directory serving as the root of the subdirectories for the server: C:\Program Files\Apache Group\Tomcat 4.1\ 2. At some point near the end of the file extraction, the installation window stopped and asked for the administrator name and password. The default administrator name was admin. I accepted the default and entered a password that I wrote down. 3. As the installation entered its terminal phases, I noticed the fatal words stream past - almost faster than I could read - starting Tomcat server. 4. Then the installation process ended, the install shield disappeared, and I reentered my normal world of interacting with the computer (after a fashion). I went ahead and tried some of the obvious things I expected to do - like setting the environment variable %CATALINA_PATH%. Then I tried to follow the testing procedure where you turn on the server and turn it off. Neither seemed to have any effect on the service. I tried the administrator and the manager interfaces. No clue there as to how to turn the (bloody) service on or off. I noticed that the task monitor had tomcat.exe running as a process. I tried stopping it with the task monitor. No luck - it just kept going. I found that when I selected Tomcat 4.1 with the Program popup menu, I had some icons that indicated I could stop or start the server by pushing them. They didn't seem to have any effect on the server operation as it appeared in the task manager. I even restarted the machine - no effect as far as the task manager is concerned. I could also check that I was able to read web pages through localhost:8080 and that the example JSP's worked through the MS IE browser version 5.5 - and even Netscape 6.1. Now I admit to admiring programs that are robust in their operation - and this service seems to fit that description admirably. However, I will admit to a certain curiosity as to how one does actually stop this server - not to mention a desire to retain a certain amount of human control over this thing that has now taken over a modest corner of my machine. That's the first question! In the process of trying to gain some control, I tried to read some of the documentation that came with this release. Alas, it seems to apply to release 4.0 of Tomcat. This leads to the second question: is there additional documentation for 4.1 that is like the .txt kind of files that go with the 4.0 release? In addition, the documentation seems intended for people familiar with Unix or Linux. Those of us who use GUI's because we're old and are tending to become forgetful and feeble-minded because of our (admittedly perverse) addiction to Windows seem to have been left out of the directions. Ditto for the web pages that are part of the tomcat documentation. I was particularly interested in how I might turn on the cgi interface with the server. I had compiled an Ada program (I know, how unsociable of me - but there you are, some of us are still out there compiling away) that accepted input and then sent back a stream of text that looks like an HTML page. Because of the unix flavor or the HTML documentation and the 4.0 release text file, I wasn't able to be sure I'd done the following things correctly: a. Had I modified the web.xml file in the right location (the right location wasn't clear from the Unix-based documentation for names)? b. Where was the proper subdirectory to put the file with the executable - was it a subdirectory that already existed or did I need to create one? (experimenting with MSIE, it looked like I should use the examples directory - but that didn't seem to work) c. Do I just drop the file in with its existing name (Minimal.exe), or do I need to change the name or extension? d. Should the executable file be in Java for Tomcat or can I use an executable based on compiling and linking in another language? So there you are. Any answers would be appreciated. Bruce R. Barkstrom [EMAIL PROTECTED] (757) 864-5676 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat running as an win 2000 service
Some help please. How do specify how much memory is allocated to the JVM when I run tomcat as a service. Thanks.
client authentification with tomcat 4.1
hi. have anybody managed to enable client authentification with tomcat 4.1either stand alone or in the combination apache 1.3.x / tomcat 4.1 ? client authentification in the combination apache 1.3.x / tomcat 3.x works fine regards oliver bruening Da E-Mails leicht unter fremdem Namen erstellt oder manipuliert werden koennen, muessen wir zu Ihrem und unserem Schutz die rechtliche Verbindlichkeit der vorstehenden Erklaerungen ausschliessen. Die fuer die Stadtsparkasse Koeln geltenden Regeln ueber die Verbindlichkeit von rechtsgeschaeftlichen Erklaerungen mit verpflichtendem Inhalt bleiben unberuehrt. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat running as an win 2000 service
Nicolas, You have an option of specifying how much memory needs to be alloted for JVM. Madhav -Original Message- From: Nicolas Piroué [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 3:47 AM To: [EMAIL PROTECTED] Subject: Tomcat running as an win 2000 service Some help please. How do specify how much memory is allocated to the JVM when I run tomcat as a service. Thanks.
RE: Tomcat 5 - 302 issue resolved??? (please please please)
Ah. Good to know. Didn't even know about that list. :) Thanks. Neal -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 8:08 PM To: 'Tomcat Users List' Subject: RE: Tomcat 5 - 302 issue resolved??? (please please please) The BEST PLACE to get your question answered for Tomcat 5 is tomcat-dev, not tomcat-users. The people actually writing the code you are asking about pay attention to tomcat-dev a lot more than tomcat-users. John -Original Message- From: neal [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 5:51 PM To: Tomcat Users List Subject: Tomcat 5 - 302 issue resolved??? (please please please) There was a discussion a month or two ago about fixing the issue wherein Tomcat *redirects* to the welcome page rather than forwarding to it. For instance, www.abc.com would be redirected to www.abc.com/index.html. Was this issue in fact resolved in Tomcat 5.0? I attempted to take a look at the change log but its empty. :( http://jakarta.apache.org/tomcat/tomcat-5.0-doc/CHANGELOG.txt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 5 - 302 issue resolved??? (please please please)
Ah. Do you know then how long it might be until that sort of thing is implemented? I'm *REALLY* looking forward to it! :) Thanks. Neal -Original Message- From: news [mailto:[EMAIL PROTECTED]]On Behalf Of Bill Barker Sent: Tuesday, January 21, 2003 10:46 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat 5 - 302 issue resolved??? (please please please) The answer for Tomcat 5 is not yet. There seems to be a consensus on the dev list that this will at least be an option, but it will need to be included in the new Mapper that is required to handle the new welcome-page behavior in the current draft of the 2.4 Servlet spec. Turner, John [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... The BEST PLACE to get your question answered for Tomcat 5 is tomcat-dev, not tomcat-users. The people actually writing the code you are asking about pay attention to tomcat-dev a lot more than tomcat-users. John -Original Message- From: neal [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 5:51 PM To: Tomcat Users List Subject: Tomcat 5 - 302 issue resolved??? (please please please) There was a discussion a month or two ago about fixing the issue wherein Tomcat *redirects* to the welcome page rather than forwarding to it. For instance, www.abc.com would be redirected to www.abc.com/index.html. Was this issue in fact resolved in Tomcat 5.0? I attempted to take a look at the change log but its empty. :( http://jakarta.apache.org/tomcat/tomcat-5.0-doc/CHANGELOG.txt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Difficulties with Windows 2000 Installation of Tomcat 4.1
First, the little bit of not being able to stop the server, yeah you can stop it, but the tomcate (according to what I read from your email) implies that it is running as a service. If you want to stop it you need to open the win2k service and stop it. Set it to manual so that it doesn't run on startup if you need to . Secondly the documentation bits: I think the version of tomcat you download should contain the correct documentation for that tomcat. If you really need to look at the 4.1 docs take a look here: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html Are the documentations geared towards Unix or linux gurus? Sounds like a loaded question to me :), but if you asked me it was ok for me. About the cgi bit, the reference is here: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/cgi-howto.html , rather brief and I haven't tried using it yet. Finally is it statements like this : $CATALINA_BASE/server/lib/ which imply unix or linux like docs :) ? Just substitute $CATALINA_BASE with where you installed tomcat. uh, hope this clears things up a bit. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
tag lib prob
I'm trying to download a tag lib and make run but it's giving me the following client error: Browser check is unidentified I have done the following to try to make it work 1.. Download jar into yourapp/WEB-INF/lib diectory 2.. place the .tld file into my yourapp/WEB_INF directory 3.. place intoyour jsp page the following code to test it : %@ taglib uri=menus-taglib.tld prefix=menu % menu:ddmenu name=first menu:ddmenu text=Item1 link=link1.htm / menu:ddmenu text=Item2 link=link2.htm menu:ddmenu text=Item21 link=link21.htm / menu:ddmenu text=Item22 link=link22.htm / /menu:ddmenu menu:ddmenu text=Item2 link=link2.htm / /menu:ddmenu Please advice
Re: tag lib prob
I'm trying to download a tag lib and make run but it's giving me the following client error: Browser check is unidentified I have done the following to try to make it work 1.. Download jar into yourapp/WEB-INF/lib diectory 2.. place the .tld file into my yourapp/WEB_INF directory 3.. place intoyour jsp page the following code to test it : %@ taglib uri=menus-taglib.tld prefix=menu % menu:ddmenu name=first menu:ddmenu text=Item1 link=link1.htm / menu:ddmenu text=Item2 link=link2.htm menu:ddmenu text=Item21 link=link21.htm / menu:ddmenu text=Item22 link=link22.htm / /menu:ddmenu menu:ddmenu text=Item2 link=link2.htm / /menu:ddmenu Please advice Random answer, but it might work :) try stopping and starting Tomcat (Not restarting but a full stop/start) Eithier that or you may have to adjust your web.xml file under WEB-INF, then again this is another random answer :) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How do I make a silent installation of Tomcat?
Hi Does anybody know how to make a silent installation of jakarta-tomcat-4.1.10-LE-jdk14.exe? I know you can make a /S option but it still tells you that it found the Java Develpment Kit in c:\something Are there other command line parameters for NSIS 1.98? M.
Persistence on session
Hi, I do not want my session to persist over shutdown and restart of tomcat is there a way to configure it for all context by default in Tomcat 4.0 (or for a simple webapp). Thomas -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Log full of such messages CoyoteAdapter An exception or error occurred..Tomcat 4.1.18
Hello all My catalina.log full of exception messages: 2003-01-21 08:36:06 CoyoteAdapter An exception or error occurred in the container during the request java.lang.IllegalArgumentException: Cookie name Path is a reserved token at javax.servlet.http.Cookie.init(Cookie.java:185) at org.apache.coyote.tomcat4.CoyoteAdapter.parseCookies(CoyoteAdapter.java:402) at org.apache.coyote.tomcat4.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:306) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:221) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:632) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:590) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:707) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530) at java.lang.Thread.run(Thread.java:536) What is wrong with my server? How to fix it? Tomcat version is 4.1.18. OS RedHat Linux 7.2. j2sdk 1.4.0_01 Thanks ahead Andrew. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcatAuthentication=false and getRemoteUser returning null in recent versions of Tomcat
Jacob, However, I've tested both Tomcat-4.1.18 and Tomcat-4.1.19 and both seem to ignore the tomcatAuthentication=false. add request.tomcatAuthentication=true to jk2.properties, it should work this way.. Saludos, Ignacio J. Ortega -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Opening Files Outside Context
I know for a fact the path is correct - when I run exactly the same code with exactly the same file path it works... When I attempt to open the same file path in Tomcat I get a FileNotFoundException. The path is networked and on a different drive (h:) from the Tomcat and when I moved the target file to the same, local drive (c:) it worked. Obviously either Java cannot see networked drives or some sort of file filter is in place. Strange... -- Ricardo Gladwell, Java Developer WD Internet Group, Engineering [t] (020) 8222 2723 [m] (07734) 813 187 -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED]] Sent: 21 January 2003 18:21 To: Tomcat Users List Subject: Re: Opening Files Outside Context I have no problem opening file outsite my context, Make sure you have the file path setup correctly -D - Original Message - From: Erik Price [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, January 21, 2003 9:47 AM Subject: Re: Opening Files Outside Context Gladwell, Ricardo X -ND wrote: Hi All, I have written a JavaBean accessed from a JSP page in Tomcat 4.1 that opens a file to read from. However, when I open the file using the FileInputStream constructor I get a FileNotFoundException. This method works outside of Tomat on the same machine - the file exists, the path is correct even if it is on a networked drive. I assume this is a security feature - the file is outside the webapps directory. What I would like to know is there anyway of allowing Tomcat web applications to accessing files outside their container, either through changing settings in the web.xml or server.xml files or through the Tomcat admin tool? Did you already try getServletContext().getResourceAsStream()? What I have learned (yesterday) is that it is best to register an external file in the web.xml as a ContextParameter and then use getServletContext().getInitParameter() to refer to the file. This forces whoever is deploying your app to make sure that there is in fact a resource available (and provides a means to change the path of that resource without going into the code to do so). Just some advice, I suspect you can use getResourceAsStream() without consulting the ServletContext for the resource. Erik -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Apache with SSL + Tomcat, problems retrieving SSL_CLIENT_CERT
Hi all, I am trying retrieve the client certificate from a servlet: Object ostrX509 = request.getAttribute(javax.servlet.request.X509Certificate); if (ostrX509 == null) { is null!! but I can get the cipher suite: String cipherSuite = (String) request.getAttribute(javax.servlet.request.cipher_suite); is RC4-MD5 The output file catalina.out shows the error GRAVE: Certificate convertion failed. *Output with security provider SUN: GRAVE: Certificate convertion failed java.security.cert.CertificateException: Unable to initialize, java.io.IOException: DerInputStream.getLength(): lengthTag=108, too big. at sun.security.x509.X509CertImpl.init(X509CertImpl.java:287) at sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:94) at java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:389) at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:395) at org.apache.coyote.Response.action(Response.java:222) at org.apache.coyote.tomcat4.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:310) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:221) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:632) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:590) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:707) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530) at java.lang.Thread.run(Thread.java:536) Caused by: java.io.IOException: DerInputStream.getLength(): lengthTag=108, too big. at sun.security.util.DerInputStream.getLength(DerInputStream.java:513) at sun.security.util.DerInputStream.getLength(DerInputStream.java:487) at sun.security.util.DerValue.init(DerValue.java:233) at sun.security.util.DerInputStream.getDerValue(DerInputStream.java:369) at sun.security.x509.X509CertImpl.parse(X509CertImpl.java:1568) at sun.security.x509.X509CertImpl.init(X509CertImpl.java:284) *Output with security provider IAIK: GRAVE: Certificate convertion failed java.security.cert.CertificateException: iaik.asn1.CodingException: ASN1: NumericString does not support getComponentAt(int)! at iaik.x509.X509Certificate.b(Unknown Source) at iaik.x509.X509Certificate.decode(Unknown Source) at iaik.x509.X509Certificate.init(Unknown Source) at iaik.x509.CertificateFactory.engineGenerateCertificate(Unknown Source) at java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:389) at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:395) at org.apache.coyote.Response.action(Response.java:222) at org.apache.coyote.tomcat4.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:310) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:221) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:632) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:590) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:707) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530) at java.lang.Thread.run(Thread.java:536) My http configuration is: IfDefine SSL Listen 443 AddType application/x-x509-ca-cert .crt AddType application/x-pkcs7-crl.crl SSLSessionCache dbm:logs/ssl_scache SSLSessionCacheTimeout 300 SSLMutex file:logs/ssl_mutex SSLRandomSeed startup builtin SSLRandomSeed connect builtin VirtualHost _default_:443 SSLEngine on SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL SSLCertificateFile /usr/local/apache2/conf/cert/shire.umu.euro6ix.org.pem SSLCertificateKeyFile /usr/local/apache2/conf/cert/shire.umu.euro6ix.orgKey.der.p1 SSLCACertificateFile /usr/local/apache2/conf/cert/Euro6IX_Root_PKI_IV.pem SSLVerifyClient require SSLVerifyDepth 10 SSLOptions +StdEnvVars +ExportCertData What am I missing? Any help greatly appreciated! Félix -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat LE 4.1.10 launch time from a CD
Hi here, I have developped a CDROM application that contains the Tomcat 4.1.10 LE distribution. The Tomcat server is started from the CD by double clicking on a start.bat file. On my Windows 2000 which runs on a Pentium 4, 1.6 Ghz with 520 Mb RAM, the Tomcat Launch time is some 5 seconds. On a Windows 95 box running on a Pentium 400 Mhz with 128 Mb RAM, the Tomcat Launch time is some 50 seconds. Are there any solution to decrease such a launch time ? My application just use the default Coyote HTTP connector, and no other. There is just one user session, as it is a CDROM application. Thanks for any help, Franck -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How to tune Tomcat launch time ?
Hi here, I have developped a CDROM application that contains the Tomcat 4.1.10 LE distribution. The Tomcat server is started from the CD by double clicking on a start.bat file. On my Windows 2000 which runs on a Pentium 4, 1.6 Ghz with 520 Mb RAM, the Tomcat Launch time is some 5 seconds. On a Windows 95 box running on a Pentium 400 Mhz with 128 Mb RAM, the Tomcat Launch time is some 50 seconds. Are there any solution to decrease such a launch time ? My application just use the default Coyote HTTP connector. There is just one user session, as it is a CDROM application. Thanks for any help, Franck -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
SESSION BETWEEN TWO CONTEXT
Hi All, well and wish the same.. I have two contexts in tomcat... In context1 I put some session variables...how to access these variables in context2...should I put in session or in application variable...does tomcat provide some way to declare varibales for all context withing Host Element thanks in advance Laxmikanth * Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
how do i make a context automatically reload jsp files then theychange?
all i have found is reloadable option, the manuals says: Set to true if you want Catalina to monitor classes in /WEB-INF/classes/ and /WEB-INF/lib for changes, and automatically reload the web application if a change is detected. This feature is very useful during application development, but it requires significant runtime overhead and is not recommended for use on deployed production applications. You can use the Manager web application, however, to trigger reloads of deployed applications on demand. but this does not include jsp files, also ,as i understand, there is no need to reload the whole web application if one jsp file changes. Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: how do i make a context automatically reload jsp files then they change?
Also try putting the following sub-element for your context (in server.xml) to reload your context after a specified interval. In the example below I am specifying auto-reloading after every 3 seconds Loader className=org.apache.catalina.loader.WebappLoader loaderClass=org.apache.catalina.loader.WebappClassLoader checkInterval=3 / No need for reloadable to be true for JSP pages, unless you have java beans being used that are placed in the classes folder under WEB-INF. Regards, Rommel Sharma. -Original Message- From: Alexander Piavka [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 4:44 PM To: Tomcat Users List Subject: how do i make a context automatically reload jsp files then they change? all i have found is reloadable option, the manuals says: Set to true if you want Catalina to monitor classes in /WEB-INF/classes/ and /WEB-INF/lib for changes, and automatically reload the web application if a change is detected. This feature is very useful during application development, but it requires significant runtime overhead and is not recommended for use on deployed production applications. You can use the Manager web application, however, to trigger reloads of deployed applications on demand. but this does not include jsp files, also ,as i understand, there is no need to reload the whole web application if one jsp file changes. Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Non-persisting session manager for 4.1.x?
If you want to disable persisting session info in SESSIONS.ser for a context, use the Manager element with empty string as value for the pathname attribute in server.xml. Manager element should occur within the Context element. Example configuration for examples context Context path = /examples docBase = webapps/examples Manager pathname = / /Context If you want disable this for all the web applications, use the Manager element within the Host element. Thanks, Shanmugam. PL Jacob Kjome wrote: I'm almost positive that there is a flag to turn off persistent sessions, but I can't remember what it is. Read the docs carefully. I'm pretty sure it is there. Jake At 03:24 PM 1/21/2003 -0800, you wrote: There doesn't appear to be a standard non-persisting session manager for 4.1.18, am I mistaken? And I can't seem to configure the StandardManager to not bother. Is it simply a matter of extending org.apache.catalina.session.StandardManager and overriding load/unload? Simply, at the moment we've already decided that our app essentially does not care about sessions after a restart. So, I can either create a proper class, or tweak our startup script to blast the SESSIONS.ser file before start up. Any thoughts and/or hints? Thanx! Regards, Will Hartung ([EMAIL PROTECTED]) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Difficulties with Windows 2000 Installation of Tomcat 4.1
From what it sounds like, you installed Tomcat twice, once as a service, once as a user-level application, and are trying to use the user-level application shortcuts to manage the service, which won't happen. My HOWTO describes the whole process in detail: http://www.johnturner.com/howto If you don't want to use Apache and a connector, just ignore those parts and focus on the Tomcat part. You don't need Apache and a connector unless you want them. They are optional. Basically, AFAIK there is no self-extracting file in the ZIP distribution. There is a .exe distribution, which runs the Tomcat installer. This is not the same thing as the ZIP distribution. Maybe you only have one installation and I am just not clear on what you mean by self-extracting file. From what I know, the ZIP distribution for Windows is equivalent to the binary distribution of Tomcat for UNIX/Linux, which has no installer. The .EXE distribution for Windows is equivalent to the RPM distribution for Linux. If you run the .EXE file, you don't have to do anything but use the Services control applet to start and stop Tomcatyou don't even need to set CATALINA_HOME. Check my HOWTO, it might help. John -Original Message- From: Bruce Barkstrom [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 7:15 PM To: [EMAIL PROTECTED] Subject: Difficulties with Windows 2000 Installation of Tomcat 4.1 Folks, I downloaded a copy of the Windows .zip file for the Tomcat 4.1 distribution over the weekend. I believe I unzipped it satisfactorily and extracted all of the files into an unoccupied directory. Then, I ran the self-extracting file to create the operational version of the Tomcat server and its documentation. I am running a Windows 2000 machine that is not connected to any outside network. The following happened during installation, as the Apache version of an install shield operated: 1. A large number of files were extracted and placed in the directory serving as the root of the subdirectories for the server: C:\Program Files\Apache Group\Tomcat 4.1\ 2. At some point near the end of the file extraction, the installation window stopped and asked for the administrator name and password. The default administrator name was admin. I accepted the default and entered a password that I wrote down. 3. As the installation entered its terminal phases, I noticed the fatal words stream past - almost faster than I could read - starting Tomcat server. 4. Then the installation process ended, the install shield disappeared, and I reentered my normal world of interacting with the computer (after a fashion). I went ahead and tried some of the obvious things I expected to do - like setting the environment variable %CATALINA_PATH%. Then I tried to follow the testing procedure where you turn on the server and turn it off. Neither seemed to have any effect on the service. I tried the administrator and the manager interfaces. No clue there as to how to turn the (bloody) service on or off. I noticed that the task monitor had tomcat.exe running as a process. I tried stopping it with the task monitor. No luck - it just kept going. I found that when I selected Tomcat 4.1 with the Program popup menu, I had some icons that indicated I could stop or start the server by pushing them. They didn't seem to have any effect on the server operation as it appeared in the task manager. I even restarted the machine - no effect as far as the task manager is concerned. I could also check that I was able to read web pages through localhost:8080 and that the example JSP's worked through the MS IE browser version 5.5 - and even Netscape 6.1. Now I admit to admiring programs that are robust in their operation - and this service seems to fit that description admirably. However, I will admit to a certain curiosity as to how one does actually stop this server - not to mention a desire to retain a certain amount of human control over this thing that has now taken over a modest corner of my machine. That's the first question! In the process of trying to gain some control, I tried to read some of the documentation that came with this release. Alas, it seems to apply to release 4.0 of Tomcat. This leads to the second question: is there additional documentation for 4.1 that is like the .txt kind of files that go with the 4.0 release? In addition, the documentation seems intended for people familiar with Unix or Linux. Those of us who use GUI's because we're old and are tending to become forgetful and feeble-minded because of our (admittedly perverse) addiction to Windows seem to have been left out of the directions. Ditto for the web pages that are part of the tomcat documentation. I was particularly interested in how I might turn on the cgi interface with the server. I
RE: REBOOT MACHINE
At 18:08 22/1/2003 +1100, you wrote: What's actually happening when you try to shutdown? Ie: error messages? Or just nothing. I receive an error message Is tomcat running as a service or via the command line? Service Generally speaking if the env params are wrong they'll spit an error to that effect (can't find TOMCAT_HOME or similar) if you're running from the command line. By that I mean if you're stopping and starting using the batch files in TOMCAT_HOME/bin If you're running as a service you should still be getting some sort of useable error message up. Without knowing more all I can suggest is that you recheck all your environment variables for accuracy (location wise that is) and typos carefully. At last option a reboot will effectively stop and start the thing of course, but if I remember rightly it's just that you're trying to avoid. Give us some more information and someone here will be able to help more specifically. Cheers Tref -- Tref Gare Development Consultant Areeba Level 19/114 William St, Melbourne VIC 3000 email: [EMAIL PROTECTED] phone: +61 3 9642 5553 fax: +61 3 9642 1335 website: http://www.areeba.com.au -- This email is intended only for the use of the individual or entity named above and contains information that is confidential. No confidentiality is waived or lost by any mis-transmission. If you received this correspondence in error, please notify the sender and immediately delete it from your system. You must not disclose, copy or rely on any part of this correspondence if you are not the intended recipient. Any communication directed to clients via this message is subject to our Agreement and relevant Project Schedule. Any information that is transmitted via email which may offend may have been sent without knowledge or the consent of Areeba. -- -Original Message- From: Mauricio Matias [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 22 January 2003 11:05 AM To: Tomcat Users List Subject: Re: REBOOT MACHINE Win 2k Now I know that when i tried to shutdown tomcat nothing happens, so, i cant shutdown that, do you know why? At 18:30 21/1/2003 -0500, you wrote: At 09:11 PM 1/21/2003 -0200, Mauricio Matias wrote: Hey people, is normal i have to reboot my comp when I change anything in classhpath or server.xml or web.xml. It isnt enough restart Tomcat. It's not normal. A change in either XML file should (IIRC) take effect the next time you start Tomcat, no matter what. Can you give more detail, like what OS you're using, etc.? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: client authentification with tomcat 4.1
have anybody managed to enable client authentification with tomcat 4.1either stand alone or in the combination apache 1.3.x / tomcat 4.1 ? I did it stand-alone and have not experienced ANY problems. client authentification in the combination apache 1.3.x / tomcat 3.x works fine aamof, I've done it only with Tomcat 4.0/4.1, so I don't know if it has changed from 3.x Maybe you can tell us more than it does not work? Holger -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problem with Unix Sockets jk2/Apache2/Tomcat4.1
Hello, I've searched around and have not found an answer to my question so I'm hopeful that I'm not asking something that has been asked 100 times before. If I am, I would appreciate being pointed in the proper direction. I am running: Apache 2.0.43 Tomcat 4.1.18 Jk2 connector Linux RedHat V8 I would like to set up an environment where the Tomcat engine was accessed via a TCP IP port from an external (to the platform) Apache webserver. No problem. That's working fine. At the same time, I would like to have an Apache webserver local to the box running Tomcat access the servlet engine via a Unix socket connection. That's where my problem lies. I can't seem to figure out the proper servers.xml Connector statement, jk2.properties channelUnix statement, workers2.properties channel.un statement. With the TCP IP connection, it's easy to see how all three statements correlate - the port number is defined in all three statements. I don't understand how the Unix socket connection definitions correlate. There isn't a port number specified Any help that anyone can give would be greatly appreciated. Also, if you have a description of the corresponding worker uri definitions from the workers2.properties, I'd appreciate it. Is there a place where this is well documented? Again, I apologize to the group if this is the million+1 time this has been asked. Bill Morgan [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: how do i make a context automatically reload jsp files then theychange?
Also try putting the following sub-element for your context (in server.xml) to reload your context after a specified interval. In the example below I am specifying auto-reloading after every 3 seconds Loader className=org.apache.catalina.loader.WebappLoader loaderClass=org.apache.catalina.loader.WebappClassLoadercheckInterval=3 / No need for reloadable to be true for JSP pages, unless you have java beans being used that are placed in the classes folder under WEB-INF. Thanks a lot this work fine. But according to this configuration the context will be auto-reloaded every 3 seconds even if no jsp page has changed, because reloadable=false. Isn't it better to make reloadable=true also so that the context is reloaded only if the resources(jsp pages) have changed. As the manual says about checkInterval: The number of seconds between checks for modified classes and resources, if reloadable has been set to true. The default is 15 seconds as i understand resources also include jsp pages outside /WEB-INF/classes/ and /WEB-INF/lib please advice, thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Non persistence session for Tomcat 4.0
I read the answer for subject Non-persisting session manager for 4.1.x? so does Manager pathname = / in the Host works for Tomcat 4.0. I confirm it works for Context but don't for Host, is there another way to do it? Thomas -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problem with Unix Sockets jk2/Apache2/Tomcat4.1
Are you getting error in catalina.out in $CATALINA_HOME/logs? If so, could you post them? Someone else recently posted a similar RFA in the last week -- same topic, similar build characteristics. : -Original Message- : From: Morgan, Bill [mailto:[EMAIL PROTECTED]] : Sent: Wednesday, January 22, 2003 8:16 AM : To: '[EMAIL PROTECTED]' : Subject: Problem with Unix Sockets jk2/Apache2/Tomcat4.1 : : : Hello, : : I've searched around and have not found an answer to my : question so I'm hopeful that I'm not asking something that : has been asked 100 times before. If I am, I would appreciate : being pointed in the proper direction. : : I am running: : Apache 2.0.43 : Tomcat 4.1.18 : Jk2 connector : Linux RedHat V8 : : I would like to set up an environment where the Tomcat engine : was accessed via a TCP IP port from an external (to the : platform) Apache webserver. No problem. That's working : fine. At the same time, I would like to have an Apache : webserver local to the box running Tomcat access the servlet : engine via a Unix socket connection. That's where my problem lies. : : I can't seem to figure out the proper servers.xml Connector : statement, jk2.properties channelUnix statement, : workers2.properties channel.un statement. With the TCP IP : connection, it's easy to see how all three statements : correlate - the port number is defined in all three : statements. I don't understand how the Unix socket connection : definitions correlate. There isn't a port number specified : : Any help that anyone can give would be greatly appreciated. : Also, if you have a description of the corresponding worker : uri definitions from the workers2.properties, I'd appreciate it. : : Is there a place where this is well documented? Again, I : apologize to the group if this is the million+1 time this has : been asked. : : Bill Morgan : [EMAIL PROTECTED] : : : : -- : To unsubscribe, e-mail: : mailto:tomcat-user-: [EMAIL PROTECTED] : For : additional commands, : e-mail: mailto:[EMAIL PROTECTED] : -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Strange Class Loading problem
you can not have any class in /common/lib that needs to access a class in /WEB-INF/lib because /common is shared between all webapps. When trying to find a class, the classloader will query up the classloader heirarchy, but not down. See the classloader doc which explains this in more detail. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html Charlie -Original Message- From: Jeremy Cavagnolo [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 3:28 PM To: [EMAIL PROTECTED] Subject: Strange Class Loading problem Hello: I am new to the list. Thanks in advance for any help. Also, I am using Version 4.1.12. I am deploying my web application with app-specific class files and jar files in /WEB-INF/classes and /WEB-INF/lib respectively. When I start tomcat, these messages appear in my log file: WebappLoader[/MSQ]: Deploying class repositories to work directory /var/tomcat4/work/Apache/server/MSQ WebappLoader[/MSQ]: Deploy class files /WEB-INF/classes to /var/tomcat4/webapps/MSQ/WEB-INF/classes WebappLoader[/MSQ]: Deploy JAR /WEB-INF/lib/msq-data.jar to /var/tomcat4/webapps/MSQ/WEB-INF/lib/msq-data.jar WebappLoader[/MSQ]: Deploy JAR /WEB-INF/lib/msq-util.jar to /var/tomcat4/webapps/MSQ/WEB-INF/lib/msq-util.jar indicating that tomcat is finding my classes and my libraries. However, Whenever I make a request that relies on these classes, I get a ClassNotFoundException. When I copy the classes and jars to {$CATALINA_HOME}/common/classes and {$CATALINA_HOME}/common/lib, everything works. Any insight? Thanks, Jeremy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
context reloading with allowLinking does not work in 4.1.18 for jsp
I have a context for jsp, inside the context root tree there are also links to directories on other file systems, i.e links which point outside from the context root tree (this is so since i need one jsp context for many users,so each link points to some user directory there he/she can place jsp files). So i had to enable allowLinking which works fine. But jsp files ,which are outside of the context root tree, do not get reloaded if they change. On the other hand file ,which are under context root tree, are reloaded ok. Here is the relevant part of my Context configuration: ... Context path=/catalina/jsp docBase=sys/jsp debug=0 reloadable=true crossContext=true workDir=work/jsp Loader className=org.apache.catalina.loader.WebappLoader loaderClass=org.apache.catalina.loader.WebappClassLoader checkInterval=5 workDir=work/jsp / Resources className=org.apache.naming.resources.FileDirContext allowLinking=true docBase= / ... Thanks a lot. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
request.setCharacterEncoding(charset) problem?
Hi, we are using Tomcat 4.1.12 in a Windows 2000 development environment and Tomcat 4.0.3 in a Solaris production environment. We have a JSP page that handles search queries and is supposed to be internationalized. The JSP page makes sure to set the UTF-8 charset so that the browser wil use this encoding for the FORM parameters in the POST request. Inside the JSP page, the method request.setCharacterEncoding(UTF-8) is used before using request.getParameter() so as to ensure that Tomcat decodes the POST bytestring as UTF-8 (instead of the default ISO-8859-1). The problem I have, is that the behaviour under Windows is different from that under Solaris: on my Windows platform, the request.setCharacterEncoding(UTF-8) does not seem to have any effect at all, i.e. when I send a ü character (0xFC), it still gets decoded as two separate characters by Tomcat as ISO-8859-1. On the Solaris platform, it seems to work fine... Did anyone encountered the same problem or knows of this? Or do do I have to go and look into the Tomcat source code? Any light shed on this would be very helpfull, thanks! Regards, Ing. FRA Vermeulen Senior J2EE Architect ECM Solutions - Eindhoven mobiel: +31 (0) 6 222 03 856 e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Opening Files Outside Context
I believe it has been discussed before that Java cannot see network drives. Jake At 10:07 AM 1/22/2003 +, you wrote: I know for a fact the path is correct - when I run exactly the same code with exactly the same file path it works... When I attempt to open the same file path in Tomcat I get a FileNotFoundException. The path is networked and on a different drive (h:) from the Tomcat and when I moved the target file to the same, local drive (c:) it worked. Obviously either Java cannot see networked drives or some sort of file filter is in place. Strange... -- Ricardo Gladwell, Java Developer WD Internet Group, Engineering [t] (020) 8222 2723 [m] (07734) 813 187 -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED]] Sent: 21 January 2003 18:21 To: Tomcat Users List Subject: Re: Opening Files Outside Context I have no problem opening file outsite my context, Make sure you have the file path setup correctly -D - Original Message - From: Erik Price [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, January 21, 2003 9:47 AM Subject: Re: Opening Files Outside Context Gladwell, Ricardo X -ND wrote: Hi All, I have written a JavaBean accessed from a JSP page in Tomcat 4.1 that opens a file to read from. However, when I open the file using the FileInputStream constructor I get a FileNotFoundException. This method works outside of Tomat on the same machine - the file exists, the path is correct even if it is on a networked drive. I assume this is a security feature - the file is outside the webapps directory. What I would like to know is there anyway of allowing Tomcat web applications to accessing files outside their container, either through changing settings in the web.xml or server.xml files or through the Tomcat admin tool? Did you already try getServletContext().getResourceAsStream()? What I have learned (yesterday) is that it is best to register an external file in the web.xml as a ContextParameter and then use getServletContext().getInitParameter() to refer to the file. This forces whoever is deploying your app to make sure that there is in fact a resource available (and provides a means to change the path of that resource without going into the code to do so). Just some advice, I suspect you can use getResourceAsStream() without consulting the ServletContext for the resource. Erik -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Help: Tomcat swallowOutput, system.err, catalina.out and my log
We are trying to have our errors (SYSTEM.ERR, SYSTEM.OUT) sent to web-app specific logs, instead of catalina.out. We thought that the following would work, but seqreq_log_XXX only ends up with Java errors, everything else goes to catalina.out: !-- Tomcat seqreq Context -- Context path=/seqreq docBase=seqreq debug=0 reloadable=true crossContext=true swallowOutput=true Logger className=org.apache.catalina.logger.FileLogger prefix=seqreq_log. suffix=.txt timestamp=true verbosity=4/ Resources className=org.apache.naming.resources.FileDirContext allowLinking=true/ /Context Is there something else we need to modify? Thanks, Sarah - With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs
RE: Memory Allocation
Howdy, Whoa there ;) Be very careful about some things: - The amount of memory tomcat takes on startup is variable. This changes with tomcat version, OS version, JDK version, configured webapps and their listeners / filters / load-on-startup servlets, any Loggers/Valves/Realms configured for tomcat in server.xml, etc. As you can see this is many variables. - Using a debugger such as JProbe or OptimizeIt may inflate the memory usage of a system by a factor of 10 or more. - What the other guy said about the default heap set at 64MB -- the default heap MAXIMUM is set as 64MB. The default minimum is very small, again depending on JDK version and flags used. For an illustration, try the following: - Set -Xmx10m in your JAVA_OPTS to allow only 10MB on the heap. - Start tomcat without a debugger. You shouldn't have a problem. - Try to start tomcat with a debugger. See what happens ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Hari Venkatesan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 4:21 PM To: [EMAIL PROTECTED] Subject: Memory Allocation Tomcat when starting uses 60M memory in heap. Why is that it is using so much memory in heap. I found this by running jprobe memory debugger. I have just one application in the context of server.xml file and don't think the entire application gets loaded into memory. After doing a full garbage collection, the heap memory comes down to 11M. Is something going wrong or is it the way tomcat behaves? Hari -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
STRUTS
hello im trying to install struts i copied the war files to the webapps dir the lib/* to the webapps/struts-example/lib and i get this : 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: javax/servlet/jsp/tagext/TagSupport at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:530) at java.lang.Thread.run(Thread.java:536) root cause java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagSupport at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:250) at java.net.URLClassLoader.access$100(URLClassLoader.java:54) at java.net.URLClassLoader$1.run(URLClassLoader.java:193) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:292) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1340) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1274) at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:714) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:809) at org.apache.jasper.compiler.Parser.parse(Parser.java:122) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:199) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:153) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:223) at
OT: sendRedirect URL not in browser history
When using sendredirect() from a servlet, the URL of the redirected page doesn't show in the browser's (IE 6.02) history/back button list. For example, in our login servlet: public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { ... response.sendRedirect(Welcome.jsp); } redirects correctly to Welcome.jsp, but the URL doesn't show in the browser history. Can someone explain why and/or how to get it to show? We're using Tomcat 4.1.12 on NT btw. Thanks in advance. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
log4j xml time stamp and extention
Hi, Finally I am in the process of using Log4j. I am using log4j.xml.DOMConfigurator. In the configuration xml file, I am supplying a file name. How do I specify addition of time stamp to file name and an extention, just like we do in server.xml Logger tag? Thanks in advance.. Madhav
[OFF-TOPIC] RE: log4j xml time stamp and extention
Howdy, This is the tomcat user list, not the log4j list. Please post log4j questions there or at least indicate this by adding [OFF-TOPIC] to your subject. The answer is to use a pattern layout that includes the time, such as TTCC or ISO8601. See the log4j javadoc for org.apache.log4j.PatternLayout for details. Yoav Shapira Millennium ChemInformatics -Original Message- From: Madhava Reddy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 9:52 AM To: '[EMAIL PROTECTED]' Subject: log4j xml time stamp and extention Hi, Finally I am in the process of using Log4j. I am using log4j.xml.DOMConfigurator. In the configuration xml file, I am supplying a file name. How do I specify addition of time stamp to file name and an extention, just like we do in server.xml Logger tag? Thanks in advance.. Madhav -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [OFF-TOPIC] RE: log4j xml time stamp and extention
Howdy, This is the tomcat user list, not the log4j list. Please post log4j questions there or at least indicate this by adding [OFF-TOPIC] to your subject. hmm... Sorry for that.. The answer is to use a pattern layout that includes the time, such as TTCC or ISO8601. See the log4j javadoc for org.apache.log4j.PatternLayout for details. Thanks for reply. Madhav
MySQL Hell
Hello all, i have been breaking my brain trying to get connection pooling, using Tomcat 4.1.12's build in dbcp, with mySQL 3.23. I have followed the instructions on the how this should be done, and I am getting an exception when I try to get a connection .. (like many other people it seems).. If anyone has solved this problem.. or has a link to a forum where this problem is answered please let me know.. I have downloaded mysql-connector-java-2.0.14.zip I unzipped it and copied : * the contents of WEB-INF/lib to my lib folder * contents of com to my WEB-INF/classes folder * contents of org to my WEB-INF/classes folder (this *does* contain org.gjt.mm.mysql.Driver) This does not work. My jsp test code follows, and the Exception occurs on getConnection()... %@ page language=java import=java.sql.*, javax.sql.*, javax.naming.* errorPage=error.jsp % % Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup(java:/comp/env); DataSource ds = (DataSource)envContext.lookup(jdbc/mehdi); Connection conn = ds.getConnection(); % Exception is java.sql.SQLException: Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver' SERVER.XML Context path=/mysql docBase=mysql debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/mehdi auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/mehdi parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !-- Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle all of your db connections. Set to 0 for no limit. -- parameter namemaxActive/name value100/value /parameter !-- Maximum number of idle dB connections to retain in pool. Set to 0 for no limit. -- parameter namemaxIdle/name value30/value /parameter !-- Maximum time to wait for a dB connection to become available in ms, in this example 10 seconds. An Exception is thrown if this timeout is exceeded. Set to -1 to wait indefinitely. -- parameter namemaxWait/name value1/value /parameter !-- MySQL dB username and password for dB connections -- parameter nameusername/name valuemehdi/value /parameter parameter namepassword/name valuemypass/value /parameter !-- Class name for mm.mysql JDBC driver -- parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter !-- The JDBC connection url for connecting to your MySQL dB. The autoReconnect=true argument to the url makes sure that the mm.mysql JDBC Driver will automatically reconnect if mysqld closed the connection. mysqld by default closes idle connections after 8 hours. -- parameter nameurl/name valuejdbc:mysql://localhost:3306/mehdi?autoReconnect=true/value /parameter /ResourceParams /Context running out of time, and hair. Thanks, Med -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat running as an win 2000 service
Take a look at the following site. It gives you a feeler of how to do it. Once you run the batch file, it updates the Win2000 registry entries for you. From there you can play with it. http://www.mattkelli.com/tech/tomcat/ntservice.htm -Original Message- From: Nicolas Piroué [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 9:47 PM To: [EMAIL PROTECTED] Subject: Tomcat running as an win 2000 service Some help please. How do specify how much memory is allocated to the JVM when I run tomcat as a service. Thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: MySQL Hell
I'd suggest looking at the comments in the examples for DBCP about how the examples need to be run. The required JDBC driver needs to be pre-loaded for it to work. If you have any further questions you should probably send them to the commons mailing list. Hamish -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 4:14 PM To: Tomcat Users List Subject: MySQL Hell Hello all, i have been breaking my brain trying to get connection pooling, using Tomcat 4.1.12's build in dbcp, with mySQL 3.23. I have followed the instructions on the how this should be done, and I am getting an exception when I try to get a connection .. (like many other people it seems).. If anyone has solved this problem.. or has a link to a forum where this problem is answered please let me know.. I have downloaded mysql-connector-java-2.0.14.zip I unzipped it and copied : * the contents of WEB-INF/lib to my lib folder * contents of com to my WEB-INF/classes folder * contents of org to my WEB-INF/classes folder (this *does* contain org.gjt.mm.mysql.Driver) This does not work. My jsp test code follows, and the Exception occurs on getConnection()... %@ page language=java import=java.sql.*, javax.sql.*, javax.naming.* errorPage=error.jsp % % Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup(java:/comp/env); DataSource ds = (DataSource)envContext.lookup(jdbc/mehdi); Connection conn = ds.getConnection(); % Exception is java.sql.SQLException: Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver' SERVER.XML Context path=/mysql docBase=mysql debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/mehdi auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/mehdi parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !-- Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle all of your db connections. Set to 0 for no limit. -- parameter namemaxActive/name value100/value /parameter !-- Maximum number of idle dB connections to retain in pool. Set to 0 for no limit. -- parameter namemaxIdle/name value30/value /parameter !-- Maximum time to wait for a dB connection to become available in ms, in this example 10 seconds. An Exception is thrown if this timeout is exceeded. Set to -1 to wait indefinitely. -- parameter namemaxWait/name value1/value /parameter !-- MySQL dB username and password for dB connections -- parameter nameusername/name valuemehdi/value /parameter parameter namepassword/name valuemypass/value /parameter !-- Class name for mm.mysql JDBC driver -- parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter !-- The JDBC connection url for connecting to your MySQL dB. The autoReconnect=true argument to the url makes sure that the mm.mysql JDBC Driver will automatically reconnect if mysqld closed the connection. mysqld by default closes idle connections after 8 hours. -- parameter nameurl/name valuejdbc:mysql://localhost:3306/mehdi?autoReconnect=true/value /parameter /ResourceParams /Context running out of time, and hair. Thanks, Med -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: MySQL Hell
We have encountered strange results when drivers are loaded in the WEB-INF folders we reccommend having the sysadmin putting them in the TOMCAT_HOME/common/lib folder -jason pyeron On Wed, 22 Jan 2003, Barney Hamish wrote: I'd suggest looking at the comments in the examples for DBCP about how the examples need to be run. The required JDBC driver needs to be pre-loaded for it to work. If you have any further questions you should probably send them to the commons mailing list. Hamish -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 4:14 PM To: Tomcat Users List Subject: MySQL Hell Hello all, i have been breaking my brain trying to get connection pooling, using Tomcat 4.1.12's build in dbcp, with mySQL 3.23. I have followed the instructions on the how this should be done, and I am getting an exception when I try to get a connection .. (like many other people it seems).. If anyone has solved this problem.. or has a link to a forum where this problem is answered please let me know.. I have downloaded mysql-connector-java-2.0.14.zip I unzipped it and copied : * the contents of WEB-INF/lib to my lib folder * contents of com to my WEB-INF/classes folder * contents of org to my WEB-INF/classes folder (this *does* contain org.gjt.mm.mysql.Driver) This does not work. My jsp test code follows, and the Exception occurs on getConnection()... %@ page language=java import=java.sql.*, javax.sql.*, javax.naming.* errorPage=error.jsp % % Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup(java:/comp/env); DataSource ds = (DataSource)envContext.lookup(jdbc/mehdi); Connection conn = ds.getConnection(); % Exception is java.sql.SQLException: Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver' SERVER.XML Context path=/mysql docBase=mysql debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/mehdi auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/mehdi parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !-- Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle all of your db connections. Set to 0 for no limit. -- parameter namemaxActive/name value100/value /parameter !-- Maximum number of idle dB connections to retain in pool. Set to 0 for no limit. -- parameter namemaxIdle/name value30/value /parameter !-- Maximum time to wait for a dB connection to become available in ms, in this example 10 seconds. An Exception is thrown if this timeout is exceeded. Set to -1 to wait indefinitely. -- parameter namemaxWait/name value1/value /parameter !-- MySQL dB username and password for dB connections -- parameter nameusername/name valuemehdi/value /parameter parameter namepassword/name valuemypass/value /parameter !-- Class name for mm.mysql JDBC driver -- parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter !-- The JDBC connection url for connecting to your MySQL dB. The autoReconnect=true argument to the url makes sure that the mm.mysql JDBC Driver will automatically reconnect if mysqld closed the connection. mysqld by default closes idle connections after 8 hours. -- parameter nameurl/name valuejdbc:mysql://localhost:3306/mehdi?autoReconnect=true/value /parameter /ResourceParams /Context running out of time, and hair. Thanks, Med -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron http://www.pyerotechnics.com - - Owner Lead Pyerotechnics Development, Inc. - - +1 410 808 6646 (c) 500 West University Parkway #1S - - +1 410 467 2266 (f) Baltimore, Maryland 21210-3253 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private
RE: Opening Files Outside Context
Ricardo, I know for a fact the path is correct - when I run exactly the same code with exactly the same file path it works... When I attempt to open the same file path in Tomcat I get a FileNotFoundException. The path is networked and on a different drive (h:) from the Tomcat and when I moved the target file to the same, local drive (c:) it worked. Obviously either Java cannot see networked drives or some sort of file filter is in place. Strange... Did you run Tomcat as a Service? If you do, A service can not use mapped network drives if not configured to be run by an user with network access, you will need to change from the user in the service configuration to Administrator or a user with acces with the same mapped drive confiigured. Another source of troubles are Java security plicy, AFAIK tc 4.1 run with security policies activated, so probably you will need to grant some acces to your servlet.. Saludos, Ignacio J. Ortega application/ms-tnef-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Best Practice for Searching Archive?
Where can I find a comprehensive archive for tomcat? The information in this email is confidential and may be legally privileged. It is intended solely for the addressee, and access by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you believe that you have received this email in error, please advise us by calling (901) 385 3688, or emailing [EMAIL PROTECTED], and then delete this message and all copies and backups thereof. Thank you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: MySQL Hell
Not really related, but I thought I'd mention that the driver has been renamed to com.mysql.jdbc.Driver. (The one you're using remains as a wrapper for backwards compatibility.) Mike. - Original Message - From: Jason Pyeron [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 22, 2003 3:23 PM Subject: RE: MySQL Hell We have encountered strange results when drivers are loaded in the WEB-INF folders we reccommend having the sysadmin putting them in the TOMCAT_HOME/common/lib folder -jason pyeron On Wed, 22 Jan 2003, Barney Hamish wrote: I'd suggest looking at the comments in the examples for DBCP about how the examples need to be run. The required JDBC driver needs to be pre-loaded for it to work. If you have any further questions you should probably send them to the commons mailing list. Hamish -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 4:14 PM To: Tomcat Users List Subject: MySQL Hell Hello all, i have been breaking my brain trying to get connection pooling, using Tomcat 4.1.12's build in dbcp, with mySQL 3.23. I have followed the instructions on the how this should be done, and I am getting an exception when I try to get a connection .. (like many other people it seems).. If anyone has solved this problem.. or has a link to a forum where this problem is answered please let me know.. I have downloaded mysql-connector-java-2.0.14.zip I unzipped it and copied : * the contents of WEB-INF/lib to my lib folder * contents of com to my WEB-INF/classes folder * contents of org to my WEB-INF/classes folder (this *does* contain org.gjt.mm.mysql.Driver) This does not work. My jsp test code follows, and the Exception occurs on getConnection()... %@ page language=java import=java.sql.*, javax.sql.*, javax.naming.* errorPage=error.jsp % % Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup(java:/comp/env); DataSource ds = (DataSource)envContext.lookup(jdbc/mehdi); Connection conn = ds.getConnection(); % Exception is java.sql.SQLException: Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver' SERVER.XML Context path=/mysql docBase=mysql debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/mehdi auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/mehdi parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !-- Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle all of your db connections. Set to 0 for no limit. -- parameter namemaxActive/name value100/value /parameter !-- Maximum number of idle dB connections to retain in pool. Set to 0 for no limit. -- parameter namemaxIdle/name value30/value /parameter !-- Maximum time to wait for a dB connection to become available in ms, in this example 10 seconds. An Exception is thrown if this timeout is exceeded. Set to -1 to wait indefinitely. -- parameter namemaxWait/name value1/value /parameter !-- MySQL dB username and password for dB connections -- parameter nameusername/name valuemehdi/value /parameter parameter namepassword/name valuemypass/value /parameter !-- Class name for mm.mysql JDBC driver -- parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter !-- The JDBC connection url for connecting to your MySQL dB. The autoReconnect=true argument to the url makes sure that the mm.mysql JDBC Driver will automatically reconnect if mysqld closed the connection. mysqld by default closes idle connections after 8 hours. -- parameter nameurl/name valuejdbc:mysql://localhost:3306/mehdi?autoReconnect=true/value /parameter /ResourceParams /Context running out of time, and hair. Thanks, Med -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron http://www.pyerotechnics.com - - Owner Lead Pyerotechnics Development, Inc. - - +1 410 808 6646 (c) 500 West University Parkway #1S - - +1 410 467 2266
RE: Memory Allocation
Shapira, Thanks for your suggestion. When you startup Tomcat with -Xms10m and -Xmx10m it does a lot of Full GC before it can bring up and finally settles down to use 7.2megs using a debugger. Without a debugger tomcat still comes up after doing a lot of Full GC's. I have just one application in my context in my server.xml and have just 2 load-on-startup servlets which is not big (one gets the roles from ldap server which loads a maximum of 5 roles and the other starts up log4j. No Realms have been defined. I use Win2k, Tomcat 4.1.12 and JDK 1.3.1_06. Without Using jprobe or OptimizeIt is there a way to check how much memory has been used. Hari -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 9:29 AM To: Tomcat Users List Subject: RE: Memory Allocation Howdy, Whoa there ;) Be very careful about some things: - The amount of memory tomcat takes on startup is variable. This changes with tomcat version, OS version, JDK version, configured webapps and their listeners / filters / load-on-startup servlets, any Loggers/Valves/Realms configured for tomcat in server.xml, etc. As you can see this is many variables. - Using a debugger such as JProbe or OptimizeIt may inflate the memory usage of a system by a factor of 10 or more. - What the other guy said about the default heap set at 64MB -- the default heap MAXIMUM is set as 64MB. The default minimum is very small, again depending on JDK version and flags used. For an illustration, try the following: - Set -Xmx10m in your JAVA_OPTS to allow only 10MB on the heap. - Start tomcat without a debugger. You shouldn't have a problem. - Try to start tomcat with a debugger. See what happens ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Hari Venkatesan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 4:21 PM To: [EMAIL PROTECTED] Subject: Memory Allocation Tomcat when starting uses 60M memory in heap. Why is that it is using so much memory in heap. I found this by running jprobe memory debugger. I have just one application in the context of server.xml file and don't think the entire application gets loaded into memory. After doing a full garbage collection, the heap memory comes down to 11M. Is something going wrong or is it the way tomcat behaves? Hari -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Best Practice for Searching Archive?
Howdy, My fav is AIMS: http://marc.theaimsgroup.com/?w=2 I wish more people would do what you're doing, that is actually bother to search the archives before posting questions that have been answered a million times ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: John Ruffin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 10:23 AM To: 'Tomcat Users List' Subject: Best Practice for Searching Archive? Where can I find a comprehensive archive for tomcat? The information in this email is confidential and may be legally privileged. It is intended solely for the addressee, and access by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you believe that you have received this email in error, please advise us by calling (901) 385 3688, or emailing [EMAIL PROTECTED], and then delete this message and all copies and backups thereof. Thank you. -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Memory Allocation
Hi, No Realms have been defined. I use Win2k, Tomcat 4.1.12 and JDK 1.3.1_06. Have you tried this across different JVM? I'd be curious about that. Without Using jprobe or OptimizeIt is there a way to check how much memory has been used. Runtime.getRuntime().freeMemory(); Runtime.getRuntime().totalMemory(); Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Memory Allocation
Hi, I can try with IBM's version and also with sun's JVM1.4.1_01 and let you know about it. Thanks for your input. Hari -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 10:36 AM To: Tomcat Users List Subject: RE: Memory Allocation Hi, No Realms have been defined. I use Win2k, Tomcat 4.1.12 and JDK 1.3.1_06. Have you tried this across different JVM? I'd be curious about that. Without Using jprobe or OptimizeIt is there a way to check how much memory has been used. Runtime.getRuntime().freeMemory(); Runtime.getRuntime().totalMemory(); Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How to implement this
Hi FRIENDS: can anybody give me a concept about implement ONE SIGNIN at the same time? if I use servlet or jsp to implement it the way I consider about is below: 1 record the sessionId and userId in some media(db), then we'll know who is login and who is not 2 use a demon program to determine whole sessionId which is live and correspond to db's data if some session is dead then demon program will remove from db how to get whole sessionId which is live? does it work or anybody has more intellegent idea about it? thanks
Resion to Tomcat Conversion
A few more notes about my experiences switching from Resin to Tomcat 4.1.18. I am enjoying the enforcement of standards. I know a lot more about what is going on and really see the effects of configuration and code changes. The performance of Tomcat for development is far superior to Resin. By this I mean the start and stop time of the Tomcat service is about 1/2 the time of a Resin stop and restart. The retention of session information across restarts saves reauthentication in the HTML test process. The integration of Tomcat with Eclipse is really nice. If you use console logging, you don't even really need the debugger since the generation of the log corresponds directly to the page manipulation. The jdbc integration is better than expected as is the integration with Apache 2.0. There were a few issues with differences between the configuration example and the documentation on the web, but they were simple to work through. I don't quite understand the ADMIN and MANAGER and why they don't pick up my datasources an web applications that were manually coded in server.xml and web.xml but that is for another day. Thanks to all the folks who did such a nice job on these tools. Edgar
Re: MySQL Hell
Thanks for your advice on which groups to try Barney - it was very useful to someone out there... jason, that worked - all I had to do was put the classes and jars in ~/common/classes and common/lib respectively Many thanks, Med mwm tomcatuserlist@ward-muTo: Tomcat Users List [EMAIL PROTECTED] rphy.co.ukcc: Subject: Re: MySQL Hell 22/01/2003 15:28 Please respond to Tomcat Users List Not really related, but I thought I'd mention that the driver has been renamed to com.mysql.jdbc.Driver. (The one you're using remains as a wrapper for backwards compatibility.) Mike. - Original Message - From: Jason Pyeron [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 22, 2003 3:23 PM Subject: RE: MySQL Hell We have encountered strange results when drivers are loaded in the WEB-INF folders we reccommend having the sysadmin putting them in the TOMCAT_HOME/common/lib folder -jason pyeron On Wed, 22 Jan 2003, Barney Hamish wrote: I'd suggest looking at the comments in the examples for DBCP about how the examples need to be run. The required JDBC driver needs to be pre-loaded for it to work. If you have any further questions you should probably send them to the commons mailing list. Hamish -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 4:14 PM To: Tomcat Users List Subject: MySQL Hell Hello all, i have been breaking my brain trying to get connection pooling, using Tomcat 4.1.12's build in dbcp, with mySQL 3.23. I have followed the instructions on the how this should be done, and I am getting an exception when I try to get a connection .. (like many other people it seems).. If anyone has solved this problem.. or has a link to a forum where this problem is answered please let me know.. I have downloaded mysql-connector-java-2.0.14.zip I unzipped it and copied : * the contents of WEB-INF/lib to my lib folder * contents of com to my WEB-INF/classes folder * contents of org to my WEB-INF/classes folder (this *does* contain org.gjt.mm.mysql.Driver) This does not work. My jsp test code follows, and the Exception occurs on getConnection()... %@ page language=java import=java.sql.*, javax.sql.*, javax.naming.* errorPage=error.jsp % % Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup(java:/comp/env); DataSource ds = (DataSource)envContext.lookup(jdbc/mehdi); Connection conn = ds.getConnection(); % Exception is java.sql.SQLException: Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver' SERVER.XML Context path=/mysql docBase=mysql debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/mehdi auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/mehdi parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !-- Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle all of your db connections. Set to 0 for no limit. -- parameter namemaxActive/name value100/value /parameter !-- Maximum number of idle dB connections to retain in pool. Set to 0 for no limit. -- parameter namemaxIdle/name value30/value /parameter !-- Maximum time to wait for a dB connection to become available in ms, in this example 10 seconds. An Exception is thrown if this timeout is exceeded. Set to -1 to wait indefinitely. -- parameter namemaxWait/name value1/value /parameter !-- MySQL dB username and password for dB connections -- parameter
Re: How to implement this
Heny - If you are referring to single-signon, all you have to do is uncomment the single-signon value in server.xml and restart. That way, when a user logs in to one webapp, the roles will automatically be applicable to any other webapp on the server. Tomcat will create a cookie names JSESSIONIDSSO and which will have this 'global' session id. Regards, Lajos Henry wrote: Hi FRIENDS: can anybody give me a concept about implement ONE SIGNIN at the same time? if I use servlet or jsp to implement it the way I consider about is below: 1 record the sessionId and userId in some media(db), then we'll know who is login and who is not 2 use a demon program to determine whole sessionId which is live and correspond to db's data if some session is dead then demon program will remove from db how to get whole sessionId which is live? does it work or anybody has more intellegent idea about it? thanks -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: MySQL Hell
you dont want to put 'your' classes there only shared libraries. hope things work well On Wed, 22 Jan 2003 [EMAIL PROTECTED] wrote: Thanks for your advice on which groups to try Barney - it was very useful to someone out there... jason, that worked - all I had to do was put the classes and jars in ~/common/classes and common/lib respectively Many thanks, Med mwm tomcatuserlist@ward-muTo: Tomcat Users List [EMAIL PROTECTED] rphy.co.ukcc: Subject: Re: MySQL Hell 22/01/2003 15:28 Please respond to Tomcat Users List Not really related, but I thought I'd mention that the driver has been renamed to com.mysql.jdbc.Driver. (The one you're using remains as a wrapper for backwards compatibility.) Mike. - Original Message - From: Jason Pyeron [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 22, 2003 3:23 PM Subject: RE: MySQL Hell We have encountered strange results when drivers are loaded in the WEB-INF folders we reccommend having the sysadmin putting them in the TOMCAT_HOME/common/lib folder -jason pyeron On Wed, 22 Jan 2003, Barney Hamish wrote: I'd suggest looking at the comments in the examples for DBCP about how the examples need to be run. The required JDBC driver needs to be pre-loaded for it to work. If you have any further questions you should probably send them to the commons mailing list. Hamish -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 4:14 PM To: Tomcat Users List Subject: MySQL Hell Hello all, i have been breaking my brain trying to get connection pooling, using Tomcat 4.1.12's build in dbcp, with mySQL 3.23. I have followed the instructions on the how this should be done, and I am getting an exception when I try to get a connection .. (like many other people it seems).. If anyone has solved this problem.. or has a link to a forum where this problem is answered please let me know.. I have downloaded mysql-connector-java-2.0.14.zip I unzipped it and copied : * the contents of WEB-INF/lib to my lib folder * contents of com to my WEB-INF/classes folder * contents of org to my WEB-INF/classes folder (this *does* contain org.gjt.mm.mysql.Driver) This does not work. My jsp test code follows, and the Exception occurs on getConnection()... %@ page language=java import=java.sql.*, javax.sql.*, javax.naming.* errorPage=error.jsp % % Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup(java:/comp/env); DataSource ds = (DataSource)envContext.lookup(jdbc/mehdi); Connection conn = ds.getConnection(); % Exception is java.sql.SQLException: Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver' SERVER.XML Context path=/mysql docBase=mysql debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/mehdi auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/mehdi parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !-- Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle all of your db connections. Set to 0 for no limit. -- parameter namemaxActive/name value100/value /parameter !-- Maximum number of idle dB connections to retain in pool. Set to 0 for no limit. -- parameter namemaxIdle/name value30/value /parameter !-- Maximum time to wait for a dB connection to become available in ms, in this example 10 seconds. An Exception is thrown if this timeout is exceeded. Set to -1 to wait indefinitely. -- parameter namemaxWait/name
request.setCharacterEncoding(charset) problem? - The solution!
Hi, this is a continuation of my earlier mail concerning the ineffectiveness of the request.setCharacterEncoding(charset) method on my development platform. I've found the cause of this and it is something worth noting if you plan to develop internationalized JSP's or servlets. It turns out that I changed the logging verbosity level of Jasper (in the conf/web.xml file), setting it to DEBUG for debugging puposes. This causes Jasper to print out the request parameters by calling request.getParameter() for each parameter in the POST, without setting any charset... And yes, the getParameter(0 method of HttpRequestBase checks to see if it has been called already and returns the existing parameter map. So when my JSP page calls request.getParameter() it receives the result of the first call (by Jasper) so that the call to request.setCharacterEncoding(charset) has no effect since the decoding is not repeated at this point! If I change Jasper's logging level to ERROR, everything works fine as the getParameter() is called the first time from my JSP page only. This definitely is a bug as far as I'm concerned, since setting DEBUG level should not influence the behaviour of the software, agree? Regards, Ing. FRA Vermeulen Senior J2EE Architect ECM Solutions - Eindhoven mobiel: +31 (0) 6 222 03 856 e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re-name mod_jk2-2.0.43.so to mod_jk2.so?
Is it necessary to re-name mod_jk2-2.0.43.so to mod_jk2.so when I use this connector with apache 2.0.43 and tomcat4-4.1.18? thanks, Phil
RE: Re-name mod_jk2-2.0.43.so to mod_jk2.so?
No, as long as your LoadModule line in httpd.conf matches. John -Original Message- From: pcampaigne [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 11:10 AM To: Tomcat Users List Subject: Re-name mod_jk2-2.0.43.so to mod_jk2.so? Is it necessary to re-name mod_jk2-2.0.43.so to mod_jk2.so when I use this connector with apache 2.0.43 and tomcat4-4.1.18? thanks, Phil -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
iis, tomcat, jstl, locale issue.
Looking for other users experience on this issue. iis 4 and 5 tomcat 4.1.12 problem: DateFormat / fmt:formatDate fail to function, it just does a toString(), on the date. this only happens when certain parameters are passed to the JSP and the browser header Accept-Language: en-us is sent. It does not happen when a request is sent directly to tomcat. working on ways to get more info about this scenario -jason pyeron for more details: http://projects.pyerotechnics.com/show_bug.cgi?id=7 -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron http://www.pyerotechnics.com - - Owner Lead Pyerotechnics Development, Inc. - - +1 410 808 6646 (c) 500 West University Parkway #1S - - +1 410 467 2266 (f) Baltimore, Maryland 21210-3253 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, purge the message from your system and notify the sender immediately. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Strange Class Loading problem
Well...I do not have any other good ideas for the moment. I suppose you are putting your .class files inside the directories with the name of the package they are belonging to. I mean, if the package of the class is mypkg, the .class files must be inside $CATALINA_HOME/webapps/myapplication/WEB-INF/classes/mypkg/. Also check the WEB-INF folder name. Once I had a similar problem and this folder name was Web-inf, not WEB-INF. Case is important for Tomcat. Also classes must be classes not Classes. E.g. working in Windows NT even seeing classes in the explorer, seeing the file by using D.O.S., I could see the real name was Classes. The same for lib. Good Luck and sorry for not being more helpful. Mauro On Tue, 21 Jan 2003, Jeremy Cavagnolo wrote: Mauro: Thanks for the response. First, I changed all the permissions of my entire application to the most promiscuous (i.e. rwxrwxrwx) and I still get the error. Following are the pertinent portions of the log file. Thanks in advance for any help. -Jeremy WebappLoader[/MSQ]: Deploying class repositories to work directory /var/tomcat4/work/Apache/server/MSQ WebappLoader[/MSQ]: Deploy class files /WEB-INF/classes to /var/tomcat4/webapps/MSQ/WEB-INF/classes WebappLoader[/MSQ]: Deploy JAR /WEB-INF/lib/msq-data.jar to /var/tomcat4/webapps/MSQ/WEB-INF/lib/msq-data.jar WebappLoader[/MSQ]: Deploy JAR /WEB-INF/lib/msq-util.jar to /var/tomcat4/webapps/MSQ/WEB-INF/lib/msq-util.jar ... jsp: init StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Exception creating bean of class org.alf.msq.forms.TeacherLoginForm: java.lang.ClassNotFoundException: org.alf.msq.forms.TeacherLoginForm at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) at org.apache.catalina.valves.RequestDumperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:536) - Root Cause - javax.servlet.ServletException: Exception creating bean of class org.alf.msq.forms.TeacherLoginForm: java.lang.ClassNotFoundException: org.alf.msq.forms.TeacherLoginForm at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown Source) at org.apache.jsp.teacherLogin_jsp._jspService(teacherLogin_jsp.java:115) at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at
RE: request.setCharacterEncoding(charset) problem?
Francis, The HTML (4.01) spec says that browsers 'may' use the page encoding as the encoding to use when submitting form data. If you're assuming UTF-8, then you might want to consider something like the following, FORM accept-charset=UTF-8 ... ... /FORM to force conforming browsers do the right thing. Also, I think that parameters are decoded within Tomcat as ISO-8859-1 (or your default charset?), no matter what, so you'll need to do something like the following too: byte[] b = param.getBytes(ISO-8859-1); // Give us back the bytes param = new String(b, UTF-8); // Interpret them correctly, this time. Bring on the day UTF-8 is the standard for all of this. Dan. Hi, we are using Tomcat 4.1.12 in a Windows 2000 development environment and Tomcat 4.0.3 in a Solaris production environment. We have a JSP page that handles search queries and is supposed to be internationalized. The JSP page makes sure to set the UTF-8 charset so that the browser wil use this encoding for the FORM parameters in the POST request. Inside the JSP page, the method request.setCharacterEncoding(UTF-8) is used before using request.getParameter() so as to ensure that Tomcat decodes the POST bytestring as UTF-8 (instead of the default ISO-8859-1). The problem I have, is that the behaviour under Windows is different from that under Solaris: on my Windows platform, the request.setCharacterEncoding(UTF-8) does not seem to have any effect at all, i.e. when I send a ü character (0xFC), it still gets decoded as two separate characters by Tomcat as ISO-8859-1. On the Solaris platform, it seems to work fine... Did anyone encountered the same problem or knows of this? Or do do I have to go and look into the Tomcat source code? Any light shed on this would be very helpfull, thanks! Regards, Ing. FRA Vermeulen Senior J2EE Architect ECM Solutions - Eindhoven mobiel: +31 (0) 6 222 03 856 e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Anyone VIRTUAL WEBAPP?
I am working on a project that involves creating a web application. Within our build environment, the webapp does not exist in the standard webapp structure. For example, we have servlets/jsp/html/images/etc in various directories that need to be merged into the standard webapp structure (we use an ant script for this) before they can be deployed and run on an app server (i.e. tomcat). The problem with this is that it really stinks to run a hefty ant script every time that I want to see a minor change in a JSP. So here's what I would like to do in my development environment (wich happens to be Eclipse). It involves two parts: 1. Create a development context class loader. Sysdeo has already written one of these that allows multiple arbitrary paths to be added to the standard set (WEB-INF/classes and WEB-INF/lib) supported by the servlet spec. This works reasonably well, and allows me to load servlets/resources/etc from the various places that they exist within my development environment. No copying/moving/etc. required! 2. The next thing required would be to have a tomcat Context that would look in various non-standard places for requested resources such as JSPs, html files, images, etc. Essentially, I would like to have tomcat look in a series of directories for a requested resource (within a single Context), rather than just in the docBase. For example, if the url http://localhost:8080/myapp/index.html were requested, I would like tomcat to look in c:\dev\module1\web, c:\dev\module2\web, c:\dev\moduleN\web, etc. The process would stop as soon as the resource was found. Has anyone seen something like this already implemented? If not, are there any suggestions on where I would start to do this myself? I was thinking that I might be able to simply extend the StandardContext in Catalina, but it looks like things are pretty hard coded around the idea of a single docBase directory. Other people have to have similar development structures, so how are others doing this? Dave Keyes -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Opening Files Outside Context
Thanks Ignacio, That's probably the best suggestion so far. I'm running Windows XP and when I attempted to run the service as myself (i.e. with my network access) the same problem arose. So, I tried running the service as 'NT AUTHORITY\NetworkService' it simply failed to start. In the meantime I'll simply host the files I'm trying to access off my local drive. Yours... -- Ricardo Gladwell, Java Developer WD Internet Group, Engineering [t] (020) 8222 2723 [m] (07734) 813 187 -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: 22 January 2003 15:27 To: 'Tomcat Users List' Subject: RE: Opening Files Outside Context Ricardo, I know for a fact the path is correct - when I run exactly the same code with exactly the same file path it works... When I attempt to open the same file path in Tomcat I get a FileNotFoundException. The path is networked and on a different drive (h:) from the Tomcat and when I moved the target file to the same, local drive (c:) it worked. Obviously either Java cannot see networked drives or some sort of file filter is in place. Strange... Did you run Tomcat as a Service? If you do, A service can not use mapped network drives if not configured to be run by an user with network access, you will need to change from the user in the service configuration to Administrator or a user with acces with the same mapped drive confiigured. Another source of troubles are Java security plicy, AFAIK tc 4.1 run with security policies activated, so probably you will need to grant some acces to your servlet.. Saludos, Ignacio J. Ortega -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[2]: tomcatAuthentication=false and getRemoteUser returning null in recent versions of Tomcat
Thanks Ignacio, Works perfectly in Tomcat-4.1.19even with mod_jk, although it is a little confusing to have the config relating to mod_jk in jk2.properties but, oh well, It works :-) BTW, I used request.tomcatAuthentication=false not request.tomcatAuthentication=true Just wanted to clarify for the benefit of those who are trying to take the authentication from Apache for getRemoteUser(). thanks again! Jake Jacob, However, I've tested both Tomcat-4.1.18 and Tomcat-4.1.19 and both seem to ignore the tomcatAuthentication=false. add request.tomcatAuthentication=true to jk2.properties, it should work this way.. Saludos, Ignacio J. Ortega -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
session serialization
I am sure this question has been asked before, i am trying to find an answer, but not much luck yet. how can i disable session serialization? thanks vlad Vladimer Shioshvili QRC Division of Macro International Inc. 7315 Wisconsin Avenue, Suite 400W Bethesda, MD 20814 Phone: (301) 657 3077 ext. 155 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Configuring error page in web.xml
I validated the web.xml file with XMLSpy and it says the file is valid! - Original Message - From: Jacob Kjome [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, January 21, 2003 8:55 PM Subject: Re: Configuring error page in web.xml Find an IDE to validate your web.xml such as XMLSpy. You will probably find that the problem is either the xml file is not well formed and/or the xml file is not valid based on the provided DTD. Jake At 04:44 PM 1/21/2003 -0600, you wrote: I am trying to configure a custom error page for 404 errors in the web.xml file under \jakarta-tomcat-4.1.12\conf and I keep getting the following exception: ERROR [main] (Digester.java:1038) - End event threw exception java.lang.IllegalArgumentException: argument type mismatch at java.lang.reflect.Method.invoke(Native Method) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216) at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:491) at org.apache.commons.digester.Digester.endElement(Digester.java:1036) at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.ja v a:579) at org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.jav a :646) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator . java:1972) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java: 8 78) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLD o cumentFragmentScannerImpl.java:1144) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDoc u mentFragmentScannerImpl.java:987) this is what I have at the end of the web.xml file welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file /welcome-file-list error-page error-code404/error-code location/errors/errorPage.html/location /error-page /web-app -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Anyone VIRTUAL WEBAPP?
not the same, but have a need similar: we have a file organization /c:/foo/bar/publicfiles and /d:/foo/bar/publicfiles/photos we would like to symlink this into the context, but our filesystem does not support it, was hoping to do it in the config. On Wed, 22 Jan 2003, David Keyes wrote: I am working on a project that involves creating a web application. Within our build environment, the webapp does not exist in the standard webapp structure. For example, we have servlets/jsp/html/images/etc in various directories that need to be merged into the standard webapp structure (we use an ant script for this) before they can be deployed and run on an app server (i.e. tomcat). The problem with this is that it really stinks to run a hefty ant script every time that I want to see a minor change in a JSP. So here's what I would like to do in my development environment (wich happens to be Eclipse). It involves two parts: 1. Create a development context class loader. Sysdeo has already written one of these that allows multiple arbitrary paths to be added to the standard set (WEB-INF/classes and WEB-INF/lib) supported by the servlet spec. This works reasonably well, and allows me to load servlets/resources/etc from the various places that they exist within my development environment. No copying/moving/etc. required! 2. The next thing required would be to have a tomcat Context that would look in various non-standard places for requested resources such as JSPs, html files, images, etc. Essentially, I would like to have tomcat look in a series of directories for a requested resource (within a single Context), rather than just in the docBase. For example, if the url http://localhost:8080/myapp/index.html were requested, I would like tomcat to look in c:\dev\module1\web, c:\dev\module2\web, c:\dev\moduleN\web, etc. The process would stop as soon as the resource was found. Has anyone seen something like this already implemented? If not, are there any suggestions on where I would start to do this myself? I was thinking that I might be able to simply extend the StandardContext in Catalina, but it looks like things are pretty hard coded around the idea of a single docBase directory. Other people have to have similar development structures, so how are others doing this? Dave Keyes -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron http://www.pyerotechnics.com - - Owner Lead Pyerotechnics Development, Inc. - - +1 410 808 6646 (c) 500 West University Parkway #1S - - +1 410 467 2266 (f) Baltimore, Maryland 21210-3253 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, purge the message from your system and notify the sender immediately. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
ErrNo=61
Hi: My ModJK log shows the following error: (I have Tomcat 4.0.6 w/ Apache 2.0.43 on NT)... [Wed Jan 22 08:57:20 2003] [jk_connect.c (177)]: jk_open_socket, connect() failed errno = 61 [Wed Jan 22 08:57:20 2003] [jk_ajp_common.c (626)]: In jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 61 Any ideas? Thanks Ravi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Anyone VIRTUAL WEBAPP?
Maybe just use a filter mapped to /* ? -- Tim Moore / Blackboard Inc. / Software Engineer 1899 L Street, NW / 5th Floor / Washington, DC 20036 Phone 202-463-4860 ext. 258 / Fax 202-463-4863 -Original Message- From: David Keyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 11:35 AM To: [EMAIL PROTECTED] Subject: Anyone VIRTUAL WEBAPP? I am working on a project that involves creating a web application. Within our build environment, the webapp does not exist in the standard webapp structure. For example, we have servlets/jsp/html/images/etc in various directories that need to be merged into the standard webapp structure (we use an ant script for this) before they can be deployed and run on an app server (i.e. tomcat). The problem with this is that it really stinks to run a hefty ant script every time that I want to see a minor change in a JSP. So here's what I would like to do in my development environment (wich happens to be Eclipse). It involves two parts: 1. Create a development context class loader. Sysdeo has already written one of these that allows multiple arbitrary paths to be added to the standard set (WEB-INF/classes and WEB-INF/lib) supported by the servlet spec. This works reasonably well, and allows me to load servlets/resources/etc from the various places that they exist within my development environment. No copying/moving/etc. required! 2. The next thing required would be to have a tomcat Context that would look in various non-standard places for requested resources such as JSPs, html files, images, etc. Essentially, I would like to have tomcat look in a series of directories for a requested resource (within a single Context), rather than just in the docBase. For example, if the url http://localhost:8080/myapp/index.html were requested, I would like tomcat to look in c:\dev\module1\web, c:\dev\module2\web, c:\dev\moduleN\web, etc. The process would stop as soon as the resource was found. Has anyone seen something like this already implemented? If not, are there any suggestions on where I would start to do this myself? I was thinking that I might be able to simply extend the StandardContext in Catalina, but it looks like things are pretty hard coded around the idea of a single docBase directory. Other people have to have similar development structures, so how are others doing this? Dave Keyes -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: MySQL Hell
Hello Mehdi, If you are using DBCP connection pooling, your driver *must* exist in CATALINA_HOME/common/lib. This is because the DBCP libraries exist in common/lib and the fact that classes from common/lib do not have access to the child classloader in WEB-INF/lib. However, your classes in WEB-INF/lib *does* have access to the parent classloader in common/lib. So, put it in common/lib and it should work. dont' forget to add ?autoReconnect=true to your connection url config for MySQL. Jake Wednesday, January 22, 2003, 9:13:39 AM, you wrote: MNbc Hello all, MNbc i have been breaking my brain trying to get connection pooling, using MNbc Tomcat 4.1.12's build in dbcp, with mySQL 3.23. MNbc I have followed the instructions on the how this should be done, and I am MNbc getting an exception when I try to get a connection .. (like many other MNbc people it seems).. If anyone has solved this problem.. or has a link to a MNbc forum where this problem is answered please let me know.. MNbc I have downloaded mysql-connector-java-2.0.14.zip MNbc I unzipped it and copied : MNbc * the contents of WEB-INF/lib to my lib folder MNbc * contents of com to my WEB-INF/classes folder MNbc * contents of org to my WEB-INF/classes folder (this *does* contain MNbc org.gjt.mm.mysql.Driver) MNbc This does not work. My jsp test code follows, and the Exception occurs on MNbc getConnection()... MNbc %@ page language=java import=java.sql.*, javax.sql.*, javax.naming.* MNbc errorPage=error.jsp % MNbc % MNbc Context initContext = new InitialContext(); MNbc Context envContext = (Context)initContext.lookup(java:/comp/env); MNbc DataSource ds = (DataSource)envContext.lookup(jdbc/mehdi); MNbc Connection conn = ds.getConnection(); % MNbc Exception is MNbc java.sql.SQLException: Cannot load JDBC driver class MNbc 'org.gjt.mm.mysql.Driver' MNbc SERVER.XML MNbc Context path=/mysql docBase=mysql debug=0 reloadable=true MNbc Logger className=org.apache.catalina.logger.FileLogger MNbc prefix=localhost_DBTest_log. suffix=.txt MNbc timestamp=true/ MNbc Resource name=jdbc/mehdi MNbcauth=Container MNbctype=javax.sql.DataSource/ MNbc ResourceParams name=jdbc/mehdi MNbc parameter MNbc namefactory/name MNbc valueorg.apache.commons.dbcp.BasicDataSourceFactory/value MNbc /parameter MNbc !-- Maximum number of dB connections in pool. Make sure you MNbc configure your mysqld max_connections large enough to handle MNbc all of your db connections. Set to 0 for no limit. MNbc -- MNbc parameter MNbc namemaxActive/name MNbc value100/value MNbc /parameter MNbc !-- Maximum number of idle dB connections to retain in pool. MNbc Set to 0 for no limit. MNbc -- MNbc parameter MNbc namemaxIdle/name MNbc value30/value MNbc /parameter MNbc !-- Maximum time to wait for a dB connection to become available MNbc in ms, in this example 10 seconds. An Exception is thrown if MNbc this timeout is exceeded. Set to -1 to wait indefinitely. MNbc -- MNbc parameter MNbc namemaxWait/name MNbc value1/value MNbc /parameter MNbc !-- MySQL dB username and password for dB connections -- MNbc parameter MNbc nameusername/name MNbc valuemehdi/value MNbc /parameter MNbc parameter MNbc namepassword/name MNbc valuemypass/value MNbc /parameter MNbc !-- Class name for mm.mysql JDBC driver -- MNbc parameter MNbcnamedriverClassName/name MNbcvalueorg.gjt.mm.mysql.Driver/value MNbc /parameter MNbc !-- The JDBC connection url for connecting to your MySQL dB. MNbc The autoReconnect=true argument to the url makes sure that the MNbc mm.mysql JDBC Driver will automatically reconnect if mysqld closed MNbc the MNbc connection. mysqld by default closes idle connections after 8 MNbc hours. MNbc -- MNbc parameter MNbc nameurl/name MNbc valuejdbc:mysql://localhost:3306/mehdi?autoReconnect=true/value MNbc /parameter MNbc /ResourceParams MNbc /Context MNbc running out of time, and hair. MNbc Thanks, MNbc Med MNbc -- MNbc To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] MNbc For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Re-name mod_jk2-2.0.43.so to mod_jk2.so?
Hello pcampaigne, It depends on the name you use with LoadModule. Load the name of the module that you want. Choose whatever name you want for the module. Jake Wednesday, January 22, 2003, 10:09:43 AM, you wrote: p Is it necessary to re-name mod_jk2-2.0.43.so to mod_jk2.so when I use this connector with apache 2.0.43 and tomcat4-4.1.18? p thanks, p Phil -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
tomcat not starting after reboot or from cron
Has anybody had a problem with tomcat (4.0.4) starting after a reboot? Or problems starting it from the root crontab? I have no problems at all starting tomcat manually. Everything works fine that way. To automate the startup after a reboot, I am using init.d with the startup script in rc3.d. However, nothing is happening. I'm not even receiving any errors in the logs. But I can immediately start it manually with out a problem. Also I can't stop and start tomcat from a crontab. I set up a stop and start script and placed them in the root crontab, but the time comes to stop tomcat and nothing happens then the startup script should be initiated a minute later but it is a mute point since tomcat didn't stop, but nothing shows up in the logs either way. Is there a parameter or something that I am missing for this to work? I am running Tomcat 4.0.4 (as a standalone server using port 8880) on Solaris 2.7. Apache 1.3.9 is running on the server as well using port 80. Thanks in advance for the help. - Carey - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: mod_jk performance
I had the same problem so if you look carefully, you can see the script changed to a sub-directory and was still trying to access ./libtool. The easiest way without modifying the script for me was just creating a link in that directory to point to the parent's libtool. I had to create 2 links in order for this to work till the end, just read the error when it fails and you will know where to create the links. -Original Message- From: Pimentel, William (Col) [mailto:[EMAIL PROTECTED]] Sent: Monday, January 20, 2003 4:14 PM To: [EMAIL PROTECTED] Subject: mod_jk performance Hello I've been unsuccesfully trying to compile mod_jk.so for Solaris 8, i get all kind of weird erros such as: sh: ./libtool: not found *** Error code 1 when there's a ./libtool in the current directory (native) The reason i'm trying to compile a new module is because the one i got some time ago doesn't work well, it's so slow when i try to display a jsp or servlet page over port 80 (apache), whereas it runs smoothly over port 8080 (tomcat). Can anybody tell me how to get this module to compile on Solaris 8?? i have tomcat 4.1.18 and Apache 2.0.x Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat not starting after reboot or from cron
If you can do it manually, from a log in session, but not automatically from startup or from cron, I'm 99% sure it's because environment variables like JAVA_HOME and CATALINA_HOME are not being set for the startup and cron environments. Without those, you won't get anything. They're probably being set just fine for you when you log in. John -Original Message- From: Lott, Carey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 12:13 PM To: 'Tomcat Users List' Subject: tomcat not starting after reboot or from cron Has anybody had a problem with tomcat (4.0.4) starting after a reboot? Or problems starting it from the root crontab? I have no problems at all starting tomcat manually. Everything works fine that way. To automate the startup after a reboot, I am using init.d with the startup script in rc3.d. However, nothing is happening. I'm not even receiving any errors in the logs. But I can immediately start it manually with out a problem. Also I can't stop and start tomcat from a crontab. I set up a stop and start script and placed them in the root crontab, but the time comes to stop tomcat and nothing happens then the startup script should be initiated a minute later but it is a mute point since tomcat didn't stop, but nothing shows up in the logs either way. Is there a parameter or something that I am missing for this to work? I am running Tomcat 4.0.4 (as a standalone server using port 8880) on Solaris 2.7. Apache 1.3.9 is running on the server as well using port 80. Thanks in advance for the help. - Carey - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: tomcat not starting after reboot or from cron
I had a similar problem, and changed catalina.sh to do this at the start: source /etc/profile This was where I was setting CATALINA_HOME, and JAVA_HOME. When the script got run at startup, those vars were not yet set... Larry [EMAIL PROTECTED] 01/22/03 10:20 AM Has anybody had a problem with tomcat (4.0.4) starting after a reboot? Or problems starting it from the root crontab? I have no problems at all starting tomcat manually. Everything works fine that way. To automate the startup after a reboot, I am using init.d with the startup script in rc3.d. However, nothing is happening. I'm not even receiving any errors in the logs. But I can immediately start it manually with out a problem. Also I can't stop and start tomcat from a crontab. I set up a stop and start script and placed them in the root crontab, but the time comes to stop tomcat and nothing happens then the startup script should be initiated a minute later but it is a mute point since tomcat didn't stop, but nothing shows up in the logs either way. Is there a parameter or something that I am missing for this to work? I am running Tomcat 4.0.4 (as a standalone server using port 8880) on Solaris 2.7. Apache 1.3.9 is running on the server as well using port 80. Thanks in advance for the help. - Carey - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat not starting after reboot or from cron
Howdy, We have some tomcat instances that restart nightly from a crontab, without a problem. They're all tomcat 4.0.6-LE on Solaris 2.8. None use apache as the front end. None run as root. Each runs as its own user, and the restart job is in that user's crontab. We've had no problems with this setup. What does the cron output email say when you have problems? Yoav Shapira Millennium ChemInformatics -Original Message- From: Lott, Carey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 12:13 PM To: 'Tomcat Users List' Subject: tomcat not starting after reboot or from cron Has anybody had a problem with tomcat (4.0.4) starting after a reboot? Or problems starting it from the root crontab? I have no problems at all starting tomcat manually. Everything works fine that way. To automate the startup after a reboot, I am using init.d with the startup script in rc3.d. However, nothing is happening. I'm not even receiving any errors in the logs. But I can immediately start it manually with out a problem. Also I can't stop and start tomcat from a crontab. I set up a stop and start script and placed them in the root crontab, but the time comes to stop tomcat and nothing happens then the startup script should be initiated a minute later but it is a mute point since tomcat didn't stop, but nothing shows up in the logs either way. Is there a parameter or something that I am missing for this to work? I am running Tomcat 4.0.4 (as a standalone server using port 8880) on Solaris 2.7. Apache 1.3.9 is running on the server as well using port 80. Thanks in advance for the help. - Carey - -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[2]: Configuring error page in web.xml
Hello Chandra, Ok, then I'm not sure what the issue is? Are you saying that it started up fine before you edited the web.xml and after you added the stuff you mentioned, it failed? I would suggest removing the error-page stuff and only put that in your webapp's web.xml, not the conf/web.xml. If you configure this in the global web.xml, you force the assumption that each webapp contains an error directory off the root of each respective context. You can't make this assumption for webapps that you didn't write. I suggest putting that config in your own web.xml. Jake Wednesday, January 22, 2003, 10:41:44 AM, you wrote: CG I validated the web.xml file with XMLSpy and it says the file is valid! CG - Original Message - CG From: Jacob Kjome [EMAIL PROTECTED] CG To: Tomcat Users List [EMAIL PROTECTED] CG Sent: Tuesday, January 21, 2003 8:55 PM CG Subject: Re: Configuring error page in web.xml Find an IDE to validate your web.xml such as XMLSpy. You will probably find that the problem is either the xml file is not well formed and/or the xml file is not valid based on the provided DTD. Jake At 04:44 PM 1/21/2003 -0600, you wrote: I am trying to configure a custom error page for 404 errors in the CG web.xml file under \jakarta-tomcat-4.1.12\conf and I keep getting the following exception: ERROR [main] (Digester.java:1038) - End event threw exception java.lang.IllegalArgumentException: argument type mismatch at java.lang.reflect.Method.invoke(Native Method) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216) at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:491) at org.apache.commons.digester.Digester.endElement(Digester.java:1036) at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.ja CG v a:579) at org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.jav CG a :646) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator CG . java:1972) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java: CG 8 78) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLD CG o cumentFragmentScannerImpl.java:1144) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDoc CG u mentFragmentScannerImpl.java:987) this is what I have at the end of the web.xml file welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file /welcome-file-list error-page error-code404/error-code location/errors/errorPage.html/location /error-page /web-app -- To unsubscribe, e-mail: CG mailto:[EMAIL PROTECTED] For additional commands, e-mail: CG mailto:[EMAIL PROTECTED] CG -- CG To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] CG For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: tomcat not starting after reboot or from cron
I suspect it has something to do with your environmental variables: Quite likely the java_home catalina_home has not been set at the time the script executes. When doing it from the console, as you are already logged on, it will work fine. You could try to export the variables just before running startup, see if that makes a difference. Sadly this is about the extend of my guess ... :-) On Wed, 2003-01-22 at 17:13, Lott, Carey wrote: Has anybody had a problem with tomcat (4.0.4) starting after a reboot? Or problems starting it from the root crontab? I have no problems at all starting tomcat manually. Everything works fine that way. To automate the startup after a reboot, I am using init.d with the startup script in rc3.d. However, nothing is happening. I'm not even receiving any errors in the logs. But I can immediately start it manually with out a problem. Also I can't stop and start tomcat from a crontab. I set up a stop and start script and placed them in the root crontab, but the time comes to stop tomcat and nothing happens then the startup script should be initiated a minute later but it is a mute point since tomcat didn't stop, but nothing shows up in the logs either way. Is there a parameter or something that I am missing for this to work? I am running Tomcat 4.0.4 (as a standalone server using port 8880) on Solaris 2.7. Apache 1.3.9 is running on the server as well using port 80. Thanks in advance for the help. - Carey - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- p niemandt [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat not starting after reboot or from cron
Do you mind sharing your Tomcat restart script with us? I want to do the same but perhaps on a weekly basis. One of the problems I am worried about is that Tomcat isn't stopping, so I would need to wait for it to end or kill it before I restart it. Any help would be appreciated. Thanks. Ricky -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 12:31 PM To: Tomcat Users List Subject: RE: tomcat not starting after reboot or from cron Howdy, We have some tomcat instances that restart nightly from a crontab, without a problem. They're all tomcat 4.0.6-LE on Solaris 2.8. None use apache as the front end. None run as root. Each runs as its own user, and the restart job is in that user's crontab. We've had no problems with this setup. What does the cron output email say when you have problems? Yoav Shapira Millennium ChemInformatics -Original Message- From: Lott, Carey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 12:13 PM To: 'Tomcat Users List' Subject: tomcat not starting after reboot or from cron Has anybody had a problem with tomcat (4.0.4) starting after a reboot? Or problems starting it from the root crontab? I have no problems at all starting tomcat manually. Everything works fine that way. To automate the startup after a reboot, I am using init.d with the startup script in rc3.d. However, nothing is happening. I'm not even receiving any errors in the logs. But I can immediately start it manually with out a problem. Also I can't stop and start tomcat from a crontab. I set up a stop and start script and placed them in the root crontab, but the time comes to stop tomcat and nothing happens then the startup script should be initiated a minute later but it is a mute point since tomcat didn't stop, but nothing shows up in the logs either way. Is there a parameter or something that I am missing for this to work? I am running Tomcat 4.0.4 (as a standalone server using port 8880) on Solaris 2.7. Apache 1.3.9 is running on the server as well using port 80. Thanks in advance for the help. - Carey - -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat not starting after reboot or from cron
I was actually wondering about that concerning the startup environment, but I didn't think it would be an issue for cron since it was the root crontab. I'll add it to the script and see what happens. Thanks!! -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 12:30 PM To: 'Tomcat Users List' Subject: RE: tomcat not starting after reboot or from cron If you can do it manually, from a log in session, but not automatically from startup or from cron, I'm 99% sure it's because environment variables like JAVA_HOME and CATALINA_HOME are not being set for the startup and cron environments. Without those, you won't get anything. They're probably being set just fine for you when you log in. John -Original Message- From: Lott, Carey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 12:13 PM To: 'Tomcat Users List' Subject: tomcat not starting after reboot or from cron Has anybody had a problem with tomcat (4.0.4) starting after a reboot? Or problems starting it from the root crontab? I have no problems at all starting tomcat manually. Everything works fine that way. To automate the startup after a reboot, I am using init.d with the startup script in rc3.d. However, nothing is happening. I'm not even receiving any errors in the logs. But I can immediately start it manually with out a problem. Also I can't stop and start tomcat from a crontab. I set up a stop and start script and placed them in the root crontab, but the time comes to stop tomcat and nothing happens then the startup script should be initiated a minute later but it is a mute point since tomcat didn't stop, but nothing shows up in the logs either way. Is there a parameter or something that I am missing for this to work? I am running Tomcat 4.0.4 (as a standalone server using port 8880) on Solaris 2.7. Apache 1.3.9 is running on the server as well using port 80. Thanks in advance for the help. - Carey - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Failed ErrNO=61
Hi, Any ideas on how to solve the following error in Mod_jk.log: [Wed Jan 22 08:57:20 2003] [jk_connect.c (177)]: jk_open_socket, connect() failed errno = 61 [Wed Jan 22 08:57:20 2003] [jk_ajp_common.c (626)]: In jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 61 Thanks Ravi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Caucho Resin to Tomcat Conversion
Tomcat has better low end hosting support and there are no licensing fees. My business is moving to smaller sites with fairly complex intranet development. Edgar Subject: RE: Caucho Resin to Tomcat Conversion From: Shapira, Yoav Yoav.Shapira () mpi ! com Date: 2003-01-21 14:16:35 [Download message RAW] Hi, Very interesting. Thank you for the account. I'm not going to get into a tomcat vs. resin (or vs. other for that matter) debate. My question is: why did you change from Resin to Tomcat? Yoav Shapira Millennium ChemInformatics -Original Message- From: Edgar Dollin [mailto:[EMAIL PROTECTED]] Sent: Monday, January 20, 2003 2:46 PM To: '[EMAIL PROTECTED]' Subject: Caucho Resin to Tomcat Conversion I recently completed a cutover of moderately sized app from Resin to Tomcat and just wanted to put my experiences somewhere for posterity. First Resin allows out of order xml documents. Tomcat goes by the book with xml. So web.xml, struts-config.xml and any other xml files you have must but well structured satisfy the DTD. With Resin it is very easy to get away from the DTD requirements. The second issue is that resin is very creative about the tld's. You can be sloppy in both the jsp files and the web.inf about where they are and in most cases resin will find them. Moving to tomcat you will find any that are mislocated. If there are tld's inside of jar files, resin finds them with basic syntax. Tomcat needs the full taglib uri in order to find a tld inside a jar. Resin allows you to mix and match xml formated jsp files with standard format jsp files. In tomcat you really should stick to one format or the other. When making your choice which format to use, remember in xml format you cannot use jsp expressions as attribute values. Also, in tomcat with the xml format, the assumed page contentType is text/xml, in Resin it is text/html. Resin allows attribute specification in xml files without quotes, tomcat does not. Resin allows standard jsp scriptlets inside xml files, tomcat does not. Resin custom tag lifespan is different than Tomcat. Tomcat keeps them alive until memory or some other issue forces a release. Resin dumps the custom tags when the page has completed processing. Keep this in mind if you share information between tags, you keep counters in tags, or you have tags that are instantiated with various numbers of parameters. In any event, if you are developing under Resin and want to deploy on some other container, beware that it lets you do lots of non standard stuff. Edgar -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat not starting after reboot or from cron
Y'all were right. You were absolutely right! It was the environment variables. Once I placed the variables at the beginning of the script and exported them, the cron worked perfectly. Thanks Again -Original Message- From: Lott, Carey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 12:37 PM To: 'Tomcat Users List' Subject: RE: tomcat not starting after reboot or from cron I was actually wondering about that concerning the startup environment, but I didn't think it would be an issue for cron since it was the root crontab. I'll add it to the script and see what happens. Thanks!! -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 12:30 PM To: 'Tomcat Users List' Subject: RE: tomcat not starting after reboot or from cron If you can do it manually, from a log in session, but not automatically from startup or from cron, I'm 99% sure it's because environment variables like JAVA_HOME and CATALINA_HOME are not being set for the startup and cron environments. Without those, you won't get anything. They're probably being set just fine for you when you log in. John -Original Message- From: Lott, Carey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 12:13 PM To: 'Tomcat Users List' Subject: tomcat not starting after reboot or from cron Has anybody had a problem with tomcat (4.0.4) starting after a reboot? Or problems starting it from the root crontab? I have no problems at all starting tomcat manually. Everything works fine that way. To automate the startup after a reboot, I am using init.d with the startup script in rc3.d. However, nothing is happening. I'm not even receiving any errors in the logs. But I can immediately start it manually with out a problem. Also I can't stop and start tomcat from a crontab. I set up a stop and start script and placed them in the root crontab, but the time comes to stop tomcat and nothing happens then the startup script should be initiated a minute later but it is a mute point since tomcat didn't stop, but nothing shows up in the logs either way. Is there a parameter or something that I am missing for this to work? I am running Tomcat 4.0.4 (as a standalone server using port 8880) on Solaris 2.7. Apache 1.3.9 is running on the server as well using port 80. Thanks in advance for the help. - Carey - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat not starting after reboot or from cron
Howdy, I can't share the exact script due to intellectual property law issues ;) But it's trivial, basically doing: export CATALINA_HOME=/foo/bar $CATALINA_HOME/bin/shutdown.sh sleep 60 $CATALINA_HOME/bin/startup.sh That's it. One of the problems I am worried about is that Tomcat isn't stopping, so I would need to wait for it to end or kill it before I restart it. If tomcat isn't stopping, find out why and fix it if possible. The most typical cause is non-daemon user threads spawned by your apps but never destroyed properly. We had that problem and fixed it where we could. Where we can't, we run only one webapp per instance and have a ServletContextListener with a System.exit() call in its contextDestroyed() method to assure shutdown. Not the cleanest solution, but it's worked well in practice. Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Porblem editing httpd.conf
After I added the following line to httpd.conf, the httpd server vails to start: LoadModule mod_jk2-2.0.43.so I get a syntax error at startup. What am I doing wrong here. I am trying to tell it to load the jk2 connector module. using tomcat4-4.1.18 and httpd 2.0.43 Thanks, Phil
Has anybody tried using the NSAPI redirector
Hi All, Does it work against the SunONE webserver? Also does anybody have prebuild binaries. Does apache intend to make the prebuilt binaries for these available as well? Thanx in advance for any help. --Ganesh -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Porblem editing httpd.conf
Tell it where: LoadModule modules/mod_jk2-2.0.43.so John -Original Message- From: pcampaigne [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 1:03 PM To: Tomcat Users List Subject: Porblem editing httpd.conf After I added the following line to httpd.conf, the httpd server vails to start: LoadModule mod_jk2-2.0.43.so I get a syntax error at startup. What am I doing wrong here. I am trying to tell it to load the jk2 connector module. using tomcat4-4.1.18 and httpd 2.0.43 Thanks, Phil -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
mod_jk2-2.0.43.so with Apache 2.0.44?
Anyone know if the current mod_jk2-2.0.43.so module will work with the recently posted Apache Apache 2.0.44 release? Thanks! Andrzej Jan Taramina Chaeron Corporation: Enterprise System Solutions http://www.chaeron.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat not starting after reboot or from cron
Thanks for the info. For the information, Tomcat usually stops, but occasionally, it doesn't. This seems to happen when there are some lockwaits on the db and Tomcat is just sitting there waiting for it to return. And yes, we are tracking on it to see why this is happening so we can have this fixed. Ricky -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 1:03 PM To: Tomcat Users List Subject: RE: tomcat not starting after reboot or from cron Howdy, I can't share the exact script due to intellectual property law issues ;) But it's trivial, basically doing: export CATALINA_HOME=/foo/bar $CATALINA_HOME/bin/shutdown.sh sleep 60 $CATALINA_HOME/bin/startup.sh That's it. One of the problems I am worried about is that Tomcat isn't stopping, so I would need to wait for it to end or kill it before I restart it. If tomcat isn't stopping, find out why and fix it if possible. The most typical cause is non-daemon user threads spawned by your apps but never destroyed properly. We had that problem and fixed it where we could. Where we can't, we run only one webapp per instance and have a ServletContextListener with a System.exit() call in its contextDestroyed() method to assure shutdown. Not the cleanest solution, but it's worked well in practice. Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat not starting after reboot or from cron
Ricky, Actually, for my startup script that is in init.d, all I am doing is linking to catalina.sh. An ls -al of it look like this: lrwxrwxrwx 1 root staff 53 Nov 12 09:01 tomcat - /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh I have then placed a link to this in the rc3.d. I could have linked directly to catalina.sh from rc3.d, but for consistency I like all my startup and kill scripts in the rc#.d directories to link to the init.d directory. The link in the rc3.d directory looks like this: lrwxrwxrwx 1 root sys 18 Oct 25 10:13 S55tomcat - /etc/init.d/tomcat An uppercase S signifies a startup script, and an uppercase K signifies a kill (or stop) script. This is the script I am using in the crontab: (I am sure many have come up with better, but this works for my developers) #!/bin/ksh # The script stops and starts the java servlet container JAVA_HOME=/bto/appl/apache/j2sdk CATALINA_HOME=/bto/appl/apache/jakarta-tomcat-4.0.4 #CLASSPATH=$CATALINA_HOME/common/lib:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA _HOME/jre/lib/ext:. CLASSPATH=$CATALINA_HOME/common/lib/servlet.jar:/bto/appl/apache/j2sdk/jre/l ib/rt.jar:/bto/appl/apache/j2sdk/lib/tools.jar:/bto/app l/apache/j2sdk/lib/dt.jar:/bto/appl/apache/j2sdk/lib/htmlconverter.jar:/bto/ appl/apache/j2sdk/jre/lib/charsets.jar:/bto/appl/apache /j2sdk/jre/lib/javaplugin.jar:/bto/appl/apache/j2sdk/jre/lib/ext/dnsns.jar:/ bto/appl/apache/j2sdk/jre/lib/ext/localedata.jar:/bto/a ppl/apache/j2sdk/jre/lib/ext/ldapsec.jar:/bto/appl/apache/j2sdk/jre/lib/jce. jar:/bto/appl/apache/j2sdk/jre/lib/jsse.jar:.:/bto/appl /apache/jakarta-tomcat-4.0.4/webapps/esd/WEB-INF/classes:/bto/appl/apache/ja karta-tomcat-4.0.4/webapps/esd/WEB-INF/lib:/bto/appl/ap ache/htdocs/esd/java export JAVA_HOME export CATALINA_HOME export CLASSPATH /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh stop /bin/sleep 10 /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh start -Original Message- From: Ricky Leung [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 12:36 PM To: Tomcat Users List Subject: RE: tomcat not starting after reboot or from cron Do you mind sharing your Tomcat restart script with us? I want to do the same but perhaps on a weekly basis. One of the problems I am worried about is that Tomcat isn't stopping, so I would need to wait for it to end or kill it before I restart it. Any help would be appreciated. Thanks. Ricky -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 12:31 PM To: Tomcat Users List Subject: RE: tomcat not starting after reboot or from cron Howdy, We have some tomcat instances that restart nightly from a crontab, without a problem. They're all tomcat 4.0.6-LE on Solaris 2.8. None use apache as the front end. None run as root. Each runs as its own user, and the restart job is in that user's crontab. We've had no problems with this setup. What does the cron output email say when you have problems? Yoav Shapira Millennium ChemInformatics -Original Message- From: Lott, Carey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 12:13 PM To: 'Tomcat Users List' Subject: tomcat not starting after reboot or from cron Has anybody had a problem with tomcat (4.0.4) starting after a reboot? Or problems starting it from the root crontab? I have no problems at all starting tomcat manually. Everything works fine that way. To automate the startup after a reboot, I am using init.d with the startup script in rc3.d. However, nothing is happening. I'm not even receiving any errors in the logs. But I can immediately start it manually with out a problem. Also I can't stop and start tomcat from a crontab. I set up a stop and start script and placed them in the root crontab, but the time comes to stop tomcat and nothing happens then the startup script should be initiated a minute later but it is a mute point since tomcat didn't stop, but nothing shows up in the logs either way. Is there a parameter or something that I am missing for this to work? I am running Tomcat 4.0.4 (as a standalone server using port 8880) on Solaris 2.7. Apache 1.3.9 is running on the server as well using port 80. Thanks in advance for the help. - Carey - -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: mod_jk2-2.0.43.so with Apache 2.0.44?
From http://httpd.apache.org/: No changes in configuration or third-party modules are necessary to upgrade from 2.0.42 or later, and we will make every effort to maintain this easy upgrade path in future 2.0 releases. John -Original Message- From: Andrzej Jan Taramina [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 1:10 PM To: [EMAIL PROTECTED] Subject: mod_jk2-2.0.43.so with Apache 2.0.44? Anyone know if the current mod_jk2-2.0.43.so module will work with the recently posted Apache Apache 2.0.44 release? Thanks! Andrzej Jan Taramina Chaeron Corporation: Enterprise System Solutions http://www.chaeron.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
tomcat/apache on different servers
Up to now I have always configured tomcat and apache on the same box. However, I have need to separate them to 2 physical boxes. My questions are: 1) Does the workers.properties file reside on the apache http server box; 2) Do you then replace the localhost entry in worker.ajp13.host=localhost to worker.ajp13.host=tomcatserver; and 3) Or should you connect them and simply use the proxy capabilities from apache? Thanks Brad __ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat/apache on different servers
1) Does the workers.properties file reside on the apache http server box; Yes. 2) Do you then replace the localhost entry in worker.ajp13.host=localhost to worker.ajp13.host=tomcatserver; Yes. 3) Or should you connect them and simply use the proxy capabilities from apache? Given 1 and 2, no. Brad John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Re[2]: tomcatAuthentication=false and getRemoteUser returning null in recent versions of Tomcat
Jacob, BTW, I used request.tomcatAuthentication=false not request.tomcatAuthentication=true Ooops, sorry, of course if you want tomcatAuthentication=false, you need to put request.tomcatAuthentication=false not true :, next time i will edit my CutPaste first i promise ..;) Saludos, Ignacio J. Ortega -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Porblem editing httpd.conf
John, Do you not need to name it too, ie LoadModule jk2_module modules/mod_jk2-2.0.43.so Thats what's in my working set up anyway. Andy -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: 22 January 2003 18:07 To: 'Tomcat Users List' Subject: RE: Porblem editing httpd.conf Tell it where: LoadModule modules/mod_jk2-2.0.43.so John -Original Message- From: pcampaigne [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 1:03 PM To: Tomcat Users List Subject: Porblem editing httpd.conf After I added the following line to httpd.conf, the httpd server vails to start: LoadModule mod_jk2-2.0.43.so I get a syntax error at startup. What am I doing wrong here. I am trying to tell it to load the jk2 connector module. using tomcat4-4.1.18 and httpd 2.0.43 Thanks, Phil -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
please help - strange messages in tomcat 4.1.18
Hello, I apologize for reposting this question again, but I have received no response yet, and these messages are filling up my log files. My catalina.out logs are full of the following messages: Jan 21, 2003 10:31:41 AM org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection Jan 21, 2003 10:31:42 AM org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection Jan 21, 2003 10:31:43 AM org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection Assuming these are non-harmful messages (are they?), is there a way to turn them off, so that they're not flooding my logs? They appear to happen everytime an apache/mod_jk/mod_jk2 worker creates a connection to Tomcat. (And, of course, if I ever restart Apache, I get tons of these messages at once. But, I do get them quite a bit during regular runtime as well.) Thanks, Raiden -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Porblem editing httpd.conf
Oops, you're right. My bad. Good eye. John -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 1:58 PM To: Tomcat Users List Subject: RE: Porblem editing httpd.conf John, Do you not need to name it too, ie LoadModule jk2_module modules/mod_jk2-2.0.43.so Thats what's in my working set up anyway. Andy -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: 22 January 2003 18:07 To: 'Tomcat Users List' Subject: RE: Porblem editing httpd.conf Tell it where: LoadModule modules/mod_jk2-2.0.43.so John -Original Message- From: pcampaigne [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 1:03 PM To: Tomcat Users List Subject: Porblem editing httpd.conf After I added the following line to httpd.conf, the httpd server vails to start: LoadModule mod_jk2-2.0.43.so I get a syntax error at startup. What am I doing wrong here. I am trying to tell it to load the jk2 connector module. using tomcat4-4.1.18 and httpd 2.0.43 Thanks, Phil -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Re[2]: tomcatAuthentication=false and getRemoteUser returning null in recent versions of Tomcat
Hola Ignacio, He estado probando exactamente lo que vosotrois comentais, pero Tomcat me sigue pidiendo que entre login i password. Alguna idea? Gracias Aleix -Mensaje original- De: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Enviado el: miércoles, 22 de enero de 2003 19:20 Para: 'Tomcat Users List'; 'Jacob Kjome' Asunto: RE: Re[2]: tomcatAuthentication=false and getRemoteUser returning null in recent versions of Tomcat Jacob, BTW, I used request.tomcatAuthentication=false not request.tomcatAuthentication=true Ooops, sorry, of course if you want tomcatAuthentication=false, you need to put request.tomcatAuthentication=false not true :, next time i will edit my CutPaste first i promise ..;) Saludos, Ignacio J. Ortega -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Resources for a Context
I am confused about what exactly Resource entries are supposed to accomplish in Tomcat. I have the following entry in my server.xml file for Tomcat 4.0.6: Context path=/myapp docBase=C:/test/ Resources className=org.apache.naming.resources.FileDirContext docBase=c:/dev/proj1/web / Resources className=org.apache.naming.resources.FileDirContext docBase=c:/dev/proj2/web / /Context If the directory c:/dev/proj1/web/ has a file called index.html in it, I would expect loading the url http://localhost:8080/myapp/index.html to return the file c:/dev/proj1/web/index.html. Am I reading this completely wrong? This all seems to be a moot point anyway, since whenever I make a Resources entry within a Context element, I get the following error from Tomcat at startup: java.lang.IllegalArgumentException: Document base C:\usr\jakarta-tomcat-4.0.6\C:\test does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:187) at org.apache.catalina.core.StandardContext.setResources(StandardContext.java:1108) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.util.xml.AddChild.end(XmlMapper.java:811) at org.apache.catalina.util.xml.XmlMapper.matchEnd(XmlMapper.java:419) at org.apache.catalina.util.xml.XmlMapper.endElement(XmlMapper.java:119) at org.xml.sax.helpers.XMLReaderAdapter.endElement(XMLReaderAdapter.java:347) at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403) at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1550) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1809) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:314) at javax.xml.parsers.SAXParser.parse(SAXParser.java:253) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) java.lang.NullPointerException at org.apache.catalina.startup.Catalina.start(Catalina.java:794) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Resources for a Context
Howdy, I assume you've read this, right? http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.htm l Context path=/myapp docBase=C:/test/ Resources className=org.apache.naming.resources.FileDirContext docBase=c:/dev/proj1/web / Resources className=org.apache.naming.resources.FileDirContext docBase=c:/dev/proj2/web / /Context I'm confused about what the above is trying to do. What is the design goal here? Perhaps if we start with that, we can find out the cleanest, simplest, most portable way to address it. Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]