Re: Running Servlet in Tomcat
Reading the provided documentation is usually a good place to start. Singh, VilishKumar wrote: I have done that. I have not used any package in my servlet. You must place all your class files in packages. http://jakarta.apache.org/tomcat/faq/classnotfound.html Can u describe the steps precisely to run the first servlet in tomcat http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/index.html Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Webapp deploy on windows
Joakim Ahlén wrote: I'm not trying to blame anyone for not fixing this issue, (well, maybe i'm laying some blame on those who thinks this is _not_ a tomcat issue..) however, i am really interested in having this bug fixed, and i am prepared to put some effort and time into it myself. To do this, though, i need the help of someone who knows more about this problem. As far as I am aware, the Tomcat code correctly closes all the files it opens. However, we are dependent on a number of third party libraries that might not be as well behaved. See bug 10026 for an example of a typical situation. If you want to put some effort into this the best thing you could do is create the simplest possible test .war file that demonstrates this issue so we can take a look at it. If the anti-locking features of TC5 (which are better than TC4) don't fix it then we can look to see if there is anything that can be done to improve things. However, please remeber that this is fundamentally an OS issue, not a Tomcat one, and the fix may well be outside of our control. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Servlet in Tomcat
Thanks all, I have done it. Actually I was creating the separate servlet and servlet-mapping tags in addition to the already existing one. When I put the entries inside the these existing tags, it worked Thanks again Regards, Vilish -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Thursday, 29 September 2005 11:32 AM To: Tomcat Users List Subject: Re: Running Servlet in Tomcat Reading the provided documentation is usually a good place to start. Singh, VilishKumar wrote: I have done that. I have not used any package in my servlet. You must place all your class files in packages. http://jakarta.apache.org/tomcat/faq/classnotfound.html Can u describe the steps precisely to run the first servlet in tomcat http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/index.html Mark - 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: Multiple tomcat services?
Thank you very much, Arup and Hardik! I installed the second instance of tomcat without the service and then edited the service.bat file to start the service under another name and it works flawlessly :) /Jens -Original Message- From: Arup Vidyerthy [mailto:[EMAIL PROTECTED] Sent: den 28 september 2005 16:35 To: 'Tomcat Users List' Subject: RE: Multiple tomcat services? If you look at $tomcat_home/bin directory you should see a file call service.bat. Using that file you should be able to install a tomcat service under different names. -Original Message- From: Jens Nordberg [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 15:25 To: Tomcat Users List Subject: RE: Multiple tomcat services? How do you mean? The install program for Tomcat 5.5.9 doesn't allow me to change the name, or does it? As far as I can tell, I can only specify install directory, HTTP port, user name, password and jre. /Jens -Original Message- From: Arup Vidyerthy [mailto:[EMAIL PROTECTED] Sent: den 28 september 2005 16:20 To: 'Tomcat Users List' Subject: RE: Multiple tomcat services? Install it under a different name -Original Message- From: Jens Nordberg [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 15:13 To: tomcat-user@jakarta.apache.org Subject: Multiple tomcat services? Hi, I'm trying to install multiple tomcats on my machine, which works quite well except for one thing. When I'm installing the second instance of Tomcat, I get the following error: Failed to install Tomcat5 service. Check your settings and permissions. Ignore and continue anyway (not recommended)? I chose to ignore and continue. Tomcat then installs, but no service is added in windows services. If I go to the bin library of the second tomcat and press tomcat5w, it opens the _first_ instance's application. Is there a way to get two services going when I have multiple tomcats? The first instance is a tomcat 5.0 and the second is a tomcat 5.5.9. Any suggestions? Kind regards /Jens ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jsps
if you haven't reconfigured your resin - actually nothing. just drop your war file in webapps. if you did, you have to do the same you did in httpd.sh now in catalina.sh. More or less. leon On 9/29/05, Prema Kumar [EMAIL PROTECTED] wrote: Hi, I have an Application which is J2EE Architecture and working with Resin 2.1.6 Now we are trying to bring up my application using Tomcat. What necessary modifications needs to be done in Tomcat web.xml file and server.xml Prem The information in this mail is confidential and is intended solely for the addressee. Access to this mail by anyone else is unauthorized. Any copying or further distribution beyond the original recipient is not intended and may be unlawful. The opinion expressed in this mail is that of the sender and does not necessarily reflect that of Titan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Flexible way of defining application variables in text format?
On 9/29/05, matador [EMAIL PROTECTED] wrote: Leon Rosenberg [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: now how exactly writing a thread which polls the db is less messy, than writing a thread that polls a file? regards leon no need for threads with db. change the val in the db then the next time the page loads, the new value is there. one can get the val from the db however they wish (presentation layer, service, dao, etc) First: you can load your property files on each request as well. Second: you ever tried to request same value from db on each request, which would mean in our case 100 times per second per webserver? Which db is able to serve it? regards leon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: custom session manager
check this out: http://www.niallp.pwp.blueyonder.co.uk/TomcatBug36541.html The link itself handles a bug, but one of the solutions is to replace the std. manager with custom manager with all info you need to actually do this. I thin kthis fits your question. regards leon On 9/29/05, Mark [EMAIL PROTECTED] wrote: After using tomcat since the 3.x days, I have been very impressed with the amount of flexibility and configuration options that I have available to me. One part of the tomcat design that I do not believe is very flexible is the ability to set up a custom session manager. So maybe I am missing something, but how would I go about writing this for tomcat? I know I am being very vague, but how much work am I potentially signing myself up for here if I wanted to create a custom session manager? Thank you. - 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]
PrivilegedActionException
Hi, we have a JBoss+Tomcat embedded application server. Sometimes in the logs we found a PrivilegedActionException, that randomically occours. This exception stops the application related and it is necessary to re-deploy the application. Unfortunatelly the stack is not clear... Any hints? G. Environment Linux RedHat JBoss 3.2.3 Tomcat 4.1.29 J2SE 1.4.2_04 Struts 2.2.4 Tiles 1.1 Log 2005-09-28 11:21:27,780 ERROR [STDERR] java.security.PrivilegedActionException: org.apache.jasper.JasperException 2005-09-28 11:21:27,781 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method) 2005-09-28 11:21:27,781 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:489) 2005-09-28 11:21:27,781 ERROR [STDERR] at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:822) 2005-09-28 11:21:27,781 ERROR [STDERR] at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:398) 2005-09-28 11:21:27,782 ERROR [STDERR] at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:101) 2005-09-28 11:21:27,782 ERROR [STDERR] at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:137) 2005-09-28 11:21:27,782 ERROR [STDERR] at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:758) 2005-09-28 11:21:27,782 ERROR [STDERR] at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:890) 2005-09-28 11:21:27,782 ERROR [STDERR] at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460) 2005-09-28 11:21:27,782 ERROR [STDERR] at org.apache.jsp.layout_jsp._jspx_meth_tiles_insert_1(Unknown Source) 2005-09-28 11:21:27,782 ERROR [STDERR] at org.apache.jsp.layout_jsp._jspService(Unknown Source) 2005-09-28 11:21:27,782 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) 2005-09-28 11:21:27,782 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 2005-09-28 11:21:27,782 ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210) 2005-09-28 11:21:27,783 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) 2005-09-28 11:21:27,783 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) 2005-09-28 11:21:27,783 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 2005-09-28 11:21:27,783 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684) 2005-09-28 11:21:27,783 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432) 2005-09-28 11:21:27,783 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:116) 2005-09-28 11:21:27,783 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:131) 2005-09-28 11:21:27,783 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method) 2005-09-28 11:21:27,783 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:348) 2005-09-28 11:21:27,783 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056) 2005-09-28 11:21:27,784 ERROR [STDERR] at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:261) 2005-09-28 11:21:27,784 ERROR [STDERR] at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:237) 2005-09-28 11:21:27,784 ERROR [STDERR] at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:300) 2005-09-28 11:21:27,784 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231) 2005-09-28 11:21:27,784 ERROR [STDERR] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164) 2005-09-28 11:21:27,784 ERROR [STDERR] at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415) 2005-09-28 11:21:27,784 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) 2005-09-28 11:21:27,785 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 2005-09-28 11:21:27,785 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684) 2005-09-28 11:21:27,785 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432) 2005-09-28 11:21:27,785 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:116) 2005-09-28 11:21:27,785 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:131) 2005-09-28 11:21:27,785 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method) 2005-09-28
Re: pointing to a folder outside tomcat webapps
Iam not sure whether this wil help u or not. But this is some thing I know and want to share it. If you want to have more than one contets (i.e run more than one web application from a single tomcat) u can create xml files for each contect and put them in tomcatHome/conf/ folder. Say if u have two contexts called WebApp1 and WebApp2, then u can create WebApp1.xml and WebApp2.xml and put them in /conf folder. These xml files will contain the context tags that we traditionally used to put in server.xml file hope this helps u some way Regards Srikanth Peddireddy On 9/28/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: my problem is that i do not want put anything of my application inside tomcat configuration files... Exists context.xml in META-INF that is specific for an application but I can define there just one context. I need more than one context. Hot to do it? -- Initial Header --- From : Arup Vidyerthy [EMAIL PROTECTED] To : Tomcat Users List tomcat-user@jakarta.apache.org Cc : Date : Wed, 28 Sep 2005 11:27:25 +0100 Subject : RE: pointing to a folder outside tomcat webapps OK, You place the context.xml inside $tomcat_home/conf. Contents of that file is something like this: !-- The contents of this file will be loaded for each web application -- Context allowLinking=true !-- Default set of monitored resources -- WatchedResourceWEB-INF/web.xml/WatchedResource !-- Uncomment this to disable session persistence across Tomcat restarts -- !--Manager pathname= /-- /Context The allowLinking attribute defined this way allows all our application use symbolic links. Hope this helps. Arup -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 11:22 To: tomcat-user Subject: RE: pointing to a folder outside tomcat webapps could u be more explicit please? I cannot understanding u -- Initial Header --- From : Arup Vidyerthy [EMAIL PROTECTED] To : Tomcat Users List tomcat-user@jakarta.apache.org Cc : Date : Wed, 28 Sep 2005 11:16:28 +0100 Subject : RE: pointing to a folder outside tomcat webapps You can just place the a empty context xml in your $tomcat_home/conf directory. That's what we do and it works across all contexts... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 10:55 To: tomcat-user Subject: RE: pointing to a folder outside tomcat webapps I kwnow that. I want to use the file META-INF/context.xml inside the application for pointing to another resource. I do not want use server.xml! -- Initial Header --- From : Arup Vidyerthy [EMAIL PROTECTED] To : Tomcat Users List tomcat-user@jakarta.apache.org Cc : Date : Wed, 28 Sep 2005 10:47:25 +0100 Subject : RE: pointing to a folder outside tomcat webapps Look up allowLinking = true in google. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 10:42 To: tomcat-user Subject: pointing to a folder outside tomcat webapps I'd like pointing a foder outside webapps tomcat folder. I know that with Context path=/myPath docBase=c://myFolder reloadable=true/ inserver.xml i can do it. I'd like to use that tag in META-INF/context.xmlwithout using server.xml. But It allows just one context tag on context.xml. So any idea? Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Webapp deploy on windows
Thanks for your reply, I looked into bug 10026 and found out that there has been some issues with dtds stored inside jar-files, which is exactly our case. This is the first time i've actually came across some type of cause for this problem, so i'll look into this further before i start digging into tomcat fundamentals.This might be of real help to us. Does anyone else have any experience with storing dtd:s inside jar-files? We're using LAX (Lazy API for XML) along with the java 1.5 xml parser. Seems like the bug could originate from one of those packages. Joakim Mark Thomas wrote: Joakim Ahlén wrote: I'm not trying to blame anyone for not fixing this issue, (well, maybe i'm laying some blame on those who thinks this is _not_ a tomcat issue..) however, i am really interested in having this bug fixed, and i am prepared to put some effort and time into it myself. To do this, though, i need the help of someone who knows more about this problem. As far as I am aware, the Tomcat code correctly closes all the files it opens. However, we are dependent on a number of third party libraries that might not be as well behaved. See bug 10026 for an example of a typical situation. If you want to put some effort into this the best thing you could do is create the simplest possible test .war file that demonstrates this issue so we can take a look at it. If the anti-locking features of TC5 (which are better than TC4) don't fix it then we can look to see if there is anything that can be done to improve things. However, please remeber that this is fundamentally an OS issue, not a Tomcat one, and the fix may well be outside of our control. Mark - 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]
combining form based authentication with https
Hi all, I have a basic doubt If there are any resoursec which will me on this please point me towards them. I will carry on from there. My question is how to combine the form based authentication, where we use jsecuritycheck , jusername etc with https. As far as I know if we use form based authentication username and password will be authenticated by the container managed resource called 'jsecuritycheck. But the data transfer from client browser to tomcat will be still a plain text. i want to encrypt this and obviously i need to use https. So how to combine both and how tomcat wil help me doping this?? thanx in advance Regards Srikanth Peddireddy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Capturing User Passwords
Thanks Larry - that's worked for me!-Original Message-From: Larry Meadors [mailto: [EMAIL PROTECTED]] Sent: 29 September 2005 04:01To: Tomcat Users List Subject: Re: Capturing User PasswordsHere is the code (this is for tomcat 4.1.x): if(log.isDebugEnabled()){ Principal principal = req.getUserPrincipal(); PropertyDescriptor[] pds; pds =PropertyUtils.getPropertyDescriptors(principal.getC lass()); for(int i = 0; i pds.length; i++){ try { String name = pds[i].getName(); Object value = PropertyUtils.getProperty(principal,name); log.debug("pds." + name + " = " + value); } catch (Exception e) { e.printStackTrace(); } } }LarryOn 9/28/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am trying to find a way of capturing a user's password so that I canhave the user login to one of my web applications (which acts as a client),and pass it to a second application (which acts as the server). I know that I can retrieve the user from the ServletRequest using req.getUserPrincipal(). However, I do not know how I can retrieve the password. Can anyone offer any advice on whether this can be done and if so, thebest way of doing it? [ I did attempt to use forms-based authentication and use a filter to capture the password whenever the j_security_check action was invoked. However, I read in another post that Tomcat does not allow filters tobe placed on j_security_check. ] Once I have the password, I'd ideally be looking at converting it to a Credentials object, so that I could pass that to my second app, ratherthan passing the raw password. Does anyone know whether this can beachieved by using Tomcat's UserPasswordCredentials class? Also, to prevent the password been exposed in the URL posted from thelogin page, I'd also be looking to implement SSL. I presume that this willcause encryption problems. Does anyone have any advice about how I couldwork around this? - 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]IMPORTANT NOTICE If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to the statement below or contact the sender.This communication is from Deloitte Touche LLP. Deloitte Touche LLP is a limited liability partnership registered in England and Wales with registered number OC303675. A list of members' names is available for inspection at Stonecutter Court, 1 Stonecutter Street, London EC4A 4TR, United Kingdom, the firm's principal place of business and registered office. Deloitte Touche LLP is authorised and regulated by the Financial Services Authority.This communication and any attachments contain information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of disclosure, distribution, copying or use of this communication or the information in it or in any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please return it with the title "received in error" to [EMAIL PROTECTED] then delete the email and destroy any copies of it.E-mail communications cannot be guaranteed to be secure or error free, as information could be intercepted, corrupted, amended, lost, destroyed, arrive late or incomplete, or contain viruses. We do not accept liability for any such matters or their consequences. Anyone who communicates with us by e-mail is taken to accept the risks in doing so.When addressed to our clients, any opinions or advice contained in this e-mail and any attachments are subject to the terms and conditions expressed in the governing Deloitte Touche LLP client engagement letter.Opinions, conclusions and other information in this e-mail and any attachments which do not relate to the official business of the firm are neither given nor endorsed by it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
session state preserved across different applications
Dear all, How is it possible to preserve session state across different applications deployed in tomcat? I'm pretty sure I saw it somewhere, but I can't remember where it was... Thanks in advance, Michał. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
wrapper.properties is existing?
Hi All, Is there any wrapper.properties file we can write in Tomcat 5.5 which is equivalent to jserv.properties in Jserv. If it is, how should I write this file and where I need to place it. Thanks in Advance, Sunny Matson
Re: Running Servlet in Tomcat
Hi Copy your class file in webapps/YourApplication/WEB-INF/classes folder and restart the server,it will work. Thanks Parthi On 9/29/05, Singh, VilishKumar [EMAIL PROTECTED] wrote: Hi all, I have compiled my servltet class and but hen I put the .class file into the webapps/ROOT/WEB-INF/classes folder And try to access it with http://hostname:port/servlet/servlet-name. Page not found error occurs. Where is the problem, please help Regards, Vilish -Original Message- From: Prema Kumar [mailto:[EMAIL PROTECTED] Sent: Thursday, 29 September 2005 10:08 AM To: tomcat-user@jakarta.apache.org Subject: Jsps Hi, I have an Application which is J2EE Architecture and working with Resin 2.1.6 Now we are trying to bring up my application using Tomcat. What necessary modifications needs to be done in Tomcat web.xml file and server.xml Prem The information in this mail is confidential and is intended solely for the addressee. Access to this mail by anyone else is unauthorized. Any copying or further distribution beyond the original recipient is not intended and may be unlawful. The opinion expressed in this mail is that of the sender and does not necessarily reflect that of Titan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to PreCompile JSPs
Hi , Can you someone provide me some information on how to precompile JSPs (probably thousands of JSPs) ? Regards, Murali
Re: How to PreCompile JSPs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Murali wrote: Hi , Can you someone provide me some information on how to precompile JSPs (probably thousands of JSPs) ? This might help. http://www.rgagnon.com/javadetails/java-0414.html - -- Love is mutual self-giving that ends in self-recovery. Fulton Sheen James Black[EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDPAIUikQgpVn8xrARAjqMAJ9zT3FPwhgnXPGyG9XvrAmlptzzBQCeNfz5 9s+G7lFVcWAObuJZ5L0YYSw= =AoqJ -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TC 5.5.9 - how to use the system classpath
Our tomcat's are configured to use the system classpath for a large amount of the libraries. With TC 4.1.30, we modify the setclasspath.* and use catalina.sh start to start it. I tried this with TC 5.5.9 and it did not work. Is there something else that I am supposed to do to make the system classpath available to the webapps? Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XP SP1 and WebDav, login error (domain name prefix)
I'm having troubles setting up WebDav with tomcat 5.5.9 on JDK 1.5_04 on Fedora Linux FC4 The webdav share works perfectly from my Mac running OS X.3. When I try to connect to the WebDav share from my laptop running XP, the login box comes up and insists on putting changing the login name to domain-name.net\username rather than using just username There seems to be no setting in XP's networking setting to change this. I've been googling for an answer for the past week with no luck. Does anyone know a work around? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SQL Server 2000: JDBC
Hi! I am investigating the error messages below. These messages come once in a while and sometime together as a bunch. We are using connection pooling inside a servlet and also using some classes (in Jsp) without connection Pooling. Error making pool: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket. Error connecting: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Connection reset by peer: socket write All help will be appreciated! Lalit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: How to PreCompile JSPs
From the Tomcat docs: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html -Ursprüngliche Nachricht- Von: Murali [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 29. September 2005 16:54 An: tomcat-user@jakarta.apache.org Betreff: How to PreCompile JSPs Hi , Can you someone provide me some information on how to precompile JSPs (probably thousands of JSPs) ? Regards, Murali - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: session state preserved across different applications
Hi Michael, this comes up every so often, so here is just the answer, which I posted some time ago: First of all the session is ALWAYS on application scope, this is not an Tomcat specific behaviour but a requirement of the Specification: SRV.7.3 Session Scope HttpSession objects must be scoped at the application (or servlet context) level. The underlying mechanism, such as the cookie used to establish the session, can be the same for different contexts, but the object referenced, including the attributes in that object, must never be shared between contexts by the container. So there is no way around this, if the sessions were replicated across the applications it would violate the specification. When you enable crossConext for your application: Context crossContext=true docBase=testapp path=/testapp reloadable=true /Context you can get the context for another application: ServletContext context2 = context.getContext(/testapp); and set attributes: context2.setAttribute(test,JSP is great!); But you cannot get to the session in the other application. So what you can do is implement the session swapping on your own (Cookies, via the Database) or merge your applications into one. Some links from the Sun Forums: http://forum.java.sun.com/thread.jsp?forum=33thread=259394 http://forum.java.sun.com/thread.jsp?forum=45thread=492484 http://forum.java.sun.com/thread.jsp?forum=33thread=318569 Cheers Bernhard -Ursprüngliche Nachricht- Von: Michal Kwiatek [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 29. September 2005 15:34 An: Tomcat Users List Betreff: session state preserved across different applications Dear all, How is it possible to preserve session state across different applications deployed in tomcat? I'm pretty sure I saw it somewhere, but I can't remember where it was... Thanks in advance, Michał. - 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]
Struts Validation
Dear list, I have a very simple form that I am validating. I enables the plugin and the validation works fine, but when I submit an empty form, it shows NULL instead of picking the correct msg for the particular field from the properties files. Any idea why this is happening ? I tried all versions of the DTDs and still doesn't work. Thanks Fadi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validation
You need to copy some messages from validator-rules.xml's commented out block. -Original Message- From: Samara, Fadi N Mr ACSIM/ASPEX [mailto:[EMAIL PROTECTED] Sent: September 29, 2005 12:44 PM To: 'tomcat-user@jakarta.apache.org' Subject: Struts Validation Dear list, I have a very simple form that I am validating. I enables the plugin and the validation works fine, but when I submit an empty form, it shows NULL instead of picking the correct msg for the particular field from the properties files. Any idea why this is happening ? I tried all versions of the DTDs and still doesn't work. Thanks Fadi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:433c19d6207412972918781!
RE: Struts Validation
Send your ApplicationResource.properties and alsi the struts-config.xml -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: 29 September 2005 17:52 To: Tomcat Users List Subject: RE: Struts Validation You need to copy some messages from validator-rules.xml's commented out block. -Original Message- From: Samara, Fadi N Mr ACSIM/ASPEX [mailto:[EMAIL PROTECTED] Sent: September 29, 2005 12:44 PM To: 'tomcat-user@jakarta.apache.org' Subject: Struts Validation Dear list, I have a very simple form that I am validating. I enables the plugin and the validation works fine, but when I submit an empty form, it shows NULL instead of picking the correct msg for the particular field from the properties files. Any idea why this is happening ? I tried all versions of the DTDs and still doesn't work. Thanks Fadi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:433c19d6207412972918781! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Capturing User Passwords
Hi Greg , thanks for the link. Your download does not have any source, ( can you share it ?? ) Stephen Bovy Computer Associates 6100 Center Drive Suite 700 Los Angeles, CA 90045 Tel: (310) 957-3930 Fax: (310) 957-3917 e-mail: [EMAIL PROTECTED] -Original Message- From: Aaron Loucks [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 28, 2005 4:43 PM To: Tomcat Users List Subject: Re: Capturing User Passwords You could modify the FormAuthenticator class and have it cache the password. I believe it's in the org.apache.catalina.authenticator package of the tomcat source. I did something similar to provide programmatic login, although I've somewhat abandoned that project. It's available at http://palpatine.infinitedata.net/~loucks/projects/pfa/ Context ... Valve className=com.company.MyPasswordCachingFormAuthenticator/ /Context Perry, Greg (UK - London) wrote: Thanks - but I did try using single sign-on and got that working correctly with trial applications. However, I need to explicitly supply the password in the call to my second application. Again, any help would be greatly appreciated. -Original Message- From: Giuseppe Briotti [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 14:45 To: Tomcat Users List Subject: Re: Capturing User Passwords == Date: Wed, 28 Sep 2005 14:29:04 +0100 From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Subject: Capturing User Passwords == I am trying to find a way of capturing a user's password so that I can have the user login to one of my web applications (which acts as a client), and pass it to a second application (which acts as the server). It sounds like you are trying to implement a Single sign on... -- Giuseppe Briotti [EMAIL PROTECTED] Alme Sol, curru nitido diem qui promis et celas aliusque et idem nasceris, possis nihil urbe Roma visere maius. (Orazio) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] IMPORTANT NOTICE If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to the statement below or contact the sender. This communication is from Deloitte Touche LLP. Deloitte Touche LLP is a limited liability partnership registered in England and Wales with registered number OC303675. A list of members' names is available for inspection at Stonecutter Court, 1 Stonecutter Street, London EC4A 4TR, United Kingdom, the firm's principal place of business and registered office. Deloitte Touche LLP is authorised and regulated by the Financial Services Authority. This communication and any attachments contain information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of disclosure, distribution, copying or use of this communication or the information in it or in any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please return it with the title received in error to [EMAIL PROTECTED] then delete the email and destroy any copies of it. E-mail communications cannot be guaranteed to be secure or error free, as information could be intercepted, corrupted, amended, lost, destroyed, arrive late or incomplete, or contain viruses. We do not accept liability for any such matters or their consequences. Anyone who communicates with us by e-mail is taken to accept the risks in doing so. When addressed to our clients, any opinions or advice contained in this e-mail and any attachments are subject to the terms and conditions expressed in the governing Deloitte Touche LLP client engagement letter. Opinions, conclusions and other information in this e-mail and any attachments which do not relate to the official business of the firm are neither given nor endorsed by it. - 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: Capturing User Passwords
Hi Stephen, Aaron posted the link (Thanks Aaron!) - so I guess your request is best directed to him. Cheers, Greg -Original Message- From: Bovy, Stephen J [mailto:[EMAIL PROTECTED] Sent: Thu 29/09/2005 19:53 To: Tomcat Users List Cc: Subject: RE: Capturing User Passwords Hi Greg , thanks for the link. Your download does not have any source, ( can you share it ?? ) Stephen Bovy Computer Associates 6100 Center Drive Suite 700 Los Angeles, CA 90045 Tel: (310) 957-3930 Fax: (310) 957-3917 e-mail: [EMAIL PROTECTED] -Original Message- From: Aaron Loucks [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 28, 2005 4:43 PM To: Tomcat Users List Subject: Re: Capturing User Passwords You could modify the FormAuthenticator class and have it cache the password. I believe it's in the org.apache.catalina.authenticator package of the tomcat source. I did something similar to provide programmatic login, although I've somewhat abandoned that project. It's available at http://palpatine.infinitedata.net/~loucks/projects/pfa/ Context ... Valve className=com.company.MyPasswordCachingFormAuthenticator/ /Context Perry, Greg (UK - London) wrote: Thanks - but I did try using single sign-on and got that working correctly with trial applications. However, I need to explicitly supply the password in the call to my second application. Again, any help would be greatly appreciated. -Original Message- From: Giuseppe Briotti [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 14:45 To: Tomcat Users List Subject: Re: Capturing User Passwords == Date: Wed, 28 Sep 2005 14:29:04 +0100 From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Subject: Capturing User Passwords == I am trying to find a way of capturing a user's password so that I can have the user login to one of my web applications (which acts as a client), and pass it to a second application (which acts as the server). It sounds like you are trying to implement a Single sign on... -- Giuseppe Briotti [EMAIL PROTECTED] Alme Sol, curru nitido diem qui promis et celas aliusque et idem nasceris, possis nihil urbe Roma visere maius. (Orazio) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] IMPORTANT NOTICE If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to the statement below or contact the sender. This communication is from Deloitte Touche LLP. Deloitte Touche LLP is a limited liability partnership registered in England and Wales with registered number OC303675. A list of members' names is available for inspection at Stonecutter Court, 1 Stonecutter Street, London EC4A 4TR, United Kingdom, the firm's principal place of business and registered office. Deloitte Touche LLP is authorised and regulated by the Financial Services Authority. This communication and any attachments contain information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of disclosure, distribution, copying or use of this communication or the information in it or in any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please return it with the title received in error to [EMAIL PROTECTED] then delete the email and destroy any copies of it. E-mail communications cannot be guaranteed to be secure or error free, as information could be intercepted, corrupted, amended, lost, destroyed, arrive late or incomplete, or contain viruses. We do not accept liability for any such matters or their consequences. Anyone who communicates with us by e-mail is taken to accept the risks in doing so. When addressed to our
RE: Capturing User Passwords
Woops, sorry I misread Stephen Bovy Computer Associates 6100 Center Drive Suite 700 Los Angeles, CA 90045 Tel: (310) 957-3930 Fax: (310) 957-3917 e-mail: [EMAIL PROTECTED] -Original Message- From: Perry, Greg (UK - London) [mailto:[EMAIL PROTECTED] Sent: Thursday, September 29, 2005 11:58 AM To: Tomcat Users List Subject: RE: Capturing User Passwords Hi Stephen, Aaron posted the link (Thanks Aaron!) - so I guess your request is best directed to him. Cheers, Greg -Original Message- From: Bovy, Stephen J [mailto:[EMAIL PROTECTED] Sent: Thu 29/09/2005 19:53 To: Tomcat Users List Cc: Subject: RE: Capturing User Passwords Hi Greg , thanks for the link. Your download does not have any source, ( can you share it ?? ) Stephen Bovy Computer Associates 6100 Center Drive Suite 700 Los Angeles, CA 90045 Tel: (310) 957-3930 Fax: (310) 957-3917 e-mail: [EMAIL PROTECTED] -Original Message- From: Aaron Loucks [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 28, 2005 4:43 PM To: Tomcat Users List Subject: Re: Capturing User Passwords You could modify the FormAuthenticator class and have it cache the password. I believe it's in the org.apache.catalina.authenticator package of the tomcat source. I did something similar to provide programmatic login, although I've somewhat abandoned that project. It's available at http://palpatine.infinitedata.net/~loucks/projects/pfa/ Context ... Valve className=com.company.MyPasswordCachingFormAuthenticator/ /Context Perry, Greg (UK - London) wrote: Thanks - but I did try using single sign-on and got that working correctly with trial applications. However, I need to explicitly supply the password in the call to my second application. Again, any help would be greatly appreciated. -Original Message- From: Giuseppe Briotti [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 14:45 To: Tomcat Users List Subject: Re: Capturing User Passwords == Date: Wed, 28 Sep 2005 14:29:04 +0100 From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Subject: Capturing User Passwords == I am trying to find a way of capturing a user's password so that I can have the user login to one of my web applications (which acts as a client), and pass it to a second application (which acts as the server). It sounds like you are trying to implement a Single sign on... -- Giuseppe Briotti [EMAIL PROTECTED] Alme Sol, curru nitido diem qui promis et celas aliusque et idem nasceris, possis nihil urbe Roma visere maius. (Orazio) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] IMPORTANT NOTICE If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to the statement below or contact the sender. This communication is from Deloitte Touche LLP. Deloitte Touche LLP is a limited liability partnership registered in England and Wales with registered number OC303675. A list of members' names is available for inspection at Stonecutter Court, 1 Stonecutter Street, London EC4A 4TR, United Kingdom, the firm's principal place of business and registered office. Deloitte Touche LLP is authorised and regulated by the Financial Services Authority. This communication and any attachments contain information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of disclosure, distribution, copying or use of this communication or the information in it or in any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please return it with the title received in error to [EMAIL PROTECTED] then delete the email and destroy any copies of it. E-mail communications cannot be guaranteed to be
Re: Why doesn't my context work?
--- Michael Sullivan [EMAIL PROTECTED] wrote: [ lots of stuff snipped ] OK, I finally got around to putting this together on my Limux (Fedora Core 4) box. My environment: 2.6.12-1.1456_FC4 running on a Dell 8200 with 768 MB java 1.5.0_04-b05 apache 2.0.54 mod_jk 1.2.14.1 tomcat 5.5.9 My configurations: # # httpd.conf stuff # LoadModulejk_module modules/mod_jk.so JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevelwarn JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkShmFile logs/shm-file LoadModule userdir_module modules/mod_userdir.so IfModule mod_userdir.c UserDir enable username /IfModule Directory /home/*/webspace AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec Limit GET POST OPTIONS Order allow,deny Allow from all /Limit LimitExcept GET POST OPTIONS Order deny,allow Deny from all /LimitExcept /Directory # # Adding JkMounts for UserDir # JkMount /~*/*.jsp local JkMount /~*/*/*.jsp local JkMount /~*/servlet/* local JkMount /~*/*.do local # # workers.properties stuff - mostly default for now # worker.list=local # # one to serve the applications # worker.local.type=ajp13 worker.local.host=localhost worker.local.port=8009 # # server.xml stuff in Tomcat under Host/Host # !-- adding listener to test local host directories -- Listener className=org.apache.catalina.startup.UserConfig directoryName=webspace userClass= org.apache.catalina.startup.PasswdUserDatabase/ NOTES = httpd.conf -- 1. Add the appropriate user names in the line: UserDir enable username This is a space-separated list of user names. Otherwise you can just have: UserDir enabled to get them all. 2. Excuse the wrapping in the Options line under the Directory directive. workers.properties -- This is just a bare bones one. There are lots of options to explore. server.xml -- This is the listener that will add the same directory to Tomcat that was added to Apache with the userdir module. RESULTS === You will get a single web application under /~username. If you look at Tomcat's manager application, you will see a /~username application. I ran the first application from the Head First Servlets JSP book (my standard is it working application) and this setup worked. One thing to note. I did not get Tomcat to explode a war file in /~username. I had to explode the war manually in ~username/webspace. I didn't see a way of adding multiple user applications by using this listener. I just did a quick scan of the UserConfig javadoc. My guess is that if you want multiple web applications per user you will have to set up a virtual host for each user. Just some thoughts. HTH /mde/ __ Yahoo! for Good Donate to the Hurricane Katrina relief effort. http://store.yahoo.com/redcross-donate3/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Charset configurations for JSP pages
Mark Thomas said: Read the spec. Where in the spec? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat shutdown details
What happens to in-flight requests when Tomcat is shut down via the standard shutdown.sh? I'd like to be able to have Tomcat stop accepting new requests, finish with the ones in-flight, and exit. The requests I'm dealing with take from a few milliseconds to 6 seconds to complete. Thanks- Lorrin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Asking Again: 5.5.12 Broke my 5.5.9 Config
Hi all, I asked this question a couple days ago but received no helpful responses. I thought I'd try one more time. If anyone has had experience with this, please let me know. Thanks... I've just tried to upgrade from TC v5.5.9 to v5.5.12 and it seems my (very simple) configuration is now broken. The following configuration works beautifully under 5.5.9 -- no exceptions, no warnings, just utter perfection. Here's a description of my configuration (BTW, CATALINA_HOME and JAvA_HOME are fine, I'm sure they're not causing the problem). I have CATALINA_BASE set like this: C:\Projects\Configs\ Within this Configs directory I have two sub-directories: conf and Engine_01 like this: C:\Projects\Configs\ | +-conf\ | | | +-server.xml | +-web.xml | +-Engine01\ | | | +-localhost\ | | | | | +-ROOT.xml Within the conf directory I have my server.xml and the default web.xml files. Here is the server.xml contents: Server port=10035 shutdown=SHUTDOWN debug=0 Service name=Catalina Connector port=80 / Engine name=ENGINE_01 defaultHost=localhost Host name=localhost appBase=..\Sites\Test 1/ /Engine /Service /Server Notice I have named the engine, Engine_01. As you can see, in the Engine_01 directory I have a subdirectory, localhost, which contains a context fragment file named, ROOT.xml. Here is the contents of ROOT.xml: Context path= docBase=/ In my server.xml you'll notice I have my appBase property set to ..\Sites\Test 1. Here is the Sites directory structure: C:\Projects\Sites\ | +-Test 1\ | +-index.html +-WEB-INF\ | +-web.xml +-classes\ +-root\ It's all quite simple, I think. When I run under v5.5.9, this configuration works perfectly, as I said. Using the EXACT SAME configuration, running under v5.5.12, I see this WARNING and EXCEPTION when I start TC: WARNING: A docBase C:\Projects\Sites\Test 1\. inside the host appBase has been specified, and will be ignored Sep 26, 2005 8:37:22 PM org.apache.catalina.core.StandardContext resourcesStart SEVERE: Error starting static Resources java.lang.IllegalArgumentException: Document base C:\Projects\Configs\..\Sites\Test 1\ROOT does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:140) at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3777) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3948) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:603) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:680) at org.apache.catalina.startup.Catalina.start(Catalina.java:536) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Sep 26, 2005 8:37:22 PM org.apache.catalina.core.StandardContext start SEVERE: Error in resourceStart() Sep 26, 2005 8:37:22 PM org.apache.catalina.core.StandardContext start SEVERE: Error getConfigured Sep 26, 2005 8:37:22 PM org.apache.catalina.core.StandardContext start SEVERE: Context [] startup failed due to previous errors Sep 26, 2005 8:37:22 PM org.apache.catalina.core.StandardContext stop INFO: Container org.apache.catalina.core.ContainerBase.[ENGINE_01].[localhost].[/] has not been started Sep 26, 2005 8:37:23 PM org.apache.coyote.http11.Http11BaseProtocol
Re: Flexible way of defining application variables in text format?
Leon Rosenberg [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: First: you can load your property files on each request as well. really, using what? im curious -- struts and regular properties files out of the box dont support that behaviour, so you would have to 'roll your own' i think. ive seen several different impls, what are you using? Second: you ever tried to request same value from db on each request, which would mean in our case 100 times per second per webserver? Which db is able to serve it? that seems a bit high, but maybe you're working on bigger stuff. its not an issue with my stuff, much smaller apps etc. but as an alternative for smaller apps, you could just stick it in a data structure and use some sort of cache manager to handle it i think (e.g, oscache from opensymphony). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SQL Server 2000: JDBC
Hello lalit, we too had the problem of connection reset by peer and then we changed the Driver.Now we are using SourceForge driver jtds.jar.May be this may solve ur problem. If anyone can find a better alternative please inform us. Regards, Sreekanth
Precompile jsps into work directory
I've searched the archives and couldn't find an answer to this question. The Tomcat manual suggests using Jspc to precompile jsps. The method it describes precompiles the jsps and creates stub servlet definitions for each jsp to place within web.xml. Instead of this method, I would like to simply precompile the jsps into the tomcat work directory. I know I can do this by requesting each jsp with the precompile request parameter, but I'd like a command line/Ant method of doing this without having to run the server. Has anyone tried/been successful in doing this? Thanks. Scott
RE: Re: Flexible way of defining application variables in text format?
From: news [mailto:[EMAIL PROTECTED] On Behalf Of matador Subject: Re: Flexible way of defining application variables in text format? First: you can load your property files on each request as well. really, using what? Try the java.util.Properties.load() method. You can check the lastModified() time stamp on the underlying file first to bypass the reload, if desired. - 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]
tomcat caching issue
Hi All, I need your help for this problem very urgently. I have tomcat 4.1.30 on Linux. It servers as a web server and contains only JSP Servlets. We make a remote call to Websphere Application Server ( on AIX) using corbaloc like 'corbaloc::ip1:2809:ip2:2809'. Now when i one of my App server fails, the other App Server server should take over. This work when i use a simple java client on the Linux machine, the failover occurs. But when i use my application in tomcat, this does not work. I am using a Service locator ( singleton) which makes the initial call to App Server and stores in the ip cache. initially we that the issue was with the Service locator, but then even if i don't use this Service Locator, the problem persists. We have talked to IBM and they say that the tomcat does some caching and the problem is not with the App Server. Has anyone faced this issue? Can anyone help regarding this and how can i know how and where the caching is done? Can this issue be resolved. If any other information is required, i will be glad to provide with the same. regards, Santosh Asbe *** This message is for the named addressees' use only. It may contain NSDL confidential, proprietary or legally privileged information. If you receive this message in error, please immediately delete it. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient.Unless otherwise stated, any commercial information given in this message does not constitute an offer to deal on any terms quoted. Any reference to the terms of executed transactions should be treated as preliminary only and subject to our formal written confirmation. ***