Re: Using native and ld_library_path
Has no-one done this? I think the problem is when the already loaded .so-file wants to load other .so's. The java.library.path is set correctly but perhaps only for tomcat and not for the loaded .so. I've also tried to copy all of the required files to /usr/lib but without success. Andreas Andersson wrote: Hi again. I did take a look but nothing helped me there and I still need help. My guess is that tomcat has some restrictions when it comes to loading native code. I have several native libraries. One of them is loaded and executed from my code, the rest is used by the first one. What confuses me is that this works on my tomcat on windows but not linux. It also works on a standalone program on that same linux machine. But not my tomcat on linux. I've tried putting the libraries in /usr/lib. That works for my standalone but not tomcat. I've tried setting -Djava.library.path in catalina.sh, that doesn't work. When printing System.getProperties().get(java.library.path) I get the right paths but still I get the unsatisfied link error. Is there more debug information available in some way? This is really frustrating since it shouldn't be this hard :) I appreciate any help. -- Andreas Andersson IT Dept. Travelstart Nordic [EMAIL PROTECTED] http://www.travelstart.se - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Losing Request Parameters between Browser and Tomcat
i have the following system configuration. Apache Mod_JK Tomcat 4.1.18 which is running on Solaris 8. The problem now is when a user fills an HTML form and submits it, the request parameters are getting lost (meaning the 'service()' method is being called in a servlet but the 'request'-object is empty). Has anyone any idea how/why this can happen? Thanks!
Re: Failed JDBC connection hangs Tomcat
This is so strange... i switched to a commercial driver and deadlocks started to arise (hangs stopped)... i made some changes in the transaction logic and everything went fine... after talking with a JTDS developer I switched to JTDS again to force him to freeze so I could get some debug information for him now it doesn't hang anymore it has been running from yesterday afternoon (almost twenty hours) with full load and it has not presented any problems... I'm just puzzled... On Wed, 2 Feb 2005 08:02:21 +0200, Igor [EMAIL PROTECTED] wrote: Hello! I sent answer to tomcat users yesterday, but it seems not to be accepted ... So I am sending it once more ... I am referring to JTDS 1.0. I think, that the problem is in net.sourceforge.jtds.jdbc.SharedSocket class: it should set timeout for socket, otherwise methods getNetPacket and sendNetPacket may hang. Igor - Original Message - From: Arthur D'Alessandro [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org; Hari Mailvaganam [EMAIL PROTECTED] Cc: Igor [EMAIL PROTECTED] Sent: Tuesday, February 01, 2005 3:40 PM Subject: Re: Failed JDBC connection hangs Tomcat What version of the JTDS are you referring to, I know they recently released 1.0 code... On Sun, 30 Jan 2005 20:06:07 -0800, Hari Mailvaganam [EMAIL PROTECTED] wrote: The JTDS driver can cause the hanging you described - this has occured in a test we did on Win 2k, SQL Server 2k, 1.5 JDK. reagrds, Hari Mailvaganam On Sun, 30 Jan 2005 08:39:50 +0200, Igor [EMAIL PROTECTED] wrote: We have the same problem, that described in http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg58799.html There is ServletContextListener in our application, that schedule two tasks for repeated fixed rate execution on context initialization (Timer.scheduleAtFixedRate). First task is executed every minute. It queries MS SQL server, second task is executed every hour. If MS SQL server goes down, first task tries to use connection to database. After this Tomcat may hang: when user tries to download a page, he or her will wait for a long time (more that 1 day). At the same time second taks (that is executed every hour) works as it was expected: there are corresponding entries in log file. First task is executed in separate thread, and I do not understand how can it hang whole tomcat (at least one context). We use JDK 1.5, tomcat 5.0.28. The same problem was on 1.4.2. Both for MS and JTDS drivers :-( Does somebody know how can I prevent tomcat from hang in such situations? Thank you in advance, Igor - 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] -- -Art D'Alessandro - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: Java / Tomcat Job Abroad
http://www.monster.com On Wed, 2 Feb 2005 09:52:13 +0800, Aris Javier [EMAIL PROTECTED] wrote: Hello! This is an out of topic question... Sorry, but since all of you guys are using Java and Tomcat, and are from different countries... im just wondering if i can land a job abroad? I'm planning to migrate to Canada, US, or New Zealand from here in Philippines... My skill is java programming (J2EE) and has 2 years experience. Is Java/Tomcat skill marketable in those countries i've mentioned? Or does anyone of you need a java programmer that i can apply? =) Thanks! Aris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deny access to a JSP page
Thanks, my Tomcat version is 5.0.28. I think you are suggesting the use of Remote Address Filter, but i can only use it with a Engine, a Host or a Context, not for a individual JSP. I find ipflt.jar but i will probe first mod_rewrite. Thanks again. El mar, 01-02-2005 a las 18:19 -0600, QM escribió: On Tue, Feb 01, 2005 at 08:22:45PM +0100, apuerta.foros wrote: : I'd like Tomcat to deny access to some JSPs with internal information. : : I can configure Apache to deny access depending on the user IP, : transparently. : : I'd like to do the same in Tomcat, but i don't now how. Have you searched the archives on this? Look up AccessValve. (-or was that RemoteAccessValve? Either way, it's a Valve implementation.) That, or look into servlet filters. They're available with the 2.3 spec onward. Finally, it's helpful to the rest of us when you post your setup details (Tomcat version, OS, etc). There are several versions of Tomcat. -QM -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Deny access to a JSP page
Hi, I think the easiest way is to add a security contsraint in you web.xml of you web application: web app... security-contraint web-resources-collection web-resource-nameTest/web-resource-name url-pattern/myjsps/*/url-pattern /web-resources-collection auth-contsraint/ security-contraint ... /web app this will block all reuqests to the folder /myjsps You can also block certain http methods or allow access th certain users, check the spec for more details. Cheers Bernhard -Ursprüngliche Nachricht- Von: apuerta.foros [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 1. Februar 2005 20:23 An: tomcat-user@jakarta.apache.org Betreff: Deny access to a JSP page Hi all. I'd like Tomcat to deny access to some JSPs with internal information. I can configure Apache to deny access depending on the user IP, transparently. I'd like to do the same in Tomcat, but i don't now how. Any idea? Thanks. - 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]
Using a database under tomcat for linux
Hi! I'm having problems useing a database under my tomcat on my linux. If I disable security it works fine but with security I get connection errors. I've read the small documention on the policy file but doesn' succedd when I try to do the same thing. This is from my policy file grant codeBase file:/long-path/WEB-INF/lib/mysql-connector-java-3.0.5-gamma-bin.jar { permission java.net.SocketPermission localhost:3306, connect; }; Does anyone have an example of a working configuration? Thanks. -- Andreas Andersson IT Dept. Travelstart Nordic [EMAIL PROTECTED] http://www.travelstart.se - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Does from a filter setCharacterEncoding work for tc-5.0.27?
Hi, Does setCharacterEncoding work under tc-5.0.27 with java-1.4.2-06? To get UTF-8 request parameter I need to do: String par = request.getParameter(filename); String filename = new String(par.getBytes(ISO8859-1), UTF-8); request.setCharacterEncoding(UTF-8) doesn't seem to help from a filter. Is it my mistake? Zsolt Koppany Phone: +49-711-722 1874 -- Intland Software GmbH, Schulze-Delitzsch-Strasse 16 D-70565 Stuttgart, Germany Phone: +49-711-722 1873, e-mail:[EMAIL PROTECTED] Fax: +49-711-722 1835 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Java / Tomcat Job Abroad
You will be disappointed if you immigrate to Canada. You will end up with driving a cab in best case senario. -Original Message- From: Aris Javier [mailto:[EMAIL PROTECTED] Sent: February 2, 2005 12:25 AM To: Tomcat Users List Subject: RE: Java / Tomcat Job Abroad Thanks Rhino for info. Yeah, big adjustment in climate... but that's one sacrifice I'm willing to take to make a living. =) -Original Message- From: Rhino [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 1:13 PM To: Tomcat Users List Subject: Re: Java / Tomcat Job Abroad I think you'll find that there are Java jobs in Canada. I've seen some at monster.ca and workopolis.ca. I don't know about Tomcat jobs; I've never looked for Tomcat jobs. I hope you like living in large cities in a climate that is sometimes miserable (-40C in winter in Winnipeg for example) ;-) Rhino - Original Message - From: Aris Javier [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, February 01, 2005 8:52 PM Subject: OT: Java / Tomcat Job Abroad Hello! This is an out of topic question... Sorry, but since all of you guys are using Java and Tomcat, and are from different countries... im just wondering if i can land a job abroad? I'm planning to migrate to Canada, US, or New Zealand from here in Philippines... My skill is java programming (J2EE) and has 2 years experience. Is Java/Tomcat skill marketable in those countries i've mentioned? Or does anyone of you need a java programmer that i can apply? =) Thanks! Aris - 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] !DSPAM:4200642b202291386719112!
[Fwd: IO Error while parsing file '/WEB-INF/tiles.xml'. Connection timed out]
Hi, I've got a problem with my struts application. Here is the trace : *Type* Rapport d'exception *message* *description* _Le serveur a rencontré une erreur interne () qui l'a empêché de satisfaire la requête._ *exception* javax.servlet.ServletException: IO Error while parsing file '/WEB-INF/tiles.xml'. Connection timed out org.apache.struts.tiles.TilesPlugin.initDefinitionsFactory(TilesPlugin.java:235) org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:139) org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:839) org.apache.struts.action.ActionServlet.init(ActionServlet.java:332) javax.servlet.GenericServlet.init(GenericServlet.java:211) org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:691) org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:658) org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:51) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) *cause mère* org.apache.struts.tiles.DefinitionsFactoryException: IO Error while parsing file '/WEB-INF/tiles.xml'. Connection timed out org.apache.struts.tiles.xmlDefinition.I18nFactorySet.parseXmlFile(I18nFactorySet.java:538) org.apache.struts.tiles.xmlDefinition.I18nFactorySet.parseXmlFiles(I18nFactorySet.java:467) org.apache.struts.tiles.xmlDefinition.I18nFactorySet.createDefaultFactory(I18nFactorySet.java:271) org.apache.struts.tiles.xmlDefinition.I18nFactorySet.initFactory(I18nFactorySet.java:246) org.apache.struts.tiles.xmlDefinition.I18nFactorySet.initFactory(I18nFactorySet.java:196) org.apache.struts.tiles.definition.ComponentDefinitionsFactoryWrapper.init(ComponentDefinitionsFactoryWrapper.java:104) org.apache.struts.tiles.TilesUtilImpl.createDefinitionsFactory(TilesUtilImpl.java:138) org.apache.struts.tiles.TilesUtil.createDefinitionsFactory(TilesUtil.java:167) org.apache.struts.tiles.TilesPlugin.initDefinitionsFactory(TilesPlugin.java:224) org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:139) org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:839) org.apache.struts.action.ActionServlet.init(ActionServlet.java:332) javax.servlet.GenericServlet.init(GenericServlet.java:211) org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:691) org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:658) org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:51) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) *note* _La trace complète de la cause mère de cette erreur est disponible dans les fichiers journaux de Apache Tomcat/5.5.7._ All i can say is that the tiles config (/WEB-INF/tiles.xml) is present and ok. Any idea ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Fwd: IO Error while parsing file '/WEB-INF/tiles.xml'. Connection timed out]
It looks like your tiles file contains external references for DTD or schema validation. The timeout occurs when your server is trying to download those resources. -Tim Sébastien GALLET wrote: Hi, I've got a problem with my struts application. Here is the trace : *Type* Rapport d'exception *message* *description* _Le serveur a rencontré une erreur interne () qui l'a empêché de satisfaire la requête._ *exception* javax.servlet.ServletException: IO Error while parsing file '/WEB-INF/tiles.xml'. Connection timed out org.apache.struts.tiles.TilesPlugin.initDefinitionsFactory(TilesPlugin.java:235) org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:139) org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:839) org.apache.struts.action.ActionServlet.init(ActionServlet.java:332) javax.servlet.GenericServlet.init(GenericServlet.java:211) org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:691) org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:658) org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:51) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) *cause mère* org.apache.struts.tiles.DefinitionsFactoryException: IO Error while parsing file '/WEB-INF/tiles.xml'. Connection timed out org.apache.struts.tiles.xmlDefinition.I18nFactorySet.parseXmlFile(I18nFactorySet.java:538) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5 Struts
All, I'm having a class not found issue running an application that uses Struts 1.0 in Tomcat 5.0.25. Tomcat fires up and the application deploys properly. When I hit the index.jsp page I get the following exception: java.lang.ClassNotFoundException: org.apache.struts.taglib.html.MessagesTei The problem is that this class doesn't exist in version 1.0. I saw that the server/webapps/admin application comes bundled with a newer version of Struts. I removed the application in case there were classpath conflicts, cleaned up the work/Catalina and conf/Catalina directories, and I am still getting the same exception. I tried this with fresh installation of Tomcat 5 on both windows xp and Red Hat with no luck. I also checked the both machines for any other struts jar files that may be causing the problem, but found none. Anybody have any ideas as to what the problem may be or how to proceed? Thanks, -Paolo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using a database under tomcat for linux
Post your error message. It usually tells you what additional permission you need to grant. -Original Message- From: Andreas Andersson [mailto:[EMAIL PROTECTED] Sent: February 2, 2005 9:19 AM To: Tomcat Users List Subject: Using a database under tomcat for linux Hi! I'm having problems useing a database under my tomcat on my linux. If I disable security it works fine but with security I get connection errors. I've read the small documention on the policy file but doesn' succedd when I try to do the same thing. This is from my policy file grant codeBase file:/long-path/WEB-INF/lib/mysql-connector-java-3.0.5-gamma-bin.jar { permission java.net.SocketPermission localhost:3306, connect; }; Does anyone have an example of a working configuration? Thanks. -- Andreas Andersson IT Dept. Travelstart Nordic [EMAIL PROTECTED] http://www.travelstart.se - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:4200e117252881481618083!
Re: Java / Tomcat Job Abroad
Phillip Qin wrote: You will be disappointed if you immigrate to Canada. You will end up with driving a cab in best case senario. -Original Message- From: Aris Javier [mailto:[EMAIL PROTECTED] Sent: February 2, 2005 12:25 AM To: Tomcat Users List Subject: RE: Java / Tomcat Job Abroad Thanks Rhino for info. Yeah, big adjustment in climate... but that's one sacrifice I'm willing to take to make a living. =) -Original Message- From: Rhino [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 1:13 PM To: Tomcat Users List Subject: Re: Java / Tomcat Job Abroad I think you'll find that there are Java jobs in Canada. I've seen some at monster.ca and workopolis.ca. I don't know about Tomcat jobs; I've never looked for Tomcat jobs. I hope you like living in large cities in a climate that is sometimes miserable (-40C in winter in Winnipeg for example) ;-) Rhino - Original Message - From: Aris Javier [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, February 01, 2005 8:52 PM Subject: OT: Java / Tomcat Job Abroad Hello! This is an out of topic question... Sorry, but since all of you guys are using Java and Tomcat, and are from different countries... im just wondering if i can land a job abroad? I'm planning to migrate to Canada, US, or New Zealand from here in Philippines... My skill is java programming (J2EE) and has 2 years experience. Is Java/Tomcat skill marketable in those countries i've mentioned? Or does anyone of you need a java programmer that i can apply? =) Thanks! Aris - 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] !DSPAM:4200642b202291386719112! I'm in the U.S. and I love it. I spent 3 months in New Zealand, and I loved it there also. It's a very nice place. I came back to my beloved states though. I've lived in Tennessee and North Carolina, and was born in Tennessee. I like the climate around this region. It can get cold, but not too cold (sometimes it's below 0), and spring and summer are nice with a moderate fall/autumn. I find there seem to be plenty of opportunities in NC. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Java / Tomcat Job Abroad
I am Canadian, living down in the US now. If you are lucky enough to find a job in Canada it will be for half the pay and the govt will take the rest. It will be better down here in the US until us Canadians pull our heads out and make it more like the US in the economy. Phillip Qin wrote: You will be disappointed if you immigrate to Canada. You will end up with driving a cab in best case senario. -Original Message- From: Aris Javier [mailto:[EMAIL PROTECTED] Sent: February 2, 2005 12:25 AM To: Tomcat Users List Subject: RE: Java / Tomcat Job Abroad Thanks Rhino for info. Yeah, big adjustment in climate... but that's one sacrifice I'm willing to take to make a living. =) -Original Message- From: Rhino [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 1:13 PM To: Tomcat Users List Subject: Re: Java / Tomcat Job Abroad I think you'll find that there are Java jobs in Canada. I've seen some at monster.ca and workopolis.ca. I don't know about Tomcat jobs; I've never looked for Tomcat jobs. I hope you like living in large cities in a climate that is sometimes miserable (-40C in winter in Winnipeg for example) ;-) Rhino - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OT: Java / Tomcat Job Abroad
Getting a VISA is the biggest concern. I wouldn't suggest coming to the US,then looking for a VISA sponsor, do it the other way around. Filip - Original Message - From: Aris Javier [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, February 01, 2005 7:52 PM Subject: OT: Java / Tomcat Job Abroad Hello! This is an out of topic question... Sorry, but since all of you guys are using Java and Tomcat, and are from different countries... im just wondering if i can land a job abroad? I'm planning to migrate to Canada, US, or New Zealand from here in Philippines... My skill is java programming (J2EE) and has 2 years experience. Is Java/Tomcat skill marketable in those countries i've mentioned? Or does anyone of you need a java programmer that i can apply? =) Thanks! Aris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Memory leak in tomcat 5.0.28
I'm running tomcat 5.0.28 on Linux with JRE 1.4.2_04 and I seem to have a memory leak. I am not using Apache, but am using the Coyote connector. The server has been running under heavy load, being accessed by about 150 computers running automated tests. I took heap snapshots about 8 and 20 hours into the test using YourKit Java Profiler. When taking the snapshots, I first paused the system for several minutes, attempted to allocate more memory than was available to cause all collectable objects to be collected, and then took the snapshot. Therefore, the snapshots should contain very few collectable objects, and there should be very few open http connections. The following seems very suspicious: The last snapshot shows 419 Http11Processor objects referencing 41M of memory. That is an increase of 232 Http11Processor objects. It also shows 81,829 objects in the org.apache.tomcat.util.buf package, which reference 37M of memory. This is an increase of 44,874 objects. The buffers and Http11Processor objects appear to be referenced by org.apache.tomcat.util.threads.ThreadWithAttributes. I show 425 instances, which is an increase of 225. The first snapshot was 8 hours into the test, and in reality, I think the system should have reached steady state just a few minutes into the test. But I am obviously accumulating a lot of stuff. Can somebody help? Robert Wille _ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Page Redirect
I am running Tomcat 4.1 on a Windows 2003 server box, along with Apache and JRE 1.4.1_06. I have very little programming knowledge. What I would like to do, is redirect any requests to http://thisserver:9091/thiswebpage to go to http://thisserver:8080/someotherwebpage. Is this possible, and if so how do I go about this? Thank you. First New York FCU Chris Brizzell IT Analyst 518-393-1326 x1505 518-218-7908 (fax) [EMAIL PROTECTED] www.firstnewyork.org - This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies in their entirety, whether electronic or hard copy. - GWAVAsig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5.4/Windows 2000 server - Failed to register in JMX: BasicDataSourceFactory
I'm running Tomcat 5.5.4 on Windows 2000 Server and encountered the below error on Tomcat startup: Feb 2, 2005 10:50:49 AM org.apache.catalina.core.NamingContextListener addResource WARNING: Failed to register in JMX: javax.naming.NamingException: Could not create resource factory, ClassNotFoundException:org.apache.commons.dbcp.BasicDataSourceFactory My webapp uses JDBC DataSource's and the BasicDataSourceFactory for pooling so this problem of ClassNotFoundException is causing my webapp to not work properly. I have Tomcat 5.5.4 also installed on my local maching which has Windows XP on it, and there is absolutely no problem on startup and and my webapp. Does anyone no what's happening here? Why does Tomcat register the BasicDataSourceFactory with no problems in Tomcat 5.5.4 on Windows XP and not on Windows 2000 Server?
disabling tomcat cache
Anyone knows how to desable tomcat cache .It' s a serious problem for file generated on-fly. Tomcat does not see an automatically generated file in a normal webapps. I means sometimes it appears ...sometimes not. Has to exists something for avoid that Or not? Help I'm desperate?!!? regrards Navighi a 2 MEGA e i primi 3 mesi sono GRATIS. Scegli Libero Adsl Flat senza limiti su http://www.libero.it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JNDI resources different between 5.0 and 5.5?
Hi, I'm trying to upgrade from 5.0.28 to 5.5.4. I have a java bean resource that no longer works in 5.5.4. Apparently the resource isn't being found. My code for looking up the resources is: public static Manager getManager() { try { Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); Manager manager = (Manager) envCtx.lookup(bean/MyManager); // fails here on lookup. return manager; } catch (Exception e) { e.printStackTrace(); return null; } } In server.xml: Resourcource name=bean/MyManager auth=Container type=MXForm.Manager/ I didn't have a web.xml entry in 5.0, but I added one after reading the docs. In web.xml: resource-env-ref Description Manager resource. /Description resource-env-ref-name bean/MyManager /resource-env-ref-name resource-env-ref-type MXForm.Manager /resource-env-ref-type /resource-env-ref Thanks. __ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Missing application web.xml
Hi! I'm having problems with the Missing application web.xml error on dev machines running Windows XP,. Tomcat 5.5.7, Java 5.0. It happens when I try to deploy a war file by using the Manager app or by placing it in the /webapps directory. Here are some of the things I've done, each time trying to deploy the resulting WAR file with no success and the same error: 1) Completely emptied the /webapps directory (per Paul's success below). 2) Verified existence of web.xml inside WAR file. 3) Uninstalled ROOT app and verified file removal from /webapps directory. 4) Checked order of elements in web.xml to fit spec. 5) Validated web.xml in Intellij Idea against http://java.sun.com/dtd/web-app_2_3.dtd 6) Changed web-app tag from the sample web.xml in documentation to the one used in Manager app from 5.5.7 build: web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 7) Removed all comments and spaces from web.xml. When I unpack the WAR manually and place the unpacked files in /webapps the application works fine. Tomcat likes the web.xml, but it can't seem to find it inside of the WAR file. Incidentally, when I watch my /webapps directory during a Manager deploy, the ROOT.war file does appear for a few seconds. It appears that Tomcat is trying to find a web.xml inside of it, fails and then deletes the file. I use Ant to build the WAR file: jar jarfile=ROOT.war fileset dir=${files} excludes=**/*.java/ /jar Any help appreciated. Seen this on two development XP machines today. Best, Joe Reger ---Original Message I just wanted to follow up and get into the record what I think is the solution to the problem I asked about on 1/20. I turns out that the reason I was getting Missing application web.xml errors in my stdout.log was because of a problem that arose during the undeployment precipitated by my deployment of a new build. It appears (just based on Tomcat's behavior) that when you move a WAR file into the webapps directory, the first thing Tomcat tries to do is delete the old unpacked version. In my case, it failed to do that because (as I found) the servlet had open file handles to files inside the servlet's context directory. Windows XP doesn't let you delete files that it thinks are in use, and I suspect that is the trouble Tomcat was running into. Anyway, it deleted everything except those files, including the web.xml file, which it then reported as missing. When I modified my code to make sure the files were closed after being read, the problem went away. Well, I haven't had the fix in place long enough to be sure it has gone away, but at the very least it certainly seems to have helped a great deal, so I think the problem is solved. --Paul Lynch (eph1v3t8 @ mailblocks.com)
Re: Java / Tomcat Job Abroad
Sorry to say that, but as long as you are letting the Socialists to run your country, it will never change. - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, February 02, 2005 09:48 AM Subject: Re: Java / Tomcat Job Abroad I am Canadian, living down in the US now. If you are lucky enough to find a job in Canada it will be for half the pay and the govt will take the rest. It will be better down here in the US until us Canadians pull our heads out and make it more like the US in the economy. Phillip Qin wrote: You will be disappointed if you immigrate to Canada. You will end up with driving a cab in best case senario. -Original Message- From: Aris Javier [mailto:[EMAIL PROTECTED] Sent: February 2, 2005 12:25 AM To: Tomcat Users List Subject: RE: Java / Tomcat Job Abroad Thanks Rhino for info. Yeah, big adjustment in climate... but that's one sacrifice I'm willing to take to make a living. =) -Original Message- From: Rhino [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 1:13 PM To: Tomcat Users List Subject: Re: Java / Tomcat Job Abroad I think you'll find that there are Java jobs in Canada. I've seen some at monster.ca and workopolis.ca. I don't know about Tomcat jobs; I've never looked for Tomcat jobs. I hope you like living in large cities in a climate that is sometimes miserable (-40C in winter in Winnipeg for example) ;-) Rhino - 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]
Cross-context
Tomcat Users - We are distributing a servlet application that relies on the application's Context element's 'cross-context' attribute to be set to 'true'. Is it possible to set the 'cross-context' in the application's web.xml? This would simplify the configuring of this application for clients as the value could come already configured. Eric Murphy Software Developer (NFIS) [EMAIL PROTECTED] tel/tél: 250-363-6038 fax / télécopieur 250-363-6004 Natural Resources Canada Pacific Forestry Centre 506 West Burnside Road Victoria BC V8Z 1M5 Ressources naturelles Canada Centre de foresterie du Pacifique 506 rue Burnside ouest Victoria, Colombie-Britanique V8Z 1M5 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to Disabling HTTP Trace on Tomcat 4.1.30
Hello all, After scanning our TOMCAT 4.1.30 server for vulnerabilities, the report came back with HTTP TRACE as being a MEDIUM level vulnerability. Is there a way to disable HTTP TRACE on Tomcat 4.1.30? Thanks in advance!
ISAPI redirector warnings
While running Tomcat 5 with IIS and JK2.. The Windows Application Logs often log several Warnings at the same point in time, see below for example. The problem is, these Warnings pile up in the Windows Event logs and force the Administrator to manually clear out the logs daily or weekly. I am not looking to simply suppress these messages, but find a solution to the actual problem. This issue seems to occur at random and things such as session confusion (user A sees user B's data) and other noticeable issues happen at or around the same time as these warnings. What is the reason for these log entries? How can I eliminate these log entries? Error: [jk_worker_ajp13.c (648)]: ajp13.service() Error forwarding ajp13:localhost:8009 1 0 Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error 3 Error: [jk_handler_response.c (140)]: handler.response() Error sending response Error: [jk_service_iis.c (126)]: jk_ws_service_t::head, ServerSupportFunction failed Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error 3 Error: [jk_handler_response.c (140)]: handler.response() Error sending response Error: [jk_service_iis.c (126)]: jk_ws_service_t::head, ServerSupportFunction failed Configuration: Windows 2000 or Windows 2003 Server Apache Tomcat 5.0.25 or 5.0.28 Microsoft IIS 5 or 6 JK2 2.0.4 connector Workers2.properties [shm:] info=Shared memory file. Required for multiprocess servers file=d:\tomcat5.0.28\work\jk20.shm size=100 # Define the communication channel [channel.socket:localhost:8009] tomcatId=localhost:8009 [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:/Concept60/*] worker=ajp13:localhost:8009 Server.xml Connector port=8088 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / Connector port=8009 enableLookups=false connectionTimeout=0 redirectPort=8443 debug=0 protocol=AJP/1.3 / isapi_redirector2.reg [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0] workersFile=d:\\tomcat5.0.28\\conf\\workers2.properties extensionUri=/jakarta2/isapi_redirector2.dll logLevel=debug serverRoot=d:\\tomcat5.0.28\\
Memory Requirement
I have two questions: (1) How much memory to give to JVM to run tomcat? As mush as possible? (2) How to reasonably estimate the memory requirement for a web application running in tomcat? Thanks. Peiyun Jiang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Memory Requirement
the best way to figure out how much heap to set is to stress test your application. 1. figure out the average load 2. figure out the peak load 3. stress test the webapp with default settings 4. tweak the settings and retest 5. compare the results there's no magic formula that works for all cases. only way to know for sure and be able to state with confidence to those you report to is to run stress tests. peter On Wed, 2 Feb 2005 12:53:48 -0500, Jiang, Peiyun [EMAIL PROTECTED] wrote: I have two questions: (1) How much memory to give to JVM to run tomcat? As mush as possible? (2) How to reasonably estimate the memory requirement for a web application running in tomcat? Thanks. Peiyun Jiang - 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]
[OT] Re: Java / Tomcat Job Abroad
As much as I love political flame wars - we are now off topic. There are many other good blogs/list/groups/etc that may be used to discuss those topics. -Tim epyonne wrote: Sorry to say that, but as long as you are letting the Socialists to run your country, it will never change. - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, February 02, 2005 09:48 AM Subject: Re: Java / Tomcat Job Abroad I am Canadian, living down in the US now. If you are lucky enough to find a job in Canada it will be for half the pay and the govt will take the rest. It will be better down here in the US until us Canadians pull our heads out and make it more like the US in the economy. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to run Tomcat 5.5 as a user ?
Hello usin Tomcat 5.5 under Fedora core linux , How do I get to launch it as user and not as root ? thanks hicham. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Admin application creates duplicate secure attribute in server.xml
More info: Apparently the manual change didn't fix things after all. The server starts, and some webapps run, but those using ssl get the following error message: Connection refused when attempting to contact myhost:8443 The full service definition follows: Service name=Catalina Connector acceptCount=100 connectionTimeout=2 disableUploadTimeout=true port=8085 redirectPort=8443 maxSpareThreads=75 maxThreads=150 minSpareThreads=25 /Connector Connector acceptCount=100 disableUploadTimeout=true port=8443 scheme=https secure=true sslProtocol=TLS clientauth=false maxSpareThreads=75 maxThreads=150 minSpareThreads=25 protocol=TLS /Connector Connector port=8009 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443 /Connector Engine defaultHost=localhost name=Catalina Host appBase=webapps name=localhost xmlValidation=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_log. suffix=.txt timestamp=true/ /Host Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.UserDatabaseRealm/ /Engine /Service Jeffrey Barnett wrote: We have recently upgraded from Tomcat 4 to Tomcat 5.0.27. Now whenever we use the Admin application to alter webapp context parameters the new server.xml that gets written out contains an extra 'secure=true' attribute at the end of the ssl Connector, which causes the server to fail with a SEVERE: Parse Fatal Error on restart. Removing the extra attribute manually allows the server to be started, but is operationally unacceptable. Where is the extra attribute coming from (is there a template somewhere)? How can we stop this from happening? Why is a new server.xml created at all? (Nothing is changed but the addition of the incorrect attribute) Here is the exception: Jan 29, 2005 7:30:54 AM org.apache.commons.digester.Digester fatalError SEVERE: Parse Fatal Error at line 22 column 221: Attribute secure was already specified for element Connector. org.xml.sax.SAXParseException: Attribute secure was already specified for element Connector. And here is the offending element (second attribute highlighted): Connector acceptCount=100 disableUploadTimeout=true port=8443 scheme=https secure=true sslProtocol=TLS clientauth=false maxSpareThreads=75 maxThreads=150 minSpareThreads=25 protocol=TLS *secure=true* /Connector - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memory leak in tomcat 5.0.28
I've figured out my problem. I'm posting what I've discovered for the benefit of others. The SystemLogHandler uses a map called logs where the key is a ThreadWithAttributes and the value is a stack of CaptureLogs. The problem is that when a thread dies, the ThreadWithAttributes object lives forever because the map is never cleaned out. Threads come and go in the thread pool, so stuff keeps accumulating there forever. You can prevent the problem by turning off swallowOutput. logs should be a ThreadLocal, not a map. That way the ThreadWithAttributes objects can be collected (as well as the stack of CaptureLogs). From: Robert Wille [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: tomcat-user@jakarta.apache.org Subject: Memory leak in tomcat 5.0.28 Date: Wed, 02 Feb 2005 09:16:49 -0700 I'm running tomcat 5.0.28 on Linux with JRE 1.4.2_04 and I seem to have a memory leak. I am not using Apache, but am using the Coyote connector. The server has been running under heavy load, being accessed by about 150 computers running automated tests. I took heap snapshots about 8 and 20 hours into the test using YourKit Java Profiler. When taking the snapshots, I first paused the system for several minutes, attempted to allocate more memory than was available to cause all collectable objects to be collected, and then took the snapshot. Therefore, the snapshots should contain very few collectable objects, and there should be very few open http connections. The following seems very suspicious: The last snapshot shows 419 Http11Processor objects referencing 41M of memory. That is an increase of 232 Http11Processor objects. It also shows 81,829 objects in the org.apache.tomcat.util.buf package, which reference 37M of memory. This is an increase of 44,874 objects. The buffers and Http11Processor objects appear to be referenced by org.apache.tomcat.util.threads.ThreadWithAttributes. I show 425 instances, which is an increase of 225. The first snapshot was 8 hours into the test, and in reality, I think the system should have reached steady state just a few minutes into the test. But I am obviously accumulating a lot of stuff. Can somebody help? Robert Wille _ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Fwd: IO Error while parsing file '/WEB-INF/tiles.xml'. Connection timed out]
Thank you Tim. Everything works fine. I've create an apache site which holds my dtds... but ... Is there a way to include dtds in tomcat application ? Tim Funk a écrit : It looks like your tiles file contains external references for DTD or schema validation. The timeout occurs when your server is trying to download those resources. -Tim Sébastien GALLET wrote: Hi, I've got a problem with my struts application. Here is the trace : - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Memory leak in tomcat 5.0.28
feel free to open a bug report, so that this issue can be tracked. - Original Message - From: Robert Wille [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Wednesday, February 02, 2005 1:25 PM Subject: RE: Memory leak in tomcat 5.0.28 I've figured out my problem. I'm posting what I've discovered for the benefit of others. The SystemLogHandler uses a map called logs where the key is a ThreadWithAttributes and the value is a stack of CaptureLogs. The problem is that when a thread dies, the ThreadWithAttributes object lives forever because the map is never cleaned out. Threads come and go in the thread pool, so stuff keeps accumulating there forever. You can prevent the problem by turning off swallowOutput. logs should be a ThreadLocal, not a map. That way the ThreadWithAttributes objects can be collected (as well as the stack of CaptureLogs). From: Robert Wille [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: tomcat-user@jakarta.apache.org Subject: Memory leak in tomcat 5.0.28 Date: Wed, 02 Feb 2005 09:16:49 -0700 I'm running tomcat 5.0.28 on Linux with JRE 1.4.2_04 and I seem to have a memory leak. I am not using Apache, but am using the Coyote connector. The server has been running under heavy load, being accessed by about 150 computers running automated tests. I took heap snapshots about 8 and 20 hours into the test using YourKit Java Profiler. When taking the snapshots, I first paused the system for several minutes, attempted to allocate more memory than was available to cause all collectable objects to be collected, and then took the snapshot. Therefore, the snapshots should contain very few collectable objects, and there should be very few open http connections. The following seems very suspicious: The last snapshot shows 419 Http11Processor objects referencing 41M of memory. That is an increase of 232 Http11Processor objects. It also shows 81,829 objects in the org.apache.tomcat.util.buf package, which reference 37M of memory. This is an increase of 44,874 objects. The buffers and Http11Processor objects appear to be referenced by org.apache.tomcat.util.threads.ThreadWithAttributes. I show 425 instances, which is an increase of 225. The first snapshot was 8 hours into the test, and in reality, I think the system should have reached steady state just a few minutes into the test. But I am obviously accumulating a lot of stuff. Can somebody help? Robert Wille _ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] JK 1.2.8 Released
I hope you're not suggesting that I need httpd-2.0.52 for jk-1.2.8 use. I should be able to compile it against Apache 2.0.43, correct? thanks, Ellen Mladen Turk wrote: Ellen Blank wrote: Hello, wondering how soon jk-1.2.8 binaries will become available for Solaris platform, and whether it makes sense to wait or go ahead with the jk-1.2.6 in a mean while. Well, I don't have Solaris box to make a build :). Also there are couple versions of them that are binary incompatible. Anyhow, there is no official binaries for httpd-2.0.52 either. The build system is quite simple, so just use standard configure, make, make install. Regards, Mladen. - 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]
please give me index.jsp
Hi. I accidentally deleted it.. Anybody has it form? Please send Thanks !!! Carlos
Re: please give me index.jsp
Why not just download it? On Wed, 2005-02-02 at 14:49, Carlos A.Garca wrote: Hi. I accidentally deleted it.. Anybody has it form? Please send Thanks !!! Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Shutdown not working under SLES8 and FC2
Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing under Cygwin?!?!?!?! Al. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Shutdown not working under SLES8 and FC2
Al Sutton wrote: Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing under Cygwin?!?!?!?! No, you had the bug closed when no one could reproduce it under anything. Anyway, try posting some additional information for more help: What version of tomcat you're using, and the contents of your server.xml file would both be useful pieces of information. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SocketException: Too many open files
You need to increase the maximum number of open file descriptors for your platform. There are lots of documents on how to do this. Thanks, Randall -Original Message- From: Stephen Charles Huey [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 01, 2005 4:30 PM To: Tomcat User Subject: SocketException: Too many open files I'm running some simple but fast-pounding test programs against our Tomcat server from a machine on the same network, and we've been tuning our database, etc, based on this. But right now, I'm seeing a new one coming out of our Java code whenever we try to open a URL: java.net.SocketException: Too many open files at java.net.Socket.createImpl(Socket.java:331) at java.net.Socket.connect(Socket.java:450) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(DashoA12275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.init(DashoA12275) at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(DashoA122 75) at sun.net.www.protocol.https.HttpsClient.doConnect(DashoA12275) at sun.net.www.http.HttpClient.openServer(HttpClient.java:402) at sun.net.www.http.HttpClient.openServer(HttpClient.java:618) at sun.net.www.protocol.https.HttpsClient.init(DashoA12275) at sun.net.www.protocol.https.HttpsClient.a(DashoA12275) at sun.net.www.protocol.https.HttpsClient.a(DashoA12275) at sun.net.www.protocol.https.HttpsClient.a(DashoA12275) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.plainConne ct(DashoA12275) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Da shoA12275) at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(DashoA12275) We're opening lots of these, and it appears we're opening more than a maximum number of connections to the internet. Is there a way to bump this up? Or maybe we're just pounding this harder than it will ever get hit in the real world? I'm also seeing this as well: SEVERE: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=80] ignored exception: java.net.SocketException: Too many open files java.net.SocketException: Too many open files at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353) at java.net.ServerSocket.implAccept(ServerSocket.java:448) at java.net.ServerSocket.accept(ServerSocket.java:419) at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(Defau ltServerSocketFactory.java:107) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint. java:356) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:52 9) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:619) at java.lang.Thread.run(Thread.java:534) Feb 1, 2005 4:53:08 PM org.apache.tomcat.util.net.PoolTcpEndpoint closeServerSocket SEVERE: Caught exception trying to unlock accept. java.net.SocketException: Too many open files at java.net.Socket.createImpl(Socket.java:331) at java.net.Socket.init(Socket.java:304) at java.net.Socket.init(Socket.java:124) at org.apache.tomcat.util.net.PoolTcpEndpoint.closeServerSocket(PoolTcpEndp oint.java:326) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint. java:397) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:52 9) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:619) at java.lang.Thread.run(Thread.java:534) Feb 1, 2005 4:53:08 PM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket WARNING: Reinitializing ServerSocket - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: please give me index.jsp
Thanks.. From where? I searched the apache home.. Do you know where is the file? Thank you Carlos -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 11:52 AM To: Tomcat Users List Subject: Re: please give me index.jsp Why not just download it? On Wed, 2005-02-02 at 14:49, Carlos A.García wrote: Hi. I accidentally deleted it.. Anybody has it form? Please send Thanks !!! Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jspc taglib handling different between 5.5.4 and 5.5.7
I am having the same issue. My absolute uri'd tld are not getting resolved. Also I am getting this error when I try running my struts app: ERROR: 2005-02-02 14:45:27,578: ApplicationDispatcher: Servlet.service() for servlet jsp threw exception java.lang.ClassCastException at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:420) at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248) at org.apache.jasper.compiler.TagLibraryInfoImpl.init(TagLibraryInfoImpl.java:162) at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539) at org.apache.jasper.compiler.Parser.parse(Parser.java:126) at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:100) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) On Tue, 1 Feb 2005 09:55:12 -0600, Jason Schuchert [EMAIL PROTECTED] wrote: i upgraded to 5.5.7 this weekend and noticed that my ant jsp precompile task was failing for .jsp files that were referencing taglibs. it gave a message like: org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/sql cannot be resolved in either web.xml or the jar files deployed with this application the line in the offending jsp looks like: %@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql % if i go into the jstl taglib jar file and grab the sql.tld file and put it into my WEB-INF then the jspc task works. in 5.5.4 this worked without having the sql.tld file in WEB-INF (it was just found in the .jar file of the tag library) anybody hitting similar issues? was there a change in the jspc code that intentionally makes this not work in 5.5.7? thanks! -jason - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: please give me index.jsp
From: Carlos A.García [mailto:[EMAIL PROTECTED] Subject: RE: please give me index.jsp Thanks.. From where? I searched the apache home.. Do you know where is the file? It's in your original Tomcat download. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shutdown not working under SLES8 and FC2
Please read the bug. One person tried under cygwin and then closed it. No-one else has said what platforms they've tried it on, and I was told One thing is certain: no developer will install the crappy distro you're using just for the sake of testing this. As stated in the bug twice this is after extracting the main archive and the compat packages, no changes, no modifications, no web apps installed, nothing else, nada, zip, not a sausage, not a config file, not a bird, nor a plane was changed. Seesh... is there anywhere else I need to post the fact that I didn't change a thing from the download before people read it? -Original Message- From: Carl Howells [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:08 To: Tomcat Users List Subject: Re: Shutdown not working under SLES8 and FC2 Al Sutton wrote: Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing under Cygwin?!?!?!?! No, you had the bug closed when no one could reproduce it under anything. Anyway, try posting some additional information for more help: What version of tomcat you're using, and the contents of your server.xml file would both be useful pieces of information. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shutdown not working under SLES8 and FC2
And it's the latest version, if it was any earlier ones I would have upgraded already. Thats 5.5.7 Thats the one voted as stable. OK? -Original Message- From: Carl Howells [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:08 To: Tomcat Users List Subject: Re: Shutdown not working under SLES8 and FC2 Al Sutton wrote: Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing under Cygwin?!?!?!?! No, you had the bug closed when no one could reproduce it under anything. Anyway, try posting some additional information for more help: What version of tomcat you're using, and the contents of your server.xml file would both be useful pieces of information. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Shutdown not working under SLES8 and FC2
I am using under Suse 9.2 E server, no problems. Make sure you are the right user prefer tomcat when executing the script. From: Carl Howells [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Shutdown not working under SLES8 and FC2 Date: Wed, 02 Feb 2005 12:07:49 -0800 MIME-Version: 1.0 Received: from mail.apache.org ([209.237.227.199]) by mc3-f10.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 2 Feb 2005 12:08:17 -0800 Received: (qmail 3636 invoked by uid 500); 2 Feb 2005 20:08:15 - Received: (qmail 3617 invoked by uid 99); 2 Feb 2005 20:08:14 - Received: pass (hermes.apache.org: local policy) Received: from w2a.bigimap.com (HELO w2a.BigIMAP.com) (67.137.230.94) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 02 Feb 2005 12:08:13 -0800 Received: from [198.107.53.220] (helo=[10.0.0.40])by w2a.BigIMAP.com with asmtp (TLSv1:AES256-SHA:256)(Exim 4.32)id 1CwQnL-0007Nw-Awfor tomcat-user@jakarta.apache.org; Wed, 02 Feb 2005 12:08:11 -0800 X-Message-Info: JGTYoYF78jEMKSyQlKEErNo/p8DU+3xt/R7ByvwZ5dg= Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Unsubscribe: mailto:[EMAIL PROTECTED] List-Subscribe: mailto:[EMAIL PROTECTED] List-Help: mailto:[EMAIL PROTECTED] List-Post: mailto:tomcat-user@jakarta.apache.org List-Id: Tomcat Users List tomcat-user.jakarta.apache.org Delivered-To: mailing list tomcat-user@jakarta.apache.org X-ASF-Spam-Status: No, hits=0.0 required=10.0tests= X-Spam-Check-By: apache.org User-Agent: Mozilla Thunderbird 0.9 (X11/20041124) X-Accept-Language: en-us, en References: [EMAIL PROTECTED] X-BFI-Originally-From: [EMAIL PROTECTED] X-Virus-Checked: Checked Return-Path: [EMAIL PROTECTED] X-OriginalArrivalTime: 02 Feb 2005 20:08:17.0358 (UTC) FILETIME=[EF256EE0:01C50962] Al Sutton wrote: Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing under Cygwin?!?!?!?! No, you had the bug closed when no one could reproduce it under anything. Anyway, try posting some additional information for more help: What version of tomcat you're using, and the contents of your server.xml file would both be useful pieces of information. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Trailblazer Narain Karthikeyan. Know more about him n his life. http://server1.msn.co.in/sp04/tataracing/ Stay in the loop with Tata Racing! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: please give me index.jsp
You haven't stated which version. Here is the latest from CVS. You will see a download link at the top of the page. http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/webapps/ROOT/index.jsp?rev=1.17view=log On Wed, 2005-02-02 at 15:11, Carlos A.Garca wrote: Thanks.. From where? I searched the apache home.. Do you know where is the file? Thank you Carlos -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 11:52 AM To: Tomcat Users List Subject: Re: please give me index.jsp Why not just download it? On Wed, 2005-02-02 at 14:49, Carlos A.Garca wrote: Hi. I accidentally deleted it.. Anybody has it form? Please send Thanks !!! Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shutdown not working under SLES8 and FC2
I'm running FC2 and it shuts down fine On Wed, 2005-02-02 at 15:14, Al Sutton wrote: Please read the bug. One person tried under cygwin and then closed it. No-one else has said what platforms they've tried it on, and I was told One thing is certain: no developer will install the crappy distro you're using just for the sake of testing this. As stated in the bug twice this is after extracting the main archive and the compat packages, no changes, no modifications, no web apps installed, nothing else, nada, zip, not a sausage, not a config file, not a bird, nor a plane was changed. Seesh... is there anywhere else I need to post the fact that I didn't change a thing from the download before people read it? -Original Message- From: Carl Howells [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:08 To: Tomcat Users List Subject: Re: Shutdown not working under SLES8 and FC2 Al Sutton wrote: Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing under Cygwin?!?!?!?! No, you had the bug closed when no one could reproduce it under anything. Anyway, try posting some additional information for more help: What version of tomcat you're using, and the contents of your server.xml file would both be useful pieces of information. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shutdown not working under SLES8 and FC2
Are you using the default or modified config? Thanks, Al. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:18 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 I'm running FC2 and it shuts down fine On Wed, 2005-02-02 at 15:14, Al Sutton wrote: Please read the bug. One person tried under cygwin and then closed it. No-one else has said what platforms they've tried it on, and I was told One thing is certain: no developer will install the crappy distro you're using just for the sake of testing this. As stated in the bug twice this is after extracting the main archive and the compat packages, no changes, no modifications, no web apps installed, nothing else, nada, zip, not a sausage, not a config file, not a bird, nor a plane was changed. Seesh... is there anywhere else I need to post the fact that I didn't change a thing from the download before people read it? -Original Message- From: Carl Howells [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:08 To: Tomcat Users List Subject: Re: Shutdown not working under SLES8 and FC2 Al Sutton wrote: Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing under Cygwin?!?!?!?! No, you had the bug closed when no one could reproduce it under anything. Anyway, try posting some additional information for more help: What version of tomcat you're using, and the contents of your server.xml file would both be useful pieces of information. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shutdown not working under SLES8 and FC2
Thanks for the info. Can you expand on what you mean by right user prefer. I'm running tomcat as a user, and running the startup and shutdown scripts as that user. -Original Message- From: arvind singh [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:15 To: tomcat-user@jakarta.apache.org Subject: Re: Shutdown not working under SLES8 and FC2 I am using under Suse 9.2 E server, no problems. Make sure you are the right user prefer tomcat when executing the script. From: Carl Howells [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Shutdown not working under SLES8 and FC2 Date: Wed, 02 Feb 2005 12:07:49 -0800 MIME-Version: 1.0 Received: from mail.apache.org ([209.237.227.199]) by mc3-f10.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 2 Feb 2005 12:08:17 -0800 Received: (qmail 3636 invoked by uid 500); 2 Feb 2005 20:08:15 - Received: (qmail 3617 invoked by uid 99); 2 Feb 2005 20:08:14 - Received: pass (hermes.apache.org: local policy) Received: from w2a.bigimap.com (HELO w2a.BigIMAP.com) (67.137.230.94) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 02 Feb 2005 12:08:13 -0800 Received: from [198.107.53.220] (helo=[10.0.0.40])by w2a.BigIMAP.com with asmtp (TLSv1:AES256-SHA:256)(Exim 4.32)id 1CwQnL-0007Nw-Awfor tomcat-user@jakarta.apache.org; Wed, 02 Feb 2005 12:08:11 -0800 X-Message-Info: JGTYoYF78jEMKSyQlKEErNo/p8DU+3xt/R7ByvwZ5dg= Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Unsubscribe: mailto:[EMAIL PROTECTED] List-Subscribe: mailto:[EMAIL PROTECTED] List-Help: mailto:[EMAIL PROTECTED] List-Post: mailto:tomcat-user@jakarta.apache.org List-Id: Tomcat Users List tomcat-user.jakarta.apache.org Delivered-To: mailing list tomcat-user@jakarta.apache.org X-ASF-Spam-Status: No, hits=0.0 required=10.0tests= X-Spam-Check-By: apache.org User-Agent: Mozilla Thunderbird 0.9 (X11/20041124) X-Accept-Language: en-us, en References: [EMAIL PROTECTED] X-BFI-Originally-From: [EMAIL PROTECTED] X-Virus-Checked: Checked Return-Path: [EMAIL PROTECTED] X-OriginalArrivalTime: 02 Feb 2005 20:08:17.0358 (UTC) FILETIME=[EF256EE0:01C50962] Al Sutton wrote: Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing under Cygwin?!?!?!?! No, you had the bug closed when no one could reproduce it under anything. Anyway, try posting some additional information for more help: What version of tomcat you're using, and the contents of your server.xml file would both be useful pieces of information. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Trailblazer Narain Karthikeyan. Know more about him n his life. http://server1.msn.co.in/sp04/tataracing/ Stay in the loop with Tata Racing! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shutdown not working under SLES8 and FC2
Straight out of the box. What config are you talking about? Also, what version of Tomcat? On Wed, 2005-02-02 at 15:20, Al Sutton wrote: Are you using the default or modified config? Thanks, Al. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:18 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 I'm running FC2 and it shuts down fine On Wed, 2005-02-02 at 15:14, Al Sutton wrote: Please read the bug. One person tried under cygwin and then closed it. No-one else has said what platforms they've tried it on, and I was told One thing is certain: no developer will install the crappy distro you're using just for the sake of testing this. As stated in the bug twice this is after extracting the main archive and the compat packages, no changes, no modifications, no web apps installed, nothing else, nada, zip, not a sausage, not a config file, not a bird, nor a plane was changed. Seesh... is there anywhere else I need to post the fact that I didn't change a thing from the download before people read it? -Original Message- From: Carl Howells [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:08 To: Tomcat Users List Subject: Re: Shutdown not working under SLES8 and FC2 Al Sutton wrote: Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing under Cygwin?!?!?!?! No, you had the bug closed when no one could reproduce it under anything. Anyway, try posting some additional information for more help: What version of tomcat you're using, and the contents of your server.xml file would both be useful pieces of information. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shutdown not working under SLES8 and FC2
I'm using 5.5.7 out of the box with the compat package under JDK 1.4.2. Are you using JDK 1.5? -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:24 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 Straight out of the box. What config are you talking about? Also, what version of Tomcat? On Wed, 2005-02-02 at 15:20, Al Sutton wrote: Are you using the default or modified config? Thanks, Al. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:18 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 I'm running FC2 and it shuts down fine On Wed, 2005-02-02 at 15:14, Al Sutton wrote: Please read the bug. One person tried under cygwin and then closed it. No-one else has said what platforms they've tried it on, and I was told One thing is certain: no developer will install the crappy distro you're using just for the sake of testing this. As stated in the bug twice this is after extracting the main archive and the compat packages, no changes, no modifications, no web apps installed, nothing else, nada, zip, not a sausage, not a config file, not a bird, nor a plane was changed. Seesh... is there anywhere else I need to post the fact that I didn't change a thing from the download before people read it? -Original Message- From: Carl Howells [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:08 To: Tomcat Users List Subject: Re: Shutdown not working under SLES8 and FC2 Al Sutton wrote: Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing under Cygwin?!?!?!?! No, you had the bug closed when no one could reproduce it under anything. Anyway, try posting some additional information for more help: What version of tomcat you're using, and the contents of your server.xml file would both be useful pieces of information. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shutdown not working under SLES8 and FC2
Yes, hang on I'll try with j2sdk1.4.2 On Wed, 2005-02-02 at 15:28, Al Sutton wrote: I'm using 5.5.7 out of the box with the compat package under JDK 1.4.2. Are you using JDK 1.5? -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:24 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 Straight out of the box. What config are you talking about? Also, what version of Tomcat? On Wed, 2005-02-02 at 15:20, Al Sutton wrote: Are you using the default or modified config? Thanks, Al. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:18 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 I'm running FC2 and it shuts down fine On Wed, 2005-02-02 at 15:14, Al Sutton wrote: Please read the bug. One person tried under cygwin and then closed it. No-one else has said what platforms they've tried it on, and I was told One thing is certain: no developer will install the crappy distro you're using just for the sake of testing this. As stated in the bug twice this is after extracting the main archive and the compat packages, no changes, no modifications, no web apps installed, nothing else, nada, zip, not a sausage, not a config file, not a bird, nor a plane was changed. Seesh... is there anywhere else I need to post the fact that I didn't change a thing from the download before people read it? -Original Message- From: Carl Howells [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:08 To: Tomcat Users List Subject: Re: Shutdown not working under SLES8 and FC2 Al Sutton wrote: Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing under Cygwin?!?!?!?! No, you had the bug closed when no one could reproduce it under anything. Anyway, try posting some additional information for more help: What version of tomcat you're using, and the contents of your server.xml file would both be useful pieces of information. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: please give me index.jsp
Thank you so much. My version is 4.1 Anybody has the file? Thanks -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 12:17 PM To: Tomcat Users List Subject: RE: please give me index.jsp You haven't stated which version. Here is the latest from CVS. You will see a download link at the top of the page. http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/webapps/ROOT/index .jsp?rev=1.17view=log On Wed, 2005-02-02 at 15:11, Carlos A.García wrote: Thanks.. From where? I searched the apache home.. Do you know where is the file? Thank you Carlos -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 11:52 AM To: Tomcat Users List Subject: Re: please give me index.jsp Why not just download it? On Wed, 2005-02-02 at 14:49, Carlos A.García wrote: Hi. I accidentally deleted it.. Anybody has it form? Please send Thanks !!! Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shutdown not working under SLES8 and FC2
hmm seems like you are using Tomcat 5.5.x for Java 1.5 with jdk1.4.2 Not sure if it will work. From: Al Sutton [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: RE: Shutdown not working under SLES8 and FC2 Date: Wed, 2 Feb 2005 20:21:37 - MIME-Version: 1.0 Received: from mail.apache.org ([209.237.227.199]) by mc5-f22.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 2 Feb 2005 12:21:27 -0800 Received: (qmail 59461 invoked by uid 500); 2 Feb 2005 20:21:15 - Received: (qmail 59430 invoked by uid 99); 2 Feb 2005 20:21:15 - Received: neutral (hermes.apache.org: local policy) Received: from moutng.kundenserver.de (HELO moutng.kundenserver.de) (212.227.126.185) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 02 Feb 2005 12:21:14 -0800 Received: from [212.227.126.207] (helo=mrelayng.kundenserver.de)by moutng.kundenserver.de with esmtp (Exim 3.35 #1)id 1CwQzv-mi-00for tomcat-user@jakarta.apache.org; Wed, 02 Feb 2005 21:21:11 +0100 Received: from [212.159.30.147] (helo=monster)by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1)id 1CwQzv-0002IY-00for tomcat-user@jakarta.apache.org; Wed, 02 Feb 2005 21:21:12 +0100 X-Message-Info: JGTYoYF78jHm/9tpMMGYSAU+9rnmnzq0w4nsUD+UY/Y= Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Unsubscribe: mailto:[EMAIL PROTECTED] List-Subscribe: mailto:[EMAIL PROTECTED] List-Help: mailto:[EMAIL PROTECTED] List-Post: mailto:tomcat-user@jakarta.apache.org List-Id: Tomcat Users List tomcat-user.jakarta.apache.org Delivered-To: mailing list tomcat-user@jakarta.apache.org X-ASF-Spam-Status: No, hits=-0.0 required=10.0tests=SPF_HELO_PASS X-Spam-Check-By: apache.org X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Provags-ID: kundenserver.de [EMAIL PROTECTED] auth:16ad00dfae684e0b07f51615047eb124 X-Virus-Checked: Checked Return-Path: [EMAIL PROTECTED] X-OriginalArrivalTime: 02 Feb 2005 20:21:27.0711 (UTC) FILETIME=[C63BBAF0:01C50964] Thanks for the info. Can you expand on what you mean by right user prefer. I'm running tomcat as a user, and running the startup and shutdown scripts as that user. -Original Message- From: arvind singh [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:15 To: tomcat-user@jakarta.apache.org Subject: Re: Shutdown not working under SLES8 and FC2 I am using under Suse 9.2 E server, no problems. Make sure you are the right user prefer tomcat when executing the script. From: Carl Howells [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Shutdown not working under SLES8 and FC2 Date: Wed, 02 Feb 2005 12:07:49 -0800 MIME-Version: 1.0 Received: from mail.apache.org ([209.237.227.199]) by mc3-f10.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 2 Feb 2005 12:08:17 -0800 Received: (qmail 3636 invoked by uid 500); 2 Feb 2005 20:08:15 - Received: (qmail 3617 invoked by uid 99); 2 Feb 2005 20:08:14 - Received: pass (hermes.apache.org: local policy) Received: from w2a.bigimap.com (HELO w2a.BigIMAP.com) (67.137.230.94) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 02 Feb 2005 12:08:13 -0800 Received: from [198.107.53.220] (helo=[10.0.0.40])by w2a.BigIMAP.com with asmtp (TLSv1:AES256-SHA:256)(Exim 4.32)id 1CwQnL-0007Nw-Awfor tomcat-user@jakarta.apache.org; Wed, 02 Feb 2005 12:08:11 -0800 X-Message-Info: JGTYoYF78jEMKSyQlKEErNo/p8DU+3xt/R7ByvwZ5dg= Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Unsubscribe: mailto:[EMAIL PROTECTED] List-Subscribe: mailto:[EMAIL PROTECTED] List-Help: mailto:[EMAIL PROTECTED] List-Post: mailto:tomcat-user@jakarta.apache.org List-Id: Tomcat Users List tomcat-user.jakarta.apache.org Delivered-To: mailing list tomcat-user@jakarta.apache.org X-ASF-Spam-Status: No, hits=0.0 required=10.0tests= X-Spam-Check-By: apache.org User-Agent: Mozilla Thunderbird 0.9 (X11/20041124) X-Accept-Language: en-us, en References: [EMAIL PROTECTED] X-BFI-Originally-From: [EMAIL PROTECTED] X-Virus-Checked: Checked Return-Path: [EMAIL PROTECTED] X-OriginalArrivalTime: 02 Feb 2005 20:08:17.0358 (UTC) FILETIME=[EF256EE0:01C50962] Al Sutton wrote: Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing under Cygwin?!?!?!?! No, you had the bug closed when no one could reproduce it under anything. Anyway, try posting some additional information for more help: What version of tomcat you're using, and the contents of your server.xml file would both be useful pieces of information. - To unsubscribe,
RE: please give me index.jsp
I just got you to the CVS tree, browse to whatever version you want... http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/webapps/ROOT/index.jsp?rev=1.9view=log On Wed, 2005-02-02 at 15:31, Carlos A.Garca wrote: Thank you so much. My version is 4.1 Anybody has the file? Thanks -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 12:17 PM To: Tomcat Users List Subject: RE: please give me index.jsp You haven't stated which version. Here is the latest from CVS. You will see a download link at the top of the page. http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/webapps/ROOT/index .jsp?rev=1.17view=log On Wed, 2005-02-02 at 15:11, Carlos A.Garca wrote: Thanks.. From where? I searched the apache home.. Do you know where is the file? Thank you Carlos -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 11:52 AM To: Tomcat Users List Subject: Re: please give me index.jsp Why not just download it? On Wed, 2005-02-02 at 14:49, Carlos A.Garca wrote: Hi. I accidentally deleted it.. Anybody has it form? Please send Thanks !!! Carlos - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JNDI resources different between 5.0 and 5.5?
OK, I think I found the problem. You need to put in the resource factory in the context section which I didn't do. I have one question about the docs, though. The docs seem to indicate that a new instance of the bean will be created with every call to lookup. This is not the behavior that I am noticing. I actually want a single instance of the bean that spans all sessions which is the behavior as I see it, but the docs seem to indicate otherwise. The resource factory will create a new instance of the appropriate bean class every time a lookup() for this entry is made. http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-resources-howto.html Context ... ... Resource name=bean/MyBeanFactory auth=Container type=com.mycompany.MyBean factory=org.apache.naming.factory.BeanFactory bar=23/ ... /Context --- Mark Winslow [EMAIL PROTECTED] wrote: Hi, I'm trying to upgrade from 5.0.28 to 5.5.4. I have a java bean resource that no longer works in 5.5.4. Apparently the resource isn't being found. My code for looking up the resources is: public static Manager getManager() { try { Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); Manager manager = (Manager) envCtx.lookup(bean/MyManager); // fails here on lookup. return manager; } catch (Exception e) { e.printStackTrace(); return null; } } In server.xml: Resourcource name=bean/MyManager auth=Container type=MXForm.Manager/ I didn't have a web.xml entry in 5.0, but I added one after reading the docs. In web.xml: resource-env-ref Description Manager resource. /Description resource-env-ref-name bean/MyManager /resource-env-ref-name resource-env-ref-type MXForm.Manager /resource-env-ref-type /resource-env-ref Thanks. __ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shutdown not working under SLES8 and FC2
Here you go. I just downloaded 5.5.7 with the compat stuff. Set JAVA_HOME, Started and Stopped Tomcat. Then ran ps to see if there were any java processes hanging. Here is the session: = [EMAIL PROTECTED] bin]$ export JAVA_HOME=/usr/local/j2sdk1.4.2_05 [EMAIL PROTECTED] bin]$ ./startup.sh Using CATALINA_BASE: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_HOME: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_TMPDIR: /home/bsouther/tc_test/jakarta-tomcat-5.5.7/temp Using JRE_HOME: /usr/local/j2sdk1.4.2_05 [EMAIL PROTECTED] bin]$ ./shutdown.sh Using CATALINA_BASE: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_HOME: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_TMPDIR: /home/bsouther/tc_test/jakarta-tomcat-5.5.7/temp Using JRE_HOME: /usr/local/j2sdk1.4.2_05 Created MBeanServer with ID: e94e92:101d4d0a879:-8000:bsouther:1 [EMAIL PROTECTED] bin]$ ps -ef | grep java bsouther 11277 0 0 15:44 pts/100:00:00 grep java [EMAIL PROTECTED] bin]$ On Wed, 2005-02-02 at 15:30, Ben Souther wrote: Yes, hang on I'll try with j2sdk1.4.2 On Wed, 2005-02-02 at 15:28, Al Sutton wrote: I'm using 5.5.7 out of the box with the compat package under JDK 1.4.2. Are you using JDK 1.5? -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:24 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 Straight out of the box. What config are you talking about? Also, what version of Tomcat? On Wed, 2005-02-02 at 15:20, Al Sutton wrote: Are you using the default or modified config? Thanks, Al. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:18 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 I'm running FC2 and it shuts down fine On Wed, 2005-02-02 at 15:14, Al Sutton wrote: Please read the bug. One person tried under cygwin and then closed it. No-one else has said what platforms they've tried it on, and I was told One thing is certain: no developer will install the crappy distro you're using just for the sake of testing this. As stated in the bug twice this is after extracting the main archive and the compat packages, no changes, no modifications, no web apps installed, nothing else, nada, zip, not a sausage, not a config file, not a bird, nor a plane was changed. Seesh... is there anywhere else I need to post the fact that I didn't change a thing from the download before people read it? -Original Message- From: Carl Howells [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:08 To: Tomcat Users List Subject: Re: Shutdown not working under SLES8 and FC2 Al Sutton wrote: Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing under Cygwin?!?!?!?! No, you had the bug closed when no one could reproduce it under anything. Anyway, try posting some additional information for more help: What version of tomcat you're using, and the contents of your server.xml file would both be useful pieces of information. - 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] - 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:
Re: Shutdown not working under SLES8 and FC2
Mine won't shutdown either, I have to killall -9 java. The server this is happening to is running RH 3AS with jdk1.5 and Tomcat 5.5.4 Drew. On Wed, 2005-02-02 at 12:05, Al Sutton wrote: Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing under Cygwin?!?!?!?! Al. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shutdown not working under SLES8 and FC2
Can you do a uname -a so I can compare kernel versions. Thanks, Al. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:48 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 Here you go. I just downloaded 5.5.7 with the compat stuff. Set JAVA_HOME, Started and Stopped Tomcat. Then ran ps to see if there were any java processes hanging. Here is the session: = [EMAIL PROTECTED] bin]$ export JAVA_HOME=/usr/local/j2sdk1.4.2_05 [EMAIL PROTECTED] bin]$ ./startup.sh Using CATALINA_BASE: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_HOME: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_TMPDIR: /home/bsouther/tc_test/jakarta-tomcat-5.5.7/temp Using JRE_HOME: /usr/local/j2sdk1.4.2_05 [EMAIL PROTECTED] bin]$ ./shutdown.sh Using CATALINA_BASE: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_HOME: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_TMPDIR: /home/bsouther/tc_test/jakarta-tomcat-5.5.7/temp Using JRE_HOME: /usr/local/j2sdk1.4.2_05 Created MBeanServer with ID: e94e92:101d4d0a879:-8000:bsouther:1 [EMAIL PROTECTED] bin]$ ps -ef | grep java bsouther 11277 0 0 15:44 pts/100:00:00 grep java [EMAIL PROTECTED] bin]$ On Wed, 2005-02-02 at 15:30, Ben Souther wrote: Yes, hang on I'll try with j2sdk1.4.2 On Wed, 2005-02-02 at 15:28, Al Sutton wrote: I'm using 5.5.7 out of the box with the compat package under JDK 1.4.2. Are you using JDK 1.5? -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:24 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 Straight out of the box. What config are you talking about? Also, what version of Tomcat? On Wed, 2005-02-02 at 15:20, Al Sutton wrote: Are you using the default or modified config? Thanks, Al. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:18 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 I'm running FC2 and it shuts down fine On Wed, 2005-02-02 at 15:14, Al Sutton wrote: Please read the bug. One person tried under cygwin and then closed it. No-one else has said what platforms they've tried it on, and I was told One thing is certain: no developer will install the crappy distro you're using just for the sake of testing this. As stated in the bug twice this is after extracting the main archive and the compat packages, no changes, no modifications, no web apps installed, nothing else, nada, zip, not a sausage, not a config file, not a bird, nor a plane was changed. Seesh... is there anywhere else I need to post the fact that I didn't change a thing from the download before people read it? -Original Message- From: Carl Howells [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:08 To: Tomcat Users List Subject: Re: Shutdown not working under SLES8 and FC2 Al Sutton wrote: Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing under Cygwin?!?!?!?! No, you had the bug closed when no one could reproduce it under anything. Anyway, try posting some additional information for more help: What version of tomcat you're using, and the contents of your server.xml file would both be useful pieces of information. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shutdown not working under SLES8 and FC2
I've extracted the compat archive which is supposed to give 1.4 compatibility, so sorry, no cigar :). Al. -Original Message- From: arvind singh [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:44 To: tomcat-user@jakarta.apache.org Subject: RE: Shutdown not working under SLES8 and FC2 hmm seems like you are using Tomcat 5.5.x for Java 1.5 with jdk1.4.2 Not sure if it will work. From: Al Sutton [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: RE: Shutdown not working under SLES8 and FC2 Date: Wed, 2 Feb 2005 20:21:37 - MIME-Version: 1.0 Received: from mail.apache.org ([209.237.227.199]) by mc5-f22.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 2 Feb 2005 12:21:27 -0800 Received: (qmail 59461 invoked by uid 500); 2 Feb 2005 20:21:15 - Received: (qmail 59430 invoked by uid 99); 2 Feb 2005 20:21:15 - Received: neutral (hermes.apache.org: local policy) Received: from moutng.kundenserver.de (HELO moutng.kundenserver.de) (212.227.126.185) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 02 Feb 2005 12:21:14 -0800 Received: from [212.227.126.207] (helo=mrelayng.kundenserver.de)by moutng.kundenserver.de with esmtp (Exim 3.35 #1)id 1CwQzv-mi-00for tomcat-user@jakarta.apache.org; Wed, 02 Feb 2005 21:21:11 +0100 Received: from [212.159.30.147] (helo=monster)by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1)id 1CwQzv-0002IY-00for tomcat-user@jakarta.apache.org; Wed, 02 Feb 2005 21:21:12 +0100 X-Message-Info: JGTYoYF78jHm/9tpMMGYSAU+9rnmnzq0w4nsUD+UY/Y= Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Unsubscribe: mailto:[EMAIL PROTECTED] List-Subscribe: mailto:[EMAIL PROTECTED] List-Help: mailto:[EMAIL PROTECTED] List-Post: mailto:tomcat-user@jakarta.apache.org List-Id: Tomcat Users List tomcat-user.jakarta.apache.org Delivered-To: mailing list tomcat-user@jakarta.apache.org X-ASF-Spam-Status: No, hits=-0.0 required=10.0tests=SPF_HELO_PASS X-Spam-Check-By: apache.org X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Provags-ID: kundenserver.de [EMAIL PROTECTED] auth:16ad00dfae684e0b07f51615047eb124 X-Virus-Checked: Checked Return-Path: [EMAIL PROTECTED] X-OriginalArrivalTime: 02 Feb 2005 20:21:27.0711 (UTC) FILETIME=[C63BBAF0:01C50964] Thanks for the info. Can you expand on what you mean by right user prefer. I'm running tomcat as a user, and running the startup and shutdown scripts as that user. -Original Message- From: arvind singh [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:15 To: tomcat-user@jakarta.apache.org Subject: Re: Shutdown not working under SLES8 and FC2 I am using under Suse 9.2 E server, no problems. Make sure you are the right user prefer tomcat when executing the script. From: Carl Howells [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Shutdown not working under SLES8 and FC2 Date: Wed, 02 Feb 2005 12:07:49 -0800 MIME-Version: 1.0 Received: from mail.apache.org ([209.237.227.199]) by mc3-f10.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 2 Feb 2005 12:08:17 -0800 Received: (qmail 3636 invoked by uid 500); 2 Feb 2005 20:08:15 - Received: (qmail 3617 invoked by uid 99); 2 Feb 2005 20:08:14 - Received: pass (hermes.apache.org: local policy) Received: from w2a.bigimap.com (HELO w2a.BigIMAP.com) (67.137.230.94) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 02 Feb 2005 12:08:13 -0800 Received: from [198.107.53.220] (helo=[10.0.0.40])by w2a.BigIMAP.com with asmtp (TLSv1:AES256-SHA:256)(Exim 4.32)id 1CwQnL-0007Nw-Awfor tomcat-user@jakarta.apache.org; Wed, 02 Feb 2005 12:08:11 -0800 X-Message-Info: JGTYoYF78jEMKSyQlKEErNo/p8DU+3xt/R7ByvwZ5dg= Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Unsubscribe: mailto:[EMAIL PROTECTED] List-Subscribe: mailto:[EMAIL PROTECTED] List-Help: mailto:[EMAIL PROTECTED] List-Post: mailto:tomcat-user@jakarta.apache.org List-Id: Tomcat Users List tomcat-user.jakarta.apache.org Delivered-To: mailing list tomcat-user@jakarta.apache.org X-ASF-Spam-Status: No, hits=0.0 required=10.0tests= X-Spam-Check-By: apache.org User-Agent: Mozilla Thunderbird 0.9 (X11/20041124) X-Accept-Language: en-us, en References: [EMAIL PROTECTED] X-BFI-Originally-From: [EMAIL PROTECTED] X-Virus-Checked: Checked Return-Path: [EMAIL PROTECTED] X-OriginalArrivalTime: 02 Feb 2005 20:08:17.0358 (UTC) FILETIME=[EF256EE0:01C50962] Al Sutton wrote: Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing under Cygwin?!?!?!?!
RE: Shutdown not working under SLES8 and FC2
Linux bsouther 2.6.9-1.6_FC2 #1 Thu Nov 18 22:03:19 EST 2004 i686 athlon i386 GNU/Linux On Wed, 2005-02-02 at 15:56, Al Sutton wrote: Can you do a uname -a so I can compare kernel versions. Thanks, Al. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:48 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 Here you go. I just downloaded 5.5.7 with the compat stuff. Set JAVA_HOME, Started and Stopped Tomcat. Then ran ps to see if there were any java processes hanging. Here is the session: = [EMAIL PROTECTED] bin]$ export JAVA_HOME=/usr/local/j2sdk1.4.2_05 [EMAIL PROTECTED] bin]$ ./startup.sh Using CATALINA_BASE: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_HOME: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_TMPDIR: /home/bsouther/tc_test/jakarta-tomcat-5.5.7/temp Using JRE_HOME: /usr/local/j2sdk1.4.2_05 [EMAIL PROTECTED] bin]$ ./shutdown.sh Using CATALINA_BASE: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_HOME: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_TMPDIR: /home/bsouther/tc_test/jakarta-tomcat-5.5.7/temp Using JRE_HOME: /usr/local/j2sdk1.4.2_05 Created MBeanServer with ID: e94e92:101d4d0a879:-8000:bsouther:1 [EMAIL PROTECTED] bin]$ ps -ef | grep java bsouther 11277 0 0 15:44 pts/100:00:00 grep java [EMAIL PROTECTED] bin]$ On Wed, 2005-02-02 at 15:30, Ben Souther wrote: Yes, hang on I'll try with j2sdk1.4.2 On Wed, 2005-02-02 at 15:28, Al Sutton wrote: I'm using 5.5.7 out of the box with the compat package under JDK 1.4.2. Are you using JDK 1.5? -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:24 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 Straight out of the box. What config are you talking about? Also, what version of Tomcat? On Wed, 2005-02-02 at 15:20, Al Sutton wrote: Are you using the default or modified config? Thanks, Al. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:18 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 I'm running FC2 and it shuts down fine On Wed, 2005-02-02 at 15:14, Al Sutton wrote: Please read the bug. One person tried under cygwin and then closed it. No-one else has said what platforms they've tried it on, and I was told One thing is certain: no developer will install the crappy distro you're using just for the sake of testing this. As stated in the bug twice this is after extracting the main archive and the compat packages, no changes, no modifications, no web apps installed, nothing else, nada, zip, not a sausage, not a config file, not a bird, nor a plane was changed. Seesh... is there anywhere else I need to post the fact that I didn't change a thing from the download before people read it? -Original Message- From: Carl Howells [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:08 To: Tomcat Users List Subject: Re: Shutdown not working under SLES8 and FC2 Al Sutton wrote: Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing under Cygwin?!?!?!?! No, you had the bug closed when no one could reproduce it under anything. Anyway, try posting some additional information for more help: What version of tomcat you're using, and the contents of your server.xml file would both be useful pieces of information. - 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] - To
sharing session across Hosts
Hello. I have two Hosts setup in the same Engine, and I would like to be able to share session variables across them. Is this possible? And, if so, what do I have to configure? Realm? Listener? Thanks a lot. Charlie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
compiling and deployment in tomcat
Hi, I've just installed Tomcat 5.5 and I have two main doubts and I hope someone may help me. 1. Do I really have to compile a servlet manually using javac (or using another tool) or may I save it in a specific folder so Tomcat compiles it to me? 2. Do I really have to register my servlets in web.xml file or this process can be done automatically by Tomcat? When I did the test with jsp pages, it was not necessary compile or register the file (Tomcat did everything to me) so I expect the same with servlets. Thanks, Julio
RE: Shutdown not working under SLES8 and FC2
Hmmm The latest updates gives me; Linux host 2.6.10-1.9_FC2 #1 Thu Jan 13 17:54:57 EST 2005 i686 athlon i386 GNU/Linux and I'm on JDK 1.4.2_06 as opposed to _05. Would it be possible for you to upgrade?, I'd like to have the exact same environment, but please don't put yourself out or risk a critical environment. Al. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:58 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 Linux bsouther 2.6.9-1.6_FC2 #1 Thu Nov 18 22:03:19 EST 2004 i686 athlon i386 GNU/Linux On Wed, 2005-02-02 at 15:56, Al Sutton wrote: Can you do a uname -a so I can compare kernel versions. Thanks, Al. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:48 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 Here you go. I just downloaded 5.5.7 with the compat stuff. Set JAVA_HOME, Started and Stopped Tomcat. Then ran ps to see if there were any java processes hanging. Here is the session: = [EMAIL PROTECTED] bin]$ export JAVA_HOME=/usr/local/j2sdk1.4.2_05 [EMAIL PROTECTED] bin]$ ./startup.sh Using CATALINA_BASE: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_HOME: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_TMPDIR: /home/bsouther/tc_test/jakarta-tomcat-5.5.7/temp Using JRE_HOME: /usr/local/j2sdk1.4.2_05 [EMAIL PROTECTED] bin]$ ./shutdown.sh Using CATALINA_BASE: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_HOME: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_TMPDIR: /home/bsouther/tc_test/jakarta-tomcat-5.5.7/temp Using JRE_HOME: /usr/local/j2sdk1.4.2_05 Created MBeanServer with ID: e94e92:101d4d0a879:-8000:bsouther:1 [EMAIL PROTECTED] bin]$ ps -ef | grep java bsouther 11277 0 0 15:44 pts/100:00:00 grep java [EMAIL PROTECTED] bin]$ On Wed, 2005-02-02 at 15:30, Ben Souther wrote: Yes, hang on I'll try with j2sdk1.4.2 On Wed, 2005-02-02 at 15:28, Al Sutton wrote: I'm using 5.5.7 out of the box with the compat package under JDK 1.4.2. Are you using JDK 1.5? -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:24 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 Straight out of the box. What config are you talking about? Also, what version of Tomcat? On Wed, 2005-02-02 at 15:20, Al Sutton wrote: Are you using the default or modified config? Thanks, Al. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:18 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 I'm running FC2 and it shuts down fine On Wed, 2005-02-02 at 15:14, Al Sutton wrote: Please read the bug. One person tried under cygwin and then closed it. No-one else has said what platforms they've tried it on, and I was told One thing is certain: no developer will install the crappy distro you're using just for the sake of testing this. As stated in the bug twice this is after extracting the main archive and the compat packages, no changes, no modifications, no web apps installed, nothing else, nada, zip, not a sausage, not a config file, not a bird, nor a plane was changed. Seesh... is there anywhere else I need to post the fact that I didn't change a thing from the download before people read it? -Original Message- From: Carl Howells [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:08 To: Tomcat Users List Subject: Re: Shutdown not working under SLES8 and FC2 Al Sutton wrote: Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing under Cygwin?!?!?!?! No, you had the bug closed when no one could reproduce it under anything. Anyway, try posting some additional information for more help: What version of tomcat you're using, and the contents of your server.xml file would both be useful pieces of information. - 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
Re: compiling and deployment in tomcat
On Wed, 2005-02-02 at 17:34, Julio Macedo wrote: Hi, I've just installed Tomcat 5.5 and I have two main doubts and I hope someone may help me. 1. Do I really have to compile a servlet manually using javac (or using another tool) or may I save it in a specific folder so Tomcat compiles it to me? Yes 2. Do I really have to register my servlets in web.xml file or this process can be done automatically by Tomcat? Yes. This is why: http://jakarta.apache.org/tomcat/faq/misc.html#evil When I did the test with jsp pages, it was not necessary compile or register the file (Tomcat did everything to me) so I expect the same with servlets. Nope, sorry. Thanks, Julio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sharing session across Hosts
I imagine creating a static variable would be global to the JVM. Something like: public class MyClass { public static int nUsers; }; would allow you to set and retrieve MyClass.nUsers in a global maner. I haven't tested this and its an absurdly trivial example, but it seems like it should work. --- Charles N. Harvey III [EMAIL PROTECTED] wrote: Hello. I have two Hosts setup in the same Engine, and I would like to be able to share session variables across them. Is this possible? And, if so, what do I have to configure? Realm? Listener? Thanks a lot. Charlie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: compiling and deployment in tomcat
Julio Macedo wrote: 1. Do I really have to compile a servlet manually using javac (or using another tool) or may I save it in a specific folder so Tomcat compiles it to me? You have to do this, Tomcat won't do it for you. 2. Do I really have to register my servlets in web.xml file or this process can be done automatically by Tomcat? Yes, you have to do this as well. When I did the test with jsp pages, it was not necessary compile or register the file (Tomcat did everything to me) so I expect the same with servlets. Putting it *very* simply, JSPs are a friendly way to write servlets. A big part of this is not having to compile them or putting mappings in web.xml. Thanks, Julio However, all is not lost. There are plenty of IDEs and plug-ins for IDEs out there that will do all of this for you and deploy your application to your server of choice as well. I don't want to start a long thread on which is best so I won't mention my personal favourite. Have a look at the docs/web-site for your IDE see what is available. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jspc taglib handling different between 5.5.4 and 5.5.7
i submitted a bug (http://issues.apache.org/bugzilla/show_bug.cgi?id=33373) for the precompile error i'm getting which you may want to add your information too as well if you think it's related (or log separate bug if not) thanks, -jason - Original Message - From: Vinny [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, February 02, 2005 2:13 PM Subject: Re: jspc taglib handling different between 5.5.4 and 5.5.7 I am having the same issue. My absolute uri'd tld are not getting resolved. Also I am getting this error when I try running my struts app: ERROR: 2005-02-02 14:45:27,578: ApplicationDispatcher: Servlet.service() for servlet jsp threw exception java.lang.ClassCastException at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:420) at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248) at org.apache.jasper.compiler.TagLibraryInfoImpl.init(TagLibraryInfoImpl.java:162) at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539) at org.apache.jasper.compiler.Parser.parse(Parser.java:126) at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:100) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) On Tue, 1 Feb 2005 09:55:12 -0600, Jason Schuchert [EMAIL PROTECTED] wrote: i upgraded to 5.5.7 this weekend and noticed that my ant jsp precompile task was failing for .jsp files that were referencing taglibs. it gave a message like: org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/sql cannot be resolved in either web.xml or the jar files deployed with this application the line in the offending jsp looks like: %@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql % if i go into the jstl taglib jar file and grab the sql.tld file and put it into my WEB-INF then the jspc task works. in 5.5.4 this worked without having the sql.tld file in WEB-INF (it was just found in the .jar file of the tag library) anybody hitting similar issues? was there a change in the jspc code that intentionally makes this not work in 5.5.7? thanks! -jason - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: sharing session across Hosts
From: Mark Winslow [mailto:[EMAIL PROTECTED] Subject: Re: sharing session across Hosts I imagine creating a static variable would be global to the JVM. Not quite. It's global to the classloader, not the JVM. Since each web app has its own classloader, you would have to put such a class in a location serviced by a more global loader, such as shared/lib. Now, of course, you've introduced dependency issues... - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
idle connections
Hey, wondering if someone could help me out on this. I'm using: Tomcat 5 RedHat Oracle 9i I'm using jdbc and dbcp connection pooling and am trying to tune my app for more scalability. I have my maxActive set to 0 (infinite) and my maxIdle set to 50. When I load test and then look at oracle statistics I find out that there are exactly 50 connections just sitting there inactive. After waiting 2 days they don't go away. I have the removeAbandonded params set to true and 60 seconds but its not reclaiming (which I take to mean eliminating) those inactive connections. Can someone help me figure out what's going on? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Changing the Default Mime Type
The quick version: Is it possible to change the default MIME type on a Tomcat 4.1 server? Currently files with unknown extensions are treated as text/plain. More background: I run a server that runs a Tomcat that is provided by an App Vendor. With their last upgrade they upgrade the Tomcat to 4.1. Before then files with unknown extensions would attempt to download by default. (Presumably the default MIME type was application/unknown.) Now, it attempts to show the files as text, with the MIME type text/plain. I know how to change MIME type for a particular extension, but what I'd really like to do is to change the default used for unknown extensions. Is this possible without editing the source and recompiling? I did notice the change listed in the RELEASE-NOTES-4.1.txt file. Under Catalina Bug Fixes: [4.1.11] DefaultServlet: Assume text file when MIME type is unknown for including purposes. Is their some setting that can undo this fix? Considerable searching on this has proven fruitless so far. Does Tomcat have any configuration setting comparable to Apache's DefaultType? Thanks, Scott WilsonLead System Administrator [EMAIL PROTECTED]NSIT - DCS - ATAT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: idle connections
Doesn't setting maxIdle to 50 mean that you've confiured it to have 50 connections idle and not do anything about them? Try lowering this number if you want less connections left open. -Original Message- From: Bobby Tahir [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 22:05 To: Tomcat Users List Subject: idle connections Hey, wondering if someone could help me out on this. I'm using: Tomcat 5 RedHat Oracle 9i I'm using jdbc and dbcp connection pooling and am trying to tune my app for more scalability. I have my maxActive set to 0 (infinite) and my maxIdle set to 50. When I load test and then look at oracle statistics I find out that there are exactly 50 connections just sitting there inactive. After waiting 2 days they don't go away. I have the removeAbandonded params set to true and 60 seconds but its not reclaiming (which I take to mean eliminating) those inactive connections. Can someone help me figure out what's going on? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shutdown not working under SLES8 and FC2
On Wed, 2005-02-02 at 16:43, Al Sutton wrote: Hmmm The latest updates gives me; Linux host 2.6.10-1.9_FC2 #1 Thu Jan 13 17:54:57 EST 2005 i686 athlon i386 GNU/Linux and I'm on JDK 1.4.2_06 as opposed to _05. Would it be possible for you to upgrade?, I'd like to have the exact same environment, but please don't put yourself out or risk a critical environment. Al. Yes, but not today. The latest JDK 1.4 is j2sdk1.4.2_07. If I'm going to upgrade, it will be to that one. I run up2date daily but don't always reboot so I might already have that kernel. If so, I don't mind rebooting in the morning before I get started. Out of curiosity, is this happening to you with a fresh install of Tomcat, without any of your own apps running, and without any connectors? Are you using any java options when you start it? Also, is there any reason why you can't upgrade to JDK1.5.0? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shutdown not working under SLES8 and FC2
Ben, Thanks for doing this. I'm going to put _07 on tomorrow and give that a spin as well, but it'd be useful to know if _06 has problems for the future. I've just downloaded the main and compat packages, no modifications have been made to any files contained within, and no webapps have been installed. I beleive the JK connector is on by default, and I don't supply any options to the server. I can't upgrade to 1.5 at the moment because the application I'm developing is deployed to a 1.4 environment. Recommending an upgrade in JDK isn't possible due to the standards of the customer :(. Regards, Al. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 22:11 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 On Wed, 2005-02-02 at 16:43, Al Sutton wrote: Hmmm The latest updates gives me; Linux host 2.6.10-1.9_FC2 #1 Thu Jan 13 17:54:57 EST 2005 i686 athlon i386 GNU/Linux and I'm on JDK 1.4.2_06 as opposed to _05. Would it be possible for you to upgrade?, I'd like to have the exact same environment, but please don't put yourself out or risk a critical environment. Al. Yes, but not today. The latest JDK 1.4 is j2sdk1.4.2_07. If I'm going to upgrade, it will be to that one. I run up2date daily but don't always reboot so I might already have that kernel. If so, I don't mind rebooting in the morning before I get started. Out of curiosity, is this happening to you with a fresh install of Tomcat, without any of your own apps running, and without any connectors? Are you using any java options when you start it? Also, is there any reason why you can't upgrade to JDK1.5.0? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sharing session across Hosts
So... If I create some class, SessionHolder.java, compile it (SessionHolder.class) and put it in shared/lib, I could then set variables and then retrieve them from this class? Charlie Caldarale, Charles R said the following on 2/2/2005 5:00 PM: From: Mark Winslow [mailto:[EMAIL PROTECTED] Subject: Re: sharing session across Hosts I imagine creating a static variable would be global to the JVM. Not quite. It's global to the classloader, not the JVM. Since each web app has its own classloader, you would have to put such a class in a location serviced by a more global loader, such as shared/lib. Now, of course, you've introduced dependency issues... - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: idle connections
I think I get your meaning. Basically its ok/good to have 50 connections idle connections laying around because those will get used for future queries. This whole problem started when I got a maximum sessions exceeded on oracle (back when i had maxIdle=1000). I was thinking that since millions of people use oracle for a backend this can't be an isolated problem. Also I thought oracle is one of the best db's so theres no way it can't serve more than 170 sessions or whatever it was set to. However I didn't find any helpful info anywhere about the problem. Which caused me to get confused. Now however I think that perhaps its just about lowering the maxIdle beneath oracles session threshold and letting Tomcat do its thing? Bobb On Wed, 2 Feb 2005 22:21:41 -, Al Sutton [EMAIL PROTECTED] wrote: Pooling needs to leave connections open to be efficient, one of the main advantages is you take a connection from the pool rather than going through the overhead of opening it up and then shutting it down at the end. I'm afraid I think the only way of sorting out your 50 dangling connections is to adjust maxIdle. I think the docs are a little bit badly worded, when they talk about something being eligable for removal if it's exceeded the removeAbandonedTimeout value I think you'll find it means if no commands have been sent to the database in that time it'll return the connection to the pool ready for use by another pool user. -Original Message- From: Bobby Tahir [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 22:13 To: Al Sutton Subject: Re: idle connections I supposed I should have said how do I do something about these connections. I thought removeAbandoned would do it but apparently not. On Wed, 2 Feb 2005 22:11:35 -, Al Sutton [EMAIL PROTECTED] wrote: Doesn't setting maxIdle to 50 mean that you've confiured it to have 50 connections idle and not do anything about them? Try lowering this number if you want less connections left open. -Original Message- From: Bobby Tahir [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 22:05 To: Tomcat Users List Subject: idle connections Hey, wondering if someone could help me out on this. I'm using: Tomcat 5 RedHat Oracle 9i I'm using jdbc and dbcp connection pooling and am trying to tune my app for more scalability. I have my maxActive set to 0 (infinite) and my maxIdle set to 50. When I load test and then look at oracle statistics I find out that there are exactly 50 connections just sitting there inactive. After waiting 2 days they don't go away. I have the removeAbandonded params set to true and 60 seconds but its not reclaiming (which I take to mean eliminating) those inactive connections. Can someone help me figure out what's going on? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shutdown not working under SLES8 and FC2
On Wed, 2005-02-02 at 17:16, Al Sutton wrote: Ben, Thanks for doing this. Not a problem. I'm going to put _07 on tomorrow and give that a spin as well, but it'd be useful to know if _06 has problems for the future. If the problem doesn't exits on _07, you've narrowed it down quite a bit and will, at least, know what combinations you can support for your product. I've just downloaded the main and compat packages, no modifications have been made to any files contained within, and no webapps have been installed. I beleive the JK connector is on by default, and I don't supply any options to the server. I can't upgrade to 1.5 at the moment because the application I'm developing is deployed to a 1.4 environment. Recommending an upgrade in JDK isn't possible due to the standards of the customer :(. That's usually the case but I thought I'd ask anyway. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Summary in pdf format
http://cvs.apache.org/~woolfel/benchmark_summary.pdf I've posted a pdf version of the benchmark write up. peter lin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Environment entry env.entry in web.xml not executed by Tomcat (4.1)
Hello, Is there a way to execute the Tomcat defaults settings other than using the web.xml file? I have the following entry env.entry in the web.xml file located in the Tomcat webapps directory where our app is deployed: ...webapps/MyTest/WEB-INF/web.xml env-entry descriptiontrue or false to allow the retrieval of WSDL files in a Web services application/description env-entry-namewo/WOGenerateWSDL/env-entry-name env-entry-valuetrue/env-entry-value env-entry-typejava.lang.Boolean/env-entry-type /env-entry but it is not executed when we deploy our application within the Tomcat servlet container. I tried moving this entry to the server.xml file, but it did not work either. Is this a known issue or is there a different way to set the environment variable? Any hint is much appreciated, Many thanks for your help, -mai - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: idle connections
Just to clarify on the abandoned connections, this will reclaim connections that have be orphaned in code (like not closing the statement) and return them to the pool. Doug - Original Message - From: Bobby Tahir [EMAIL PROTECTED] To: Al Sutton [EMAIL PROTECTED] Cc: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, February 02, 2005 5:30 PM Subject: Re: idle connections I think I get your meaning. Basically its ok/good to have 50 connections idle connections laying around because those will get used for future queries. This whole problem started when I got a maximum sessions exceeded on oracle (back when i had maxIdle=1000). I was thinking that since millions of people use oracle for a backend this can't be an isolated problem. Also I thought oracle is one of the best db's so theres no way it can't serve more than 170 sessions or whatever it was set to. However I didn't find any helpful info anywhere about the problem. Which caused me to get confused. Now however I think that perhaps its just about lowering the maxIdle beneath oracles session threshold and letting Tomcat do its thing? Bobb On Wed, 2 Feb 2005 22:21:41 -, Al Sutton [EMAIL PROTECTED] wrote: Pooling needs to leave connections open to be efficient, one of the main advantages is you take a connection from the pool rather than going through the overhead of opening it up and then shutting it down at the end. I'm afraid I think the only way of sorting out your 50 dangling connections is to adjust maxIdle. I think the docs are a little bit badly worded, when they talk about something being eligable for removal if it's exceeded the removeAbandonedTimeout value I think you'll find it means if no commands have been sent to the database in that time it'll return the connection to the pool ready for use by another pool user. -Original Message- From: Bobby Tahir [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 22:13 To: Al Sutton Subject: Re: idle connections I supposed I should have said how do I do something about these connections. I thought removeAbandoned would do it but apparently not. On Wed, 2 Feb 2005 22:11:35 -, Al Sutton [EMAIL PROTECTED] wrote: Doesn't setting maxIdle to 50 mean that you've confiured it to have 50 connections idle and not do anything about them? Try lowering this number if you want less connections left open. -Original Message- From: Bobby Tahir [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 22:05 To: Tomcat Users List Subject: idle connections Hey, wondering if someone could help me out on this. I'm using: Tomcat 5 RedHat Oracle 9i I'm using jdbc and dbcp connection pooling and am trying to tune my app for more scalability. I have my maxActive set to 0 (infinite) and my maxIdle set to 50. When I load test and then look at oracle statistics I find out that there are exactly 50 connections just sitting there inactive. After waiting 2 days they don't go away. I have the removeAbandonded params set to true and 60 seconds but its not reclaiming (which I take to mean eliminating) those inactive connections. Can someone help me figure out what's going on? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: compiling and deployment in tomcat
Hi, it is not possible to make Tomcat automatically compile and deploy your servlets. Usually this is not necessary. If you use a good IDE, it is no great effort to compile your servlets. Deployment could be done by using an Ant script - just copy the servlet-binaries in the correct directory and reload your web application (if auto-reloading is disabled). The required Ant-tasks are included in the tomcat binaries. The entry in web.xml must be done by hand, but you have to do that just once. So the cases where auto-compile and -deploy are required are really rare! Best regards, Tex Hi, I've just installed Tomcat 5.5 and I have two main doubts and I hope someone may help me. 1. Do I really have to compile a servlet manually using javac (or using another tool) or may I save it in a specific folder so Tomcat compiles it to me? 2. Do I really have to register my servlets in web.xml file or this process can be done automatically by Tomcat? When I did the test with jsp pages, it was not necessary compile or register the file (Tomcat did everything to me) so I expect the same with servlets. Thanks, Julio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shutdown not working under SLES8 and FC2
On Wed, 2005-02-02 at 17:11, Ben Souther wrote: On Wed, 2005-02-02 at 16:43, Al Sutton wrote: Hmmm The latest updates gives me; Linux host 2.6.10-1.9_FC2 #1 Thu Jan 13 17:54:57 EST 2005 i686 athlon i386 GNU/Linux and I'm on JDK 1.4.2_06 as opposed to _05. Would it be possible for you to upgrade?, I'd like to have the exact same environment, but please don't put yourself out or risk a critical environment. OK, here you go. It turns out that I did have _06 on this machine. I also have 2.6.10-1.9_FC2 (which is no longer the latest BTW ;)). Once again, I started and stopped without a problem. Here is the screen dump: [EMAIL PROTECTED] bin]$ uname -a Linux bsouther 2.6.10-1.9_FC2 #1 Thu Jan 13 17:54:57 EST 2005 i686 athlon i386 GNU/Linux [EMAIL PROTECTED] bin]$ export JAVA_HOME=/usr/local/j2sdk1.4.2_06 [EMAIL PROTECTED] bin]$ ./startup.sh Using CATALINA_BASE: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_HOME: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_TMPDIR: /home/bsouther/tc_test/jakarta-tomcat-5.5.7/temp Using JRE_HOME: /usr/local/j2sdk1.4.2_06 [EMAIL PROTECTED] bin]$ ./shutdown.sh Using CATALINA_BASE: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_HOME: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_TMPDIR: /home/bsouther/tc_test/jakarta-tomcat-5.5.7/temp Using JRE_HOME: /usr/local/j2sdk1.4.2_06 Created MBeanServer with ID: e94e92:101d55eb6c4:-8000:bsouther:1 [EMAIL PROTECTED] bin]$ ps -ef | grep java bsouther 4714 4595 0 18:19 pts/000:00:00 grep java [EMAIL PROTECTED] bin]$ This matches your configuration exactly. I also tried with _07 and the latest kernel (as of this afternoon ***.12 I believe). And you definitely aren't running with any JAVA_OPT settings? Maybe you have a hardware issue. Have you tried on another machine? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
isUserInRole question
Hello, I am trying to use isUserInRole in an app within Tomcat. The problem is that I consistently get false as the return regardless of what I pass in. I am using J2SE 1.4.2_06 and Tomcat 5.0. Here is the code and any help would be great: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class NtlmHttpAuthExample extends HttpServlet { public void doGet( HttpServletRequest req, HttpServletResponse resp ) throws IOException, ServletException { PrintWriter out = resp.getWriter(); resp.setContentType( text/html ); out.println( HTMLHEADTITLENTLM HTTP Authentication Example/TITLE/HEADBODY ); out.println( h2NTLM HTTP Authentication Example/h2 ); out.println( req.getRemoteUser() + successfully logged in ); out.println(req.isUserInRole(admin)); out.println(br-); out.println(req.isUserInRole(Administrators)); out.println( h3Please submit some form data using POST/h3 ); out.println( form action=\NtlmHttpAuthExample\ method=\post\ ); out.println( input type=\text\ name=\field1\ size=\20\/ ); out.println( input type=\submit\/ ); out.println( /form ); out.println( field1 = + req.getParameter( field1 )); out.println( /BODY/HTML ); } public void doPost( HttpServletRequest req, HttpServletResponse resp ) throws IOException, ServletException { doGet( req, resp ); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sharing session across Hosts
Hi! Do you want to share some kind of global variables or session information? Global variables should exist only once while session information is stored for each user (to be more correct: for each user-session). I think you want to share session-information, but using a class-variable from a class that is loaded by the shared-classloader is nothing else but sharing a global variable. So if you really want to do that: Your solution might work, but it is not recommended. I think using a directory service is the better way! Tomcat has a built-in JNDI context where you can put such global things. (For more information have a look at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-resources-howto.html). But as I said: All you do is sharing global information that exists only once! Best regards, Tex So... If I create some class, SessionHolder.java, compile it (SessionHolder.class) and put it in shared/lib, I could then set variables and then retrieve them from this class? Charlie Caldarale, Charles R said the following on 2/2/2005 5:00 PM: From: Mark Winslow [mailto:[EMAIL PROTECTED] Subject: Re: sharing session across Hosts I imagine creating a static variable would be global to the JVM. Not quite. It's global to the classloader, not the JVM. Since each web app has its own classloader, you would have to put such a class in a location serviced by a more global loader, such as shared/lib. Now, of course, you've introduced dependency issues... - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: isUserInRole question
Hi! I'm not sure, but I think your code is OK. The question is: How did you configure your security realm in web.xml and server.xml. (request.isUserInRole only works, if the user has already been authenticated against the web server.) Best regards, Tex Hello, I am trying to use isUserInRole in an app within Tomcat. The problem is that I consistently get false as the return regardless of what I pass in. I am using J2SE 1.4.2_06 and Tomcat 5.0. Here is the code and any help would be great: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class NtlmHttpAuthExample extends HttpServlet { public void doGet( HttpServletRequest req, HttpServletResponse resp ) throws IOException, ServletException { PrintWriter out = resp.getWriter(); resp.setContentType( text/html ); out.println( HTMLHEADTITLENTLM HTTP Authentication Example/TITLE/HEADBODY ); out.println( h2NTLM HTTP Authentication Example/h2 ); out.println( req.getRemoteUser() + successfully logged in ); out.println(req.isUserInRole(admin)); out.println(br-); out.println(req.isUserInRole(Administrators)); out.println( h3Please submit some form data using POST/h3 ); out.println( form action=\NtlmHttpAuthExample\ method=\post\ ); out.println( input type=\text\ name=\field1\ size=\20\/ ); out.println( input type=\submit\/ ); out.println( /form ); out.println( field1 = + req.getParameter( field1 )); out.println( /BODY/HTML ); } public void doPost( HttpServletRequest req, HttpServletResponse resp ) throws IOException, ServletException { doGet( req, resp ); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: idle connections
Hi! the parameter maxIdle is the maximum number of idle connections that can retain in the pool. That means it is ok for the pool to have 50 connections waiting for usage - you told him to do so! So what different behaviour did you expect? Best regards, Tex Hey, wondering if someone could help me out on this. I'm using: Tomcat 5 RedHat Oracle 9i I'm using jdbc and dbcp connection pooling and am trying to tune my app for more scalability. I have my maxActive set to 0 (infinite) and my maxIdle set to 50. When I load test and then look at oracle statistics I find out that there are exactly 50 connections just sitting there inactive. After waiting 2 days they don't go away. I have the removeAbandonded params set to true and 60 seconds but its not reclaiming (which I take to mean eliminating) those inactive connections. Can someone help me figure out what's going on? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cross-context
In Tomcat 5.x, you can define the default settings for application contexts in %TOMCAT_HOME%/conf/context.xml. (I'm not sure if Tomcat versions prior to 5.x support this.) Best regards, Tex Tomcat Users - We are distributing a servlet application that relies on the application's Context element's 'cross-context' attribute to be set to 'true'. Is it possible to set the 'cross-context' in the application's web.xml? This would simplify the configuring of this application for clients as the value could come already configured. Eric Murphy Software Developer (NFIS) [EMAIL PROTECTED] tel/tél: 250-363-6038 fax / télécopieur 250-363-6004 Natural Resources Canada Pacific Forestry Centre 506 West Burnside Road Victoria BC V8Z 1M5 Ressources naturelles Canada Centre de foresterie du Pacifique 506 rue Burnside ouest Victoria, Colombie-Britanique V8Z 1M5 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.4/Windows 2000 server - Failed to register in JMX: BasicDataSourceFactory
Hi! How did you define your JDBC DataSource? As far as I know, the original jakarta-commons-dbcp and jakarta-commons-pool-libraries are not included with Tomcat. Instead, just a subset of the required classes with modified package names (starting with 'org.apache.tomcat.dbcp') are packed in 'naming-factory-dbcp.jar' that can be found in commons/lib. But if you configure your JDBC DataSource correctly, this should not bother. Please post your resource-configuration! Best regards, Tex I'm running Tomcat 5.5.4 on Windows 2000 Server and encountered the below error on Tomcat startup: Feb 2, 2005 10:50:49 AM org.apache.catalina.core.NamingContextListener addResource WARNING: Failed to register in JMX: javax.naming.NamingException: Could not create resource factory, ClassNotFoundException:org.apache.commons.dbcp.BasicDataSourceFactory My webapp uses JDBC DataSource's and the BasicDataSourceFactory for pooling so this problem of ClassNotFoundException is causing my webapp to not work properly. I have Tomcat 5.5.4 also installed on my local maching which has Windows XP on it, and there is absolutely no problem on startup and and my webapp. Does anyone no what's happening here? Why does Tomcat register the BasicDataSourceFactory with no problems in Tomcat 5.5.4 on Windows XP and not on Windows 2000 Server? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: compiling and deployment in tomcat
1 - Yes, you have to compile them 2 - If you don't want to register your servlets in web.xml, you can use the Invoker servlet. However, I believe there are security issues with it, since it will allow any servlet on your site to be run. Subir -Original Message- From: Julio Macedo [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 2:34 PM To: tomcat-user@jakarta.apache.org Subject: compiling and deployment in tomcat Hi, I've just installed Tomcat 5.5 and I have two main doubts and I hope someone may help me. 1. Do I really have to compile a servlet manually using javac (or using another tool) or may I save it in a specific folder so Tomcat compiles it to me? 2. Do I really have to register my servlets in web.xml file or this process can be done automatically by Tomcat? When I did the test with jsp pages, it was not necessary compile or register the file (Tomcat did everything to me) so I expect the same with servlets. Thanks, Julio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Advertising website
On Fri, Jan 28, 2005 at 08:04:57AM -0800, t t wrote: Does anyone know a easy and cheap (even free) way to advertise a website? The answer is it depends, mostly on your site, your goals, your resources, etc. In general, I recommend substituting brains for money. Even if you have money, smart applications of money will gain you much more in return than the brute-force approach. For example, your site is almost certainly specific to some particular demographic. Odds are that you or somebody else connected with your site fits your site demographic, or at least knows something about them, otherwise you wouldn't have the site. Figure out what that demographic is, and then figure out where they hang out online. If you can't do it yourself, hire some college kid (ideally one who's already fanatic for your site topic) to surf the web for minimum wage and figure out avenues for you to promote your site. Always, always always include your domain name on everything you send out, by email, by paper, whatever. Don't spam, of course, but don't miss any opportunity to append that one-line domain name. Pursue involvement and maybe even advertising. Some online forums and communities have specific forums or lists for announcements of services or products. Others might allow advertising banners - do targeted ad buys -- but ONLY on community sites relevant to your site. Participate in mailing lists. Produce or acquire content for your site that they'll find useful. Try to develop a strong sense of brand identity for your site, so people remember what you're about. You want people to see your domain name and think of something specific. For example, if your site sells towels sheets pillowcases and such: Do you want people to see your name and think luxury, high-quality towels sheets? Or do you want them to think affordable? Or do you want them to think a little bit of both - good stuff for a good price? Or do you want them to think incredible variety, they have every color and print under the sun? Or do you want them to think really special stuff, if you want something special, unique and interesting that's the place to go look for it? Everybody wants to be all things to all people, but you have to decide what strength to play to. The more focused your message, the more powerful. Search engine optimization in general strikes me as bullshit. Either you have something valid to offer, or you don't. If you don't, trying to game the system is not going to get you anywhere. That said, while search engine optimization may not be real, search engine pessimization certainly is. You can do a lot of things wrong to gum up how well search engines will find your site. Do some reading on the topic and use some common sense. Hit all of the major search engine sites and read what *they* have to tell you on the topic. I know of a one person who offers consulting on making your site search-accessible, not by trying to game the search engines, but by trying to figure out what people are searching for, using statistical analysis of common searches and generating variations of your site. That might be worth looking into if you want to spend some dollars. Or you could try faking it yourself - generate a bunch of different variations on your site and analyze your logs and see which ones get more traffic. Think about why they do. One key point - barring a few specific niches, snazzy graphics and flash animations do NOT bring in business. Think about who your user is, how they got to your site, why they're there, what they want to do - and make sure you make it as easy as possible to do it. If your site gets mostly first-time users, or mostly repeat visitors, it affects what your site design priorities should be. I'm constantly amazed at how hard people want to make you work to buy things from them. A good example is Amazon. They do some things wrong, some things well, IMHO. Some of them are blindingly obvious (one-click my ass), others are pretty obvious but still lots of people don't do it. As an example Amazon has great selection and all, but I have a soft spot in my heart for The Tattered Cover out of Denver. I used to shop there when I lived in Denver, and they recently fought and won a court case over privacy rights. The police wanted them to turn over a list of a customer's purchases and they refused, took it to court and won. I vote with my dollars, so I try to buy from The Tattered Cover. But Tattered Cover's site (which runs on java, btw) doesn't give me any way to bookmark a search result. This is a pain in the ass, and just one of several way their site could be easier to use. This is generally true for many, many sites. It kills me how often I get to a site and I have to jump through all sorts of hoops to see what I can buy there. The very first page of the site should be giving me an
Hiding resources
Hi! I'm running a web application that is under CVS, which means my web application contains a lot of CVS-related directories (for the CVS-metadata). Is there a possibility to tell Tomcat to hide or protect all those CVS directories? More general, what I need is a way to hide/protect all files or directories with the name pattern */CVS/*. As far as I know, neither a servlet/filter-mapping nor a security constraint support this type of pattern (with two wildcards). So I think, the only way to protect my resources is to implement a custom filter that is mapped against / and checks every incoming request. Is there a better approach? Best regards, Tex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hiding resources
How about doing your development in a different area, and do your your deployment via export? You could also frontend your Tomcat wtih Apache and deny access with Apache. Just a couple of random thoughts . . . /mde/ __ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Does from a filter setCharacterEncoding work for tc-5.0.27?
-- MSN:[EMAIL PROTECTED] QQ:29967409 - From: Zsolt Koppany [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Subject: Does from a filter setCharacterEncoding work for tc-5.0.27? Date: Wed, 2 Feb 2005 15:33:07 +0100 Hi, Does setCharacterEncoding work under tc-5.0.27 with java-1.4.2-06? To get UTF-8 request parameter I need to do: String par = request.getParameter(filename); String filename = new String(par.getBytes(ISO8859-1), UTF-8); request.setCharacterEncoding(UTF-8) doesn't seem to help from a filter. Is it my mistake? Zsolt Koppany Phone: +49-711-722 1874 -- Intland Software GmbH, Schulze-Delitzsch-Strasse 16 D-70565 Stuttgart, Germany Phone: +49-711-722 1873, e-mail:[EMAIL PROTECTED] Fax: +49-711-722 1835 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] it works success under tomcat5.5.4.you should conf a web.xml _ MSN Messenger: http://messenger.msn.com/cn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Anyone with Tomcat on FreeBSD 5.3
--SHORT VERSION In a nutshell, I'm asking if there is someone that could shed some light on the install process of Tomcat5 on FreeBSD 5.x --MORE DETAILS I am new to Tomcat with a need to serve JSP pages. I have a basic FreeBSD 5.3 box installed with a few security/system tweaks. Also installed is CVSup (with the latest ports collection), OpenSSL, Chkrootkit, Portupgrade, gtar, unzip, zip, bash, wget, and gnuls. All the docs I've found and read are for older versions of Tomcat4 and lower. Are there any docs or recommendations that go through an install of Tomcat5 on FreeBSD 5.x? So far, I've installed mod_jk2-apache2 from ports. Apache2 works. When I attempt to install tomcat5 from ports, I get java errors. I know I need to download the Java files, but when I go to download them, new versions are available. That's a problem within itself! Linux-jdk1.3 doesn't exist anymore, but linux-sun-jdk13 does. I'm assuming this is the same ports package? I would like to install most apps from ports, mainly because it's easier. But, I'm not afraid to download the source and go that route. Thanks, Todd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to make my error page in the case of BASIC JDBC realm
Hi, I am using Tomcat 5.x. I am using BASIC JDBC Realm. I want to make my own error page as the error page in the case of HTTP Status 401 error. This error comes when I click on Cancel button when the realm asks for user name and password. Any one knowing this stuff, kindly reply. Thanks in advance. Joby Joseph. Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments.
Re: Anyone with Tomcat on FreeBSD 5.3
On Wed, 2 Feb 2005 22:20:44 -0600 (B"Todd Reed" [EMAIL PROTECTED] wrote (B (B [...] Linux-jdk1.3 (B doesn't exist anymore, but linux-sun-jdk13 does. I'm assuming this is (B the same ports package? (B (BI think that may be due to the recent license changes (and Sun's not (Bbeing able to just simply open the whole thing all at once, whatever (Btheir reasons are). (B (BYou might want to check the freeBSD archives. If you can't get at the (Bofficial archives, marc.theaimsgroup.com has them. (B (BI think the freeBSD organization for a while had permission to (Bdistribute one thing, but they now have permission to distribute another (Binstead. (B (B-- (BJoel Rees [EMAIL PROTECTED] (Bdigitcom, inc. $B3t<02q
Apache-Coyote/1.1 application configuration
Hi I posted this but have had no replies. Am I on the wrong user list here? Any advice appreciated. Paul -Original Message- From: Paul Denham [mailto:[EMAIL PROTECTED] Sent: 31 January 2005 07:40 To: 'tomcat-user@jakarta.apache.org' Subject: Apache-Coyote/1.1 application configuration We are having some problems with the configuration of an Apache-Coyote/1.1 server and the installation of a Broadband Speed test from Visualware http://myspeed.visualware.com/faq.html http://myspeed.visualware.com/faq.html Over 50% of users are experiencing an error when the 'Upload' test tries to work. After a long dialogue between the hosting company ( http://www.easyspeedy.com/products/os.html http://www.easyspeedy.com/products/os.html) and Visualware ( outbind://8/www.visualware.com www.visualware.com) the following conclusion was drawn (by Easyspeedy..) After reading all the mails and looked at VisualWare's website/Faq my conclusion is that your problem is NOT a application problem (speedtest application) NOR a EasySpeedy operating system fault. Just to be clear - we have used the words error/fault. There is no errors or faults as such. It is all a matter of application configuration. The application there need to be configured is the Apache Webserver We are looking for someone who can help solve this problem and other maintenance issues. If you can help, please let us know. Thanks, Paul Denham Tel +44 (0)870 382 5008 Fax +44 (0)870 382 5009 26-28 Hammersmith Grove London W6 7BA Paul Denham onestopclick Technology Brokers Tel 0870 382 5008 Fax 0870 382 5009 www.onestopclick.com http://www.onestopclick.com/ 26-28 Hammersmith Grove London W6 7BA -- Help others make the right decision... Tell us about your Service http://www.onestopclick.com/survey/feedback.asp?ID=10487397333 Provider http://www.onestopclick.com/survey/feedback.asp?ID=10487397333
RE: Apache-Coyote/1.1 application configuration
From: Paul Denham [mailto:[EMAIL PROTECTED] Subject: Apache-Coyote/1.1 application configuration I posted this but have had no replies. Am I on the wrong user list here? Is there anything in your query related to Tomcat? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Webapps won't go out of manager when deleted
I'm using Tomcat 5.5.4 on Windows XP. My question is about the manager application. I deployed a web app called commutercorps and then wanted to undeploy it. Instead of using the undeploy command, I deleted CATALINA_HOME/webapps/commutercorps/ and CATALINA_HOME/work/commutercorps/, and then restarted Tomcat. However, the app still shows when I use List Web applications. It can't be started, it can't be undeployed through the manager app. It just sits there and won't go away. Moreover, I'm also using Ant to work with this application, trying to deploy a new version of my app using the custom Ant tasks for working with the Tomcat manager application such as org.apache.catalina.ant.DeployTask, etc. But that doesn't work now -- the task fail with a message saying there's already an application on that path. How can I get things back to normal without reinstalling Tomcat? Any help would be greatly appreciated. Thanks. __ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]