TC 5.5.9 - how to use the system classpath
Our tomcat's are configured to use the system classpath for a large amount of the libraries. With TC 4.1.30, we modify the setclasspath.* and use catalina.sh start to start it. I tried this with TC 5.5.9 and it did not work. Is there something else that I am supposed to do to make the system classpath available to the webapps? Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1.30 with JDK 1.5_02 on Linux
Has anybody seen any problems with this? We are upgrading from 1.4.2_06 or _07 to 1.5._02. We are seeing some slow performance. It appears to be with forwards or possiblly redirects. Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
percent 0008 exploit
A co-worker that supports a federal sight just got an e-mail from their admins indicating that his site is exposing jsp source code when they appent %0008 to the end of their URLs. The view source shows his exact pages. He is using Tomcat 4.1.30 and JDK 1.4.2_05 I tired it on my servers (TC 4.1.30 and JDK 1.4.2_06). Is this a JRE vulnerability? = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: percent 0008 exploit
It is definately reproducable on his sytem, but he is on a secured connection. It does not happen on mine. The only variable that we know of is the JRE. --- Mark Thomas [EMAIL PROTECTED] wrote: I can't reproduce it either. I am using the latest 4.1.x from CVS but I am 100% certain there have been no changes that would relate to this since 4.1.30. On a related topic, security bugs should be reported privately by email to [EMAIL PROTECTED] If this had been a real issue it would have been nice to be able to get the patch out there before it was announced on a public list ;) Mark Mike Curwen wrote: hmm.. that would be _this_ old chestnut... (a little eager on the send, sorry.) http://shh.thathost.com/secadv/2001-03-29-tomcat.txt This particular exploit was fixed a long time ago (wasn't it?) Mike Curwen -Original Message- From: Norris Shelton [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 16, 2005 9:27 AM To: Tomcat Subject: percent 0008 exploit A co-worker that supports a federal sight just got an e-mail from their admins indicating that his site is exposing jsp source code when they appent %0008 to the end of their URLs. The view source shows his exact pages. He is using Tomcat 4.1.30 and JDK 1.4.2_05 I tired it on my servers (TC 4.1.30 and JDK 1.4.2_06). Is this a JRE vulnerability? = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat does not evaluate jspf extension files
Everytime I try to use a .jsfp extension for a file, tomcat does not evaluate it. Comments come out, code is displayed, etc. I also ran into this thread: http://www.javakb.com/Uwe/Forum.aspx/java-programmer/13915/Tomcat-5-EL-Expressions-in-jsp-inlcude He happened to be using the .jspf extension also. I tracked it down to this in the Tomcat web.xml: mime-mapping extensionjspf/extension mime-typetext/plain/mime-type /mime-mapping Is the problem because .jspf is not mapped to the jsp servlet like .jsp and .jspx are? servlet-mapping servlet-namejsp/servlet-name url-pattern*.jsp/url-pattern /servlet-mapping servlet-mapping servlet-namejsp/servlet-name url-pattern*.jspx/url-pattern /servlet-mapping = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with TC 4.1.30 manager app and new Oracle JDBC driver
In the process of moving a newer version of the Oracle driver (from 9.2.05 to 9.2.06) through out environments, we had the following error: Apache Tomcat/4.1.30 SQL Error. count = 0, total = 498 count = 0, total = 498 The server is set-up to use multiple services with a root context configured in each. Also, there is a manager app configured for each service that uses a JDBC realm for authentication. This driver worked on our local machines, in DEV and the QA environments. It also worked on the old tomcat 4.1.12 that was in the PREP environment, but did not work on the new tomcat 4.1.30 that was in the prep environment. As background, when we moved the 9.2.0.5 driver out, we had problem in the DEV environment with the driver change preventing Tomcat from starting up. The 9.2.05 driver worked in the QA environment. A few days later, I had time to trouble shoot the problem in the DEV, but it worked when I restarted the server. We are really worried, that this problem will happen when we move to the production environment where we have multiple servers. Any ideas? Is there a way to get more error messages or anything else that may be useful.? = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com Server port=8005 shutdown=SHUTDOWN debug=0 !-- A Service is a collection of one or more Connectors that share a single Container (and therefore the web applications visible within that Container). Normally, that Container is an Engine, but this is not required. Note: A Service is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-postservlet Connector className=org.apache.catalina.connector.http.HttpConnector port=9000 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=1 acceptCount=10 debug=0 connectionTimeout=6 /Connector Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=1 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=100 debug=0 scheme=https secure=true useURIValidationHack=false disableUploadTimeout=true Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory clientAuth=false protocol=TLS/ /Connector Engine name=Standalone defaultHost=postservlet debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / Host name=postservlet debug=0 appBase=webapps/postservlet unpackWARs=false Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=postservlet_access_log. suffix=.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=postservlet_log. suffix=.txt timestamp=true/ Context docBase=. priveleged=false path= /Context Context docBase=../../server/webapps/manager path=/manager privileged=true Realm className=org.apache.catalina.realm.JDBCRealm digest=MD5 driverName=oracle.jdbc.driver.OracleDriver connectionURL=not for your eyes connectionName=not for your eyes connectionPassword=not for your eyes userTable=svrlnk.tomcat_user_realm_vw userNameCol=ss_user_id userCredCol=ss_password userRoleTable=svrlnk.tomcat_user_realm_vw roleNameCol=tomcat_role /Realm Valve className=org.apache.catalina.valves.RemoteAddrValve allow=not for your eyes/ /Context /Host /Engine /Service Service name=Tomcat-justicexchange Connector className=org.apache.catalina.connector.http.HttpConnector port=9001 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=10001 acceptCount=10 debug=0 connectionTimeout=6/ Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=10001 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=100 debug=0 scheme=https secure=true useURIValidationHack=false disableUploadTimeout=true Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory clientAuth=false protocol=TLS/ /Connector Engine name=JusticeXchange defaultHost=justicexchange debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix
Re: Does TC 5.5 have some type of farm deployer?
Fantastic. Thx. --- Peter Rossbach [EMAIL PROTECTED] wrote: Hello Norris, I have actived the FarmWarDeployer at release 5.5.5. Regards Peter Norris Shelton schrieb: I ran across this document, but have not been able to find out any additional information. http://tomcat.objektpark.org/pdf/Proposal-HostConfig-Deployer.pdf = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- J2EE Systemarchitekt und Tomcat Experte http://objektpark.de/ http://tomcat.objektpark.org/ http://centaurus.sourceforge.net/ Am Josephsschacht 72, 44879 Bochum, Deutschland Telefon: (49) 234 9413228 Mobil:(49) 175 1660884 E-Mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Does TC 5.5 have some type of farm deployer?
I ran across this document, but have not been able to find out any additional information. http://tomcat.objektpark.org/pdf/Proposal-HostConfig-Deployer.pdf = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Realm using LOTS of DB connections
I would like to, but we are not allowed to use pooling yet. --- Seth Ladd [EMAIL PROTECTED] wrote: Norris Shelton wrote: We have the manager app for each of our contexts set-up to use the DB to authenticate users. Unfortunately, it is using TONS of connections. Over an 8 min period, it used 1200 connections. We have 2 boxes, each with 16 contexts with their own manager context. Here is what the manager context of each of them looks like: Context docBase=../../server/webapps/manager path=/manager privileged=true Realm className=org.apache.catalina.realm.JDBCRealm You might want to try to DataSourceRealm, which would pull its connection from a pool. Seth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Realm using LOTS of DB connections
OK, we figured it out. Someone was using the connection to monitoring. This monitoring took 24 hits every 3 seconds across all of our websites. Thx for your assistance. --- Norris Shelton [EMAIL PROTECTED] wrote: Sorry, I forgot to specify the version. TC 4.1.12 --- Norris Shelton [EMAIL PROTECTED] wrote: We have the manager app for each of our contexts set-up to use the DB to authenticate users. Unfortunately, it is using TONS of connections. Over an 8 min period, it used 1200 connections. We have 2 boxes, each with 16 contexts with their own manager context. Here is what the manager context of each of them looks like: Context docBase=../../server/webapps/manager path=/manager privileged=true Realm className=org.apache.catalina.realm.JDBCRealm digest=MD5 driverName=oracle.jdbc.driver.OracleDriver connectionURL=jdbc:oracle:thin:@myhost.com:myport:mydb connectionName=tomcatmgr connectionPassword=password userTable=user_table userNameCol=ss_user_id userCredCol=ss_password userRoleTable=role_table roleNameCol=tomcat_role / Valve className=org.apache.catalina.valves.RemoteAddrValve allow=10\.11\.\d+\.\d+,127\.0\.0\.1/ /Context Is this normal? Is there a way to throttle it? = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Realm using LOTS of DB connections
We have the manager app for each of our contexts set-up to use the DB to authenticate users. Unfortunately, it is using TONS of connections. Over an 8 min period, it used 1200 connections. We have 2 boxes, each with 16 contexts with their own manager context. Here is what the manager context of each of them looks like: Context docBase=../../server/webapps/manager path=/manager privileged=true Realm className=org.apache.catalina.realm.JDBCRealm digest=MD5 driverName=oracle.jdbc.driver.OracleDriver connectionURL=jdbc:oracle:thin:@myhost.com:myport:mydb connectionName=tomcatmgr connectionPassword=password userTable=user_table userNameCol=ss_user_id userCredCol=ss_password userRoleTable=role_table roleNameCol=tomcat_role / Valve className=org.apache.catalina.valves.RemoteAddrValve allow=10\.11\.\d+\.\d+,127\.0\.0\.1/ /Context Is this normal? Is there a way to throttle it? = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Realm using LOTS of DB connections
Sorry, I forgot to specify the version. TC 4.1.12 --- Norris Shelton [EMAIL PROTECTED] wrote: We have the manager app for each of our contexts set-up to use the DB to authenticate users. Unfortunately, it is using TONS of connections. Over an 8 min period, it used 1200 connections. We have 2 boxes, each with 16 contexts with their own manager context. Here is what the manager context of each of them looks like: Context docBase=../../server/webapps/manager path=/manager privileged=true Realm className=org.apache.catalina.realm.JDBCRealm digest=MD5 driverName=oracle.jdbc.driver.OracleDriver connectionURL=jdbc:oracle:thin:@myhost.com:myport:mydb connectionName=tomcatmgr connectionPassword=password userTable=user_table userNameCol=ss_user_id userCredCol=ss_password userRoleTable=role_table roleNameCol=tomcat_role / Valve className=org.apache.catalina.valves.RemoteAddrValve allow=10\.11\.\d+\.\d+,127\.0\.0\.1/ /Context Is this normal? Is there a way to throttle it? = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can application scope data be replicated
Is there a way to replicate application scope data like there is a way to replicate session scope information? = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Authenticating users without unique username
We identify our users by site id, username and password. The standard Catalina Realms expect username and password only. This will possibly not find the correct user. Does it increment through the columns looking for another row with the same username and the correct password? Do I need to implement a custom realm? If so which one? Any examples? = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why tomcat 4 or even 3?
Sometimes we developers have no choice on the version that we run. We were upgraded from 4.1.12 to 4.1.30 last weekend. This only happened because IT wanted to upgrade from SLES7 to SLES8 and 4.1.30 is the version that YAAST had. If it had been up to my part of the We, we would have been on 5.0 a LONG time ago. I've only been harping to get a 5.0 development server for a year and a half. It looks like I'm still at least 2 months away. Dang nabbit. --- John Villar [EMAIL PROTECTED] wrote: A question to everyone out there. why does anyone use nowadays Tomcat 4 branch?. isn't tomcat 5 branch more bug free, featurefull and backwards compatible? that question has haunted me from the beginning of joining this list. -- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton ___ Do you Yahoo!? Express yourself with Y! Messenger! Free. Download now. http://messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSP source being shown (not being executed)
This may be the problem with was talked about a while back. Here are the contents of one of the e-mails: From: Asaf Barkan [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: security hole on windows/ Tomcat with JRE 1.4.2 (b28) Date: Sun, 24 Aug 2003 18:04:23 +0300 The syndrome is that when typing: http://myurl:8080/myfile.jsp%20 http://myurl:8080/myfile.jsp%20 The JSP code is delivered to the client. I have checked this on the followed platforms: Win2k server (SP3) JRE 1.4.2 (b28) IIS 5/Tomcat HTTP 1.1 connector It works but it is not consistent (could be some race case). BTW I have tried this on 1.4.2 (b2) and I could not compromise this hole. I have encountered a discussion on a similar issue with a recommendation to add the following argument to the Tomcat string: -Dsun.io.useCanonCaches=false I have tried this and it solved the problem. Can some tell me whether there are other solutions and what this parameter means ? Thanks a lot --- Annie Guo [EMAIL PROTECTED] wrote: I have seen that before with JDK not in the system path. -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 08, 2004 2:44 PM To: Tomcat Users List Subject: Re: JSP source being shown (not being executed) Actually, I'm not running Apache right now. This has something to do with my servlet context (*.html) not being sent to the JSP engine - it's treating it like regular HTML right now. Strange, since my other mappings seem to work fine (*.do). Michael - Original Message - From: Schalk [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, June 08, 2004 11:23 AM Subject: RE: JSP source being shown (not being executed) Just a thought but, if you are running both Apache and Tomcat, Apache is probably picking up the .html extension and tries to display the content of the file which will result in it displaying the code. Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.com This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. :: -Original Message- :: From: Michael Mehrle [mailto:[EMAIL PROTECTED] :: Sent: Tuesday, June 08, 2004 7:58 PM :: To: Tomcat Users List :: Subject: JSP source being shown (not being executed) :: :: For some reason my JSP source is being shown - it's not being compiled and :: executed. It might be worthwhile mentioning that I am mapping some servlet :: context as *.html, which redirects to this jsp - but it worked in another :: app of mine and inside my new app it doesn't work. :: :: I'm running Tomcat 5.0.26 btw. :: :: Any input would be welcome. :: :: Michael :: :: :: - :: To unsubscribe, e-mail: [EMAIL PROTECTED] :: For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5, cross context problem
I have also had problems getting crossContext to work with 5.0.19. No one ever gave an answer. Good Luck. --- Rainald Suchan [EMAIL PROTECTED] wrote: Hi, I have 2 web applications, a JSP and a Servlet, that are in differed contexts. For both I have set cross context to true. In the JSP I put some attributes in the session and use a RequestDispatcher and call the include() function to pass the request to the servlet. In the servlet I get these attributes out of the session and put some other attributes in the session. After returning to the JSP I get these new attributes again out of the session. This all works ok with Tomcat 4. But now I tried this with Tomcat 5.0.16 and the session passed between the two webapps don't have the attributes in it any more in the other context. That means If I put an attribute in the JSP in the session and get this session back in the Servlet then this session doesn't contain my attribute any more. Is that a known issue with Tomcat 5? Does anybody have a solution for this problem? Regards Rainald = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! Tax Center - File online by April 15th http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Yoav --RE: TC 5 production use
What are you thoughts on a JBoss 4 setup? Do you still recommend staying away from Apache? --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, I'm using it in production, no issues. But then again I steer clear of the practices that tend to cause issues frequently: I don't redeploy my apps in production (when I ship a new version I do so during our maintenance window and restart the server), I profile and test carefully for memory leaks, I don't use apache in front of tomcat, I do use a security manager, I do deploy and run only packed WARs, nothing reloadable or auto-deployed... Yoav Shapira Millennium ChemInformatics -Original Message- From: Johannes [mailto:[EMAIL PROTECTED] Sent: Friday, February 06, 2004 4:43 PM To: Tomcat Users List Subject: TC 5 production use hi there, I saw TC5.0.18 is marked stable on the Tomcat-Website (production quality). Is anybody using TC 5.0.x in production already ? Did any remarkable issues arise? thx Johannes This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TC 5.0.19/W2KPro - Cross Context will not work
bump. Any ideas? --- Norris Shelton [EMAIL PROTECTED] wrote: java.lang.NullPointerException com.appriss.prototype.cross_context.test.ContextReceiverServlet.doGet(ContextReceiverServlet.java:18) if (request != null) { #18- HttpSession session = request.getSession(true); javax.servlet.http.HttpServlet.service(HttpServlet.java:743) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) com.appriss.prototype.cross_context.ContextSenderServlet.doPost(ContextSenderServlet.java:31) - Entire contents of doPost() ServletContext myContext = getServletContext(); RequestDispatcher dispatcher = getServletContext().getContext(/second_webapp).getRequestDispatcher(/backdoor.jsp); System.out.println(Dispatcher= + dispatcher); #31- dispatcher.forward(request, response); com.appriss.prototype.cross_context.ContextSenderServlet.doGet(ContextSenderServlet.java:75) - Entire contents of doGet() #75- doPost(request, response); javax.servlet.http.HttpServlet.service(HttpServlet.java:743) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) Any help you can give will be most helpful. --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, if (request != null) { HttpSession session = request.getSession(true); -- NPE The stack trace points to this line as the NPE line? Are you sure? Can you post the stack trace? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TC 5.0.19/W2KPro - Cross Context will not work
I have two contexts. I have marked both of them as crossContext=true. I am able to forward via a requestDispatcher from the first webapp to the second webapp. However, I am getting a NPE in the destination servlet in the following code: if (request != null) { HttpSession session = request.getSession(true); -- NPE Can anyone help? Does anyone have cross context working? = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TC 5.0.19/W2KPro - Cross Context will not work
java.lang.NullPointerException com.appriss.prototype.cross_context.test.ContextReceiverServlet.doGet(ContextReceiverServlet.java:18) if (request != null) { #18- HttpSession session = request.getSession(true); javax.servlet.http.HttpServlet.service(HttpServlet.java:743) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) com.appriss.prototype.cross_context.ContextSenderServlet.doPost(ContextSenderServlet.java:31) - Entire contents of doPost() ServletContext myContext = getServletContext(); RequestDispatcher dispatcher = getServletContext().getContext(/second_webapp).getRequestDispatcher(/backdoor.jsp); System.out.println(Dispatcher= + dispatcher); #31- dispatcher.forward(request, response); com.appriss.prototype.cross_context.ContextSenderServlet.doGet(ContextSenderServlet.java:75) - Entire contents of doGet() #75- doPost(request, response); javax.servlet.http.HttpServlet.service(HttpServlet.java:743) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) Any help you can give will be most helpful. --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, if (request != null) { HttpSession session = request.getSession(true); -- NPE The stack trace points to this line as the NPE line? Are you sure? Can you post the stack trace? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with Cross context
I have the same problem. I have both of the contexts marked as crossContext. I get a non-null context object, but a forward never finds the destination page. Tomcat 4.1.18 on W2KPro --- Aadi Deshpande [EMAIL PROTECTED] wrote: i believe crossContext marks that specific web application as being able to initiate a cross-context request, not as the recipient of a cross-context request. so try marking the other web-application that you are calling out from as crossContext=true -a [EMAIL PROTECTED] wrote: Hey gang, I'm trying to access one web appl from another. I added crosscontext in the server.xml file Host Context docBase=/servlets-examples path=/servlets-examples crossContext=true reloadable=true/Context /Host And in java, ServletContext sc = filterConfig.getServletContext().getContext (/servlets-examples); System.out.println(sc.getServletContextName()); This is giving null pointer exception. I'm held up on this for few hours. I would appreciate if anyone could solve this. Thanks, Madhan Lakshmanan(Maddy) Park Seed Inc 864-941-4232 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help with cross context webapp
I have the following in my server.xml: Service name=Tomcat-prototype-first_webapp Connector className=org.apache.catalina.connector.http.HttpConnector port=7001 redirectPort=8001 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 connectionTimeout=6/ Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8001 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=100 debug=0 scheme=https secure=true useURIValidationHack=false disableUploadTimeout=true Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory clientAuth=false protocol=TLS/ /Connector Engine name=prototype-first_webapp defaultHost=prototype-first_webapp debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm/ Host name=prototype-first_webapp debug=0 appBase=webapps/prototype/first_webapp unpackWARs=false aliaskcobb_tyan/alias Context docBase=. path= priveleged=false reloadable=true crossContext=true/ Context docBase=../second_webapp path=/second_webapp priveleged=false reloadable=true crossContext=true/ /Host /Engine /Service I have the following in my sender servlet (notice the other commented-out attempts): //super.doPost(request, response);//To change body of overridden methods use File | Settings | File Templates. //ServletContext myContext = getServletContext(); // //ServletContext theirContext = myContext.getContext(/second_webapp); //System.out.println(Context= + theirContext); // //RequestDispatcher dispatcher = theirContext.getRequestDispatcher(/second_webapp/backdoor.jsp); //System.out.println(Dispatcher= + theirContext); // //dispatcher = theirContext.getRequestDispatcher(/backdoor.jsp); //System.out.println(Dispatcher= + theirContext); // //dispatcher.forward(request, response); // //RequestDispatcher rd = this.getServletConfig().getServletContext().getRequestDispatcher(/second_webapp/backdoor.jsp); //System.out.println(rd= + rd); // // //ServletContext context = this.getServletConfig().getServletContext(); //rd = context.getContext(/second_webapp).getRequestDispatcher(/backdoor.jsp); //System.out.println(rd= + rd); // //rd.forward(request, response); //ServletContext myContext = getServletContext(); // //RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(/second_webapp/backdoor.jsp); //System.out.println(Dispatcher= + dispatcher); // //dispatcher.forward(request, response); ServletContext myContext = getServletContext(); RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(/second_webapp/backdoor.jsp); System.out.println(Dispatcher= + dispatcher); dispatcher.forward(request, response); The theirContext and the dispatcher objects are NOT null, but I continue to get: /second_webapp/backdoor.jsp Which is where I want to go. If I enter that manually (http://localhost:7001/second_webapp/index.jsp), I get the desired output. Can anyone help? = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Limit size of catalina.out ?
Is there any particular reason why this was never set-up to rotate like the other logs? --- Tim Funk [EMAIL PROTECTED] wrote: Nope. There are no size based limitations on files bundled. -Tim Philippe Couas wrote: Hi, Can i limit disk size of catalina.out file in Tomcat 4.1.30 ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Get better spam protection with Yahoo! Mail. http://antispam.yahoo.com/tools - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Limit size of catalina.out ?
I searched the internet for it, but could not get a clear definition for it. Does it ignore System.out and System.err from the context? --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Is there any particular reason why this was never set-up to rotate like the other logs? It's not a catalina Logger, it's just the trap for System.out/System.err. one good way to get it to rotate is to add swallowOutput=true to your Context definition. Of course, patches/enhancements are always welcome as well. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Get better spam protection with Yahoo! Mail. http://antispam.yahoo.com/tools - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TC 4.1.12 on Linux - session swapping
I took a look at the code. UGLY. All of the code is in the JSP and there are no class variables. There are lots of page scope beans. Page scope is not something that I am used to using. I usually use request. Could this be a problem where the next request is hitting the page before it has died in a high-volume scenario? --- Altankov Peter [EMAIL PROTECTED] wrote: This has the taste of a thread safety issue. Do you guys happen to run the query against the same servlet? If yes, do you happen to use variables, defined in the servlet class scope in order to extract objects from session? BR -Original Message- From: Norris Shelton [mailto:[EMAIL PROTECTED] Sent: 07 ßíóàðè 2004 ã. 16:17 To: 'Tomcat Users List' Subject: TC 4.1.12 on Linux - session swapping We are running TC 4.1.12 on Linux. We have 8 different websites that run on tomcat. Most of them are low volume. We have encountered the problem where a test engine is executing multiple requests from multiple machines using multiple user accounts against a specific webapp. Sometimes the search results that come back are the search results for a query that was supposed to be ran by one of the other machines. Here is an example. Machine 1 - user 1 -query 1 Machine 2 - user 2 - query 2 machine 1 will sometimes get the results from query 2. The session information holds all of the information. This is from an internal test against a test server so there is no firewall, proxy, etc in the way. I have also been told that this has happened on one of our other web apps also. This time it was a production machine and one of our most used webapps. Any ideas? = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TC 4.1.12 on Linux - session swapping
They are being posted to the same JSP. There are several beans that are page scope. Think that is it? I have a newer part that was written by me that uses request and session scope beans. I will have the QA person run her tests against that part of the project. I am assuming that this will be OK. If so, I will change the page scope beans to be request scope beans. Hopefully the problem will go away. I had noticed on other servers that if you have a request scope beans and you post back to the same page, you sometimes get back the same request. Usually not a problem, because it is yours. However, if this happens for page scope, then real bad, because everyone uses the page. I will let you know what we find. --- QM [EMAIL PROTECTED] wrote: : machine 1 will sometimes get the results from query 2. Smells like an instance/global variable where there shouldn't be one. Add that to a subtle race condition and you have the problem you've outlined. Are the queries being posted to the same servlet? -QM -- software -- http://www.brandxdev.net (C++ / Java / SSL) tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TC 4.1.12 on Linux - session swapping
We are running TC 4.1.12 on Linux. We have 8 different websites that run on tomcat. Most of them are low volume. We have encountered the problem where a test engine is executing multiple requests from multiple machines using multiple user accounts against a specific webapp. Sometimes the search results that come back are the search results for a query that was supposed to be ran by one of the other machines. Here is an example. Machine 1 - user 1 -query 1 Machine 2 - user 2 - query 2 machine 1 will sometimes get the results from query 2. The session information holds all of the information. This is from an internal test against a test server so there is no firewall, proxy, etc in the way. I have also been told that this has happened on one of our other web apps also. This time it was a production machine and one of our most used webapps. Any ideas? = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fake https connector
We use BigIP to perform SSL duties for our website. We are about to add a filter to force all page accesses to be sure. The plan is to have two ports (9000 for regular requests and 11000 for secure requests). It would work like this: Request comes in on port 80 to BigIP. It would send the request to port 9000 on the tomcat. The filter would check the scheme. It is not https, so it would redirect to the same URL with the scheme of https. BigIP would receive the redirected request on port 443. It would decrypt it and send it to port 11000. I see where it has the scheme and secure parameters on the standard connector. I was thinking that I could use a regular connector, but change scheme to https. This would give my filter what it needs and still allow BigIP to perform decryption. However, when I do this, requests to https (443) hang. They never get through. Any ideas? = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with a page redirecting to a non-existent page
We are running 4.1.12 on Linux behind BigIP. We have a file /search.jsp. For some reason, yesterday, it started redirecting to /dis_timeout.jsp. There is no reference to dis_timeout.jsp (file or even text within a file). I deleted the work files and reloaded the webapp. No change. I copied the contents of index.jsp to search.jsp, deleted the work files and reloaded the webapp. Still get the redirect, even though the contents of search_jsp.java are the same as index_jsp.java. Here is what the access log shows when /search.jsp is requested: 10.11.6.118 - - [04/Sep/2003:12:19:19 -0500] GET /search.jsp HTTP/1.1 302 - 10.11.6.118 - - [04/Sep/2003:12:19:19 -0500] GET /dis_timeout.jsp HTTP/1.1 404 - = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with a page redirecting to a non-existent page
This is interesting. We changed the name of the file from search.jsp to searchnew.jsp (contents the same). It works. WTF --- Norris Shelton [EMAIL PROTECTED] wrote: We are running 4.1.12 on Linux behind BigIP. We have a file /search.jsp. For some reason, yesterday, it started redirecting to /dis_timeout.jsp. There is no reference to dis_timeout.jsp (file or even text within a file). I deleted the work files and reloaded the webapp. No change. I copied the contents of index.jsp to search.jsp, deleted the work files and reloaded the webapp. Still get the redirect, even though the contents of search_jsp.java are the same as index_jsp.java. Here is what the access log shows when /search.jsp is requested: 10.11.6.118 - - [04/Sep/2003:12:19:19 -0500] GET /search.jsp HTTP/1.1 302 - 10.11.6.118 - - [04/Sep/2003:12:19:19 -0500] GET /dis_timeout.jsp HTTP/1.1 404 - = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with a page redirecting to a non-existent page
Oh, great. It gets even more interesting. One of my coworkers has a problem with her search.jsp in another context and we just found that another coworder has a search.jsp and a dis_timeout.jsp. Each of the contexts is defined within their own service. How can one context affect another? --- Norris Shelton [EMAIL PROTECTED] wrote: This is interesting. We changed the name of the file from search.jsp to searchnew.jsp (contents the same). It works. WTF --- Norris Shelton [EMAIL PROTECTED] wrote: We are running 4.1.12 on Linux behind BigIP. We have a file /search.jsp. For some reason, yesterday, it started redirecting to /dis_timeout.jsp. There is no reference to dis_timeout.jsp (file or even text within a file). I deleted the work files and reloaded the webapp. No change. I copied the contents of index.jsp to search.jsp, deleted the work files and reloaded the webapp. Still get the redirect, even though the contents of search_jsp.java are the same as index_jsp.java. Here is what the access log shows when /search.jsp is requested: 10.11.6.118 - - [04/Sep/2003:12:19:19 -0500] GET /search.jsp HTTP/1.1 302 - 10.11.6.118 - - [04/Sep/2003:12:19:19 -0500] GET /dis_timeout.jsp HTTP/1.1 404 - = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[SOLVED]Re: Problem with a page redirecting to a non-existent page
We figured out the problem. He was working on a problem where deployed .jsp files were not being picked up. He removed all the work files and restarted tomcat from that directory. The script that we use (why, because IT wrote it and says we have to use it) includes . in the classpath. Hence, his work files were available to everyone. Luckily most of his URLs were unique to his (imagine if he had a normal /index.jsp). --- Norris Shelton [EMAIL PROTECTED] wrote: Oh, great. It gets even more interesting. One of my coworkers has a problem with her search.jsp in another context and we just found that another coworder has a search.jsp and a dis_timeout.jsp. Each of the contexts is defined within their own service. How can one context affect another? --- Norris Shelton [EMAIL PROTECTED] wrote: This is interesting. We changed the name of the file from search.jsp to searchnew.jsp (contents the same). It works. WTF --- Norris Shelton [EMAIL PROTECTED] wrote: We are running 4.1.12 on Linux behind BigIP. We have a file /search.jsp. For some reason, yesterday, it started redirecting to /dis_timeout.jsp. There is no reference to dis_timeout.jsp (file or even text within a file). I deleted the work files and reloaded the webapp. No change. I copied the contents of index.jsp to search.jsp, deleted the work files and reloaded the webapp. Still get the redirect, even though the contents of search_jsp.java are the same as index_jsp.java. Here is what the access log shows when /search.jsp is requested: 10.11.6.118 - - [04/Sep/2003:12:19:19 -0500] GET /search.jsp HTTP/1.1 302 - 10.11.6.118 - - [04/Sep/2003:12:19:19 -0500] GET /dis_timeout.jsp HTTP/1.1 404 - = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: About heap size, gc and newsize
I guess the real question is why are you concerned with when the requests are GC'd. Left to it's own devices, GC usually only happens when the JVM is using almost all of the allocated memory. Therefore, the more memory allocated, the longer till GC and the longer GC will last. If you are trying to get it to run more often so that it takes less time, take a look at 1.4.2. --- Bill Barker [EMAIL PROTECTED] wrote: At least in Tomcat, the HttpRequests aren't short-lived ;-). If you are using Sun's JVM, then I'd try -Xincgc first (otherwise, consult your vendor's docs for the correct option). In many cases it hurts performance, but in some it improves it dramatically. Your mileage may vary ;-). [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all. I am trying to get gc to reclaim more regularly by clearing short live HttpRequest. Is this syntax corrrect, doesn't seem to do much whichever way I tweak it : (catalina.sh) ... JAVA_OPTS=-Xms256m -Xmx256m -XX:NewSize=128m -XX:MaxNewSize=128m TIA :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat training
I saw the e-mail about the tomcat training offered by http://www.galatea.com/training. Is this worth going to? Are there others? What is the best? = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Classpath Conundrum (2nd try)
You are working too hard. My start-up icon looks like: C:\dev\tomcat\Tomcat 4.1.18\bin\catalina.bat start That's it. --- Thomas Davis [EMAIL PROTECTED] wrote: --- Norris Shelton [EMAIL PROTECTED] wrote: Remember, these changes were for W2K PRO, should work on other environments but YMMV. setclasspath.bat set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar I added %CLASSPATH% after the = sign Thanks for the tip. I tried that (which was the same as my original attempt, but I tried again just for kicks) and it didn't work. Further investigation revealed that the shortcut to start Tomcat doesn't call catalina.bat at all! Instead, it calls this: C:\j2sdk1.4.2\bin\java.exe -jar -Duser.dir=C:\Program Files\Apache Group\Tomcat 4.1 C:\Program Files\Apache Group\Tomcat 4.1\bin\bootstrap.jar start So I tried hacking the shortcut in the following ways: C:\j2sdk1.4.2\bin\java.exe -classpath %CLASSPATH% -jar -Duser.dir=C:\Program Files\Apache Group\Tomcat 4.1 C:\Program Files\Apache Group\Tomcat 4.1\bin\bootstrap.jar start C:\j2sdk1.4.2\bin\java.exe -classpath c:\myapp\native;c:\myapp\foreign -jar -Duser.dir=C:\Program Files\Apache Group\Tomcat 4.1 C:\Program Files\Apache Group\Tomcat 4.1\bin\bootstrap.jar start But neither worked. After restarting the server, I'm still presented with the expected error: javax.servlet.ServletException: Wrapper cannot find servlet class com.myapp.servlet.BootStrap or a class it depends on Somehow there must be a way to get the class loader to look in the /foreign and /native directories :-( - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Classpath Conundrum (2nd try)
I think this will work for non-windows, but YMMV... To start our Tomcat's on W2K, we modify setclasspath.bat to include %CLASSPATH% when it constructs it's classpath. Then tomcat is started via catalina.bat with a start parameter. It looks like there are .sh versions of all of these files. --- Dmitry Sklyut [EMAIL PROTECTED] wrote: You can add setenv.bat/sh to you tomcat bin direcotry. catalina.bat/sh will do the following: rem Get standard environment variables if exist %CATALINA_HOME%\bin\setenv.bat call %CATALINA_HOME%\bin\setenv.bat # Get standard environment variables PRGDIR=`dirname $PRG` CATALINA_HOME=`cd $PRGDIR/.. ; pwd` if [ -r $CATALINA_HOME/bin/setenv.sh ]; then . $CATALINA_HOME/bin/setenv.sh fi So this is one way of setting up the classpath. Dmitry -Original Message- From: Thomas Davis [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 10:41 AM To: [EMAIL PROTECTED] Subject: Classpath Conundrum (2nd try) [I apologize is this message is a dupe. I had trouble sending messages to this group from a hotmail account.] I have been tasked with trying to get a legacy Java Servlet based application running under Tomcat 4.1.24 -- The application currently runs on JRun 2.3.3 On of the requirements imposed upon me is that I can't disturb the existing directory structure. I can't rename or move any directories (or their contents). Our third-party Java classes are in: c:\myapp\foreign Our application and development Java classes are in: c:\myapp\native The root directory of the web server is: c:\myapp\native\web I created the following Context in server.xml: Context path=/tomcat docBase=c:/myapp/native/web debug=0/ Then I created the servlet deployment file: c:\myapp\native\web\WEB-INF\web.xml The contents of said file: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-namemyapp/servlet-name servlet-classcom.myapp.servlet.BootStrap/servlet-class /servlet servlet-mapping servlet-namemyapp/servlet-name url-pattern/myapp/url-pattern /servlet-mapping /web-app So now I'm all set to go, except that I'm going to (and did) get a class not found error because there is no /classes directory under WEB-INF and as mentioned above I can't copy the classes from /foreign and /native there. I can't create a symbolic link from /classes to /native since that would be recursive, and it wouldn't include /foreign which is also required. The /native and /foreign directories are in the CLASSPATH environment variable, but as documented in Class Loader HOW-TO that variable is ignored by the class loaders. It would seem to me that the easiest and most straight-forward solution is to get the class loaders to honor the CLASSPATH environment variable. I tried to accomplish this by hacking the start-up scripts, but could not get it to work. Could somebody please help me out here? What's the best way to get the class loader to look in /native and /foreign? Or is there a better solution (other than shuffling the directories around, which I can't do). Thanks a million! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] NOTICE: This communication may contain proprietary or other confidential business information of Orcom Solutions, Inc. If you are not the intended recipient or believe that you may have received this communication in error, please reply to the sender indicating that fact and delete the copy you received. In addition, you should not print, copy, retransmit, disseminate, or otherwise use the information. Thank you. = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Classpath Conundrum (2nd try)
Remember, these changes were for W2K PRO, should work on other environments but YMMV. setclasspath.bat set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar I added %CLASSPATH% after the = sign OMG - I know why it did not work ;-0 I forgot to tell you to make sure that you include Tomcat's servlet.jar in your classpath. Don't ask me why this is not picked up when you run catalina.bat start, but .. Add the following to your system classpath: %CATALINA_HOME%\common\lib\servlet.jar; FYI - I have this working for 4.1.18 and 4.1.24, but could not get it to work for 5.0.3. --- Thomas Davis [EMAIL PROTECTED] wrote: --- Norris Shelton [EMAIL PROTECTED] wrote: To start our Tomcat's on W2K, we modify setclasspath.bat to include %CLASSPATH% when it constructs it's classpath. I tried that but could not get it to work. I'm apparently putting it in the wrong place. Could you please detail the change(s) you made to the batch file(s)? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TC 4.1 + symbolic linking
I can't get this to work. I have the following directory structure: /opt/jakarta/webapps/siteexplorer Under siteexplorer, I have a symbolic lin named htmldoc. I can follow the links manually and everything works. Here is how the context is defined in the server.xml: Context docBase=./siteexplorer priveleged=false path=/siteexplorer Resources className=org.apache.naming.resources.FileDirContext allowLinking=true caseSensitive=false / /Context I am running tomcat 4.1.12 on Linux. I get no messages and I am NOT starting tomcat with -security. I even made the following change to catalina.policy: grant codeBase file:${catalina.home}/webapps/siteexplorer/htmldoc/- { permission java.security.AllPermission; }; Does anybody have any clue? --- Tim Funk [EMAIL PROTECTED] wrote: Tomcat by default doesn't like symbolic links. Its a security vulnerablility. To use sym links - you must tell tomcat to use them. http://marc.theaimsgroup.com/?l=tomcat-userm=105159411609623w=2 -Tim Norris Shelton wrote: We have some HTML files that are on another machine. A link was created (htmldoc). I then modified the server.xml by adding the following to the context definition: Resources className=org.apache.naming.resources.FileDirContext caseSensitive=false allowLinking=true/ The context will not load (no errors). I even added an entry in the catalina.policy: // The permissions granted to the context WEB-INF/classes directory grant codeBase file:${catalina.home}/webapps/siteexplorer/htmldoc/- { }; If I remove the allowLinking resource, the app starts correctly. Anyone have any ideas on what the problem is. = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TC 4.1 + symbolic linking
I copied them there and everything worked fine. WTF!! Could it be that I am linking part of the context to a different location? I am going to try an experiment on one of the other Linux machines to get a known working context working via a symlink. --- Tim Funk [EMAIL PROTECTED] wrote: What happens if you copy htmldoc to its symlink location and not use the sym link? Do you still get the same error? If you do - then the error has nothing to do with symlinks. -Tim (Grasping at straws) Norris Shelton wrote: I can't get this to work. I have the following directory structure: /opt/jakarta/webapps/siteexplorer Under siteexplorer, I have a symbolic lin named htmldoc. I can follow the links manually and everything works. Here is how the context is defined in the server.xml: Context docBase=./siteexplorer priveleged=false path=/siteexplorer Resources className=org.apache.naming.resources.FileDirContext allowLinking=true caseSensitive=false / /Context I am running tomcat 4.1.12 on Linux. I get no messages and I am NOT starting tomcat with -security. I even made the following change to catalina.policy: grant codeBase file:${catalina.home}/webapps/siteexplorer/htmldoc/- { permission java.security.AllPermission; }; Does anybody have any clue? --- Tim Funk [EMAIL PROTECTED] wrote: Tomcat by default doesn't like symbolic links. Its a security vulnerablility. To use sym links - you must tell tomcat to use them. http://marc.theaimsgroup.com/?l=tomcat-userm=105159411609623w=2 -Tim Norris Shelton wrote: We have some HTML files that are on another machine. A link was created (htmldoc). I then modified the server.xml by adding the following to the context definition: Resources className=org.apache.naming.resources.FileDirContext caseSensitive=false allowLinking=true/ The context will not load (no errors). I even added an entry in the catalina.policy: // The permissions granted to the context WEB-INF/classes directory grant codeBase file:${catalina.home}/webapps/siteexplorer/htmldoc/- { }; If I remove the allowLinking resource, the app starts correctly. Anyone have any ideas on what the problem is. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TC 4.1 + symbolic linking
I think I will blow my brains out. I thought they were running 4.1.24, but they were really running 4.1.12. It looks like this did not work for that version. Doh. Time for an upgrade. --- Norris Shelton [EMAIL PROTECTED] wrote: I copied them there and everything worked fine. WTF!! Could it be that I am linking part of the context to a different location? I am going to try an experiment on one of the other Linux machines to get a known working context working via a symlink. --- Tim Funk [EMAIL PROTECTED] wrote: What happens if you copy htmldoc to its symlink location and not use the sym link? Do you still get the same error? If you do - then the error has nothing to do with symlinks. -Tim (Grasping at straws) Norris Shelton wrote: I can't get this to work. I have the following directory structure: /opt/jakarta/webapps/siteexplorer Under siteexplorer, I have a symbolic lin named htmldoc. I can follow the links manually and everything works. Here is how the context is defined in the server.xml: Context docBase=./siteexplorer priveleged=false path=/siteexplorer Resources className=org.apache.naming.resources.FileDirContext allowLinking=true caseSensitive=false / /Context I am running tomcat 4.1.12 on Linux. I get no messages and I am NOT starting tomcat with -security. I even made the following change to catalina.policy: grant codeBase file:${catalina.home}/webapps/siteexplorer/htmldoc/- { permission java.security.AllPermission; }; Does anybody have any clue? --- Tim Funk [EMAIL PROTECTED] wrote: Tomcat by default doesn't like symbolic links. Its a security vulnerablility. To use sym links - you must tell tomcat to use them. http://marc.theaimsgroup.com/?l=tomcat-userm=105159411609623w=2 -Tim Norris Shelton wrote: We have some HTML files that are on another machine. A link was created (htmldoc). I then modified the server.xml by adding the following to the context definition: Resources className=org.apache.naming.resources.FileDirContext caseSensitive=false allowLinking=true/ The context will not load (no errors). I even added an entry in the catalina.policy: // The permissions granted to the context WEB-INF/classes directory grant codeBase file:${catalina.home}/webapps/siteexplorer/htmldoc/- { }; If I remove the allowLinking resource, the app starts correctly. Anyone have any ideas on what the problem is. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Remote debugging on linux for TOMCAT 4.1.24
This works if you want to use the defaults. I usually connect via a socket via IntelliJ for remote debugging. I run on windows and have a startup_debug.bat file with the following contents: set JPDA_TRANSPORT=dt_socket set JPDA_ADDRESS=5005 call catalina.bat jpda start --- Larry Meadors [EMAIL PROTECTED] wrote: I use './catalana.sh jpda run' fron the $CATALINA_HOME/bin directory. Larry [EMAIL PROTECTED] 07/15/03 8:20 AM The documentation states add SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 to catalina.bat. Does anyone know what the correct procedure for linux is? Regards John Gustavson Enterprise Central Software Services (ECSS) 570 Washington Street - 2nd floor New York, New York, 10080-6802 Telephone: 1-212-647-3793 Fax: 1-212-647-3321 Email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I setup Tomcat 5.* (need windows classpath)
True. They are really an application shop. They have a few that play with Tomcat, but I am the only one that has really used it. Ah, ha. You are a good man, Charlie Brown. That sounds like a good lead. I will see what I can do with it. --- John Turner [EMAIL PROTECTED] wrote: Well, sounds like you have some re-education work to do. The whole point is to be portable. Putting things your web application requires onto a network share (I think you mentioned V:) that won't exist anywhere else is not the best practice for design, especially if you have to go in and munge around with the startup scripts to get it to work. If you must, I believe you can pass the parameters directly on the command line, such as withthe endorsed-dirs property or others, as an alternative to messing with CLASSPATH. John On Wed, 9 Jul 2003 08:40:41 -0700 (PDT), Norris Shelton [EMAIL PROTECTED] wrote: I wish I could. This is the architecture that I am saddled with. I have to find a way to make TC5 work with what is given. --- John Turner [EMAIL PROTECTED] wrote: That was my point. JAR up your class files, and put them where Tomcat expects them to be. Problem solved. People typically use ant to do this, so that it is fairly automatic when deploy time comes around. John On Wed, 9 Jul 2003 08:07:58 -0700 (PDT), Norris Shelton [EMAIL PROTECTED] wrote: Ah, ha. Now you are getting somewhere. The Class Loader Definitions has the following under the System bullet: However, the standard Tomcat 4 startup scripts ($CATALINA_HOME/bin/catalina.sh or %CATALINA_HOME%\bin\catalina.bat) totally ignore the contents of the CLASSPATH environment variable itself, and instead build the System class loader from the following repositories: This is the problem I am trying to get around. The additional libraries are not contained in any of the normal catalina classpaths (hence the system environment variable). I have it recognizing the external classpath, but can't find the jsp tag info (and possibly more). --- John Turner [EMAIL PROTECTED] wrote: See the ClassLoader HOWTO: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html specifically: Shared - This class loader is the place to put classes and resources that you wish to share across ALL web applications (unless Tomcat internal classes also need access, in which case you should put them in the Common class loader instead). All unpacked classes and resources in $CATALINA_HOME/shared/classes, as well as classes and resources in JAR files under $CATALINA_HOME/lib, are made visible through this class loader. John On Wed, 9 Jul 2003 07:50:25 -0700 (PDT), Norris Shelton [EMAIL PROTECTED] wrote: How do you get it access items that are not within the tomcat install. I have tomcat installed locally on c:. There is an additional library located on v: (loose classes and jars). We could not get Tomcat to access these classes. --- John Turner [EMAIL PROTECTED] wrote: H...lots of overlap here. First, you shouldn't need to do ANYTHING to CLASSPATH for Tomcat 4.1.x and higher, especially messing around with servlet.jar. Second, as far as where to put your servlets, try the Application Developer's Guide here: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html as well as the Tomcat FAQ: http://jakarta.apache.org/tomcat/faq/misc.html#invoker If you want to post a specific scenario, with a specific error message, we can help, but a generic I've tried everything and nothing ever works doesn't give us much to go on. John On Tue, 08 Jul 2003 15:53:23 -0400, [EMAIL PROTECTED] wrote: Hi, I have searched instructions and websites with no real luck on this. I've used Tomcat in production since some 3.* version but I've been lost since after 4.0 about where to put a simple servlet class or how to include the servlet.jar so jdk1.4 can see it. I've created war files as the admin page seems to want but this doesn't seem to be working either. Tried every class directory I could find and still cant pull up the servlet from the web. (I can get the default.jsp pages though). Tried making my own servlet directory in the config files, nope, no luck. I want to take advantage of any NIO performance enhancements or other benefits that 5.* has to offer, please help! Thanks! JW __ McAfee VirusScan Online from the Netscape Network. Comprehensive protection for your entire computer. Get your
TC 4.1 + symbolic linking
We have some HTML files that are on another machine. A link was created (htmldoc). I then modified the server.xml by adding the following to the context definition: Resources className=org.apache.naming.resources.FileDirContext caseSensitive=false allowLinking=true/ The context will not load (no errors). I even added an entry in the catalina.policy: // The permissions granted to the context WEB-INF/classes directory grant codeBase file:${catalina.home}/webapps/siteexplorer/htmldoc/- { }; If I remove the allowLinking resource, the app starts correctly. Anyone have any ideas on what the problem is. = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logging in Tomcat
What you want to use is the Logger instance that is defined for this context via your server.xml From a servlet, getServletContext().log(theMessage); Thanks go to Yoav Shapira Millennium ChemInformatics The catalina_log file is the Logger element under the Catalina element. The localhost_log is the Logger element under localhost Host element. The localhost_examples_log is the Logger element under the examples Context element. All of these rotate daily (hence the date in the name). These can be inherited. See also http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html --- James Darwin [EMAIL PROTECTED] wrote: Hi, I've got a website running on Tomcat 4.1.18. It logs all System.out.println to catalina.out. However, this file is getting too long, making it difficult to view the file. So, I would like to generate a separate log file for each day. Is this possible to configure under Tomcat? Also, under tomcat-4.1.18/logs I have a whole heap of other files, e.g: catalina_log.2003-07-07.txt localhost_log.2003-04-07.txt localhost_examples_log.2003-02-28.txt What are these log files used for? I've searched around Tomcat website, but there doesn't seem to be any information on the default logging behaviour of Tomcat. If anyone knows of any good documents or websites which explain Tomcat logging it would be much appreciated if you pass it on. Thanks. http://mobile.yahoo.com.au - Yahoo! Mobile - Check compose your email via SMS on your Telstra or Vodafone mobile. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0.3 on W2K Pro - need to use system classpath
I currently run TC 4.1.12. There are several files defined on a network share that we have to use. With 4.1.12, I edit the setclasspath file to append to the classpath instead of replacing. I also have to add servlet.jar to the classpath because looks like it does not get there automatically. I start via bin/catalina.bat with start as a parameter. I tried this w/5.0.3 with no luck. It looks like I could do what I am used to doing and include common/lib/servlet-api.jar and common/lib/jsp-api.jar, but no luck. I still get exceptions: javax.servlet.ServletException: javax.servlet.jsp.tagext.TagAttributeInfo.init(Ljava/lang/String;ZLjava/lang/String;ZZ)V It looks like everything is not loaded. Any ideas? = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I setup Tomcat 5.* (need windows classpath)
How do you get it access items that are not within the tomcat install. I have tomcat installed locally on c:. There is an additional library located on v: (loose classes and jars). We could not get Tomcat to access these classes. --- John Turner [EMAIL PROTECTED] wrote: H...lots of overlap here. First, you shouldn't need to do ANYTHING to CLASSPATH for Tomcat 4.1.x and higher, especially messing around with servlet.jar. Second, as far as where to put your servlets, try the Application Developer's Guide here: http://jakarta.apache.org/tomcat/tomcat-4.1- doc/appdev/index.html as well as the Tomcat FAQ: http://jakarta.apache.org/tomcat/faq/misc.html#invoker If you want to post a specific scenario, with a specific error message, we can help, but a generic I've tried everything and nothing ever works doesn't give us much to go on. John On Tue, 08 Jul 2003 15:53:23 -0400, [EMAIL PROTECTED] wrote: Hi, I have searched instructions and websites with no real luck on this. I've used Tomcat in production since some 3.* version but I've been lost since after 4.0 about where to put a simple servlet class or how to include the servlet.jar so jdk1.4 can see it. I've created war files as the admin page seems to want but this doesn't seem to be working either. Tried every class directory I could find and still cant pull up the servlet from the web. (I can get the default.jsp pages though). Tried making my own servlet directory in the config files, nope, no luck. I want to take advantage of any NIO performance enhancements or other benefits that 5.* has to offer, please help! Thanks! JW __ McAfee VirusScan Online from the Netscape Network. Comprehensive protection for your entire computer. Get your free trial today! http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397 Get AOL Instant Messenger 5.1 free of charge. Download Now! http://aim.aol.com/aimnew/Aim/register.adp?promo=380455 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I setup Tomcat 5.* (need windows classpath)
Ah, ha. Now you are getting somewhere. The Class Loader Definitions has the following under the System bullet: However, the standard Tomcat 4 startup scripts ($CATALINA_HOME/bin/catalina.sh or %CATALINA_HOME%\bin\catalina.bat) totally ignore the contents of the CLASSPATH environment variable itself, and instead build the System class loader from the following repositories: This is the problem I am trying to get around. The additional libraries are not contained in any of the normal catalina classpaths (hence the system environment variable). I have it recognizing the external classpath, but can't find the jsp tag info (and possibly more). --- John Turner [EMAIL PROTECTED] wrote: See the ClassLoader HOWTO: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html specifically: Shared - This class loader is the place to put classes and resources that you wish to share across ALL web applications (unless Tomcat internal classes also need access, in which case you should put them in the Common class loader instead). All unpacked classes and resources in $CATALINA_HOME/shared/classes, as well as classes and resources in JAR files under $CATALINA_HOME/lib, are made visible through this class loader. John On Wed, 9 Jul 2003 07:50:25 -0700 (PDT), Norris Shelton [EMAIL PROTECTED] wrote: How do you get it access items that are not within the tomcat install. I have tomcat installed locally on c:. There is an additional library located on v: (loose classes and jars). We could not get Tomcat to access these classes. --- John Turner [EMAIL PROTECTED] wrote: H...lots of overlap here. First, you shouldn't need to do ANYTHING to CLASSPATH for Tomcat 4.1.x and higher, especially messing around with servlet.jar. Second, as far as where to put your servlets, try the Application Developer's Guide here: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html as well as the Tomcat FAQ: http://jakarta.apache.org/tomcat/faq/misc.html#invoker If you want to post a specific scenario, with a specific error message, we can help, but a generic I've tried everything and nothing ever works doesn't give us much to go on. John On Tue, 08 Jul 2003 15:53:23 -0400, [EMAIL PROTECTED] wrote: Hi, I have searched instructions and websites with no real luck on this. I've used Tomcat in production since some 3.* version but I've been lost since after 4.0 about where to put a simple servlet class or how to include the servlet.jar so jdk1.4 can see it. I've created war files as the admin page seems to want but this doesn't seem to be working either. Tried every class directory I could find and still cant pull up the servlet from the web. (I can get the default.jsp pages though). Tried making my own servlet directory in the config files, nope, no luck. I want to take advantage of any NIO performance enhancements or other benefits that 5.* has to offer, please help! Thanks! JW __ McAfee VirusScan Online from the Netscape Network. Comprehensive protection for your entire computer. Get your free trial today! http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397 Get AOL Instant Messenger 5.1 free of charge. Download Now! http://aim.aol.com/aimnew/Aim/register.adp?promo=380455 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com
Re: How do I setup Tomcat 5.* (need windows classpath)
I wish I could. This is the architecture that I am saddled with. I have to find a way to make TC5 work with what is given. --- John Turner [EMAIL PROTECTED] wrote: That was my point. JAR up your class files, and put them where Tomcat expects them to be. Problem solved. People typically use ant to do this, so that it is fairly automatic when deploy time comes around. John On Wed, 9 Jul 2003 08:07:58 -0700 (PDT), Norris Shelton [EMAIL PROTECTED] wrote: Ah, ha. Now you are getting somewhere. The Class Loader Definitions has the following under the System bullet: However, the standard Tomcat 4 startup scripts ($CATALINA_HOME/bin/catalina.sh or %CATALINA_HOME%\bin\catalina.bat) totally ignore the contents of the CLASSPATH environment variable itself, and instead build the System class loader from the following repositories: This is the problem I am trying to get around. The additional libraries are not contained in any of the normal catalina classpaths (hence the system environment variable). I have it recognizing the external classpath, but can't find the jsp tag info (and possibly more). --- John Turner [EMAIL PROTECTED] wrote: See the ClassLoader HOWTO: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html specifically: Shared - This class loader is the place to put classes and resources that you wish to share across ALL web applications (unless Tomcat internal classes also need access, in which case you should put them in the Common class loader instead). All unpacked classes and resources in $CATALINA_HOME/shared/classes, as well as classes and resources in JAR files under $CATALINA_HOME/lib, are made visible through this class loader. John On Wed, 9 Jul 2003 07:50:25 -0700 (PDT), Norris Shelton [EMAIL PROTECTED] wrote: How do you get it access items that are not within the tomcat install. I have tomcat installed locally on c:. There is an additional library located on v: (loose classes and jars). We could not get Tomcat to access these classes. --- John Turner [EMAIL PROTECTED] wrote: H...lots of overlap here. First, you shouldn't need to do ANYTHING to CLASSPATH for Tomcat 4.1.x and higher, especially messing around with servlet.jar. Second, as far as where to put your servlets, try the Application Developer's Guide here: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html as well as the Tomcat FAQ: http://jakarta.apache.org/tomcat/faq/misc.html#invoker If you want to post a specific scenario, with a specific error message, we can help, but a generic I've tried everything and nothing ever works doesn't give us much to go on. John On Tue, 08 Jul 2003 15:53:23 -0400, [EMAIL PROTECTED] wrote: Hi, I have searched instructions and websites with no real luck on this. I've used Tomcat in production since some 3.* version but I've been lost since after 4.0 about where to put a simple servlet class or how to include the servlet.jar so jdk1.4 can see it. I've created war files as the admin page seems to want but this doesn't seem to be working either. Tried every class directory I could find and still cant pull up the servlet from the web. (I can get the default.jsp pages though). Tried making my own servlet directory in the config files, nope, no luck. I want to take advantage of any NIO performance enhancements or other benefits that 5.* has to offer, please help! Thanks! JW __ McAfee VirusScan Online from the Netscape Network. Comprehensive protection for your entire computer. Get your free trial today! http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397 Get AOL Instant Messenger 5.1 free of charge. Download Now! http://aim.aol.com/aimnew/Aim/register.adp?promo=380455 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com === message truncated === = Norris Shelton Software Engineer
How do I use the FileLogger?
I have a logger set-up inside my host defined as: Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=justicexchange_log. suffix=.txt timestamp=true/ How do I send output to it? = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JDBCRealm question
We are authenticating internal users for authorization of the Manager webapp. Currently this uses a JDBC Realm. The problem is that the user account for each of our four environments has a different password for security reasons. We have a custom object that can, given a schema name, look up the user id/password for the environment you are in and return a DB connection. Is there someway to configure a realm to call a custom class to get the DB connection? Each webapp is configured as it's own service. Per the docs, we have a manager webapp context for each host. Currently, all look like: Context docBase=../../server/webapps/manager path=/manager privileged=true Realm className=org.apache.catalina.realm.JDBCRealm digest=MD5 driverName=oracle.jdbc.driver.OracleDriver connectionURL=jdbc:oracle:thin:@server_name:1521:DEV01 connectionName=nunya connectionPassword=business userTable=schema.table userNameCol=user_id userCredCol=password userRoleTable=schema.table roleNameCol=role / Valve className=org.apache.catalina.valves.RemoteAddrValve allow=10.11.6.*,10.11.128.*,127.0.0.1/ /Context = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat SSL mutual authentication: Nobody's got a clue?
That about sums it up. We are looking at client certs also. The Tomcat docs say how to turn on client authentication, but there is not much out there on hooking up to a CA and verifying against a CRL. All of that is beyond the scope of this list and dives deep into the realm of JCE. We are looking into going with a vendor (probably VeriSign). --- Mark Liu [EMAIL PROTECTED] wrote: For over 1 week, I've been exploring about this. So far, I got no reply. Is this so professional, so tough that nobody's got a clue? __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]