AW: JAAS and Tomcat 4.1
Thx for your attention, I managed to fix the problem myself. The problem was that the principal class did some lookups in the system properties. That caused a call to AccessController.checkPermission() which in turn querried the principal, and so on. That caused a recursion that ended in a stack overflow. The bug didn't appear in the old jaas, because the PropertyPermission was already given to the code in the old code centric tomcat.policy whereas the principal only appeared in a different file (jaas.policy). That caused that the principal was not touched when checking the PropertyPermission and thus no recursion started. Regards Marcus Lippert. -Ursprüngliche Nachricht- Von: Marcus Lippert [mailto:[EMAIL PROTECTED] Gesendet: Montag, 10. März 2003 09:32 An: [EMAIL PROTECTED] Betreff: JAAS and Tomcat 4.1 I'm running a servlet which does user centric authentication using JAAS. I.e. I evaluate the client certificate used in the SSL session and map the distinguished name within a login module to a role (implementation of interface java.security.Principal). The first time I receive a request, I create a LoginContext and store it in the session. On each subsequent call I retrieve the LoginContext and perform a login in order to obtain a subject. The rest of the code is enclosed in a PrivilegedAction, which is done as follows: Subject.doAsPrivileged(subject, new PrivilegedAction ( public Object run() { // the code including calls AccessController.checkPermission(somePermission) }}, null); I pass 'null' as AccessControlContext to let the framework generate a new Context. Everything worked fine under JDK1.3.1, Tomcat 3.3.1 and the JAAS extension for the JDK. Now I'm using J2SDK1.4.1_02-b06 and Tomcat 4.1.18 and the following problem occurs: The first call AccessController.checkPermision(aPermission) within the privileged action results in a stack overflow, which causes tomcat to crash silently. It seems to step into a recursion, which does not and. I found out, that each recursive call accesses the Role object: It calles role.equals(), and then three times role.getName(). For debugging purposes I inserted System.err.println's in the respective methods. Since tomcat crashes silently (no log entry, no exception), I was only able to find out about the stack overflow, by increasing the stack size for the VM and counting the printed lines. The problem only occurs when I use the role principal in a grant statement (catalina.policy). When I omit this grant and assigne the respective rights based on codebases, everything works fine (except that I have no user authorization). Does anyone have any idea, why this could happen? Best regards, Marcus Lippert. - 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: Problem with default servlet
rf [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello I am using a caching Filter that *conditionally* uses the default servlet (through RequestDispatcher) to serve a page, or generate it again. In the case when the default servlet is used to serve the page, this servlet seems to send the headers Last-modified and ETag, and this seems to have an effect on IE which, on a shift-refresh, does not seem to request the page again at all. (IE, by default, is set to check for newer versions of stored pages 'Automatically'). 1. Is the IE behaviour due to those two headers? Yes. (or, more generally, a browser won't fetch a non-updated page that includes a Last-Modified header when the page hasn't changed). 2. If yes, how can I instruct the default servlet not send these headers? You can't. 3. Sending these headers is good, but I thought IE would send the request, nevertheless, with the If-none-matched and If-Modified-Since. Is this something wrong with IE? IE should send a If-Modified-Since (and get a '304 Not Modified' response). Otherwise, you will have to take it up with Bill Gates ;-). Thanks ~rf __ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: custom .properties file
If $CATALINA_HOME/common/classes doesn't work, then you'll probably have to take it up with the vendor of you driver. If the driver wants to load it from the System classpath, then you will probably have to edit catalina.(sh/bat) to include it in the System classpath. Alessandro Scaramuzza [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I try tu put it in all this folders but I receive a FileNotFoundException!!! - Original Message - From: Bill Barker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 14, 2003 8:08 AM Subject: Re: custom .properties file Well, it depends where you are loading your driver from. If it is in WEB-INF/lib, then put your file in WEB-INF/classes. Otherwise, if it is in $CATALINA_HOME/shared/lab, put it in $CATALINA_HOME/shared/classes. If you are using common, then s/shared/common/. Alessandro Scaramuzza [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello everybody, I'm trying to develop a simple application in tomcat+struts. Everything works fine, but the driver to access to database: ewin. This driver needs a db.properties file, i put it on the root directory of my project but at runtime I receive a FileNotFoundException. Should I register the file to Tomcat? in which mode? thank to everybody can help me, and sorry for my ugly english!! 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: custom .properties file
Ok, I'll try ! thank you -Original Message- From: Bill Barker To: [EMAIL PROTECTED] Sent: /03/aa 9.32 Subject: Re: custom .properties file If $CATALINA_HOME/common/classes doesn't work, then you'll probably have to take it up with the vendor of you driver. If the driver wants to load it from the System classpath, then you will probably have to edit catalina.(sh/bat) to include it in the System classpath. Alessandro Scaramuzza [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I try tu put it in all this folders but I receive a FileNotFoundException!!! - Original Message - From: Bill Barker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 14, 2003 8:08 AM Subject: Re: custom .properties file Well, it depends where you are loading your driver from. If it is in WEB-INF/lib, then put your file in WEB-INF/classes. Otherwise, if it is in $CATALINA_HOME/shared/lab, put it in $CATALINA_HOME/shared/classes. If you are using common, then s/shared/common/. Alessandro Scaramuzza [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello everybody, I'm trying to develop a simple application in tomcat+struts. Everything works fine, but the driver to access to database: ewin. This driver needs a db.properties file, i put it on the root directory of my project but at runtime I receive a FileNotFoundException. Should I register the file to Tomcat? in which mode? thank to everybody can help me, and sorry for my ugly english!! 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]
Tomcat page redirect
Is there a simple way of causing a page redirect in Tomcat? In Apache a simple change to the httpd.conf would suffice, but in Tomcat the learning curve seems to be much steeper! Basically, I have been told to modify our Aepona/Tomcat installation so that when a user types http://mytomcathost:8080 into their browser, then instead of getting the default set of Tomcat pages (containing examples etc) they will get redirected to the home page of the Aepona software itself which runs on Tomcat at http://mytomcathost:8080/Causeway_PM Can this be done by a simple change to a Tomcat configuration file? Thanks Colin __ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: javabean help
import the package import package.name -henry SEE MY ONLINE STORE! http://www.yucreation.com/home/istore/ - Original Message - From: Michael Ni [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 14, 2003 1:47 AM Subject: javabean help i have a javabean and i want to call another method from another bean in another package. how do i do that? mike _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - 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: Problem with default servlet
--- Bill Barker [EMAIL PROTECTED] wrote: rf [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello I am using a caching Filter that *conditionally* uses the default servlet (through RequestDispatcher) to serve a page, or generate it again. In the case when the default servlet is used to serve the page, this servlet seems to send the headers Last-modified and ETag, and this seems to have an effect on IE which, on a shift-refresh, does not seem to request the page again at all. (IE, by default, is set to check for newer versions of stored pages 'Automatically'). 1. Is the IE behaviour due to those two headers? Yes. (or, more generally, a browser won't fetch a non-updated page that includes a Last-Modified header when the page hasn't changed). 2. If yes, how can I instruct the default servlet not send these headers? You can't. 3. Sending these headers is good, but I thought IE would send the request, nevertheless, with the If-none-matched and If-Modified-Since. Is this something wrong with IE? IE should send a If-Modified-Since (and get a '304 Not Modified' response). Otherwise, you will have to take it up with Bill Gates ;-). 1. Are you sure? This is a critical issue - I am sure there must have been discussions on this in the past. This surely must have troubled a lot of people. 2. HttpServlet interface has a getLastModfied method. Which is better/recommended: A. Use a filter that caches the output and use the default servlet to serve that next time OR B. Use only a servlet with a getLastModified method and put Last-Modified and ETag headers myself. For A, I have the problem as mentioned earlier (IE not sending the request at all). I have not yet tested B, but do all the browsers use the If-None-Match and If-Modified-Since headers? In case the browsers do not send that, tomcat will not use the getlastModified method of the servlet(or does it?) and I dont get what I want. Thanks ~rf __ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Loading dll for servlets
Hello List, Background: I am extending an existing application to the web. The existing application is written in cobol and compiled to a *.dll on a Windows2000-System. I can load the dll and go the specific entrypoints, so the existing logic doesn't have to be rewritten. My Question: Is it possible to load an dll into the Tomact-Server, so that its functions are always accessible to my servlets? I have a terrible overhead in loading and unloading the dll in every servlet that is accessed. Or does anyone know another way to do it? Thanks in Advance Bjoern Abt http://www.inode.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Authentication in apache-tomcat
Hello, I'm using tomcat as an in-process servlet-engine in an apache server. Everything works fine execpt the authentication. I've configured the authentication to do Access-control based on the system-users and passwords. This works fine for static pages, served by appache, but the access control is ignored by the dynamic pages served by tomcat. I read some documentation saying, that one should add the directive tomcatAuthentication=false in the Ajp13Connector, but in my configuration, there is no Ajp1xConnector, probably, because of the in-process configuration. The connector, in server.xml is : Connector className =org.apache.tomcat.service.JNIEndpointConnector , but adding the tomcatAuthentication=false directive here has no effect. I'm running apache and tomcat on an iSeries (AS400, OS400). Thanks in advance, Marc Nothum -- Electronic information is not secure, therefore the Entreprise des Postes et Telecommunications accepts no responsibility whatsoever for the contents of this message, which is intended for the addressee only. Its contents and any attached files are strictly confidential. If you have received this message in error, please telephone the following number 4765-1. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Loading dll for servlets
hi, Can you eloborate to load the dll in tomcat server?What is the functionality required ? Can detail us about overhead of loading and unloading dll in servlets? Pls ignore i was wrong .. Regards, Pratt. - Original Message - From: Bjoern Abt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 14, 2003 2:52 PM Subject: Loading dll for servlets Hello List, Background: I am extending an existing application to the web. The existing application is written in cobol and compiled to a *.dll on a Windows2000-System. I can load the dll and go the specific entrypoints, so the existing logic doesn't have to be rewritten. My Question: Is it possible to load an dll into the Tomact-Server, so that its functions are always accessible to my servlets? I have a terrible overhead in loading and unloading the dll in every servlet that is accessed. Or does anyone know another way to do it? Thanks in Advance Bjoern Abt http://www.inode.ch - 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: Loading dll for servlets
Hi Can you eloborate to load the dll in tomcat server?What is the functionality required ? I need to access the dll's entrypoints from a few servlets. And I don't want to Load the dll to RAM and unload it in every servlet. Can detail us about overhead of loading and unloading dll in servlets? Hmm, about 5 Seconds in every servlet. I use the runtime.cobload and runtime.cobcancel calls to load. Greets Björn Abt www.inode.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running Tomcat on Win XP
Hi all, I was successful in installing and running Tomcat on our Linux web server. Today I downloaded the Windows version of Tomcat for my PC. Having installed j2sdk1.4.1_02 and j3sdkee1.3.1, set environment variables JAVA_HOME and J2EE_HOME, I then installed Tomcat 4.1.18. However, upon starting Tomcat, I get the following error when directing my browser to http://localhost:8080... (Please, what else needs doing?) HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530) at java.lang.Thread.run(Thread.java:536) Apache Tomcat/4.1.18
Servlet not available
Hi there, I am using Apache2, TC4, on W2k. tomcat works fine with jsps, but I got this error when trying to login. type Status report message /myapp/servlet/UserLogin description The requested resource (/myapp/servlet/UserLogin) is not available. I know it must not be a big problem just should do some configuration. Can anyone tell me what shall I do? Thanks Annie
Re: Servlet not available
The default servlet invoker is off. Either turn it back on or define a servlet mapping for your servlet. It should work. Peng Annie wrote: Hi there, I am using Apache2, TC4, on W2k. tomcat works fine with jsps, but I got this error when trying to login. type Status report message /myapp/servlet/UserLogin description The requested resource (/myapp/servlet/UserLogin) is not available. I know it must not be a big problem just should do some configuration. Can anyone tell me what shall I do? Thanks Annie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: configuring j_security_check in Tomcat
Thanks for your response. It works better now (after resolving another problem due to this modification : Invalid direct reference to form login page) -- Lanto Read the realm Howto of tomcat to use it. I try to resume : You protect your servlet by defining a realm with connection on ldap, database or memory realm in server.xml and by defining your protection in the web.xml of your servlet. After the file login.jsp is call automatically if your not logged and the j_security_check is called in your form ( it's a servlet 2.3 standard) define in your login.jsp. After your logging the protected url is call. hope this help... Gabriel ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Servlet not available
Hi, I think it is on here. In $TOMCAT_HOME/conf/web.xml I have the following lines: !-- The mapping for the default servlet -- servlet-mapping servlet-namedefault/servlet-name url-pattern//url-pattern /servlet-mapping !-- The mapping for the invoker servlet -- servlet-mapping servlet-nameinvoker/servlet-name url-pattern/servlet/*/url-pattern /servlet-mapping !-- The mapping for the JSP servlet -- servlet-mapping servlet-namejsp/servlet-name url-pattern*.jsp/url-pattern /servlet-mapping Doesn't it mean it is on? Or shall I do something with the web.xml in the application? Annie -Original Message- From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED] Sent: 14. maaliskuuta 2003 12:15 To: Tomcat Users List Subject: Re: Servlet not available The default servlet invoker is off. Either turn it back on or define a servlet mapping for your servlet. It should work. Peng Annie wrote: Hi there, I am using Apache2, TC4, on W2k. tomcat works fine with jsps, but I got this error when trying to login. type Status report message /myapp/servlet/UserLogin description The requested resource (/myapp/servlet/UserLogin) is not available. I know it must not be a big problem just should do some configuration. Can anyone tell me what shall I do? Thanks Annie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
First simple questions
Hi, We try to configure load balancing using JK2 and our first question is about the syntax used. Should we use lb_factor OR lbfactor? Second question: what is the range of this factor? from 1 to??? Thanks for your help. Eric LAGALISSE Coordinateur de production CASDEN - Banque Populaire Tel.: 01 64 8030 35 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ClassNotFoundException... ? serializable objects? help!!
I am using struts and tomcat... i am swiching from non ssl to ssl.. I have got the RSA certificates stuff ok.. and switching back and forth to sll seems to be fine.. My problem is I have a serializable object[] in the session. When i switch to SSL the object appears in the session.getAttributeNames() list... but the log reports a ClassNotFoundException ...? this makes no sense and the class is in my WEB-INF/classes/com/blah... I have an import in the page for the class and have my persistantManager config is: Manager className=org.apache.catalina.session.PersistentManager debug=0 saveOnRestart=true maxActiveSessions=-1 minIdleSwap=-1 maxIdleSwap=-1 maxIdleBackup=-1 Store className=org.apache.catalina.session.FileStore/ /Manager i'm stuck on this one.. little help?? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Doubt regarding FormAuthenticator
In that case, how will the server know that the control should be directed to my Valve during FormAuthentication and not to the FormAuthenticator. Bill Barker wrote: You can add a custom Authenticator (Form or otherwise) by adding under the Context ... Valve className=com.myfirm.mypackage.MyAuthenticator ... / /Context Of course, if you do this, Tomcat assumes that you know what you are doing. If you add a Form Authenticator to a Context that is configured for Basic, then you are on your own. shanmugampl [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am currently working on SingleSignOn and require some changes to be done in the FormAuthenticator.java file. Instead of making changes to the original code, can I plugin my own FormAuthenticator. If yes how can I do it. Thanks Shanmugam.PL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Servlet not available
Annie, map the invoker servlet in your web.xml of your webapp as well if you want to. So there is an entry like this : servlet-mapping servlet-nameinvoker/servlet-name url-pattern/servlet/*/url-pattern /servlet-mapping Alternatively you could just do this : My servlet definition : servlet servlet-nameHttpReceiver/servlet-name servlet-classcom.makmal.wireless.billing.servlet.HttpReceiver/servlet-class init-param param-nameJNDIResource/param-name param-valuejava:comp/env/jdbc/BillDB/param-value /init-param load-on-startup1/load-on-startup /servlet and the associated mapping : servlet-mapping servlet-nameHttpReceiver/servlet-name url-pattern/HttpReceiver/*/url-pattern /servlet-mapping So for me if I need to access my servlet I just do a http://localhost/smsbill/HttpReceiver and off I go. If you use the invoker then it is http://localhost/smsbill/servlet/HttpReceiver. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FreeBSD 4.7 mod_jk2 apache 2
I could not find much documentation on getting mod_jk2 to compile, configure/install on freebsd4.7 with apache2, so I put together this page. I hope it can save you some time. If you see a problem or a better way to get it done, please post here! http://www.thinlizard.com/lizard/modjk2.html __ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Application restart causes IOException when accessing properties
Hi, while developing an application I frequently copy files into the webapps directory including some jar files in WEB-INF/lib, causing a restart of the application. However, after a restart, I frequently observe IOExceptions when accessing a property file, which is located in one of the Jar files. The code in question looks as follows: URL url = classLoader.getResource(pName); if (url == null) { return null; } Properties properties = new Properties(); properties.load(url.openStream()); The IOException occurs within url.openStream(). Having obtained the URL in this way, I can think of no reason why it should fail. Any explanations? Regards, Jochen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configuration of tomcat
Could you please help me with the following problem. I have installed the JDK and tomcat successfully on my PC. I am now ready to develop my own web application using JSP. I have admin rights on the PC. How do I set the context so that when I sdave my JSP files on my hard dsik, tomcat will know where they are? Regards, Eamonn ---Legal Disclaimer--- The above electronic mail transmission is confidential and intended only for the person to whom it is addressed. Its contents may be protected by legal and/or professional privilege. Should it be received by you in error please contact the sender at the above quoted email address. Any unauthorised form of reproduction of this message is strictly prohibited. The Institute does not guarantee the security of any information electronically transmitted and is not liable if the information contained in this communication is not a proper and complete record of the message as transmitted by the sender nor for any delay in its receipt. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat on Win XP
An observation that may be of relevance here is that the example Servlets are working fine. Problem only apparent when attempting to view a JSP - like the default Tomcat page. Any clues anyone? Thanks, Chris. - Original Message - From: Chris Dodunski [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 14, 2003 10:53 PM Subject: Running Tomcat on Win XP Hi all, I was successful in installing and running Tomcat on our Linux web server. Today I downloaded the Windows version of Tomcat for my PC. Having installed j2sdk1.4.1_02 and j3sdkee1.3.1, set environment variables JAVA_HOME and J2EE_HOME, I then installed Tomcat 4.1.18. However, upon starting Tomcat, I get the following error when directing my browser to http://localhost:8080... (Please, what else needs doing?) HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2 93) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4 74) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1 84) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:530) at java.lang.Thread.run(Thread.java:536) Apache Tomcat/4.1.18 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Model View Controller with JSP
hi list, i am trying to figure out a way to use the model-view-controller paradigm to dynamicaly reload a jsp page when the underlying object has been changed by another user. i would like to achive this without having to use a separate servlet however... any ideas, tips or links would be very much appreciated regards jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Do you run Tomcat with SSL?
On Thu, 13 Mar 2003 19:51:57 -0800 (PST) Mark Liu [EMAIL PROTECTED] wrote: I know you guys have your great strategies in balancing Apache and Tomcat. But, my project isn't really so picky about efficiency, so I simply run Tomcat with SSL all the time. It simplifies my project a little bit. But then I do need to be able to run Tomcat SSL with the certificated generated by my little Java program. Why don't you use the SSL HOwto in tomcat?. I'am not sure on windows but on linux it work fine with SSL on the 8443 port Actually my own problem is to use SSL only in realm login page but it's visibly difficult. Goodbye. ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Do you run Tomcat with SSL?
I can confirm that it works. I am using tomcat 4.1.12. The only point I have not solved so far is how to get access to the client certificate in my servlet or JSP. I would like to do programmatic security, i.e. store users in a database and verify the authenticated user in a JSP or servlet. Does anybody know if this is possible at all? - Josef Templ - Original Message - From: Gabriel Santonja [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, March 14, 2003 11:56 AM Subject: Re: Do you run Tomcat with SSL? On Thu, 13 Mar 2003 19:51:57 -0800 (PST) Mark Liu [EMAIL PROTECTED] wrote: I know you guys have your great strategies in balancing Apache and Tomcat. But, my project isn't really so picky about efficiency, so I simply run Tomcat with SSL all the time. It simplifies my project a little bit. But then I do need to be able to run Tomcat SSL with the certificated generated by my little Java program. Why don't you use the SSL HOwto in tomcat?. I'am not sure on windows but on linux it work fine with SSL on the 8443 port Actually my own problem is to use SSL only in realm login page but it's visibly difficult. Goodbye. ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuration of tomcat
I do not know exactly what you mean. Your webapps must be under webapps. Build a new directory called for example. myapp. tomcat\webapps\myapp, myjsp. By accessing the server e.g http://localhost:8080/myapp/myjsp it should work. Hope this helps. Otherwise give me more details. Gustavo. *** Gustavo Cebrian Analyst/Programmer Want to improve the ROI on your EAI project? Download RV Tester and reduce your development and testing timescales by as much as 50%. http://www.greenhatconsulting.com/rvtester Green Hat Consulting Ltd. 107 Fleet Street, London EC4A 2AB DDI +44 (0)20 7936 9495 Mobile +44 (0)7788 922291 http://www.greenhatconsulting.com [EMAIL PROTECTED] *** -Original Message- From: Eamonn Walsh [mailto:[EMAIL PROTECTED] Sent: 14 March 2003 18:53 To: [EMAIL PROTECTED] Subject: Configuration of tomcat Could you please help me with the following problem. I have installed the JDK and tomcat successfully on my PC. I am now ready to develop my own web application using JSP. I have admin rights on the PC. How do I set the context so that when I sdave my JSP files on my hard dsik, tomcat will know where they are? Regards, Eamonn ---Legal Disclaimer--- The above electronic mail transmission is confidential and intended only for the person to whom it is addressed. Its contents may be protected by legal and/or professional privilege. Should it be received by you in error please contact the sender at the above quoted email address. Any unauthorised form of reproduction of this message is strictly prohibited. The Institute does not guarantee the security of any information electronically transmitted and is not liable if the information contained in this communication is not a proper and complete record of the message as transmitted by the sender nor for any delay in its receipt. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Loading dll for servlets
Hi, If you want to hold the loaded dll permanently then you can load in a static class keep it in context and use the same for all the users. If they need only for the User Session, then better to load in login and unload on session out. Hope it may be one useful thought.. Regards, Pratt. - Original Message - From: Bjoern Abt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, March 14, 2003 3:09 PM Subject: Re: Loading dll for servlets Hi Can you eloborate to load the dll in tomcat server?What is the functionality required ? I need to access the dll's entrypoints from a few servlets. And I don't want to Load the dll to RAM and unload it in every servlet. Can detail us about overhead of loading and unloading dll in servlets? Hmm, about 5 Seconds in every servlet. I use the runtime.cobload and runtime.cobcancel calls to load. Greets Björn Abt www.inode.ch - 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: Running Tomcat on Win XP
This is a wild stab in the dark but here goes. How much RAM have you got in your XP box? Is the compilation of the jsp/jsps by ant running out of memory? (I think the compilation is out-of-process, but i may be wrong.) If you think you have enough memory then play around with the -Xms and -Xmx settings for the jvm tomcat is running in. You can do this by setting either JAVA_OPTS or CATALINA_OPTS environment variables. BTW, our production system is linux but our developments machines are a mixture of linux, windows 2000 and XP. HTH, Jon Chris Dodunski wrote: An observation that may be of relevance here is that the example Servlets are working fine. Problem only apparent when attempting to view a JSP - like the default Tomcat page. Any clues anyone? Thanks, Chris. - Original Message - From: Chris Dodunski [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 14, 2003 10:53 PM Subject: Running Tomcat on Win XP Hi all, I was successful in installing and running Tomcat on our Linux web server. Today I downloaded the Windows version of Tomcat for my PC. Having installed j2sdk1.4.1_02 and j3sdkee1.3.1, set environment variables JAVA_HOME and J2EE_HOME, I then installed Tomcat 4.1.18. However, upon starting Tomcat, I get the following error when directing my browser to http://localhost:8080... (Please, what else needs doing?) HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2 93) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4 74) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1 84) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:530)
RE: Do you run Tomcat with SSL?
You can write a class that implements the X509TrustManager interface. Then initialize your SSLContext with this TrustManager. Get a SocketFactory for your SSLContext. Finally, set this as the default SocketFactory for all HttpsUrlConnections. The code in your checkClientTrusted method will execute every time someone tries to make a connection via HTTPS. This method takes an array of X509Certificates as a parameter (the whole certificate chain, not just the supplied client certificate) HTH Andy -Original Message- From: Josef Templ [mailto:[EMAIL PROTECTED] Sent: 14 March 2003 11:10 To: Tomcat Users List Subject: Re: Do you run Tomcat with SSL? I can confirm that it works. I am using tomcat 4.1.12. The only point I have not solved so far is how to get access to the client certificate in my servlet or JSP. I would like to do programmatic security, i.e. store users in a database and verify the authenticated user in a JSP or servlet. Does anybody know if this is possible at all? - Josef Templ - Original Message - From: Gabriel Santonja [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, March 14, 2003 11:56 AM Subject: Re: Do you run Tomcat with SSL? On Thu, 13 Mar 2003 19:51:57 -0800 (PST) Mark Liu [EMAIL PROTECTED] wrote: I know you guys have your great strategies in balancing Apache and Tomcat. But, my project isn't really so picky about efficiency, so I simply run Tomcat with SSL all the time. It simplifies my project a little bit. But then I do need to be able to run Tomcat SSL with the certificated generated by my little Java program. Why don't you use the SSL HOwto in tomcat?. I'am not sure on windows but on linux it work fine with SSL on the 8443 port Actually my own problem is to use SSL only in realm login page but it's visibly difficult. Goodbye. ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache won't start
Hi all, I'm stuck with the following problem: I'm trying to connect Apache to tomcat using mod_jk, but everytime I try to start apache after having launched tomcat it gives me a the requested operation failed. I followed the instructions given on http://www.thethirdbridge.com/doItYourself/runningTomcat4BehindApache2.html I'm using: Apache 2.0.44, Apache Tomcat 4.1.18, mod_jk-2.0.43.dll, Windows 2000 SP3 I'm not having any problem to make them work on a standalone basis. Do you guys have any suggestions? Any hints, guides or alternatives? note: I'm new at this. Thanks in advance, Gregory Vandenbroucke - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache won't start
did you do the AddModule -Original Message- From: Gregory Vandenbroucke [mailto:[EMAIL PROTECTED] Sent: 14 March 2003 11:32 To: '[EMAIL PROTECTED]' Subject: Apache won't start Hi all, I'm stuck with the following problem: I'm trying to connect Apache to tomcat using mod_jk, but everytime I try to start apache after having launched tomcat it gives me a the requested operation failed. I followed the instructions given on http://www.thethirdbridge.com/doItYourself/runningTomcat4BehindApache2.html I'm using: Apache 2.0.44, Apache Tomcat 4.1.18, mod_jk-2.0.43.dll, Windows 2000 SP3 I'm not having any problem to make them work on a standalone basis. Do you guys have any suggestions? Any hints, guides or alternatives? note: I'm new at this. Thanks in advance, Gregory Vandenbroucke - 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: Running Tomcat on Win XP
Thank you Jon for being THE one to reply. Actually, my problem was due to a silly mistake on my part. Instead of defining JAVA_HOME=C:\j2sdk1.4.1_02, I set JAVA_HOME=C:\j2sdk1.4.1_02\bin. Resetting it correctly, even followed by a PC reboot, didn't correct the situation. I had to uninstall and reinstall Tomcat before http://localhost:8080 successfully displayed Tomcat's index.jsp. Thanks again. Chris. - Original Message - From: Jon Wingfield [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, March 15, 2003 12:25 AM Subject: Re: Running Tomcat on Win XP This is a wild stab in the dark but here goes. How much RAM have you got in your XP box? Is the compilation of the jsp/jsps by ant running out of memory? (I think the compilation is out-of-process, but i may be wrong.) If you think you have enough memory then play around with the -Xms and -Xmx settings for the jvm tomcat is running in. You can do this by setting either JAVA_OPTS or CATALINA_OPTS environment variables. BTW, our production system is linux but our developments machines are a mixture of linux, windows 2000 and XP. HTH, Jon Chris Dodunski wrote: An observation that may be of relevance here is that the example Servlets are working fine. Problem only apparent when attempting to view a JSP - like the default Tomcat page. Any clues anyone? Thanks, Chris. - Original Message - From: Chris Dodunski [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 14, 2003 10:53 PM Subject: Running Tomcat on Win XP Hi all, I was successful in installing and running Tomcat on our Linux web server. Today I downloaded the Windows version of Tomcat for my PC. Having installed j2sdk1.4.1_02 and j3sdkee1.3.1, set environment variables JAVA_HOME and J2EE_HOME, I then installed Tomcat 4.1.18. However, upon starting Tomcat, I get the following error when directing my browser to http://localhost:8080... (Please, what else needs doing?) HTTP Status 500 - --- - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandl e r.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java: 2 93) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java: 4 74) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: 1 84) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio n FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC h ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j a va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j a va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:18 0 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve . java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:17 2 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
RE: Can Tomcat 4 be configured to listen on two ports simultaneously
Thanks for the reply. I checked port 80 and it was bound by some other process so it was not allowing the connection from the Tomcat Connector. So I decided to re-start Apache and forward the calls to port 80 (for a particular app context) on to Tomcat listening on port 8080 and it works fine. -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: 13 March 2003 17:42 To: 'Tomcat Users List' Subject: RE: Can Tomcat 4 be configured to listen on two ports simultaneously Tomcat can listen as many port as you created conectors to do so. Take a look at server.xml i think it´s a good start. -- De: Marina McGale[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: quinta-feira, 13 de março de 2003 14:42 Para: [EMAIL PROTECTED] Assunto: Can Tomcat 4 be configured to listen on two ports simultaneously Hi. I am using Tomcat 4.1.12 and would like it to listen on both port 80 and 8080 because I have already sent out URLs with 8080 in them but want to remove the 8080 for the future (and still want everyone to be able to access my apps). I had tried adding another Connector for port 80 for Tomcat running stand-alone in the server.xml file (so there are two Connectors - one each for port 80 and 8080) and it worked on my localhost (Windows) machine but not when I tried the same thing on Redhat 8. I do not have Apache running so there is no conflict between it and Tomcat trying to listen on the same port. Thanks for any help. M. - 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]
Apache - Tomcat connectors
I'm honestly astounded at the number of people struggling with successfully installing and configuring Apache - Tomcat connectors. An extensive search of apache.org (and other sites) reveals why. Documentation is vague, fragmented, and quite frankly confusing. It's frustrating and it's time wasting. Time I say for some clear, concise, blow by blow documentation on performing what should be a relatively simple procedure. Do you agree? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat not sending session cookies to IE
Could it be this? http://marc.theaimsgroup.com/?l=tomcat-devm=104247780113629w= -Tim Ian Bruseker wrote: Greetings, list. I'm having IE issues. :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Loading dll for servlets
Hi Pratt, Hi, If you want to hold the loaded dll permanently then you can load in a static class keep it in context and use the same for all the users. If they need only for the User Session, then better to load in login and unload on session out. That seems to be exactly what I wanted! Thank you for your help! I think now i have the primer from where I can start on my own! Greets Björn Hope it may be one useful thought.. Regards, Pratt. - Original Message - From: Bjoern Abt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, March 14, 2003 3:09 PM Subject: Re: Loading dll for servlets Hi Can you eloborate to load the dll in tomcat server?What is the functionality required ? I need to access the dll's entrypoints from a few servlets. And I don't want to Load the dll to RAM and unload it in every servlet. Can detail us about overhead of loading and unloading dll in servlets? Hmm, about 5 Seconds in every servlet. I use the runtime.cobload and runtime.cobcancel calls to load. Greets Björn Abt www.inode.ch - 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: Apache - Tomcat connectors
Hi Why do so many other sites need to do this. Should the definitive source not be the Tomcat site? If people have time they should submit a working example. It would be nice if there was an official source for this type of information. It sure is a waste of time roaming the web for basic documentation when it should be readily available. I haven't much experience of all areas of Tomcat but I'd defiantly submit a HOW-TO for parts I do know. All it need is for a webmaster to look after the submissions. They could be easily then added to the existing tomcat site. Donie -Original Message- From: Chris Dodunski [mailto:[EMAIL PROTECTED] Sent: 14 March 2003 12:07 To: Tomcat Users List Subject: Apache - Tomcat connectors I'm honestly astounded at the number of people struggling with successfully installing and configuring Apache - Tomcat connectors. An extensive search of apache.org (and other sites) reveals why. Documentation is vague, fragmented, and quite frankly confusing. It's frustrating and it's time wasting. Time I say for some clear, concise, blow by blow documentation on performing what should be a relatively simple procedure. Do you agree? - 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: Do you run Tomcat with SSL?
Hmm, I actually don't want to check the trust chain myself. There is no need to do anything special. All I want is to access the content of the client certificate, which should be checkd as usual. Isn't this a very common situation for a web application, which uses certificates as a straight forward replacemnet for passwords? - Josef - Original Message - From: Bodycombe, Andrew [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, March 14, 2003 12:19 PM Subject: RE: Do you run Tomcat with SSL? You can write a class that implements the X509TrustManager interface. Then initialize your SSLContext with this TrustManager. Get a SocketFactory for your SSLContext. Finally, set this as the default SocketFactory for all HttpsUrlConnections. The code in your checkClientTrusted method will execute every time someone tries to make a connection via HTTPS. This method takes an array of X509Certificates as a parameter (the whole certificate chain, not just the supplied client certificate) HTH Andy -Original Message- From: Josef Templ [mailto:[EMAIL PROTECTED] Sent: 14 March 2003 11:10 To: Tomcat Users List Subject: Re: Do you run Tomcat with SSL? I can confirm that it works. I am using tomcat 4.1.12. The only point I have not solved so far is how to get access to the client certificate in my servlet or JSP. I would like to do programmatic security, i.e. store users in a database and verify the authenticated user in a JSP or servlet. Does anybody know if this is possible at all? - Josef Templ - Original Message - From: Gabriel Santonja [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, March 14, 2003 11:56 AM Subject: Re: Do you run Tomcat with SSL? On Thu, 13 Mar 2003 19:51:57 -0800 (PST) Mark Liu [EMAIL PROTECTED] wrote: I know you guys have your great strategies in balancing Apache and Tomcat. But, my project isn't really so picky about efficiency, so I simply run Tomcat with SSL all the time. It simplifies my project a little bit. But then I do need to be able to run Tomcat SSL with the certificated generated by my little Java program. Why don't you use the SSL HOwto in tomcat?. I'am not sure on windows but on linux it work fine with SSL on the 8443 port Actually my own problem is to use SSL only in realm login page but it's visibly difficult. Goodbye. ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Apache - Tomcat connectors
I'm sure the tomcat developers would be delighted if you provided this documentation... -Original Message- From: Chris Dodunski [mailto:[EMAIL PROTECTED] Sent: 14 March 2003 12:07 To: Tomcat Users List Subject: Apache - Tomcat connectors I'm honestly astounded at the number of people struggling with successfully installing and configuring Apache - Tomcat connectors. An extensive search of apache.org (and other sites) reveals why. Documentation is vague, fragmented, and quite frankly confusing. It's frustrating and it's time wasting. Time I say for some clear, concise, blow by blow documentation on performing what should be a relatively simple procedure. Do you agree? - 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: broken links
If you are running on Linux, I believe the paths are case-sensistive... Are you typing it EXACTLY the same? Mark - Original Message - From: Bharadwaj [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 13, 2003 2:00 PM Subject: broken links sir, good day. we have a problem. we are using tomcat 3.2.4 we always get a problem of 404 file not found exception when the file does exists in the required path. we had tried clearing the cache, but still this problem continues. i would appreciate and error from you on this regard. thanking you, regards, raja bharadwaj m.s. - 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]
JMX doco??
Are the JMX capabilities of Tomcat documented anywhere? Sorry if I'm missing the obvious. What I need is really some sound advice on how to introduce Tomcat in a shop where it becomes just another blip on the screen (i.e. the management console). Hakan __ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Model View Controller with JSP
Hi Jan, I think you are out of luck with a straight JSP unless you incorporate Applets to stream the data to. When you request a JSP page, it is dynamically generated from the server, but it still follows the HTTP method of a simple request, which returns the page and the 'connection' is terminated. I would recommend either Java Applets, or doing your app in Macromedia Flash and taking advantage of the XMLSockets talking to a servlet. This method would 'push' the data out to the clients as soon as it is updated. Or, if you can 'poll' the server for updates (ie it doesn't have to be updated immediately), you can simply have your applet or Flash app occasionally request a certain JSP page for new data. Mark - Original Message - From: Jan Behrens [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, March 14, 2003 5:48 AM Subject: Model View Controller with JSP hi list, i am trying to figure out a way to use the model-view-controller paradigm to dynamicaly reload a jsp page when the underlying object has been changed by another user. i would like to achive this without having to use a separate servlet however... any ideas, tips or links would be very much appreciated regards jan - 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]
Tomcat/Apache 2-way SSL authentication
Hey All, I am currently building a PKI bolt-on for an exisiting insecure web application and have run into trouble at the last hurdle. I have written a CA using BouncyCastle's library with JCE which will be used to create certificates to gain entry to certain restricted areas. I am using Apache 2.0.44 (Slackware 8) mod_ssl 2.0.44 (OpenSSL 0.9.6d) mod_jk 1.2.2 with Tomcat 4.1.18, and JDK 1.4.1 When I try and access a restricted area, I am prevented, as expected. I then build my self a certificate and attempt to access the same area and I am let in with the usual warnings about self-signed certificates. My problem occurs when I set SSLOptions +StdEnvVars +ExportCertData in httpd.conf. I do this so that I can access the certificate in a servlet that sits behind in Tomcat which needs to do some further processing with the certificate. Catalina throws an exception: Mar 14, 2003 12:40:58 PM org.apache.jk.server.JkCoyoteHandler action SEVERE: Certificate convertion failed java.security.cert.CertificateException: Unable to initialize, java.io.IOException: DerInputStream.getLength(): lengthTag=62, too big. at sun.security.x509.X509CertImpl.init(X509CertImpl.java:289) at sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:94) at java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:389) at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:395) at org.apache.coyote.Response.action(Response.java:222) at org.apache.coyote.tomcat4.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:310) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:221) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:632) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:590) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:707) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530) at java.lang.Thread.run(Thread.java:536) Caused by: java.io.IOException: DerInputStream.getLength(): lengthTag=62, too big. at sun.security.util.DerInputStream.getLength(DerInputStream.java:502) at sun.security.util.DerInputStream.getLength(DerInputStream.java:476) at sun.security.util.DerValue.init(DerValue.java:233) at sun.security.util.DerInputStream.getDerValue(DerInputStream.java:358) at sun.security.x509.X509CertImpl.parse(X509CertImpl.java:1608) at sun.security.x509.X509CertImpl.init(X509CertImpl.java:286) ... 13 more Apache seems OK (no error in error_log or catalina_log) and I seem to go through the authentication process OK. I have no idea what this error means, since my only theory that the browser cert is invalid cannot be true if mod_ssl accepts it... or can it? Any help would be appreciated - thanks for your patience. Ramsay A R K E M E D I A T E C H N O L O G I E S L T D VIEW POINTBASING VIEWBASINGSTOKEHAMPSHIRERG21 4HG http://www.arkemedia.com mailto:[EMAIL PROTECTED] Tel : +44 1256 869 200 Fax : +44 1256 329 119 The information in this e-mail and in any attachments is confidential and is intended solely for the attention and use of the named addressee(s). If you are not the intended recipient, or a person responsible for passing it on to the intended recipient, you are not authorised to hold a copy of this information and you must therefore not disclose, copy, distribute, or retain this message or any part of it. MAILTO:[EMAIL PROTECTED]
RE: javax.servlet.ServletException: ClassNotFoundException: org.postgresql.Driver
The key word is link - place the file physically in the common/lib directory. HTH -Original Message- From: Jason S. Friedman [mailto:[EMAIL PROTECTED] Sent: 14 March 2003 06:17 To: [EMAIL PROTECTED] Subject: javax.servlet.ServletException: ClassNotFoundException: org.postgresql.Driver I searched the list archives and the web and, while I found folks with a similar issue, none of those posts had an answer that worked for me. The error message is: javax.servlet.ServletException: ClassNotFoundException: org.postgresql.Driver I'm running RH8.0, Apache Tomcat/4.1.18-LE-jdk14, and Postgresql7.3. The file compiles and runs without error from my IDE (netbeans) and from the command line and I can get other servlets to run. I've tried putting a link to /usr/share/pgsql/jdbc7.2dev-1.2.jar into the directory containing my class file and also in the following directories: ./server/webapps/admin/WEB-INF/lib/ ./server/lib/ ./common/lib/ ./shared/lib/ ./common/classes I've reloaded my webapp with each change. 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]
RE: First simple questions
If you build jk2, you will find a workers2.properties in jk/build dir/sub-dir. I remember it does the load balancing using lb. -Original Message- From: LAGALISSE Eric [mailto:[EMAIL PROTECTED] Sent: March 14, 2003 5:18 AM To: [EMAIL PROTECTED] Subject: First simple questions Hi, We try to configure load balancing using JK2 and our first question is about the syntax used. Should we use lb_factor OR lbfactor ? Second question : what is the range of this factor ? from 1 to ??? Thanks for your help. Eric LAGALISSE Coordinateur de production CASDEN - Banque Populaire Tel. : 01 64 80 30 35
RE : First simple questions
Thanks I found it, and i saw that we should use lb_factor Now i need to find what value should be used to load balance. For now we only noticed that the first declared worker is always the most used except if requests fail it start to ask to the second worker -Message d'origine- De : apachep2 [mailto:[EMAIL PROTECTED] Envoyé : vendredi 14 mars 2003 14:28 À : 'Tomcat Users List' Objet : RE: First simple questions If you build jk2, you will find a workers2.properties in jk/build dir/sub-dir. I remember it does the load balancing using lb. -Original Message- From: LAGALISSE Eric [mailto:[EMAIL PROTECTED] Sent: March 14, 2003 5:18 AM To: [EMAIL PROTECTED] Subject: First simple questions Hi, We try to configure load balancing using JK2 and our first question is about the syntax used. Should we use lb_factor OR lbfactor ? Second question : what is the range of this factor ? from 1 to ??? Thanks for your help. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache won't start
Hi, That doesn't work either... everything seems to be working. There's one thing though that looks a little bit strange. If I launch Tomcat (alone) and try to connect to http://localhost:8009 a Java exception is raised and caught. GRAVE: Caught exception executing [EMAIL PROTECTED], terminating thread Could this be the reason why Apache won't start? Kind regards, Gregory Vandenbroucke. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: vendredi 14 mars 2003 12:41 To: [EMAIL PROTECTED] Subject: RE: Apache won't start did you do the AddModule -Original Message- From: Gregory Vandenbroucke [mailto:[EMAIL PROTECTED] Sent: 14 March 2003 11:32 To: '[EMAIL PROTECTED]' Subject: Apache won't start Hi all, I'm stuck with the following problem: I'm trying to connect Apache to tomcat using mod_jk, but everytime I try to start apache after having launched tomcat it gives me a the requested operation failed. I followed the instructions given on http://www.thethirdbridge.com/doItYourself/runningTomcat4BehindApache2.html I'm using: Apache 2.0.44, Apache Tomcat 4.1.18, mod_jk-2.0.43.dll, Windows 2000 SP3 I'm not having any problem to make them work on a standalone basis. Do you guys have any suggestions? Any hints, guides or alternatives? note: I'm new at this. Thanks in advance, Gregory Vandenbroucke - 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: Do you run Tomcat with SSL?
With Tomcat 4.1.18 there is an (undocumented??) attribute in the request, which holds the certificate trust chain as an X509Certificate[]. request.getAttribute(javax.servlet.request.X509Certificate) I have seen exceptions under Tomcat 4.1.12 (some SSL HANDSHAKE problem) in the log, which explain why there was no such attribute in the request. - Josef - Original Message - From: Bodycombe, Andrew [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, March 14, 2003 12:19 PM Subject: RE: Do you run Tomcat with SSL? You can write a class that implements the X509TrustManager interface. Then initialize your SSLContext with this TrustManager. Get a SocketFactory for your SSLContext. Finally, set this as the default SocketFactory for all HttpsUrlConnections. The code in your checkClientTrusted method will execute every time someone tries to make a connection via HTTPS. This method takes an array of X509Certificates as a parameter (the whole certificate chain, not just the supplied client certificate) HTH Andy -Original Message- From: Josef Templ [mailto:[EMAIL PROTECTED] Sent: 14 March 2003 11:10 To: Tomcat Users List Subject: Re: Do you run Tomcat with SSL? I can confirm that it works. I am using tomcat 4.1.12. The only point I have not solved so far is how to get access to the client certificate in my servlet or JSP. I would like to do programmatic security, i.e. store users in a database and verify the authenticated user in a JSP or servlet. Does anybody know if this is possible at all? - Josef Templ - Original Message - From: Gabriel Santonja [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, March 14, 2003 11:56 AM Subject: Re: Do you run Tomcat with SSL? On Thu, 13 Mar 2003 19:51:57 -0800 (PST) Mark Liu [EMAIL PROTECTED] wrote: I know you guys have your great strategies in balancing Apache and Tomcat. But, my project isn't really so picky about efficiency, so I simply run Tomcat with SSL all the time. It simplifies my project a little bit. But then I do need to be able to run Tomcat SSL with the certificated generated by my little Java program. Why don't you use the SSL HOwto in tomcat?. I'am not sure on windows but on linux it work fine with SSL on the 8443 port Actually my own problem is to use SSL only in realm login page but it's visibly difficult. Goodbye. ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: First simple questions
Howdy, RTFM / STFW / STFA (A being archives). This has been asked and discussed several times, with completely examples available online and in the archives. John Turner's has a good how-to on this topic. Yoav Shapira Millennium ChemInformatics -Original Message- From: LAGALISSE Eric [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 5:18 AM To: [EMAIL PROTECTED] Subject: First simple questions Hi, We try to configure load balancing using JK2 and our first question is about the syntax used. Should we use lb_factor OR lbfactor ? Second question : what is the range of this factor ? from 1 to ??? Thanks for your help. Eric LAGALISSE Coordinateur de production CASDEN - Banque Populaire Tel. : 01 64 80 30 35 This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Increase heap for a specific webapplication
Howdy, If the problem is not with the heap, why the subject of this thread? ;) It sounds like something specific to your web application. I would suggest creating load tests that simulate real load, carrying them out on a dev server that's as close as configuration in possible to the production server, and profiling your application. The other person's suggestion of looking at synchronization to resources in your webapps is a good one: that's a likely culprit. Yoav Shapira Millennium ChemInformatics This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
J-T-C 4.1.18 ThreadPoolRunnable compilation error
Hi, I downloaded jakarta-tomcat-connectors-4.1.18-src.tar.gz and uncompressed the same in to /mod_jk2 directory. When I tried to run ant from the j-t-c directory, I got the following error. build-main: [echo] - Java-utils - [echo] -- puretls.present = ${puretls.present} [echo] -- jsse.present = ${jsse.present} [echo] -- commons-logging = true [echo] -- jmx = true /mod_jk2/jakarta-tomcat-connectors-4.1.18-src/lib/mx4j.jar [javac] Compiling 50 source files to /mod_jk2/jakarta-tomcat-connectors-4.1.18-src/util/build/classes [javac] /mod_jk2/jakarta-tomcat-connectors-4.1.18-src/util/java/org/apache/tomca t/util/net/PoolTcpEndpoint.java:120: cannot resolve symbol [javac] symbol : class ThreadPoolRunnable [javac] location: class org.apache.tomcat.util.net.PoolTcpEndpoint [javac] ThreadPoolRunnable listener; .. .. .. I tried to run ant from j-t-c/util directory and got the following error. build-main: [echo] - Java-utils - [echo] -- puretls.present = ${puretls.present} [echo] -- jsse.present = ${jsse.present} [echo] -- commons-logging = true [echo] -- jmx = true /mod_jk2/jakarta-tomcat-connectors-4.1.18-src/lib/mx4j.jar [javac] Compiling 50 source files to /mod_jk2/jakarta-tomcat-connectors-4.1.18-src/util/build/classes [javac] /mod_jk2/jakarta-tomcat-connectors-4.1.18-src/util/java/org/apache/tomca t/util/net/PoolTcpEndpoint.java:120: cannot resolve symbol [javac] symbol : class ThreadPoolRunnable [javac] location: class org.apache.tomcat.util.net.PoolTcpEndpoint [javac] ThreadPoolRunnable listener; ... ... ... All errors for can no resolve symbol ThreadPoolRunnable. I am using Apache 1.3.27 and Tomcat 4.1.18 on HP-UX 11.00. Can some one let me know if I am missing some basic here. Thanks, Selva -Original Message- From: Chris Dodunski [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 4:16 AM To: Tomcat Users List Subject: RE: Java_Home Filip, this is not correct. JAVA_HOME should contain path to J2SDK, not J2EE. -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Friday, 14 March 2003 11:16 a.m. To: Tomcat Users List Subject: RE: Java_Home try to go into the directory and launch it from there set JAVA_HOME=C:\j2sdkee1.3.1 set PATH=%JAVA_HOME%\bin;%PATH% cd %CATALINA_HOME%\bin startup.bat Filip -Original Message- From: Hunter, Sandra [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 2:01 PM To: '[EMAIL PROTECTED]' Subject: Java_Home I am relatively new to Tomcat, having used it but not installed it, before. I have set my JAVA_HOME path to the folder named j2sdkee1.3.1 However this is the result I get: C:\%CATALINA_HOME%\bin\startup The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program The system cannot find the batch label specified - end Using CATALINA_BASE: C:\jakarta-tomcat-4.0.6 Using CATALINA_HOME: C:\jakarta-tomcat-4.0.6 Using CATALINA_TMPDIR: C:\jakarta-tomcat-4.0.6\temp Using JAVA_HOME: C:\j2sdkee1.3.1 The system cannot find the file -Djava.endorsed.dirs=. Any ideas are gratefully received. Sandra Patricia Hunter Systems Development and Web Design - 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: KEEP-ALIVE
Er.. Why is this attribute nowhere in the TC docs?? -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: 14 March 2003 07:51 To: [EMAIL PROTECTED] Subject: Re: KEEP-ALIVE If you are using the CoyoteConnector (the default for 4.1.x), then set the maxKeepAliveRequests=1 attribute on the Connector. This will effectively disable Keep-Alives. Carlos Manuel Belo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] We are using TomCat without Apache and using http 1.1 I would like to disconnect keep alive to make a workaround. I cannot find a way to do this. Can you please help me? Best Regards Carlos Belo - 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: Apache - Tomcat connectors
I submitted my write-up to the Linux StepxStep (http://www.linux-sxs.org) , and it can be found under Internet - Serving Apache Tomcat Java Server. This may sound really egotistical or something, but I would be very happy to include any articles or write-ups here (under your own name, of course). Or you could send them to the Linux StepxStep administrators directly (see the website for details). Regards, pascal chong Bodycombe, Andrew wrote: I'm sure the tomcat developers would be delighted if you provided this documentation... -Original Message- From: Chris Dodunski [mailto:[EMAIL PROTECTED] Sent: 14 March 2003 12:07 To: Tomcat Users List Subject: Apache - Tomcat connectors I'm honestly astounded at the number of people struggling with successfully installing and configuring Apache - Tomcat connectors. An extensive search of apache.org (and other sites) reveals why. Documentation is vague, fragmented, and quite frankly confusing. It's frustrating and it's time wasting. Time I say for some clear, concise, blow by blow documentation on performing what should be a relatively simple procedure. Do you agree? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
unable to start admin app...Can someone please respond
All, Can someone please help with running the admin application (running on solaris 2.8, tomcat4.1.18). I keep getting the following errors (truncated): 2003-03-13 09:17:18 WebappLoader[/admin]: Deploying class repositories to work directory /opt/jakarta-tomcat-4.1.18/work/Standalone/localhost/admin 2003-03-13 09:17:18 WebappLoader[/admin]: Deploy class files /WEB-INF/classes to /opt/jakarta-tomcat-4.1.18/webapps/../server/webapps/admin/WEB-INF/classes 2003-03-13 09:17:18 WebappLoader[/admin]: Deploy JAR /WEB-INF/lib/struts.jar to /opt/jakarta-tomcat-4.1.18/webapps/../server/webapps/admin/WEB-INF/lib/struts.jar 2003-03-13 09:17:19 ContextConfig[/admin] Exception processing JAR at resource path /WEB-INF/lib/struts.jar javax.servlet.ServletException: Exception processing JAR at resource path /WEB-INF/lib/struts.jar at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930) : : - Root Cause - java.io.IOException: Permission denied at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(File.java:1313) at java.io.File.createTempFile(File.java:1401) at java.io.File.createTempFile(File.java:1438) Please help. TIA __ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Browser showing the directory structure
in conf/web.xml set listings to false Charlie -Original Message- From: Sudhir Kumar [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 11:27 PM To: 'Tomcat Users List' Subject: Browser showing the directory structure Hello, When i open my jsp application in Netscape browser on a Unix machine, it is displaying the entire directory structure. How can i avoid this ? Do i have to do any configuration in server.xml ? please help .. thanks and regards sudhir - 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 hosting provider needed
Hello, Yes I have recently gone through the same exercise. There is a list at www.adrenaline.com. There appears to be a hugh variation in both prices and level of technical expertese. I emailed my requirements to a few and many were clearly just marketing oriented and tried to get me to change my requirements to suit there capabilities, etc. Based on clear and prompt responses to my questions (some dropped out after the first or second question), price and clearly demonstrated technical competence I went with qnix. I've been with them for just over a month and am still happy. Regards - Original Message - From: Turoff, Steve [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 14, 2003 4:39 AM Subject: Tomcat hosting provider needed Greetings, Can anyone recommend a good Tomcat hosting provider? I thought there was a list somewhere, but I can't seem to find it. Thanks, Steve Steven Turoff Peoples Health Network 200 W. Esplanade Ave., Suite 600 Kenner, Louisiana 70065 tel: 504.461.9800 ext. 4363 CONFIDENTIAL HEALTH INFORMATION This email message and any accompanying attachments are confidential and privileged. This information is intended solely for the addressee; access by anyone else is unauthorized. No confidentiality or privilege is waived or lost by mistransmission. If you are not the intended recipient, any forwarding, opening of attachments, disclosure, copying, distribution, or other action, is strictly prohibited. If you have received this electronic message in error, please delete it and any attachments and notify the sender at Peoples Health Network immediately. - 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: inconsistencies in Tomcat handling servlet filters...
No one has any opinions or comments on this? I can't believe no one else has run into this problem. Jake At 04:46 PM 3/13/2003 -0600, you wrote: I've mentioned this issue before regarding a GZIPFilter that wasn't working under Tomcat except for static file content (not working for JSP's and servlets). However, I didn't get much response to that and it was probably due to the complexity of the problem. Well, here is a simplied approach to the issue I am seeing vastly differing behavior for this filter depending on whether it is filtering static content or JSP's and servlets and it seems to me that this differing behavior must be a bug in Tomcat. Can someone validate whether or not this is a Tomcat bug? Here is the code in question. Note that I have some comments in the code that explain what works, what doesn't so read that to get an idea of what I am talking about. I have attached all the code in question, but this is the meat of it (based on the tutorial at http://www.orionserver.com/tutorials/filters/3.html ). public class PrePostFilter extends GenericFilter { public void doFilter(final ServletRequest request, final ServletResponse response, FilterChain chain) throws IOException, ServletException { PrintWriter out = response.getWriter(); //works as expected for static html, but not for JSP's where original content is discarded //GenericResponseWrapper wrapper = new GenericResponseWrapper((HttpServletResponse) response); //works as expected for both static html and JSP's CharResponseWrapper wrapper = new CharResponseWrapper((HttpServletResponse) response); chain.doFilter(request, wrapper); String responseString = wrapper.toString(); responseString = HRPREHR + responseString + HRPOSTHR; response.setContentLength(responseString.length()); out.write(responseString); /* //works as expected for JSP's, but not static html where everything but the POST data is written out.write(HRPREHR); CharResponseWrapper wrapper = new CharResponseWrapper((HttpServletResponse) response); chain.doFilter(request, wrapper); out.write(wrapper.toString()); out.write(HRPOSTHR); */ out.flush(); out.close(); } } Questions to answer... 1. Why don't all 3 examples produce exactly the same output? It seems to me that they should. 2. Why does using a response wrapper that uses a ByteArrayOutputStream (as in GenericResponseWrapper) not work with JSP's? The original data is always unavailable. 3. Why do I have to use a PrintWriter when filtering JSP's? Why can't I use an OutputStream? Using an OutputStream gets me the same results as #2. So, is there anything wrong with my code or is something just goofy in Tomcat? Jake - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: inconsistencies in Tomcat handling servlet filters...
Have you tried comparing the behavior of your filter to the one provided with TC? $CATALINA_HOME/webapps/examples/WEB-INF/classes/compressionFilters Quoting Jacob Kjome [EMAIL PROTECTED]: No one has any opinions or comments on this? I can't believe no one else has run into this problem. Jake At 04:46 PM 3/13/2003 -0600, you wrote: I've mentioned this issue before regarding a GZIPFilter that wasn't working under Tomcat except for static file content (not working for JSP's and servlets). However, I didn't get much response to that and it was probably due to the complexity of the problem. Well, here is a simplied approach to the issue I am seeing vastly differing behavior for this filter depending on whether it is filtering static content or JSP's and servlets and it seems to me that this differing behavior must be a bug in Tomcat. Can someone validate whether or not this is a Tomcat bug? Here is the code in question. Note that I have some comments in the code that explain what works, what doesn't so read that to get an idea of what I am talking about. I have attached all the code in question, but this is the meat of it (based on the tutorial at http://www.orionserver.com/tutorials/filters/3.html ). public class PrePostFilter extends GenericFilter { public void doFilter(final ServletRequest request, final ServletResponse response, FilterChain chain) throws IOException, ServletException { PrintWriter out = response.getWriter(); //works as expected for static html, but not for JSP's where original content is discarded //GenericResponseWrapper wrapper = new GenericResponseWrapper((HttpServletResponse) response); //works as expected for both static html and JSP's CharResponseWrapper wrapper = new CharResponseWrapper((HttpServletResponse) response); chain.doFilter(request, wrapper); String responseString = wrapper.toString(); responseString = HRPREHR + responseString + HRPOSTHR; response.setContentLength(responseString.length()); out.write(responseString); /* //works as expected for JSP's, but not static html where everything but the POST data is written out.write(HRPREHR); CharResponseWrapper wrapper = new CharResponseWrapper((HttpServletResponse) response); chain.doFilter(request, wrapper); out.write(wrapper.toString()); out.write(HRPOSTHR); */ out.flush(); out.close(); } } Questions to answer... 1. Why don't all 3 examples produce exactly the same output? It seems to me that they should. 2. Why does using a response wrapper that uses a ByteArrayOutputStream (as in GenericResponseWrapper) not work with JSP's? The original data is always unavailable. 3. Why do I have to use a PrintWriter when filtering JSP's? Why can't I use an OutputStream? Using an OutputStream gets me the same results as #2. So, is there anything wrong with my code or is something just goofy in Tomcat? Jake - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache - Tomcat connectors
Hi Chris, I had the same problems, but I received to help from here, and now I can help you, the best page for it was www.johnturner.com/howto/winxp-howto.html It is excellent! Regards, Victor Gonzalez -Original Message- From: Chris Dodunski [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 6:07 AM To: Tomcat Users List Subject: Apache - Tomcat connectors I'm honestly astounded at the number of people struggling with successfully installing and configuring Apache - Tomcat connectors. An extensive search of apache.org (and other sites) reveals why. Documentation is vague, fragmented, and quite frankly confusing. It's frustrating and it's time wasting. Time I say for some clear, concise, blow by blow documentation on performing what should be a relatively simple procedure. Do you agree? - 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: Configuration of tomcat
On Friday 14 March 2003 01:53 pm, Eamonn Walsh wrote: Could you please help me with the following problem. I have installed the JDK and tomcat successfully on my PC. I am now ready to develop my own web application using JSP. I have admin rights on the PC. How do I set the context so that when I sdave my JSP files on my hard dsik, tomcat will know where they are? Regards, Eamonn I understand you want to save your webapp files in a non-default location. You can set your own docBase for any context in server.xml or a separate context conf file. Go to the Tomcat doc page at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ and find the Server Configuration Reference link. After following it, go to the Context page (the link is under Containers on the left hand side) and find the docBase paragraph under Attributes. It won't hurt reading the whole page though. Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: inconsistencies in Tomcat handling servlet filters...
Howdy, I saw the original message but never got around to commenting on it, as: - I wrote a compression filter from scratch just to try it out, right when servler 2.3 came out, and tomcat 4.0.4 had no problems with that filter, all worked fine. I tried this with JSPs, servlets, and static content. - I've been using the tomcat supplied compression filter since 4.1.10 without problems. I only use this one for servlets, as I don't have much JSP and all my static content is very small (tiny images). That said, if you really like your own filter, perhaps you can post the source for the two different response wrappers, and we can start there in looking for bugs? Yoav Shapira Millennium ChemInformatics -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 9:27 AM To: Tomcat Users List Subject: Re: inconsistencies in Tomcat handling servlet filters... No one has any opinions or comments on this? I can't believe no one else has run into this problem. Jake At 04:46 PM 3/13/2003 -0600, you wrote: I've mentioned this issue before regarding a GZIPFilter that wasn't working under Tomcat except for static file content (not working for JSP's and servlets). However, I didn't get much response to that and it was probably due to the complexity of the problem. Well, here is a simplied approach to the issue I am seeing vastly differing behavior for this filter depending on whether it is filtering static content or JSP's and servlets and it seems to me that this differing behavior must be a bug in Tomcat. Can someone validate whether or not this is a Tomcat bug? Here is the code in question. Note that I have some comments in the code that explain what works, what doesn't so read that to get an idea of what I am talking about. I have attached all the code in question, but this is the meat of it (based on the tutorial at http://www.orionserver.com/tutorials/filters/3.html ). public class PrePostFilter extends GenericFilter { public void doFilter(final ServletRequest request, final ServletResponse response, FilterChain chain) throws IOException, ServletException { PrintWriter out = response.getWriter(); //works as expected for static html, but not for JSP's where original content is discarded //GenericResponseWrapper wrapper = new GenericResponseWrapper((HttpServletResponse) response); //works as expected for both static html and JSP's CharResponseWrapper wrapper = new CharResponseWrapper((HttpServletResponse) response); chain.doFilter(request, wrapper); String responseString = wrapper.toString(); responseString = HRPREHR + responseString + HRPOSTHR; response.setContentLength(responseString.length()); out.write(responseString); /* //works as expected for JSP's, but not static html where everything but the POST data is written out.write(HRPREHR); CharResponseWrapper wrapper = new CharResponseWrapper((HttpServletResponse) response); chain.doFilter(request, wrapper); out.write(wrapper.toString()); out.write(HRPOSTHR); */ out.flush(); out.close(); } } Questions to answer... 1. Why don't all 3 examples produce exactly the same output? It seems to me that they should. 2. Why does using a response wrapper that uses a ByteArrayOutputStream (as in GenericResponseWrapper) not work with JSP's? The original data is always unavailable. 3. Why do I have to use a PrintWriter when filtering JSP's? Why can't I use an OutputStream? Using an OutputStream gets me the same results as #2. So, is there anything wrong with my code or is something just goofy in Tomcat? Jake - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[4.1.18] Startup Servlets Load Twice???
Hi All, Can anyone tell me what would cause my servlets that i have set to load a startup would be executing twice. If i have a simple servlet that spits out a line of text ot the log, when i start tomcat (4.1.18) i see the text gets written out twice. This same servlet did not do it in earlier versions of tomcat. Anyone help please. Thanks for your time, Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot create resource instance
Yes, I am doing the lookup exactly the same way. I should not have to modify the catalina.policy file for security, correct? -Original Message- From: Ferrer, J.C. [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 7:18 PM To: 'Tomcat Users List' Subject: RE: Cannot create resource instance I'm using v4.1.21 and instead of using user as the parameter name, I'm using username. Are you doing the resource lookup using java:comp/env/jdbc/prod_d ? -Original Message- From: Appel, Jeremy D [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 1:29 PM To: '[EMAIL PROTECTED]' Subject: Cannot create resource instance All, I am running Tomcat 4.0.4 and I am trying to use Jakarta DBCP. I have download the necessary jar files and placed them in %CATALINA_HOME%/common/lib. I am receiving the following error: javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory. java) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) When I list bindings on the resource below, It appears that the JNDI resource exists but when I try to look it up I receive the error above. Any thoughts or advice? Snapshot from web.xml: resource-ref res-ref-namejdbc/prod_d/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Snapshot from server.xml: Resource name=jdbc/prod_d auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/prod_d parameter nameuser/name valuejappel/value /parameter parameter namepassword/name valuejappel/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@hpcat159.qwest.net:1521:prod_d/value /parameter parameter namefactory/name valueora.apache.commons.dbcp.BasicDataSourceFactory/value /parameter /ResourceParams Thanks, Jeremy Appel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] CONFIDENTIALITY NOTICE: The information in this e-mail is privileged and confidential. Any use, copying or dissemination of any portion of this e-mail by or to anyone other than the intended recipient(s) is unauthorized. If you have received this e-mail in error, please reply to sender and delete it from your system immediately. - 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: unable to start admin app...Can someone please respond
On Friday 14 March 2003 09:16 am, krip pane wrote: All, Can someone please help with running the admin application (running on solaris 2.8, tomcat4.1.18). I keep getting the following errors (truncated): 2003-03-13 09:17:18 WebappLoader[/admin]: Deploying class repositories to work directory /opt/jakarta-tomcat-4.1.18/work/Standalone/localhost/admin 2003-03-13 09:17:18 WebappLoader[/admin]: Deploy class files /WEB-INF/classes to /opt/jakarta-tomcat-4.1.18/webapps/../server/webapps/admin/WEB-INF/classes 2003-03-13 09:17:18 WebappLoader[/admin]: Deploy JAR /WEB-INF/lib/struts.jar to /opt/jakarta-tomcat-4.1.18/webapps/../server/webapps/admin/WEB-INF/lib/stru ts.jar 2003-03-13 09:17:19 ContextConfig[/admin] Exception processing JAR at resource path /WEB-INF/lib/struts.jar javax.servlet.ServletException: Exception processing JAR at resource path /WEB-INF/lib/struts.jar at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930 ) - Root Cause - java.io.IOException: Permission denied at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(File.java:1313) at java.io.File.createTempFile(File.java:1401) at java.io.File.createTempFile(File.java:1438) Please help. TIA Make sure the user that runs Tomcat owns CATALINA_HOME all the way down or has a write permission for it. If it's a real pain, do this (dangerous because you are making CATALINA_HOME writable for everyone): su chmod a+wx $CATALINA_HOME Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot create resource instance
No need to change the policy file. Make sure the oracle drivers are in the correct directory ... $TOMCAT_HOME/common/lib and that the classes.zip file has been renamed to classes.jar Also, maybe mail a sniplet of the code you use to do your lookup: Maybe we can see something funny. hth. Paul On Fri, 2003-03-14 at 15:06, Appel, Jeremy D wrote: Yes, I am doing the lookup exactly the same way. I should not have to modify the catalina.policy file for security, correct? -Original Message- From: Ferrer, J.C. [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 7:18 PM To: 'Tomcat Users List' Subject: RE: Cannot create resource instance I'm using v4.1.21 and instead of using user as the parameter name, I'm using username. Are you doing the resource lookup using java:comp/env/jdbc/prod_d ? -Original Message- From: Appel, Jeremy D [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 1:29 PM To: '[EMAIL PROTECTED]' Subject: Cannot create resource instance All, I am running Tomcat 4.0.4 and I am trying to use Jakarta DBCP. I have download the necessary jar files and placed them in %CATALINA_HOME%/common/lib. I am receiving the following error: javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory. java) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) When I list bindings on the resource below, It appears that the JNDI resource exists but when I try to look it up I receive the error above. Any thoughts or advice? Snapshot from web.xml: resource-ref res-ref-namejdbc/prod_d/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Snapshot from server.xml: Resource name=jdbc/prod_d auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/prod_d parameter nameuser/name valuejappel/value /parameter parameter namepassword/name valuejappel/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@hpcat159.qwest.net:1521:prod_d/value /parameter parameter namefactory/name valueora.apache.commons.dbcp.BasicDataSourceFactory/value /parameter /ResourceParams Thanks, Jeremy Appel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] CONFIDENTIALITY NOTICE: The information in this e-mail is privileged and confidential. Any use, copying or dissemination of any portion of this e-mail by or to anyone other than the intended recipient(s) is unauthorized. If you have received this e-mail in error, please reply to sender and delete it from your system immediately. - 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] -- p niemandt [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot create resource instance
Yes the classes.jar file is in %CATALINA_HOME/common/lib Here is snippet of code, disregard the list bindings call (debug statement which prints out the binding) Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); NamingEnumeration enum = initCtx.listBindings(java:comp/env/jdbc); while (enum.hasMoreElements()) { writer.print(Binding : ); writer.println(enum.nextElement().toString()); } DataSource ds = (DataSource) envCtx.lookup(jdbc/prod_d); Connection conn = ds.getConnection(); Thanks, Jeremy -Original Message- From: p niemandt [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 10:27 AM To: Tomcat Users List Subject: RE: Cannot create resource instance No need to change the policy file. Make sure the oracle drivers are in the correct directory ... $TOMCAT_HOME/common/lib and that the classes.zip file has been renamed to classes.jar Also, maybe mail a sniplet of the code you use to do your lookup: Maybe we can see something funny. hth. Paul On Fri, 2003-03-14 at 15:06, Appel, Jeremy D wrote: Yes, I am doing the lookup exactly the same way. I should not have to modify the catalina.policy file for security, correct? -Original Message- From: Ferrer, J.C. [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 7:18 PM To: 'Tomcat Users List' Subject: RE: Cannot create resource instance I'm using v4.1.21 and instead of using user as the parameter name, I'm using username. Are you doing the resource lookup using java:comp/env/jdbc/prod_d ? -Original Message- From: Appel, Jeremy D [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 1:29 PM To: '[EMAIL PROTECTED]' Subject: Cannot create resource instance All, I am running Tomcat 4.0.4 and I am trying to use Jakarta DBCP. I have download the necessary jar files and placed them in %CATALINA_HOME%/common/lib. I am receiving the following error: javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory. java) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) When I list bindings on the resource below, It appears that the JNDI resource exists but when I try to look it up I receive the error above. Any thoughts or advice? Snapshot from web.xml: resource-ref res-ref-namejdbc/prod_d/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Snapshot from server.xml: Resource name=jdbc/prod_d auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/prod_d parameter nameuser/name valuejappel/value /parameter parameter namepassword/name valuejappel/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@hpcat159.qwest.net:1521:prod_d/value /parameter parameter namefactory/name valueora.apache.commons.dbcp.BasicDataSourceFactory/value /parameter /ResourceParams Thanks, Jeremy Appel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] CONFIDENTIALITY NOTICE: The information in this e-mail is privileged and confidential. Any use, copying or dissemination of any portion of this e-mail by or to anyone other than the intended recipient(s) is unauthorized. If you have received this e-mail in error, please reply to sender and delete it from your system immediately. - 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] -- p niemandt [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL
user auth not working
I just downloaded and installed Tomcat 4.1.8 in WinXP. At a certain point in the install process, it asked me for an admin password, I chose my most basic pwd... then after the install was over, I tried to go to the admin page... that window with username and pass showed up, I entered both username and pwd correctly and it doesn't work.. I went to \conf and looked into tomcat-users.xml, everything is fine... the auth simply doesn't seem to work, maybe it's a problem with XP... I don't know.. anyone has a clue on this one?? thanks .:| Christian Dechery .:| Web/Java Developer .:| Gaita-L Owner .:| [EMAIL PROTECTED]
RE: user auth not working
can you send us the xml file please ??? -Original Message- From: Christian Dechery [mailto:[EMAIL PROTECTED] Sent: 14 March 2003 15:27 To: Tomcat Users List Subject: user auth not working I just downloaded and installed Tomcat 4.1.8 in WinXP. At a certain point in the install process, it asked me for an admin password, I chose my most basic pwd... then after the install was over, I tried to go to the admin page... that window with username and pass showed up, I entered both username and pwd correctly and it doesn't work.. I went to \conf and looked into tomcat-users.xml, everything is fine... the auth simply doesn't seem to work, maybe it's a problem with XP... I don't know.. anyone has a clue on this one?? thanks .:| Christian Dechery .:| Web/Java Developer .:| Gaita-L Owner .:| [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot create resource instance
OK: This is basically what I do, and it has never given me any problems. Maybe try that? *** server.xml *** Define a resource ... Resource name=jdbc/chfs auth=Container type=javax.sql.DataSource/ *** where you need the connection *** { String DatasourceName = java:comp/env/jdbc/chfs; Connection conn = null; try { Context ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup(DatasourceName); conn = ds.getConnection(); try { PreparedStatement prep = conn.prepareStatement(SQL) ... ** The java:comp/env needs to be prefixed. I think the Context envCtx = (Context) initCtx.lookup(java:comp/env) is probably causing your problems. Hope this helps: I use the same code for Oracle8, 9, MySQL, and SAP/DB: Works well for all of them, as long as your Resource is properly defined (I do it in server.xml, could probably be done elsewhere, but If it's not broken, don't fix it? ) regards, Paul On Fri, 2003-03-14 at 15:24, Appel, Jeremy D wrote: Yes the classes.jar file is in %CATALINA_HOME/common/lib Here is snippet of code, disregard the list bindings call (debug statement which prints out the binding) Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); NamingEnumeration enum = initCtx.listBindings(java:comp/env/jdbc); while (enum.hasMoreElements()) { writer.print(Binding : ); writer.println(enum.nextElement().toString()); } DataSource ds = (DataSource) envCtx.lookup(jdbc/prod_d); Connection conn = ds.getConnection(); Thanks, Jeremy -Original Message- From: p niemandt [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 10:27 AM To: Tomcat Users List Subject: RE: Cannot create resource instance No need to change the policy file. Make sure the oracle drivers are in the correct directory ... $TOMCAT_HOME/common/lib and that the classes.zip file has been renamed to classes.jar Also, maybe mail a sniplet of the code you use to do your lookup: Maybe we can see something funny. hth. Paul On Fri, 2003-03-14 at 15:06, Appel, Jeremy D wrote: Yes, I am doing the lookup exactly the same way. I should not have to modify the catalina.policy file for security, correct? -Original Message- From: Ferrer, J.C. [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 7:18 PM To: 'Tomcat Users List' Subject: RE: Cannot create resource instance I'm using v4.1.21 and instead of using user as the parameter name, I'm using username. Are you doing the resource lookup using java:comp/env/jdbc/prod_d ? -Original Message- From: Appel, Jeremy D [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 1:29 PM To: '[EMAIL PROTECTED]' Subject: Cannot create resource instance All, I am running Tomcat 4.0.4 and I am trying to use Jakarta DBCP. I have download the necessary jar files and placed them in %CATALINA_HOME%/common/lib. I am receiving the following error: javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory. java) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) When I list bindings on the resource below, It appears that the JNDI resource exists but when I try to look it up I receive the error above. Any thoughts or advice? Snapshot from web.xml: resource-ref res-ref-namejdbc/prod_d/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Snapshot from server.xml: Resource name=jdbc/prod_d auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/prod_d parameter nameuser/name valuejappel/value /parameter parameter namepassword/name valuejappel/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@hpcat159.qwest.net:1521:prod_d/value /parameter parameter namefactory/name valueora.apache.commons.dbcp.BasicDataSourceFactory/value /parameter /ResourceParams Thanks, Jeremy
Re: Tomcat not sending session cookies to IE
On Thursday 13 March 2003 11:40 pm, Bill Barker wrote: I've never had problems myself with TC 3.3.x-5.0.x (I stopped using 3.2.x long ago :). IE 6.x has a cookie-lockout feature that may be causing the problem. With the factory settings, Tomcat should be fine. Go to Tools-Internet Options-Privacy to see if your settings are too high (e.g. anything above Medium High). I tried that, but it didn't help. But I also ruled that out because the same browser will connect to my development Tomcat instance but not to the client server, without any modification to the IE cookie settings. Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat not sending session cookies to IE
On Friday 14 March 2003 5:11 am, Tim Funk wrote: Could it be this? http://marc.theaimsgroup.com/?l=tomcat-devm=104247780113629w= -Tim It looks close, but I don't think that's it. For that issue to be true here, the browser would have had to have received a cookie in the first place. But I kept checking the Cookies folder and when I connect to my development server, a cookie appears there. When I connect to the client's server, no cookie ever shows up in the Cookies folder - that's what makes me think Tomcat isn't sending it in the first place. Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat not sending session cookies to IE
If the domain and path of the cookie do not map correctly to your web application, the browser will not send it. I like to use Mozilla when troubleshooting cookie problems because it allows you to look at the cookies and make sure they are as you expected. -sean -Original Message- From: Ian Bruseker [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 8:52 AM To: Tomcat Users List Subject: Re: Tomcat not sending session cookies to IE On Thursday 13 March 2003 11:40 pm, Bill Barker wrote: I've never had problems myself with TC 3.3.x-5.0.x (I stopped using 3.2.x long ago :). IE 6.x has a cookie-lockout feature that may be causing the problem. With the factory settings, Tomcat should be fine. Go to Tools-Internet Options-Privacy to see if your settings are too high (e.g. anything above Medium High). I tried that, but it didn't help. But I also ruled that out because the same browser will connect to my development Tomcat instance but not to the client server, without any modification to the IE cookie settings. Ian - 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: Cannot create resource instance
That still did not work. Given the fact that I can list the binding, I have to think that the DBCP related class files are not getting loaded to handle the request. Is there anyway to check this? -Original Message- From: p niemandt [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 10:46 AM To: 'Tomcat Users List' Subject: RE: Cannot create resource instance OK: This is basically what I do, and it has never given me any problems. Maybe try that? *** server.xml *** Define a resource ... Resource name=jdbc/chfs auth=Container type=javax.sql.DataSource/ *** where you need the connection *** { String DatasourceName = java:comp/env/jdbc/chfs; Connection conn = null; try { Context ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup(DatasourceName); conn = ds.getConnection(); try { PreparedStatement prep = conn.prepareStatement(SQL) ... ** The java:comp/env needs to be prefixed. I think the Context envCtx = (Context) initCtx.lookup(java:comp/env) is probably causing your problems. Hope this helps: I use the same code for Oracle8, 9, MySQL, and SAP/DB: Works well for all of them, as long as your Resource is properly defined (I do it in server.xml, could probably be done elsewhere, but If it's not broken, don't fix it? ) regards, Paul On Fri, 2003-03-14 at 15:24, Appel, Jeremy D wrote: Yes the classes.jar file is in %CATALINA_HOME/common/lib Here is snippet of code, disregard the list bindings call (debug statement which prints out the binding) Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); NamingEnumeration enum = initCtx.listBindings(java:comp/env/jdbc); while (enum.hasMoreElements()) { writer.print(Binding : ); writer.println(enum.nextElement().toString()); } DataSource ds = (DataSource) envCtx.lookup(jdbc/prod_d); Connection conn = ds.getConnection(); Thanks, Jeremy -Original Message- From: p niemandt [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 10:27 AM To: Tomcat Users List Subject: RE: Cannot create resource instance No need to change the policy file. Make sure the oracle drivers are in the correct directory ... $TOMCAT_HOME/common/lib and that the classes.zip file has been renamed to classes.jar Also, maybe mail a sniplet of the code you use to do your lookup: Maybe we can see something funny. hth. Paul On Fri, 2003-03-14 at 15:06, Appel, Jeremy D wrote: Yes, I am doing the lookup exactly the same way. I should not have to modify the catalina.policy file for security, correct? -Original Message- From: Ferrer, J.C. [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 7:18 PM To: 'Tomcat Users List' Subject: RE: Cannot create resource instance I'm using v4.1.21 and instead of using user as the parameter name, I'm using username. Are you doing the resource lookup using java:comp/env/jdbc/prod_d ? -Original Message- From: Appel, Jeremy D [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 1:29 PM To: '[EMAIL PROTECTED]' Subject: Cannot create resource instance All, I am running Tomcat 4.0.4 and I am trying to use Jakarta DBCP. I have download the necessary jar files and placed them in %CATALINA_HOME%/common/lib. I am receiving the following error: javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory. java) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) When I list bindings on the resource below, It appears that the JNDI resource exists but when I try to look it up I receive the error above. Any thoughts or advice? Snapshot from web.xml: resource-ref res-ref-namejdbc/prod_d/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Snapshot from server.xml: Resource name=jdbc/prod_d auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/prod_d parameter nameuser/name valuejappel/value /parameter parameter namepassword/name valuejappel/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter
Re: Tomcat not sending session cookies to IE
On Friday 14 March 2003 8:58 am, Scott, Sean wrote: If the domain and path of the cookie do not map correctly to your web application, the browser will not send it. I like to use Mozilla when troubleshooting cookie problems because it allows you to look at the cookies and make sure they are as you expected. I just gave that a shot, took a look through Mozilla's cookie manager. I'm not sure domain names come in to play here. I am accessing both servers using their hostnames only, no domain names - this is all taking place on the local network. So each cookie is identified by its host, not its domain. Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat not sending session cookies to IE
Ian, If you are stumped, you could try running a sniffer to see just what is included in the response. Set-Cookie header or not. Tcpdump on any Unix box or Ethereal comes in handy for this. Dennis -Original Message- From: Ian Bruseker [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 11:11 AM To: Tomcat Users List Subject: Re: Tomcat not sending session cookies to IE On Friday 14 March 2003 8:58 am, Scott, Sean wrote: If the domain and path of the cookie do not map correctly to your web application, the browser will not send it. I like to use Mozilla when troubleshooting cookie problems because it allows you to look at the cookies and make sure they are as you expected. I just gave that a shot, took a look through Mozilla's cookie manager. I'm not sure domain names come in to play here. I am accessing both servers using their hostnames only, no domain names - this is all taking place on the local network. So each cookie is identified by its host, not its domain. Ian - 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: user auth not working
sure... here it is... .:| Christian Dechery.:| Web/Java Developer.:| Gaita-L Owner.:| [EMAIL PROTECTED] - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 14, 2003 12:30 PM Subject: RE: user auth not working can you send us the xml file please ???-Original Message-From: Christian Dechery [mailto:[EMAIL PROTECTED]Sent: 14 March 2003 15:27To: Tomcat Users ListSubject: user auth not workingI just downloaded and installed Tomcat 4.1.8 in WinXP.At a certain point in the install process, it asked me for an adminpassword, I chose my most basic pwd... then after the install was over, Itried to go to the admin page... that window with username and pass showedup, I entered both username and pwd correctly and it doesn't work..I went to \conf and looked into tomcat-users.xml, everything is fine... theauth simply doesn't seem to work, maybe it's a problem with XP... I don'tknow..anyone has a clue on this one??thanks.:| Christian Dechery.:| Web/Java Developer.:| Gaita-L Owner.:| [EMAIL PROTECTED] -To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=admin/ role rolename=manager/ role rolename=tomcat/ role rolename=role1/ user username=admin password=lalala roles=admin,manager/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ user username=both password=tomcat roles=tomcat,role1/ /tomcat-users - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot create resource instance
Jeremy, I noticed in looking back at your server.xml excerpt it looks like the factory class name is misspelled. It should be org.apache.commons.dbcp.BasicDataSourceFactory ^ -Calvin At 08:00 AM 3/14/2003, you wrote: That still did not work. Given the fact that I can list the binding, I have to think that the DBCP related class files are not getting loaded to handle the request. Is there anyway to check this? -Original Message- From: p niemandt [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 10:46 AM To: 'Tomcat Users List' Subject: RE: Cannot create resource instance OK: This is basically what I do, and it has never given me any problems. Maybe try that? *** server.xml *** Define a resource ... Resource name=jdbc/chfs auth=Container type=javax.sql.DataSource/ *** where you need the connection *** { String DatasourceName = java:comp/env/jdbc/chfs; Connection conn = null; try { Context ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup(DatasourceName); conn = ds.getConnection(); try { PreparedStatement prep = conn.prepareStatement(SQL) ... ** The java:comp/env needs to be prefixed. I think the Context envCtx = (Context) initCtx.lookup(java:comp/env) is probably causing your problems. Hope this helps: I use the same code for Oracle8, 9, MySQL, and SAP/DB: Works well for all of them, as long as your Resource is properly defined (I do it in server.xml, could probably be done elsewhere, but If it's not broken, don't fix it? ) regards, Paul On Fri, 2003-03-14 at 15:24, Appel, Jeremy D wrote: Yes the classes.jar file is in %CATALINA_HOME/common/lib Here is snippet of code, disregard the list bindings call (debug statement which prints out the binding) Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); NamingEnumeration enum = initCtx.listBindings(java:comp/env/jdbc); while (enum.hasMoreElements()) { writer.print(Binding : ); writer.println(enum.nextElement().toString()); } DataSource ds = (DataSource) envCtx.lookup(jdbc/prod_d); Connection conn = ds.getConnection(); Thanks, Jeremy -Original Message- From: p niemandt [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 10:27 AM To: Tomcat Users List Subject: RE: Cannot create resource instance No need to change the policy file. Make sure the oracle drivers are in the correct directory ... $TOMCAT_HOME/common/lib and that the classes.zip file has been renamed to classes.jar Also, maybe mail a sniplet of the code you use to do your lookup: Maybe we can see something funny. hth. Paul On Fri, 2003-03-14 at 15:06, Appel, Jeremy D wrote: Yes, I am doing the lookup exactly the same way. I should not have to modify the catalina.policy file for security, correct? -Original Message- From: Ferrer, J.C. [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 7:18 PM To: 'Tomcat Users List' Subject: RE: Cannot create resource instance I'm using v4.1.21 and instead of using user as the parameter name, I'm using username. Are you doing the resource lookup using java:comp/env/jdbc/prod_d ? -Original Message- From: Appel, Jeremy D [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 1:29 PM To: '[EMAIL PROTECTED]' Subject: Cannot create resource instance All, I am running Tomcat 4.0.4 and I am trying to use Jakarta DBCP. I have download the necessary jar files and placed them in %CATALINA_HOME%/common/lib. I am receiving the following error: javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory. java) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) When I list bindings on the resource below, It appears that the JNDI resource exists but when I try to look it up I receive the error above. Any thoughts or advice? Snapshot from web.xml: resource-ref res-ref-namejdbc/prod_d/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Snapshot from server.xml: Resource name=jdbc/prod_d auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/prod_d parameter nameuser/name valuejappel/value /parameter parameter namepassword/name valuejappel/value /parameter
RE: Cannot create resource instance
Aah: On the other hand, and I should have caught this earlier, but anyways: I assume you copied your server.xml exactly in the post? In that case a definite problem is ... valueora.apache.commons.dbcp.BasicDataSourceFactory/value Getting confused with Oracle? This should surely be org.apache.commons.dbcp.BasicDataSourceFactory ??? typo: org -- ora On Fri, 2003-03-14 at 16:00, Appel, Jeremy D wrote: That still did not work. Given the fact that I can list the binding, I have to think that the DBCP related class files are not getting loaded to handle the request. Is there anyway to check this? -Original Message- From: p niemandt [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 10:46 AM To: 'Tomcat Users List' Subject: RE: Cannot create resource instance OK: This is basically what I do, and it has never given me any problems. Maybe try that? *** server.xml *** Define a resource ... Resource name=jdbc/chfs auth=Container type=javax.sql.DataSource/ *** where you need the connection *** { String DatasourceName = java:comp/env/jdbc/chfs; Connection conn = null; try { Context ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup(DatasourceName); conn = ds.getConnection(); try { PreparedStatement prep = conn.prepareStatement(SQL) ... ** The java:comp/env needs to be prefixed. I think the Context envCtx = (Context) initCtx.lookup(java:comp/env) is probably causing your problems. Hope this helps: I use the same code for Oracle8, 9, MySQL, and SAP/DB: Works well for all of them, as long as your Resource is properly defined (I do it in server.xml, could probably be done elsewhere, but If it's not broken, don't fix it? ) regards, Paul On Fri, 2003-03-14 at 15:24, Appel, Jeremy D wrote: Yes the classes.jar file is in %CATALINA_HOME/common/lib Here is snippet of code, disregard the list bindings call (debug statement which prints out the binding) Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); NamingEnumeration enum = initCtx.listBindings(java:comp/env/jdbc); while (enum.hasMoreElements()) { writer.print(Binding : ); writer.println(enum.nextElement().toString()); } DataSource ds = (DataSource) envCtx.lookup(jdbc/prod_d); Connection conn = ds.getConnection(); Thanks, Jeremy -Original Message- From: p niemandt [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 10:27 AM To: Tomcat Users List Subject: RE: Cannot create resource instance No need to change the policy file. Make sure the oracle drivers are in the correct directory ... $TOMCAT_HOME/common/lib and that the classes.zip file has been renamed to classes.jar Also, maybe mail a sniplet of the code you use to do your lookup: Maybe we can see something funny. hth. Paul On Fri, 2003-03-14 at 15:06, Appel, Jeremy D wrote: Yes, I am doing the lookup exactly the same way. I should not have to modify the catalina.policy file for security, correct? -Original Message- From: Ferrer, J.C. [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 7:18 PM To: 'Tomcat Users List' Subject: RE: Cannot create resource instance I'm using v4.1.21 and instead of using user as the parameter name, I'm using username. Are you doing the resource lookup using java:comp/env/jdbc/prod_d ? -Original Message- From: Appel, Jeremy D [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 1:29 PM To: '[EMAIL PROTECTED]' Subject: Cannot create resource instance All, I am running Tomcat 4.0.4 and I am trying to use Jakarta DBCP. I have download the necessary jar files and placed them in %CATALINA_HOME%/common/lib. I am receiving the following error: javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory. java) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) When I list bindings on the resource below, It appears that the JNDI resource exists but when I try to look it up I receive the error above. Any thoughts or advice? Snapshot from web.xml: resource-ref res-ref-namejdbc/prod_d/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Snapshot from server.xml: Resource name=jdbc/prod_d auth=Container
RE: [4.1.18] Startup Servlets Load Twice???
Howdy, Some things that could do it: - One load-on-startup servlet tag with two (or more) servlet-mapping elements in web.xml. - One load-on-startup servlet tag for the same servlet defined in multiple contexts. Yoav Shapira Millennium ChemInformatics -Original Message- From: Gavin, Rick [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 9:50 AM To: [EMAIL PROTECTED] Subject: [4.1.18] Startup Servlets Load Twice??? Hi All, Can anyone tell me what would cause my servlets that i have set to load a startup would be executing twice. If i have a simple servlet that spits out a line of text ot the log, when i start tomcat (4.1.18) i see the text gets written out twice. This same servlet did not do it in earlier versions of tomcat. Anyone help please. Thanks for your time, Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache - Tomcat connectors
I agree. I struggled with JK2 for awhile but finally gave up and went back to JK. The docs were very confusing and contradictory. I suppose I could have appealed for help, but I got the impression that JK2 was still under constant change and without being able to be self sufficient, I felt the risk was unwarranted. Dennis -Original Message- From: Chris Dodunski [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 7:07 AM To: Tomcat Users List Subject: Apache - Tomcat connectors I'm honestly astounded at the number of people struggling with successfully installing and configuring Apache - Tomcat connectors. An extensive search of apache.org (and other sites) reveals why. Documentation is vague, fragmented, and quite frankly confusing. It's frustrating and it's time wasting. Time I say for some clear, concise, blow by blow documentation on performing what should be a relatively simple procedure. Do you agree? - 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: Cannot create resource instance
Thanks for the help. Don't I feel like the idiot!! -Original Message- From: p niemandt [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 11:29 AM To: 'Tomcat Users List' Subject: RE: Cannot create resource instance Aah: On the other hand, and I should have caught this earlier, but anyways: I assume you copied your server.xml exactly in the post? In that case a definite problem is ... valueora.apache.commons.dbcp.BasicDataSourceFactory/value Getting confused with Oracle? This should surely be org.apache.commons.dbcp.BasicDataSourceFactory ??? typo: org -- ora On Fri, 2003-03-14 at 16:00, Appel, Jeremy D wrote: That still did not work. Given the fact that I can list the binding, I have to think that the DBCP related class files are not getting loaded to handle the request. Is there anyway to check this? -Original Message- From: p niemandt [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 10:46 AM To: 'Tomcat Users List' Subject: RE: Cannot create resource instance OK: This is basically what I do, and it has never given me any problems. Maybe try that? *** server.xml *** Define a resource ... Resource name=jdbc/chfs auth=Container type=javax.sql.DataSource/ *** where you need the connection *** { String DatasourceName = java:comp/env/jdbc/chfs; Connection conn = null; try { Context ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup(DatasourceName); conn = ds.getConnection(); try { PreparedStatement prep = conn.prepareStatement(SQL) ... ** The java:comp/env needs to be prefixed. I think the Context envCtx = (Context) initCtx.lookup(java:comp/env) is probably causing your problems. Hope this helps: I use the same code for Oracle8, 9, MySQL, and SAP/DB: Works well for all of them, as long as your Resource is properly defined (I do it in server.xml, could probably be done elsewhere, but If it's not broken, don't fix it? ) regards, Paul On Fri, 2003-03-14 at 15:24, Appel, Jeremy D wrote: Yes the classes.jar file is in %CATALINA_HOME/common/lib Here is snippet of code, disregard the list bindings call (debug statement which prints out the binding) Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); NamingEnumeration enum = initCtx.listBindings(java:comp/env/jdbc); while (enum.hasMoreElements()) { writer.print(Binding : ); writer.println(enum.nextElement().toString()); } DataSource ds = (DataSource) envCtx.lookup(jdbc/prod_d); Connection conn = ds.getConnection(); Thanks, Jeremy -Original Message- From: p niemandt [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 10:27 AM To: Tomcat Users List Subject: RE: Cannot create resource instance No need to change the policy file. Make sure the oracle drivers are in the correct directory ... $TOMCAT_HOME/common/lib and that the classes.zip file has been renamed to classes.jar Also, maybe mail a sniplet of the code you use to do your lookup: Maybe we can see something funny. hth. Paul On Fri, 2003-03-14 at 15:06, Appel, Jeremy D wrote: Yes, I am doing the lookup exactly the same way. I should not have to modify the catalina.policy file for security, correct? -Original Message- From: Ferrer, J.C. [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 7:18 PM To: 'Tomcat Users List' Subject: RE: Cannot create resource instance I'm using v4.1.21 and instead of using user as the parameter name, I'm using username. Are you doing the resource lookup using java:comp/env/jdbc/prod_d ? -Original Message- From: Appel, Jeremy D [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 1:29 PM To: '[EMAIL PROTECTED]' Subject: Cannot create resource instance All, I am running Tomcat 4.0.4 and I am trying to use Jakarta DBCP. I have download the necessary jar files and placed them in %CATALINA_HOME%/common/lib. I am receiving the following error: javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory. java) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) at org.apache.naming.NamingContext.lookup(NamingContext.java) When I list bindings on the resource below, It appears that the JNDI resource exists but when I try to look it up I receive the error above. Any thoughts or advice? Snapshot from web.xml: resource-ref
RE: Forced to use isapi_redirector.dll and now have problems
Ian, I have it set up pretty much the same as you: a virtual IIS directory points to a location in Tomcat/conf. I just changed the location, reconnected the virtual directory and tried again but I still get the same 404 error: requested resource /jakarta/isapi_redirector.dll is not available. Ken -Original Message- From: Ian Bruseker [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 6:55 PM To: Tomcat Users List Subject: RE: Forced to use isapi_redirector.dll and now have problems But now I get this error: requested resource /jakarta/isapi_redirector.dll is not available. Does anyone have any clues as to the cause of this? It sounds like it needs a context entry in server.xml but that's not mentioned in any instructions. Do you have a virtual directory created in IIS that points to the directory your isapi_redirector.dll is in? For example, I have the isapi_redirector.dll in D:\tomcat\conf\iis\i386\, and I have a virtual directory in IIS called jakarta that points to that directory. Ian - 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: Loading dll for servlets
I'm currently working on an app that requires access to some system DLLs. Not having done anyting like this before, I'm looking form some advice. Do I keep the DLL in with my webapp, or does it have to go somewhere in Tomcat's directory structure? Any help would be greatly appreciated. Thanks, Jamie Bjoern Abt [EMAIL PROTECTED] on 03/14/2003 04:22:34 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To:[EMAIL PROTECTED] cc: Subject:Loading dll for servlets Hello List, Background: I am extending an existing application to the web. The existing application is written in cobol and compiled to a *.dll on a Windows2000-System. I can load the dll and go the specific entrypoints, so the existing logic doesn't have to be rewritten. My Question: Is it possible to load an dll into the Tomact-Server, so that its functions are always accessible to my servlets? I have a terrible overhead in loading and unloading the dll in every servlet that is accessed. Or does anyone know another way to do it? Thanks in Advance Bjoern Abt http://www.inode.ch - 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: Apache - Tomcat connectors
Disagree. I think the simplicity of jk2 configuration (not building of jk2) confuses people. Because, we as developer, get used to think complicated. I did feel frustrated building jk2. Once I built it, I was surprised that the configuration is so simple. -Original Message- From: Dennis Cartier [mailto:[EMAIL PROTECTED] Sent: March 14, 2003 11:32 AM To: Tomcat Users List Subject: RE: Apache - Tomcat connectors I agree. I struggled with JK2 for awhile but finally gave up and went back to JK. The docs were very confusing and contradictory. I suppose I could have appealed for help, but I got the impression that JK2 was still under constant change and without being able to be self sufficient, I felt the risk was unwarranted. Dennis -Original Message- From: Chris Dodunski [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 7:07 AM To: Tomcat Users List Subject: Apache - Tomcat connectors I'm honestly astounded at the number of people struggling with successfully installing and configuring Apache - Tomcat connectors. An extensive search of apache.org (and other sites) reveals why. Documentation is vague, fragmented, and quite frankly confusing. It's frustrating and it's time wasting. Time I say for some clear, concise, blow by blow documentation on performing what should be a relatively simple procedure. Do you agree? - 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: Loading dll for servlets
In my experience, I have needed to load the class that loads the shared library into the bootstrap classloader. This was with jdk1.3.1. I seem to recall that the shared library can be loaded only 1 time by the JVM, if the class that loads the shared library exists in a webapp it will try to load the DLL everytime the App is deployed, which will result in errors. -sean -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 9:00 AM To: Tomcat Users List Subject: Re: Loading dll for servlets I'm currently working on an app that requires access to some system DLLs. Not having done anyting like this before, I'm looking form some advice. Do I keep the DLL in with my webapp, or does it have to go somewhere in Tomcat's directory structure? Any help would be greatly appreciated. Thanks, Jamie Bjoern Abt [EMAIL PROTECTED] on 03/14/2003 04:22:34 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To:[EMAIL PROTECTED] cc: Subject:Loading dll for servlets Hello List, Background: I am extending an existing application to the web. The existing application is written in cobol and compiled to a *.dll on a Windows2000-System. I can load the dll and go the specific entrypoints, so the existing logic doesn't have to be rewritten. My Question: Is it possible to load an dll into the Tomact-Server, so that its functions are always accessible to my servlets? I have a terrible overhead in loading and unloading the dll in every servlet that is accessed. Or does anyone know another way to do it? Thanks in Advance Bjoern Abt http://www.inode.ch - 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]
New user
Hello All, I am a new user. we are developing some new Web application. We want to use TomCat/Apache as our server. I need to get some feed back regarding TomCat/Apache stability and support. I know this is a free software but I am reluctance to go into production without support. Any feed back appreciated. Thanks Amir Shidfar VeriZon Wireless 845-365-7386 work 845-365-5910 fax [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Do you run Tomcat with SSL?
Is your certificate format generated by your little java program exactly like the keytool generated certificate ? Have you tested your certificates with other applications to see if you are producing them correctly ? thanks. On Friday, March 14, 2003, at 09:21 AM, Mark Liu wrote: I know you guys have your great strategies in balancing Apache and Tomcat. But, my project isn't really so picky about efficiency, so I simply run Tomcat with SSL all the time. It simplifies my project a little bit. But then I do need to be able to run Tomcat SSL with the certificated generated by my little Java program. --- mike jackson [EMAIL PROTECTED] wrote: I've always run tomcat as a backend to apache. Apache may or may not implement ssl. That said, every time I've implemented ssl I've done it at the apache level, never at the tomcat level. In fact the few times that I've wanted ssl at the tomcat level (usually because I'm not running apache) I've ended up setting up apache to run as the front end. But that's just me. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Mark Liu [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 6:44 PM To: Tomcat Users List Subject: Do you run Tomcat with SSL? I am able to run Tomcat SSL with the keytool-generated certificate, but not the certificate my little Java program generates. I've been asking this question for a while in this list. But it seems nobody has an answer to it. So you guys never run Tomcat in SSL mode? Or you guys always use the keytool-generated certificate for the SSL? __ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.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] __ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.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: New user
Howdy, If it's support (paid) for tomcat you want, just do a google search for consulting for tomcat and you'll find many people who can help you. Personally, I don't think anything they provide is better than what you can get on this list, if: - You observe basic netiquette recommendations - Are family with basic java and servlets technology - Are patient and willing to understand solutions and designs But that's just me $0.02USD Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 11:50 AM To: [EMAIL PROTECTED] Subject: New user Hello All, I am a new user. we are developing some new Web application. We want to use TomCat/Apache as our server. I need to get some feed back regarding TomCat/Apache stability and support. I know this is a free software but I am reluctance to go into production without support. Any feed back appreciated. Thanks Amir Shidfar VeriZon Wireless 845-365-7386 work 845-365-5910 fax [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: New user
Thanks. Also another question. When I deploy may Java codes I do the following. I copy my file.war to tomcat/webapps directory and start the tomcat and that is all I have to do. Tomcat will unwar the file and will take care of the rest. If I am in production and have another file2.war for relapse do I have to stop the Tomcat and start it again or is there any other way I can unwar file2.war? Amir. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 11:57 AM To: Tomcat Users List Subject: RE: New user Howdy, If it's support (paid) for tomcat you want, just do a google search for consulting for tomcat and you'll find many people who can help you. Personally, I don't think anything they provide is better than what you can get on this list, if: - You observe basic netiquette recommendations - Are family with basic java and servlets technology - Are patient and willing to understand solutions and designs But that's just me $0.02USD Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 11:50 AM To: [EMAIL PROTECTED] Subject: New user Hello All, I am a new user. we are developing some new Web application. We want to use TomCat/Apache as our server. I need to get some feed back regarding TomCat/Apache stability and support. I know this is a free software but I am reluctance to go into production without support. Any feed back appreciated. Thanks Amir Shidfar VeriZon Wireless 845-365-7386 work 845-365-5910 fax [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: New user
Howdy, I'm not sure what you mean by for relapse. If file2.war is supposed to replace file.war, it should have the same name. See the Manager app documentation at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html for ways to re-deploy an application without restarting the server. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 12:02 PM To: [EMAIL PROTECTED] Subject: RE: New user Thanks. Also another question. When I deploy may Java codes I do the following. I copy my file.war to tomcat/webapps directory and start the tomcat and that is all I have to do. Tomcat will unwar the file and will take care of the rest. If I am in production and have another file2.war for relapse do I have to stop the Tomcat and start it again or is there any other way I can unwar file2.war? Amir. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 11:57 AM To: Tomcat Users List Subject: RE: New user Howdy, If it's support (paid) for tomcat you want, just do a google search for consulting for tomcat and you'll find many people who can help you. Personally, I don't think anything they provide is better than what you can get on this list, if: - You observe basic netiquette recommendations - Are family with basic java and servlets technology - Are patient and willing to understand solutions and designs But that's just me $0.02USD Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 11:50 AM To: [EMAIL PROTECTED] Subject: New user Hello All, I am a new user. we are developing some new Web application. We want to use TomCat/Apache as our server. I need to get some feed back regarding TomCat/Apache stability and support. I know this is a free software but I am reluctance to go into production without support. Any feed back appreciated. Thanks Amir Shidfar VeriZon Wireless 845-365-7386 work 845-365-5910 fax [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : Apache - Tomcat connectors
I'm not sure that configuring jk2 will be easier if we build it because someone can easily build something without knowing how to configure it. But i'm ready to believe you so provide us YOUR method to build this module and i'll write back onto this forum my point of view. I'm sure a lot of people are waiting for this build method. Eric LAGALISSE -Message d'origine- De : apachep2 [mailto:[EMAIL PROTECTED] Envoyé : vendredi 14 mars 2003 17:43 À : 'Tomcat Users List' Objet : RE: Apache - Tomcat connectors Disagree. I think the simplicity of jk2 configuration (not building of jk2) confuses people. Because, we as developer, get used to think complicated. I did feel frustrated building jk2. Once I built it, I was surprised that the configuration is so simple. -Original Message- From: Dennis Cartier [mailto:[EMAIL PROTECTED] Sent: March 14, 2003 11:32 AM To: Tomcat Users List Subject: RE: Apache - Tomcat connectors I agree. I struggled with JK2 for awhile but finally gave up and went back to JK. The docs were very confusing and contradictory. I suppose I could have appealed for help, but I got the impression that JK2 was still under constant change and without being able to be self sufficient, I felt the risk was unwarranted. Dennis -Original Message- From: Chris Dodunski [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 7:07 AM To: Tomcat Users List Subject: Apache - Tomcat connectors I'm honestly astounded at the number of people struggling with successfully installing and configuring Apache - Tomcat connectors. An extensive search of apache.org (and other sites) reveals why. Documentation is vague, fragmented, and quite frankly confusing. It's frustrating and it's time wasting. Time I say for some clear, concise, blow by blow documentation on performing what should be a relatively simple procedure. Do you agree? - 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]
CPU load doubles when migrating from Tomcat 3.3.1 to Tomcat 4.1.18
Has anyone else had CPU load increase dramatically when upgrading from Tomcat 3 to Tomcat 4? We are trying to update our server farm to Tomcat 4.1.18. When we swap a single prototype server running 4.1.18 into the server pool, it performs badly. Specifically, in a 10-minute period at below-peak load, all servers served about 1700 page impressions. However, the existing Tomcat 3.3.1 servers had %CPU utilisation of 28-29%, while the prototype server has a load of 46%. This pattern of double the CPU is consistent throughout the day. At peak period, the prototype server starts to reject connections and we have to take it out of the pool The only thing that has changed is Tomcat itself. Configuration: Apache 1.3.26 - AJP 1.3 - Tomcat 4.1.18 - two Velocity 1.2 and Turbine 2.1-based web-apps OS: Solaris 8 JVM: Java HotSpot(TM) Server VM (build 1.4.1_02-b06, mixed mode) JAVA_OPTS: -server -Xmx384mb -Xconcurrentio I have installed Tomcat 4.1.18, deleted the example apps (made no performance difference), convinced Tomcat to recognise our symlinks, configured a realm (otherwise it hides our application) and put together a very simple server.xml. server.xml: Server port=8005 shutdown=SHUTDOWN debug=0 Service name = My-Tomcat Engine name=MainEngine defaultHost=localhost Realm className=org.apache.catalina.realm.MemoryRealm / Host name=localhost Context path=/rm docBase=webapps/rmsites reloadable=false debug=0 privileged=false /Context Context path=/house docBase=webapps/house reloadable=false debug=0 privileged=false !-- Symlinks to shared classes and jar libraries in rm context -- Resources className=org.apache.naming.resources.FileDirContext allowLinking=true / /Context /Host /Engine Connector className = org.apache.ajp.tomcat4.Ajp13Connector port = 7008 minProcessors = 5 maxProcessors = 20 enableLookups = false acceptCount = 10 debug = 0 connectionTimeout = 6/ /Service /Server I would appreciate any suggestions or help :o) Chris Agmen-Smith -- ___ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: New user
No file2.war is a brand new Web application. When you start the tomcat it will create file2 and all the proper directory under file2. I don't want to affect user which are using the Web application under file by stopping the Tomcat and restarting Tomcat. Basically I want to deploy file2.war which is a new web application without interrupting users which are using the Web application under file. Hope I made it a little more clear. Thanks Amir. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 12:06 PM To: Tomcat Users List Subject: RE: New user Howdy, I'm not sure what you mean by for relapse. If file2.war is supposed to replace file.war, it should have the same name. See the Manager app documentation at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html for ways to re-deploy an application without restarting the server. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 12:02 PM To: [EMAIL PROTECTED] Subject: RE: New user Thanks. Also another question. When I deploy may Java codes I do the following. I copy my file.war to tomcat/webapps directory and start the tomcat and that is all I have to do. Tomcat will unwar the file and will take care of the rest. If I am in production and have another file2.war for relapse do I have to stop the Tomcat and start it again or is there any other way I can unwar file2.war? Amir. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 11:57 AM To: Tomcat Users List Subject: RE: New user Howdy, If it's support (paid) for tomcat you want, just do a google search for consulting for tomcat and you'll find many people who can help you. Personally, I don't think anything they provide is better than what you can get on this list, if: - You observe basic netiquette recommendations - Are family with basic java and servlets technology - Are patient and willing to understand solutions and designs But that's just me $0.02USD Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 11:50 AM To: [EMAIL PROTECTED] Subject: New user Hello All, I am a new user. we are developing some new Web application. We want to use TomCat/Apache as our server. I need to get some feed back regarding TomCat/Apache stability and support. I know this is a free software but I am reluctance to go into production without support. Any feed back appreciated. Thanks Amir Shidfar VeriZon Wireless 845-365-7386 work 845-365-5910 fax [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: New user
Howdy, Apparently you didn't bother to read the manager webapp documentation I posted in the previous reply ;( In that URL it tells you how to deploy a new webapp or redeploy an existing one without restarting the server. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 12:40 PM To: [EMAIL PROTECTED] Subject: RE: New user No file2.war is a brand new Web application. When you start the tomcat it will create file2 and all the proper directory under file2. I don't want to affect user which are using the Web application under file by stopping the Tomcat and restarting Tomcat. Basically I want to deploy file2.war which is a new web application without interrupting users which are using the Web application under file. Hope I made it a little more clear. Thanks Amir. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 12:06 PM To: Tomcat Users List Subject: RE: New user Howdy, I'm not sure what you mean by for relapse. If file2.war is supposed to replace file.war, it should have the same name. See the Manager app documentation at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html for ways to re-deploy an application without restarting the server. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 12:02 PM To: [EMAIL PROTECTED] Subject: RE: New user Thanks. Also another question. When I deploy may Java codes I do the following. I copy my file.war to tomcat/webapps directory and start the tomcat and that is all I have to do. Tomcat will unwar the file and will take care of the rest. If I am in production and have another file2.war for relapse do I have to stop the Tomcat and start it again or is there any other way I can unwar file2.war? Amir. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 11:57 AM To: Tomcat Users List Subject: RE: New user Howdy, If it's support (paid) for tomcat you want, just do a google search for consulting for tomcat and you'll find many people who can help you. Personally, I don't think anything they provide is better than what you can get on this list, if: - You observe basic netiquette recommendations - Are family with basic java and servlets technology - Are patient and willing to understand solutions and designs But that's just me $0.02USD Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 11:50 AM To: [EMAIL PROTECTED] Subject: New user Hello All, I am a new user. we are developing some new Web application. We want to use TomCat/Apache as our server. I need to get some feed back regarding TomCat/Apache stability and support. I know this is a free software but I am reluctance to go into production without support. Any feed back appreciated. Thanks Amir Shidfar VeriZon Wireless 845-365-7386 work 845-365-5910 fax [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain
RE: RE : Apache - Tomcat connectors
Build: Search archive you will find a link to a site that teaches you step by step how to build mod_jk2. Since it's Friday, why don't I just give you the link http://www.pubbitch.org/jboss/mod_jk2.html. Configure: Follow tomcat-connector's document. -Original Message- From: LAGALISSE Eric [mailto:[EMAIL PROTECTED] Sent: March 14, 2003 12:12 PM To: Tomcat Users List Subject: RE : Apache - Tomcat connectors I'm not sure that configuring jk2 will be easier if we build it because someone can easily build something without knowing how to configure it. But i'm ready to believe you so provide us YOUR method to build this module and i'll write back onto this forum my point of view. I'm sure a lot of people are waiting for this build method. Eric LAGALISSE -Message d'origine- De : apachep2 [mailto:[EMAIL PROTECTED] Envoyé : vendredi 14 mars 2003 17:43 À : 'Tomcat Users List' Objet : RE: Apache - Tomcat connectors Disagree. I think the simplicity of jk2 configuration (not building of jk2) confuses people. Because, we as developer, get used to think complicated. I did feel frustrated building jk2. Once I built it, I was surprised that the configuration is so simple. -Original Message- From: Dennis Cartier [mailto:[EMAIL PROTECTED] Sent: March 14, 2003 11:32 AM To: Tomcat Users List Subject: RE: Apache - Tomcat connectors I agree. I struggled with JK2 for awhile but finally gave up and went back to JK. The docs were very confusing and contradictory. I suppose I could have appealed for help, but I got the impression that JK2 was still under constant change and without being able to be self sufficient, I felt the risk was unwarranted. Dennis -Original Message- From: Chris Dodunski [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 7:07 AM To: Tomcat Users List Subject: Apache - Tomcat connectors I'm honestly astounded at the number of people struggling with successfully installing and configuring Apache - Tomcat connectors. An extensive search of apache.org (and other sites) reveals why. Documentation is vague, fragmented, and quite frankly confusing. It's frustrating and it's time wasting. Time I say for some clear, concise, blow by blow documentation on performing what should be a relatively simple procedure. Do you agree? - 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]
Still trying to just get going
Well... I think I have my path correct but: HTTP Status 500 - No Context configured to process this request Help? Sandra - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Still trying to just get going
Well... I think I have my path correct but: HTTP Status 500 - No Context configured to process this request hi sandra, it would be helpfull if you would post just a little bit more information on what you are trying to do and what exactly the problem is :-) regards jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Forced to use isapi_redirector.dll and now have problems
Investigating this a little further I see that the redirect log has this: ajp_unmarshal_response: status = 404. So once again it looks like the ajp connector is working in that it's forwarding request to Tomcat. But then it can't find what it's looking for. Does anyone have any clues as to where isapi_redirector.dll should be? I've tried Tomcat/conf/ and Tomcat/conf/ntiis. I've also tried renaming isapi_redirector to isapi_redirect and that also has made no difference. And I've edited registry and checked on IIS to make sure everything is consistent. Of course it may turn out that I haven't checked as closely as I think I have. But given that I've spent over a day on it I'd be somewhat surprised. -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 11:38 AM To: Tomcat Users List Subject: RE: Forced to use isapi_redirector.dll and now have problems Ian, I have it set up pretty much the same as you: a virtual IIS directory points to a location in Tomcat/conf. I just changed the location, reconnected the virtual directory and tried again but I still get the same 404 error: requested resource /jakarta/isapi_redirector.dll is not available. Ken -Original Message- From: Ian Bruseker [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 6:55 PM To: Tomcat Users List Subject: RE: Forced to use isapi_redirector.dll and now have problems But now I get this error: requested resource /jakarta/isapi_redirector.dll is not available. Does anyone have any clues as to the cause of this? It sounds like it needs a context entry in server.xml but that's not mentioned in any instructions. Do you have a virtual directory created in IIS that points to the directory your isapi_redirector.dll is in? For example, I have the isapi_redirector.dll in D:\tomcat\conf\iis\i386\, and I have a virtual directory in IIS called jakarta that points to that directory. Ian - 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]