RE: Problem with redirection
What do you mean by that? I have a property, which is just the name of a JSP, but for some reason, port 80 is added to the complete URL. We don't know why, it's probably a Tomcat error, but the question is how to solve this. It's not a software or programmatic error, because I created a webapp with 2 simpel JSP's, where the first JSP redirects to a second (% response.sendRedirect(second.jsp); %) and the port is added to the URL. So it has nothing to do with Spring or any other framework (unfortunately). Björn De Bakker Mobile: +32 (0)499 67 37 22 Email: [EMAIL PROTECTED] Accenture Technology Solutions Medialaan 38 B-1800 Vilvoorde P Before printing, think about the environment -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Friday, 23 November, 2007 17:55 To: Tomcat Users List Subject: RE: Problem with redirection Bjorn- Do you have any Filters defined such as FilterChainProxy configured in applicationContext-acegi-security.xml...?There should be a property with a name which you should redirect to which will invoke the value (usually a jsp) which is assigned to the property Martin This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ClassNotFoundException when starting with security mode
Hi there, we have a problem with our web application when starting Tomcat in security mode. For some reasons we always get some ClassNotFoundExceptions and we don't know why. The exception is: java.lang.ClassNotFoundException: org.mozilla.javascript.optimizer.OptRuntime org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .java:1359) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .java:1205) java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) java.lang.Class.forName0(Native Method) java.lang.Class.forName(Class.java:164) ... The class which cannot be found is in a js.jar which is located at WEB-INF/lib of our web application. We also defined access to our web application in the catalina.policy which looks like: grant codeBase file:${catalina.home}/webapps/ourWebApp/- { permission java.security.AllPermission; }; If we start Tomcat in normal mode, everything works fine. So what could be the problem? Can you help me? Regards, Jacqueline.
Which license policy ASF or Sun Micro on jsp_2_0.xsd...
Hello, I have a question regarding which licensing policy do I follow on the this file : apache-tomcat-5.5.17-src/servletapi/jsr152/src/share/dtd/jsp_2_0.xsd This file seems to have dual license, so which one is in fact valid the ASF or the Sun ??? Thanks for your help. -Danny Copyright 2004 The Apache Software Foundation Licensed under the Apache License, Version 2.0 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Copyright 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, California 94303, U.S.A. All rights reserved. Sun Microsystems, Inc. has intellectual property rights relating to technology described in this document. In particular, and without limitation, these intellectual property rights may include one or more of the U.S. patents listed at http://www.sun.com/patents and one or more additional patents or pending patent applications in the U.S. and other countries. This document and the technology which it describes are distributed under licenses restricting their use, copying, distribution, and decompilation. No part of this document may be reproduced in any form by any means without prior written authorization of Sun and its licensors, if any. Third-party software, including font technology, is copyrighted and licensed from Sun suppliers. Sun, Sun Microsystems, the Sun logo, Solaris, Java, J2EE, JavaServer Pages, Enterprise JavaBeans and the Java Coffee Cup logo are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. Federal Acquisitions: Commercial Software - Government Users Subject to Standard License Terms and Conditions. .
Passing JVM parameters through the GUI in Tomcat 5.0.28
Hi all, I'm trying to pass some parameters to Tomcat 5.0.28. The product I'm installing (Vignette) explains how to do this when you run Tomcat using scripts: set CATALINA_OPTS=-Xmx512M -Dcom.vignette.installDir=vgn-install-dir -Dcom.vignette.workingDir=vgn-working-dir This works perfectly. However, when I run Tomcat as a service, things start to break. It's my understanding that I can pass these parameters to Tomcat by putting them in the Java Options box in the Java tab of the Tomcat monitoring tool (while Xmx can be put in the appropriate text box at the bottom). However, when I do this the parameters do not get set and the application doesn't work. It clearly says that com.vignette.workingDir has not been properly set. This is what my Java Options box looks like now: -Dcatalina.base=C:\Tomcat -Dcatalina.home=C:\Tomcat -Djava.endorsed.dirs=C:\Tomcat\common\endorsed -Djava.io.tmpdir=C:\Tomcat\temp -Dcom.vignette.installDir=vgn-install-dir -Dcom.vignette.workingDir=vgn-working-dir I've also tried modifying the service creation script. This seems only to have added the parameters to the monitoring GUI. Any ideas how I can make this work? Thanks, Karim - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Automatic restart?
Hello, I'm getting logFull all threads in use messages now and then, and have a pretty good idea why. But it seems that tomcat decides to shut down / restart the webapp (or more than that) just after this. Is there some mechanism that restarts when all threads are stuck, or after some timeout? Is this configurable. I'd like some insight into what's going on excactly. Thanks, -dennis - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Security Manager
I'm using security manager with Tomcat 4.1.36 on NetWare 6.5 sp7. The policy file includes: grant { permission java.io.FilePermission \\SERVER1\VOL1\Photos, read, write, delete; }; which as I understand gives full access for \\SERVER1\VOL1\Photos to all web apps. But I still get: org.apache.jasper.JasperException: access denied (java.io.FilePermission \\SERVER1\VOL1\Photos read) Is there anything else I need to do? I've also tried granting access using VOL1:/Photos but with the same result. Thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: multithreaded with taglibs
Errr how will you allow people to access the file over the internet with a file:// protocol ? are you only running the app and the users browser on the same machine ? file://C:\My Documents\image.gif ? Can't see that working over the internet On Sun, 2007-11-25 at 13:56 +0200, Yair Ben-Meir wrote: Thanks, but that's not good for me, I need the page to be with a real file link (file://), not through a servlet. -Original Message- From: Pid [mailto:[EMAIL PROTECTED] Sent: Sunday, November 25, 2007 11:53 AM To: Tomcat Users List Subject: Re: multithreaded with taglibs Yair Ben-Meir wrote: Let say that the tag will have to generate the image with a text given as an attribute, and it takes time so I want the page to continue: my:img src=file text=first/ . my:img src=file text=first/ Why are you doing this with a tag, rather than sending the parameter to a servlet that serves an image into it's output stream? You exploit the browsers own request handling capabilities this way. img src=/img-app/generate?param1=some+text+here alt=an image / p -Original Message- From: David Cassidy [mailto:[EMAIL PROTECTED] Sent: Thursday, November 22, 2007 6:08 PM To: Tomcat Users List Subject: Re: multithreaded with taglibs Hi What is your tag going to produce ? is it an IMG SRC=. type tag ? or how are you allowing the browser to access the image ? Ta D On Thu, 2007-11-22 at 14:57 +0200, Yair Ben-Meir wrote: Hi Is there a way to write a taglib that will do a multithreading work? Meaning, that tomcatwill not wait till the first instance of the tag will end, and continue to the rest of the page, and maybe start with another instance, and than it will insert the result of each instance in the right place? Example: my:img name=/ . my:img name=/ And let say that each my:img is supposed to download the image and save it locally or something like that, and I don't want tomcat to wait till the first tag is finished. Thanks Yair Ben-Meir Office: 073-7997801 Fax: 073-7997800 Mob: 054-5769681 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Serving static resources outside webapp in Tomcat 5.5.25
Hello, We have a web application (app) running on Tomcat 5.5.9 deployed on the default tomcat webapp directory ([TOMCAT_HOME]/webapps). This application has a context.xml file which defines access to static external resources (image files, video files, etc.) this way: ?xml version=1.0 encoding=UTF-8? Context docBase=/app/resources path=/contents Resources className=org.apache.naming.resources.FileDirContext / /Context These file can be accessed correctly. For example with the following URL http://localhost:8080/contents/image.gif the image located in /app/resources/image.gif. is shown. We are upgrading Tomcat version from 5.5.9 to 5.5.25, and with the new version, it is impossible to access the external files with the context.xml definition it used to work in Tomcat 5.5.9. What has been changed from version 5.5.9 and which is the way to access external static resources from a webapp in Tomcat 5.5.25? Thanks in advance, -- Félix Pedrera - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Rewrite Rules for JSP Site
Hello Everyone, I have created a web site using jsp pages and struts framework, and configured it on https using Tomcat WebServer. After compilation of my java files, it creates war file. And now I have copied files to C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps folder with all jsp pages. so now my site folder structure (C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps): .../webapps/lmenaria.war .../webapps/lmenaria .../webapps/lmenaria/images .../webapps/lmenaria/login.jsp .../webapps/lmenaria/logout.jsp .../webapps/lmenaria/. .../webapps/lmenaria/all jsp pages now My web url is : https://www.lmenaria.com/lmenaria/login.jsp but I want my url https://www.lmenaria.com/login.jsp instead of above. I have copied all jsp pages to webapps folder but its shows page not found error, so what should I do ? Can I configure Rewrite Rules or any other idea? -- Thanks in advance, Laxmilal menaria http://www.chambal.com/ http://www.minalyzer.com/ http://www.bucketexplorer.com/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multithreaded with taglibs
Yair, I created a eshop website that dynamically re sizes images depending on the url. Here is a simple outline of what happens. A new product is created by the shop admin. Images are then uploaded and stored in a database in the uploaded size. When a product page is viewed the controller ( im using spring ) pulls the product object from the db and passes it to the view, a jsp page. The jsp then generates a image tag as show below. img width=175px name=mainImage src=productimages/69_s_medium.jpg title=Kitchen Stove and Utensils/ The browser then renders the page, when it finds a image tag it then uses another thread to load the image. this is standard browser behavior. The productimages url is mapped to another controller, that parses the url. The first part of the url is the image id, the next part is tells it that the part after that is a size rather than a dimension. The controller knows the expected dimensions for a medium image. The controller then pulls the image from the db and resizes it before sending it to the browser. The controller is actually smarter than that, and does on disk caching of resized images and check the last mod time, but i wont detail that here. So what is happening here is the browser is rendering the html created by the jsp page and then making another request to get the images, which is then making tomcat use another thread to generate the image. Sound like what your trying to achieve? Ben On Nov 26, 2007 10:15 AM, David Cassidy [EMAIL PROTECTED] wrote: Errr how will you allow people to access the file over the internet with a file:// protocol ? are you only running the app and the users browser on the same machine ? file://C:\My Documents\image.gif ? Can't see that working over the internet On Sun, 2007-11-25 at 13:56 +0200, Yair Ben-Meir wrote: Thanks, but that's not good for me, I need the page to be with a real file link (file://), not through a servlet. -Original Message- From: Pid [mailto:[EMAIL PROTECTED] Sent: Sunday, November 25, 2007 11:53 AM To: Tomcat Users List Subject: Re: multithreaded with taglibs Yair Ben-Meir wrote: Let say that the tag will have to generate the image with a text given as an attribute, and it takes time so I want the page to continue: my:img src=file text=first/ . my:img src=file text=first/ Why are you doing this with a tag, rather than sending the parameter to a servlet that serves an image into it's output stream? You exploit the browsers own request handling capabilities this way. img src=/img-app/generate?param1=some+text+here alt=an image / p -Original Message- From: David Cassidy [mailto:[EMAIL PROTECTED] Sent: Thursday, November 22, 2007 6:08 PM To: Tomcat Users List Subject: Re: multithreaded with taglibs Hi What is your tag going to produce ? is it an IMG SRC=. type tag ? or how are you allowing the browser to access the image ? Ta D On Thu, 2007-11-22 at 14:57 +0200, Yair Ben-Meir wrote: Hi Is there a way to write a taglib that will do a multithreading work? Meaning, that tomcatwill not wait till the first instance of the tag will end, and continue to the rest of the page, and maybe start with another instance, and than it will insert the result of each instance in the right place? Example: my:img name=/ . my:img name=/ And let say that each my:img is supposed to download the image and save it locally or something like that, and I don't want tomcat to wait till the first tag is finished. Thanks Yair Ben-Meir Office: 073-7997801 Fax: 073-7997800 Mob: 054-5769681 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
Re: Sharing an object between two webapps
On 23.11.2007, at 17:43, Caldarale, Charles R wrote: From: Kaspar Fischer [mailto:[EMAIL PROTECTED] Subject: Re: Sharing an object between two webapps The class SharedObjectHolder from my previous post lies inside the JAR webapps/A/WEB-INF/lib/SharedObjectHolder.jar. Move it to shared/lib; do not leave a copy in WEB-INF/lib or any other location, including B's WEB-INF/lib directory. In order to make A's JARs available to webapp B, I've set shared.loader=${catalina.base}/shared/classes,${catalina.base}/ shared/lib/*.jar,${catalina.base}/webapps/A/WEB-INF/lib/*.jar I wouldn't mess with that - pretty much guaranteed to cause confusion and collisions with the webapp's classsloader. Put it back the way it was. - Chuck Chuck, many thanks again. Your help and another insight into the crossContext attribute of Tomcat allowed me to find a solution. Thanks for your time! The deails for my particular application are documented here: http://wiki.alfresco.com/wiki/ Alfresco_and_Tapestry_on_the_Same_Tomcat_Installation I hope this helps others that need to do a similar thing. Kaspar - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: multithreaded with taglibs
You're right about that - it is not for using over the web. Anyway, that's just an example. The main issue is to run the work of the tag in a thread without making the rest of the page wait. -Original Message- From: David Cassidy [mailto:[EMAIL PROTECTED] Sent: Monday, November 26, 2007 12:15 PM To: Tomcat Users List Subject: RE: multithreaded with taglibs Errr how will you allow people to access the file over the internet with a file:// protocol ? are you only running the app and the users browser on the same machine ? file://C:\My Documents\image.gif ? Can't see that working over the internet On Sun, 2007-11-25 at 13:56 +0200, Yair Ben-Meir wrote: Thanks, but that's not good for me, I need the page to be with a real file link (file://), not through a servlet. -Original Message- From: Pid [mailto:[EMAIL PROTECTED] Sent: Sunday, November 25, 2007 11:53 AM To: Tomcat Users List Subject: Re: multithreaded with taglibs Yair Ben-Meir wrote: Let say that the tag will have to generate the image with a text given as an attribute, and it takes time so I want the page to continue: my:img src=file text=first/ . my:img src=file text=first/ Why are you doing this with a tag, rather than sending the parameter to a servlet that serves an image into it's output stream? You exploit the browsers own request handling capabilities this way. img src=/img-app/generate?param1=some+text+here alt=an image / p -Original Message- From: David Cassidy [mailto:[EMAIL PROTECTED] Sent: Thursday, November 22, 2007 6:08 PM To: Tomcat Users List Subject: Re: multithreaded with taglibs Hi What is your tag going to produce ? is it an IMG SRC=. type tag ? or how are you allowing the browser to access the image ? Ta D On Thu, 2007-11-22 at 14:57 +0200, Yair Ben-Meir wrote: Hi Is there a way to write a taglib that will do a multithreading work? Meaning, that tomcatwill not wait till the first instance of the tag will end, and continue to the rest of the page, and maybe start with another instance, and than it will insert the result of each instance in the right place? Example: my:img name=/ . my:img name=/ And let say that each my:img is supposed to download the image and save it locally or something like that, and I don't want tomcat to wait till the first tag is finished. Thanks Yair Ben-Meir Office: 073-7997801 Fax: 073-7997800 Mob: 054-5769681 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: multithreaded with taglibs
Hi ben Thanks for your idea. In my case, I can't use it, since the generated img tag must be a static file (a file: url) and not a link to a servlet. That's why the processing must be when generating the html. Thanks Yair -Original Message- From: ben short [mailto:[EMAIL PROTECTED] Sent: Monday, November 26, 2007 1:19 PM To: Tomcat Users List Subject: Re: multithreaded with taglibs Yair, I created a eshop website that dynamically re sizes images depending on the url. Here is a simple outline of what happens. A new product is created by the shop admin. Images are then uploaded and stored in a database in the uploaded size. When a product page is viewed the controller ( im using spring ) pulls the product object from the db and passes it to the view, a jsp page. The jsp then generates a image tag as show below. img width=175px name=mainImage src=productimages/69_s_medium.jpg title=Kitchen Stove and Utensils/ The browser then renders the page, when it finds a image tag it then uses another thread to load the image. this is standard browser behavior. The productimages url is mapped to another controller, that parses the url. The first part of the url is the image id, the next part is tells it that the part after that is a size rather than a dimension. The controller knows the expected dimensions for a medium image. The controller then pulls the image from the db and resizes it before sending it to the browser. The controller is actually smarter than that, and does on disk caching of resized images and check the last mod time, but i wont detail that here. So what is happening here is the browser is rendering the html created by the jsp page and then making another request to get the images, which is then making tomcat use another thread to generate the image. Sound like what your trying to achieve? Ben On Nov 26, 2007 10:15 AM, David Cassidy [EMAIL PROTECTED] wrote: Errr how will you allow people to access the file over the internet with a file:// protocol ? are you only running the app and the users browser on the same machine ? file://C:\My Documents\image.gif ? Can't see that working over the internet On Sun, 2007-11-25 at 13:56 +0200, Yair Ben-Meir wrote: Thanks, but that's not good for me, I need the page to be with a real file link (file://), not through a servlet. -Original Message- From: Pid [mailto:[EMAIL PROTECTED] Sent: Sunday, November 25, 2007 11:53 AM To: Tomcat Users List Subject: Re: multithreaded with taglibs Yair Ben-Meir wrote: Let say that the tag will have to generate the image with a text given as an attribute, and it takes time so I want the page to continue: my:img src=file text=first/ . my:img src=file text=first/ Why are you doing this with a tag, rather than sending the parameter to a servlet that serves an image into it's output stream? You exploit the browsers own request handling capabilities this way. img src=/img-app/generate?param1=some+text+here alt=an image / p -Original Message- From: David Cassidy [mailto:[EMAIL PROTECTED] Sent: Thursday, November 22, 2007 6:08 PM To: Tomcat Users List Subject: Re: multithreaded with taglibs Hi What is your tag going to produce ? is it an IMG SRC=. type tag ? or how are you allowing the browser to access the image ? Ta D On Thu, 2007-11-22 at 14:57 +0200, Yair Ben-Meir wrote: Hi Is there a way to write a taglib that will do a multithreading work? Meaning, that tomcatwill not wait till the first instance of the tag will end, and continue to the rest of the page, and maybe start with another instance, and than it will insert the result of each instance in the right place? Example: my:img name=/ . my:img name=/ And let say that each my:img is supposed to download the image and save it locally or something like that, and I don't want tomcat to wait till the first tag is finished. Thanks Yair Ben-Meir Office: 073-7997801 Fax: 073-7997800 Mob: 054-5769681 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Rewrite Rules for JSP Site
Laxmilal Menaria wrote: Hello Everyone, I have created a web site using jsp pages and struts framework, and configured it on https using Tomcat WebServer. After compilation of my java files, it creates war file. And now I have copied files to C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps folder with all jsp pages. so now my site folder structure (C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps): .../webapps/lmenaria.war .../webapps/lmenaria .../webapps/lmenaria/images .../webapps/lmenaria/login.jsp .../webapps/lmenaria/logout.jsp .../webapps/lmenaria/. .../webapps/lmenaria/all jsp pages now My web url is : https://www.lmenaria.com/lmenaria/login.jsp but I want my url https://www.lmenaria.com/login.jsp instead of above. I have copied all jsp pages to webapps folder but its shows page not found error, so what should I do ? Create a new Host (called 'www.lmenaria.com'), define a new appBase path and place your app, renamed ROOT.war into the directory you define as appBase. C:\Path\to\menaria\webapps\ROOT.war p Can I configure Rewrite Rules or any other idea? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache Tomcat 6.0.14 classloader
Hi list, JVM : 1.6.0 OS : Windows XP Tomcat Version : 6.0.14 The problem: no matter how i set the shared.loader in cataline.properties it does not load the jars in there: here is what i tried so far: shared.loader=${catalina.home}/shared/lib,${catalina.home}/shared/lib/*.jar it did not works so i moved my jars to ${catalina.home}/zk and tried this: shared.loader=file:///c:/Java/servers/TOMCAT_6/zk/*.jar and since it did not work i tried this too: shared.loader=${catalina.home}/zk,${catalina.home}/zk/*.jar non of the above try was successful loading my jars am i missing something? thanks for any suggestion! Yassine -- (e==mc²)? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Rewrite Rules for JSP Site
Ok.. Thanks, I have tried to copy all files in root folder and its works On 11/26/07, Pid [EMAIL PROTECTED] wrote: Laxmilal Menaria wrote: Hello Everyone, I have created a web site using jsp pages and struts framework, and configured it on https using Tomcat WebServer. After compilation of my java files, it creates war file. And now I have copied files to C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps folder with all jsp pages. so now my site folder structure (C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps): .../webapps/lmenaria.war .../webapps/lmenaria .../webapps/lmenaria/images .../webapps/lmenaria/login.jsp .../webapps/lmenaria/logout.jsp .../webapps/lmenaria/. .../webapps/lmenaria/all jsp pages now My web url is : https://www.lmenaria.com/lmenaria/login.jsp but I want my url https://www.lmenaria.com/login.jsp instead of above. I have copied all jsp pages to webapps folder but its shows page not found error, so what should I do ? Create a new Host (called 'www.lmenaria.com'), define a new appBase path and place your app, renamed ROOT.war into the directory you define as appBase. C:\Path\to\menaria\webapps\ROOT.war p Can I configure Rewrite Rules or any other idea? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Laxmilal menaria http://www.chambal.com/ http://www.minalyzer.com/ http://www.bucketexplorer.com/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: multithreaded with taglibs
Well, the output of the jsp isn't html in my case, but something similar, an xml file with references to other files. -Original Message- From: Pid [mailto:[EMAIL PROTECTED] Sent: Monday, November 26, 2007 1:48 PM To: Tomcat Users List Subject: Re: multithreaded with taglibs ben's method does actually produce a static file I think, he's just producing them on demand and delivering them via a servlet. I'm curious, why does it have to be a static file, and why does it have to be a local 'file:' based url? p Yair Ben-Meir wrote: Hi ben Thanks for your idea. In my case, I can't use it, since the generated img tag must be a static file (a file: url) and not a link to a servlet. That's why the processing must be when generating the html. Thanks Yair -Original Message- From: ben short [mailto:[EMAIL PROTECTED] Sent: Monday, November 26, 2007 1:19 PM To: Tomcat Users List Subject: Re: multithreaded with taglibs Yair, I created a eshop website that dynamically re sizes images depending on the url. Here is a simple outline of what happens. A new product is created by the shop admin. Images are then uploaded and stored in a database in the uploaded size. When a product page is viewed the controller ( im using spring ) pulls the product object from the db and passes it to the view, a jsp page. The jsp then generates a image tag as show below. img width=175px name=mainImage src=productimages/69_s_medium.jpg title=Kitchen Stove and Utensils/ The browser then renders the page, when it finds a image tag it then uses another thread to load the image. this is standard browser behavior. The productimages url is mapped to another controller, that parses the url. The first part of the url is the image id, the next part is tells it that the part after that is a size rather than a dimension. The controller knows the expected dimensions for a medium image. The controller then pulls the image from the db and resizes it before sending it to the browser. The controller is actually smarter than that, and does on disk caching of resized images and check the last mod time, but i wont detail that here. So what is happening here is the browser is rendering the html created by the jsp page and then making another request to get the images, which is then making tomcat use another thread to generate the image. Sound like what your trying to achieve? Ben On Nov 26, 2007 10:15 AM, David Cassidy [EMAIL PROTECTED] wrote: Errr how will you allow people to access the file over the internet with a file:// protocol ? are you only running the app and the users browser on the same machine ? file://C:\My Documents\image.gif ? Can't see that working over the internet On Sun, 2007-11-25 at 13:56 +0200, Yair Ben-Meir wrote: Thanks, but that's not good for me, I need the page to be with a real file link (file://), not through a servlet. -Original Message- From: Pid [mailto:[EMAIL PROTECTED] Sent: Sunday, November 25, 2007 11:53 AM To: Tomcat Users List Subject: Re: multithreaded with taglibs Yair Ben-Meir wrote: Let say that the tag will have to generate the image with a text given as an attribute, and it takes time so I want the page to continue: my:img src=file text=first/ . my:img src=file text=first/ Why are you doing this with a tag, rather than sending the parameter to a servlet that serves an image into it's output stream? You exploit the browsers own request handling capabilities this way. img src=/img-app/generate?param1=some+text+here alt=an image / p -Original Message- From: David Cassidy [mailto:[EMAIL PROTECTED] Sent: Thursday, November 22, 2007 6:08 PM To: Tomcat Users List Subject: Re: multithreaded with taglibs Hi What is your tag going to produce ? is it an IMG SRC=. type tag ? or how are you allowing the browser to access the image ? Ta D On Thu, 2007-11-22 at 14:57 +0200, Yair Ben-Meir wrote: Hi Is there a way to write a taglib that will do a multithreading work? Meaning, that tomcatwill not wait till the first instance of the tag will end, and continue to the rest of the page, and maybe start with another instance, and than it will insert the result of each instance in the right place? Example: my:img name=/ . my:img name=/ And let say that each my:img is supposed to download the image and save it locally or something like that, and I don't want tomcat to wait till the first tag is finished. Thanks Yair Ben-Meir Office: 073-7997801 Fax: 073-7997800 Mob: 054-5769681 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail:
Logging Framework
Hello! My java application writes relevant log of database procedures executions. My goal is to develop a report at intervals of 30 minutes with a summary, including requests slowest, and average time of execution, etc. 2007-11-26 00:00:00379 DEBUG ajp - 8009-10 RequestFilter - Request Started 2007-11-26 00:00:00379 DEBUG ajp - 8009-14 RequestFilter - Request Started 2007-11-26 00:00:00379 DEBUG ajp - 8009-10 RequestFilter - Request Ended: Total time: 0 s 2007-11-26 00:00:00379 DEBUG ajp - 8009-14 RequestFilter - Request Ended: Total time: 0 s Is there any framework adaptable to this? Best Regards - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat implementation: please help
Hi, i'm new to Tomcat, i've downloaded Tomcat (5.5.25 Windows Installer) and am trying to do the Head First Servlets JSP- Book. In the book, it says that one can start Tomcat by entering %bin/startup.sh from the home directory (which is Tomcat 5.5). But in this directory, startup.sh does not exist. The way i got Tomcat running is by doubleclicking the file tomcat5w in the tomcat 5.5/bin/ directory. Do i miss anything? I need to know this as later in the book it says to shutdown by entering %bin/shutdown.sh, that isn't existing either. Thnaks, Patrick -- View this message in context: http://www.nabble.com/Tomcat-implementation%3A-please-help-tf4875257.html#a13949911 Sent from the Tomcat - User mailing list archive at Nabble.com.
Re: Security Manager
I would opt for absolute path URI such as. file:opt/usr/photo/- instead of the more problematic UNC's it appears you want AllPermission which is granted by Security class with same name ..AllPermission so in $CATALINA_HOME/conf/catalina.policy you can consider a grant on absolute path of opt/usr/photo such as grant codeBase file:opt/usr/photo/- { permission java.security.AllPermission; }; does anyone know if UNC is supported in tomcat 4.1.36 catalina.policy with Netware 6.5 File System??? Martin - Original Message - From: Aziz Yacoub [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Monday, November 26, 2007 4:58 AM Subject: Security Manager I'm using security manager with Tomcat 4.1.36 on NetWare 6.5 sp7. The policy file includes: grant { permission java.io.FilePermission \\SERVER1\VOL1\Photos, read, write, delete; }; which as I understand gives full access for \\SERVER1\VOL1\Photos to all web apps. But I still get: org.apache.jasper.JasperException: access denied (java.io.FilePermission \\SERVER1\VOL1\Photos read) Is there anything else I need to do? I've also tried granting access using VOL1:/Photos but with the same result. Thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat implementation: please help
Hello Patrick- Which Operating System are you using to implement Tomcat? M- - Original Message - From: Patrick2901 [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Monday, November 26, 2007 9:16 AM Subject: Tomcat implementation: please help Hi, i'm new to Tomcat, i've downloaded Tomcat (5.5.25 Windows Installer) and am trying to do the Head First Servlets JSP- Book. In the book, it says that one can start Tomcat by entering %bin/startup.sh from the home directory (which is Tomcat 5.5). But in this directory, startup.sh does not exist. The way i got Tomcat running is by doubleclicking the file tomcat5w in the tomcat 5.5/bin/ directory. Do i miss anything? I need to know this as later in the book it says to shutdown by entering %bin/shutdown.sh, that isn't existing either. Thnaks, Patrick -- View this message in context: http://www.nabble.com/Tomcat-implementation%3A-please-help-tf4875257.html#a1 3949911 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat implementation: please help
Hi, i'm using Windows XP SP2. Thanks, Patrick mgainty wrote: Hello Patrick- Which Operating System are you using to implement Tomcat? M- - Original Message - From: Patrick2901 [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Monday, November 26, 2007 9:16 AM Subject: Tomcat implementation: please help Hi, i'm new to Tomcat, i've downloaded Tomcat (5.5.25 Windows Installer) and am trying to do the Head First Servlets JSP- Book. In the book, it says that one can start Tomcat by entering %bin/startup.sh from the home directory (which is Tomcat 5.5). But in this directory, startup.sh does not exist. The way i got Tomcat running is by doubleclicking the file tomcat5w in the tomcat 5.5/bin/ directory. Do i miss anything? I need to know this as later in the book it says to shutdown by entering %bin/shutdown.sh, that isn't existing either. Thnaks, Patrick -- View this message in context: http://www.nabble.com/Tomcat-implementation%3A-please-help-tf4875257.html#a1 3949911 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Tomcat-implementation%3A-please-help-tf4875257.html#a13951367 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Access to static external resources from a webapp in Tomcat 5.5.25.
Hello, For a webapp deployed on Tomcat 5.5.9 to access static external resources (images, videos, etc), which we don't want to be deleted when the application is undeployed, we use the following entry on the context.xml file of the webapp, under the META-INF directory of the web application: Context docBase=/path/to/resources path=/contents Resources className=org.apache.naming.resources.FileDirContext/ /Context Having configured this, we can access the files under /path/to/resources through the URL http://localhost:8080/contents. This worked perfectly with Tomcat 5.5.9, but when upgrading to Tomcat 5.5.25 the webapp cannot access the external resources we place outside of the Tomcat webapps directory. Which is the proper method to access external resources from a webapp has been defined from version 5.5.10? This issue has been notified previously to the list, some answers where the following You don't explicitly say where your Context element is, but the implication is that it's inside a file named context.xml in your webapp's META-INF directory. If that is the case, both the path and docBase attributes are ignored. See: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html Look at the descriptions for the two attributes in question. The docBase attribute is intended to provide the location of the webapp, not a link to external resources. Tomcat versions after 5.5.9 seem to have tightened up enforcement of the configuration rules. I understand these attributes are intented to provide a location of the webapp, but in this case, how do I access to static external resources from a webapp in Tomcat 5.5.25? Thanks in advance, -- Félix Pedrera. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6 virtual host problem please help
verify the right version of modules (mod_proxy_ajp.so) are in %APACHE_HOME%/modules folderstart here http://httpd.apache.org/docs/2.2/mod/mod_proxy_ajp.html Im using the module mod_proxy_ajp.so that comes with Apache 2.2.6 which I'm using. The version of Tomcat 5.5 that Im using is Tomcat 5.5.25. Someone know why the pages that I get via reverse proxy are relative to the real web server and not to the proxy server? eg: ProxyPass / http://localhost:8081/app/ ProxyPassReverse / http://localhost:8081/app/ when I access http://www.example.com (www.example.com resolves to proxy server), I get the first page correctly, but every link to a rosouce in it contained is relative to http://localhost:8081/app/. eg: there is a link to css/style.css in the home page of http://www.example.com and it is not loaded because i try to get http://www.example.com/app/. thanks, rocsca - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat implementation: please help
Try startup.bat. On Nov 26, 2007 8:01 AM, Patrick2901 [EMAIL PROTECTED] wrote: Hi, i'm using Windows XP SP2. Thanks, Patrick mgainty wrote: Hello Patrick- Which Operating System are you using to implement Tomcat? M- - Original Message - From: Patrick2901 [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Monday, November 26, 2007 9:16 AM Subject: Tomcat implementation: please help Hi, i'm new to Tomcat, i've downloaded Tomcat (5.5.25 Windows Installer) and am trying to do the Head First Servlets JSP- Book. In the book, it says that one can start Tomcat by entering %bin/startup.sh from the home directory (which is Tomcat 5.5). But in this directory, startup.sh does not exist. The way i got Tomcat running is by doubleclicking the file tomcat5w in the tomcat 5.5/bin/ directory. Do i miss anything? I need to know this as later in the book it says to shutdown by entering %bin/shutdown.sh, that isn't existing either. Thnaks, Patrick -- View this message in context: http://www.nabble.com/Tomcat-implementation%3A-please-help-tf4875257.html#a1 3949911 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Tomcat-implementation%3A-please-help-tf4875257.html#a13951367 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gary Evesson
RE: Tomcat implementation: please help
From: Patrick2901 [mailto:[EMAIL PROTECTED] Subject: Tomcat implementation: please help In the book, it says that one can start Tomcat by entering %bin/startup.sh from the home directory (which is Tomcat 5.5). For some unfathomable reason, the various scripts are not included in the .exe download, but are in the .zip one. The .exe version installs Tomcat as a service; the .zip gives you more options. Scripts ending with .sh are for Linux/UNIX systems; .bat is the proper extension for Windows. If you're just starting with Tomcat, I'd suggest using the latest 6.0 version, not 5.5. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[HTTPS] more web app each one with a proper certificate
Hi all! I'm quite a beginner with Tomcat, but really I can't understand what should I do in the following scenario: I'm configuring Tomcat to use https with all my web apps. I have produced a .keystore file with two keys (one for each web app) I have two web app and I would like to use one key with one of them and the other key with the other web app. Inside server.xml, I have decommented the xml fragment about https, but I have noticed studying a little the documentation that through keyAlias attribute I can specify a specific alias to be used as valid certificate. My question is, How should I configure server.xml (or other things) to use different certificates with different web apps? Thanks in advance and best regards. Raffaele -- View this message in context: http://www.nabble.com/-HTTPS--more-web-app-each-one-with-a-proper-certificate-tf4875838.html#a13951888 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Rewrite Rules for JSP Site
From: Pid [mailto:[EMAIL PROTECTED] Subject: Re: Rewrite Rules for JSP Site Create a new Host (called 'www.lmenaria.com'), define a new appBase path and place your app, renamed ROOT.war into the directory you define as appBase. It's not necessary to create a new Host or appBase. Simply delete the existing webapps/ROOT directory and rename lmenaria.war to ROOT.war (case sensitive). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Passing JVM parameters through the GUI in Tomcat 5.0.28
From: Karim Zaki [mailto:[EMAIL PROTECTED] Subject: Passing JVM parameters through the GUI in Tomcat 5.0.28 -Dcom.vignette.installDir=vgn-install-dir -Dcom.vignette.workingDir=vgn-working-dir You don't really have angle brackets in there, do you? Show us your real parameters. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Increase JAVA Heap size when Tomcat start
Hello all, I want to use a J2ee application (Magnolia), but I need to increase the java heap size when tomcat (5.5.25) start. What is the solution ? Thanks Jean-Pierre - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Increase JAVA Heap size when Tomcat start
Look at the catalina.bat or catalina.sh specifically at the JAVA_OPTS environment var On Nov 26, 2007 3:51 PM, Jean-Pierre Astier [EMAIL PROTECTED] wrote: Hello all, I want to use a J2ee application (Magnolia), but I need to increase the java heap size when tomcat (5.5.25) start. What is the solution ? Thanks Jean-Pierre - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Passing JVM parameters through the GUI in Tomcat 5.0.28
Hi Chuck, No. No angle brackets :) Here are the actual parameters: -Dcatalina.base=C:\Tomcat -Dcatalina.home=C:\Tomcat -Djava.endorsed.dirs=C:\Tomcat\common\endorsed -Djava.io.tmpdir=C:\Tomcat\temp -Dcom.vignette.installDir=C:\Vignette\Content\7_3_1 -Dcom.vignette.workingDir=\\vgn-cma-vm\Vignette\vcm\inst-shared Thanks, Karim -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Monday, November 26, 2007 5:40 PM To: Tomcat Users List Subject: RE: Passing JVM parameters through the GUI in Tomcat 5.0.28 From: Karim Zaki [mailto:[EMAIL PROTECTED] Subject: Passing JVM parameters through the GUI in Tomcat 5.0.28 -Dcom.vignette.installDir=vgn-install-dir -Dcom.vignette.workingDir=vgn-working-dir You don't really have angle brackets in there, do you? Show us your real parameters. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: generic way of checking servlet status?
From: Derek Alexander [mailto:[EMAIL PROTECTED] Subject: Re: generic way of checking servlet status? As far as I can see there is no way to check if a Servlet is unavailable using Tomcat's built in MBeans. This does look like a bit of an oversight. If an actual request is made to a disabled servlet, the errorCount attribute of the corresponding servlet MBean is incremented, but I can't see any other indication that a problem exists. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Increase JAVA Heap size when Tomcat start
Thanks ben, all is ok now jp Le 26 nov. 07 à 16:58, ben short a écrit : Look at the catalina.bat or catalina.sh specifically at the JAVA_OPTS environment var On Nov 26, 2007 3:51 PM, Jean-Pierre Astier [EMAIL PROTECTED] wrote: Hello all, I want to use a J2ee application (Magnolia), but I need to increase the java heap size when tomcat (5.5.25) start. What is the solution ? Thanks Jean-Pierre - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Passing JVM parameters through the GUI in Tomcat 5.0.28
From: Karim Zaki [mailto:[EMAIL PROTECTED] Subject: RE: Passing JVM parameters through the GUI in Tomcat 5.0.28 -Dcom.vignette.workingDir=\\vgn-cma-vm\Vignette\vcm\inst-shared Try moving this to a local file and see if the problem disappears. Also try running this from a command prompt under a known account to see if the UNC reference will work at all. The account Tomcat is running under as a service may not be able to establish the SMB connection to the remote file system. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6 virtual host problem please help
Someone know why the pages that I get via reverse proxy are relative to the real web server and not to the proxy server? eg: ProxyPass / http://localhost:8081/app/ ProxyPassReverse / http://localhost:8081/app/ when I access http://www.example.com (www.example.com resolves to proxy server), I get the first page correctly, but every link to a rosouce in it contained is relative to http://localhost:8081/app/. eg: there is a link to css/style.css in the home page of http://www.example.com and it is not loaded because i try to get http://www.example.com/app/. thanks, rocsca Such a proxy configuration may require manipulation of the HTML links. Are the links being created dynamically or are they hard coded with css/style.css instead of /app/css/style.css and so on. -- Regards Gabe Wong NGASI AppServer Manager Application server installation and configuration AUTOMATION http://www.ngasi.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is there a quiet or headless install for Tomcat 5?
Thanks. Respectfully, for us at least, there is a step (2), And that is to have Tomcat setup as a service vs a command line invokation of an executable. Also not knowing what the setup.exe does for the *automatic* install that sets up the service. Also was not sure of any other tasks executed. Setting up registry items etc. But alas in reading it appears that the following... C:\ tomcat5 //IS//Tomcat5 --DisplayName=Apache Tomcat 5 \ C:\ --Install=C:\Program Files\Tomcat\bin\tomcat5.exe --Jvm=auto \ C:\ --StartMode=jvm --StopMode=jvm \ C:\ --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start \ C:\ --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop Should do the job. Thanks for the reply. Kurt -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 20, 2007 6:18 PM To: Tomcat Users List Subject: Re: Is there a quiet or headless install for Tomcat 5? Kurt Kavanaugh wrote: Semantics. By embedded I mean we use Tomcat, along with a number of other processes/applications which we package into a single product offering. I just wanted to be clear that I did not mean we are running Tomcat in an embedded mode. Thanks for reading and considering... -Original Message- From: Kurt Kavanaugh Sent: Tuesday, November 13, 2007 5:16 PM To: users@tomcat.apache.org Subject: Is there a quiet or headless install for Tomcat 5? Step 1. Unzip/untar a standard distribution. Step 2. There is no step 2. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat implementation: please help
Thanks for the feedbacks. I've downloaded Tomcat 6.x (zip) and extracted it to: C:\Program Files\Apache Software Foundation\Tomcat. The extraction put an additional directory underneeth (apache-tomcat-6.0.14), that i've deleted, so that my home directory is Tomcat and the subdir's (bin, common,...) are directly beneath Tomcat. Is that correct so far? Then i've changed the Tomcat_Home variable to: C:\Program Files\Apache Software Foundation\Tomcat\; Then i start Tomcat by launching tomcat/bin/startup.bat. A command prompt window briefly appears. But then when i go to the browser and enter http://localhost:8080/; i get cannot find server. Any idea where i can troubleshoot further? Thanks again, Patrick Patrick2901 wrote: Hi, i'm new to Tomcat, i've downloaded Tomcat (5.5.25 Windows Installer) and am trying to do the Head First Servlets JSP- Book. In the book, it says that one can start Tomcat by entering %bin/startup.sh from the home directory (which is Tomcat 5.5). But in this directory, startup.sh does not exist. The way i got Tomcat running is by doubleclicking the file tomcat5w in the tomcat 5.5/bin/ directory. Do i miss anything? I need to know this as later in the book it says to shutdown by entering %bin/shutdown.sh, that isn't existing either. Thnaks, Patrick -- View this message in context: http://www.nabble.com/Tomcat-implementation%3A-please-help-tf4875257.html#a13953562 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat implementation: please help
Make sure to create the tomcat variables on windows side. Also, what does your logs says ? Enviado pelo meu BlackBerry -Original Message- From: Patrick2901 [EMAIL PROTECTED] Date: Mon, 26 Nov 2007 08:49:53 To:users@tomcat.apache.org Subject: Re: Tomcat implementation: please help Thanks for the feedbacks. I've downloaded Tomcat 6.x (zip) and extracted it to: C:\Program Files\Apache Software Foundation\Tomcat. The extraction put an additional directory underneeth (apache-tomcat-6.0.14), that i've deleted, so that my home directory is Tomcat and the subdir's (bin, common,...) are directly beneath Tomcat. Is that correct so far? Then i've changed the Tomcat_Home variable to: C:\Program Files\Apache Software Foundation\Tomcat\; Then i start Tomcat by launching tomcat/bin/startup.bat. A command prompt window briefly appears. But then when i go to the browser and enter http://localhost:8080/; i get cannot find server. Any idea where i can troubleshoot further? Thanks again, Patrick Patrick2901 wrote: Hi, i'm new to Tomcat, i've downloaded Tomcat (5.5.25 Windows Installer) and am trying to do the Head First Servlets JSP- Book. In the book, it says that one can start Tomcat by entering %bin/startup.sh from the home directory (which is Tomcat 5.5). But in this directory, startup.sh does not exist. The way i got Tomcat running is by doubleclicking the file tomcat5w in the tomcat 5.5/bin/ directory. Do i miss anything? I need to know this as later in the book it says to shutdown by entering %bin/shutdown.sh, that isn't existing either. Thnaks, Patrick -- View this message in context: http://www.nabble.com/Tomcat-implementation%3A-please-help-tf4875257.html#a13953562 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat implementation: please help
From: Patrick2901 [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat implementation: please help Then i start Tomcat by launching tomcat/bin/startup.bat. A command prompt window briefly appears. Look in the logs to see what the problem is. If you haven't shut down the previous Tomcat instance that was running as a service, it may be holding the ports, not allowing the new installation to use them. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
is there a limit to JAVA Heap size ?
Hello, An other little question !!! Is there a limit to the java heap size var environment ? There is 3 GB off RAM on my server. I've set JAVA_OPTS to -Xms512m -Xmx512m in catalina.sh. Can I increase more than this value ? Thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: is there a limit to JAVA Heap size ?
Jean, I am not a Tomcat Expert, though I know you can set this value to a higher number. I have set once to 1GB. Perhaps the gurus on the forum would answer it clearly to you. HTH Bruno On Nov 26, 2007 3:06 PM, Jean-Pierre Astier [EMAIL PROTECTED] wrote: Hello, An other little question !!! Is there a limit to the java heap size var environment ? There is 3 GB off RAM on my server. I've set JAVA_OPTS to -Xms512m -Xmx512m in catalina.sh. Can I increase more than this value ? Thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: is there a limit to JAVA Heap size ?
Microsoft allows 3GB capability for User Process Address Space http://www.microsoft.com/technet/sysinternals/information/bootini.mspx Anyone else? M-- - Original Message - Wrom: UZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPB To: Tomcat Users List users@tomcat.apache.org Sent: Monday, November 26, 2007 12:08 PM Subject: Re: is there a limit to JAVA Heap size ? Jean, I am not a Tomcat Expert, though I know you can set this value to a higher number. I have set once to 1GB. Perhaps the gurus on the forum would answer it clearly to you. HTH Bruno On Nov 26, 2007 3:06 PM, Jean-Pierre Astier [EMAIL PROTECTED] wrote: Hello, An other little question !!! Is there a limit to the java heap size var environment ? There is 3 GB off RAM on my server. I've set JAVA_OPTS to -Xms512m -Xmx512m in catalina.sh. Can I increase more than this value ? Thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk to remote host
Logs and config files would help here. Substitute out real ips with Xs or fake ones; or just post them. In any event it is difficult for anyone to provide help based on the information you have provided. ~Charlie The significant problems we have cannot be solved at the same level of thinking with which we created them. - Albert Einstein -Original Message- From: John Richard Moser [mailto:[EMAIL PROTECTED] Sent: Monday, November 26, 2007 12:28 PM To: users@tomcat.apache.org Subject: mod_jk to remote host Hi I have a mod_jk connector that works on localhost. I am trying to change the host to the remote IP address and configure it on another server (port 8009 is open) but I'm getting nowhere. The error log consistently says the worker name=tomcat_ajp does not exist but I put it in worker.list= and configured it appropriately. Any help? Note: Tomcat itself is NOT installed locally on that machine. Also tcpdump on the remote machine shows no attempt to access the remote machine from the Web server. -- Bring back the Firefox plushy! http://digg.com/linux_unix/Is_the_Firefox_plush_gone_for_good https://bugzilla.mozilla.org/show_bug.cgi?id=322367 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This footnote confirms that this email message has been scanned by PineApp Mail-SeCure for the presence of malicious code, vandals computer viruses. --- This message is a CONFIDENTIAL communication. If you are not the intended recipient, please do not read, copy, or use it, and do not disclose it to others. Please notify the sender of the delivery error by replying to this message, and then delete it from your system. Thank you. This footnote confirms that this email message has been scanned by PineApp Mail-SeCure for the presence of malicious code, vandals computer viruses. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ApacheTomcat Connector mod_jk, receiving 0711-244 ERROR when I do a make
Hello Rainer, Hope you had a nice Thanksgiving? Does the coredump also occur, if you set JkLogLevel to info or error? Yes I tried changing to info or error and both got the dump. Also removed the statement and it dumped. I get the dump if I leave any of the Jk statements in httpd.conf. Interesting how the configtest causes the problem as if Apache does not like one of the statements? You can remove the next three lines. They are useless. workers.tomcat_home=/opt/freeware/apache-tomcat workers.java_home=/usr/local/bin/java ps=/ I had tomcat_home in here since there are multiple levels of Tomcat running for different products? Not sure how this works or if I need to have if running multiple Tomcats? I added the java_home to /usr/loca/bin/java which is a link to java 1.4. The default on this system for JAVA_HOME is Java 1.3 for an older product we are running. Not sure how this works? I overrode JAVA_HOME when I did the compile so it would pickup the 1.4 version. I commented them out for the other statements you recommended for now. Does the jk request log go to the access log automatically? It seems it would default to pwd /var/opt/freeware/apache/logs ls access_log error_log Well I am at a lose what is causing the core dumps. Doing google searches I found a few items, but not sure if it applies to me. As for using gdb I don't believe we have it installed. If you think this is the next step, then I could look into downloading this to help. When you had me run the file command it looks as if mod_jk.so was ok. file mod_jk.so mod_jk.so: executable (RISC System/6000) or object module not stripped Like I mentioned above, configtest seems to think there is an issue with the JK statements so I don't think mod_jk.so is even being loaded? Nothing is getting written to the mod_jk log file. pwd /opt/freeware/apache/logs ls -la total 0 drwxr-xr-x 2 root system 256 Nov 21 11:19 ./ drwxr-xr-x 9 root system 256 Nov 21 10:39 ../ -rwxr-xr-x 1 root system0 Nov 21 11:19 mod_jk.log* Once again, thanks for the help.. Rich
RE: is there a limit to JAVA Heap size ?
First of all, this is a JRE issue, not Tomcat! Depending on your Operating system (Windows, *nix, etc.), whether it's a 32 or 64 bit version, and what JRE you're using, the limit is different. You can get pretty good info from you JRE vendor about how it uses memory - Sun has several good articles on it - especially how they relate to Garbage Collection. Under 32 bit Windows, the JRE process is limited to 2 GB of total memory - including the memory that the JRE needs other than the heap controlled by the -Xmx setting. The practical limit is about 1250 MB for 32-bit Windows with a 1.5 or 1.6 Sun JRE. The limit for 64-bit Windows is insanely high - I hope to not ever reach it in my lifetime! Whatever your environment, a little trial-and-error can be used. Simply run something like 'java -Xmx2048M foo'. This is trying to set it to 2GB. Change the numeric value up and down to find out what your limit is. The Sun JRE gives an error about allocating the memory before worrying about not finding foo. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 26, 2007 12:12 PM To: Tomcat Users List Subject: Re: is there a limit to JAVA Heap size ? Microsoft allows 3GB capability for User Process Address Space http://www.microsoft.com/technet/sysinternals/information/bootini.mspx Anyone else? M-- - Original Message - Wrom: UZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPB To: Tomcat Users List users@tomcat.apache.org Sent: Monday, November 26, 2007 12:08 PM Subject: Re: is there a limit to JAVA Heap size ? Jean, I am not a Tomcat Expert, though I know you can set this value to a higher number. I have set once to 1GB. Perhaps the gurus on the forum would answer it clearly to you. HTH Bruno On Nov 26, 2007 3:06 PM, Jean-Pierre Astier [EMAIL PROTECTED] wrote: Hello, An other little question !!! Is there a limit to the java heap size var environment ? There is 3 GB off RAM on my server. I've set JAVA_OPTS to -Xms512m -Xmx512m in catalina.sh. Can I increase more than this value ? Thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SSL problem with Tomcat 5.5
Our web site has had an ssl certificate from Godaddy for the last two years. I'm trying to update the certificate because it just expired. After the expiration, before updating I was able to get to the main page, with a certificate error. After the update of the certificaste I'm not able to get to the https page at all. Environment is Windows 2003 server, Tomcat 5.5.9, Server.xml is set to redirect http (port 80) to port 443, and did work before. What I've done so far: Downloaded the server certificate, Godaddy certificates and recreated the keystore. No errors along the way. Verified that server.xml has the correct keystore file and password. Restarted Tomcat. Under webapps/root there is a redirector to send the browser to my other app's index.html. At this point I can open the http page, but if I try to open the https url I don't get anything. I'm open and would be very grateful for any suggestions. Thanks Bob Grabbe Michigan Proteome Consortium University of Michigan [EMAIL PROTECTED] _ If we knew what we were doing, it wouldn't be called research, would it ? --Albert Einstien
servlet-api.jar jsp path is empty
Hi, I was getting this error from my app: Caused by: java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/ TagSupport So I looked in the servlet-api.jar file that was included with my Tomcat 6 download and noticed that the javax/servlet/jsp/ folder is empty. I'm guessing this was by design, but can someone tell me what jar would contain the tagext classes? Are custom JSTL tags deprecated since Java 5? Thanks, Steven - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Tomcat for something other than HTTP servlets
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sean, Sean Nagle wrote: In a nutshell I am trying to extend G code ( the language of CNC routers ) using servlet technology. What I want to do is create something similar to JSP called GSP (GcodeServerPages). Interesting. Do you want to re-use JSP technology to generate G code output? I'm not really sure I understand why a servlet server would be useful, here: the servlet server is mostly concerned with network operations, the queuing and dispatching of requests, etc. I'm not sure how much of that is useful for your CNC project. It looks like what you really need is a console application that is intended to be used with a single operator standing next to the machine. In that case, I'd look into using something like Rhino (now the built-in javascript interpreter in Java) to script some useful tools that you write in Java yourself. Then, your meta-G (my name for your language that emits G code) language could be programmed by people who don't have to know anything about Java per se. Does this sound like what you're looking for? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHSw+e9CaO5/Lv0PARApQBAJ4+J8f0HgXS7KKOu1NKGU+98tPE8wCfQovZ uNaAMIBOLqbxXGiJvKS8Bd0= =axvV -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk to remote host
hmm. I replied an hour ago with the logs but it hasn't shown up... testing... Charlie Wingate wrote: Logs and config files would help here. Substitute out real ips with Xs or fake ones; or just post them. In any event it is difficult for anyone to provide help based on the information you have provided. ~Charlie The significant problems we have cannot be solved at the same level of thinking with which we created them. - Albert Einstein -Original Message- From: John Richard Moser [mailto:[EMAIL PROTECTED] Sent: Monday, November 26, 2007 12:28 PM To: users@tomcat.apache.org Subject: mod_jk to remote host Hi I have a mod_jk connector that works on localhost. I am trying to change the host to the remote IP address and configure it on another server (port 8009 is open) but I'm getting nowhere. The error log consistently says the worker name=tomcat_ajp does not exist but I put it in worker.list= and configured it appropriately. Any help? Note: Tomcat itself is NOT installed locally on that machine. Also tcpdump on the remote machine shows no attempt to access the remote machine from the Web server. -- Bring back the Firefox plushy! http://digg.com/linux_unix/Is_the_Firefox_plush_gone_for_good https://bugzilla.mozilla.org/show_bug.cgi?id=322367 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: trigger program which installed on client machine
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ray, raybristol wrote: I need to trigger a program which installed on client machine when use press a button from a web page, I wonder what's the best way to do it? Any links? As previously discussed (probably many times both on and off this list), this is a horrible idea. What if that program is something like CMD /c RM /Y C:\WINDOWS\*.*? No secure web browser would you do it. So, you can probably do it in MSIE. Nobody here is going to help you do it, though. - -chrs -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHSxIP9CaO5/Lv0PARAtfaAJ9FxZchl5R2u87VNoXQvsKXgScLtQCgi9nq kHMB/exLwE82C6H3Sxm9f3E= =LRNE -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk to remote host
here are my configuration files. Logs are compressed. Charlie Wingate wrote: Logs and config files would help here. Substitute out real ips with Xs or fake ones; or just post them. In any event it is difficult for anyone to provide help based on the information you have provided. ~Charlie The significant problems we have cannot be solved at the same level of thinking with which we created them. - Albert Einstein -Original Message- From: John Richard Moser [mailto:[EMAIL PROTECTED] Sent: Monday, November 26, 2007 12:28 PM To: users@tomcat.apache.org Subject: mod_jk to remote host Hi I have a mod_jk connector that works on localhost. I am trying to change the host to the remote IP address and configure it on another server (port 8009 is open) but I'm getting nowhere. The error log consistently says the worker name=tomcat_ajp does not exist but I put it in worker.list= and configured it appropriately. Any help? Note: Tomcat itself is NOT installed locally on that machine. Also tcpdump on the remote machine shows no attempt to access the remote machine from the Web server. -- Bring back the Firefox plushy! http://digg.com/linux_unix/Is_the_Firefox_plush_gone_for_good https://bugzilla.mozilla.org/show_bug.cgi?id=322367 IfModule mod_jk.c JkWorkersFile /var/www/portal/fubar/workers.properties JkLogFile /var/www/portal/fubar/log/apache_mod_jk.log JkLogLevel debug #JkLogLevel warning JkMount /fubar/* fubar JkMount /fubar fubar /IfModule # Worker list worker.list=fubar # Worker settings for fubar worker.fubar.port=8009 worker.fubar.host=10.1.1.21 worker.fubar.type=ajp13 worker.fubar.mount=/fubar /fubar/* apache_mod_jk.log.bz2 Description: application/bzip - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: servlet-api.jar jsp path is empty
jsp-api.jar comes with TC6 binary distro and is located in $CATALINA_HOME/lib do you not have it? M- - Original Message - From: Steven Crosley [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, November 26, 2007 1:07 PM Subject: servlet-api.jar jsp path is empty Hi, I was getting this error from my app: Caused by: java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/ TagSupport So I looked in the servlet-api.jar file that was included with my Tomcat 6 download and noticed that the javax/servlet/jsp/ folder is empty. I'm guessing this was by design, but can someone tell me what jar would contain the tagext classes? Are custom JSTL tags deprecated since Java 5? Thanks, Steven - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multithreaded with taglibs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yair, Yair Ben-Meir wrote: You're right about that - it is not for using over the web. Anyway, that's just an example. The main issue is to run the work of the tag in a thread without making the rest of the page wait. I think you're hit the nail on the head right there: do the work in a thread. FWIW, I think this is an awful idea: if your page renders quickly, the browser will attempt to load the images before your image threads have a chance to actually generate the images. The only thing that /might/ work is to do something like this: imageHack:parallel imageHack:image text=foo / imageHack:image text=bar / /imageHack:parallel The parallel tag just sets up an environment for the sub tags. Each sub tag registers a job with the parent. The end method for the parallel tag starts one or more threads to actually create the images, then calls join() on each one. This will allow the images to be generated in parallel instead of serial order. You can't close the output stream of the web page until all of the images are created, otherwise you risk broken images showing up on the page. If you don't wrap your image tags in some kind of wrapper (parallel in my example), then you can't gather the threads in a sane way in order to join() on them all. Again, this sounds awful. Why not use http URLs instead of file urls? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHSxP89CaO5/Lv0PARAmDwAJ9zyDEq/U1LCIRnkLs69v+yMsxJrACgrULl bH2y/sAsOyQ+IZUbw3aRIzM= =wAKM -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk to remote host
John- you will need to have an ajp (of worker.ajp13.type) connector configured and listening (on worker.ajp13.port) on the *worker.ajp13.host* you have specified in $CATALINA_HOME/conf/workers.properties file http://www.stanford.edu/group/coursework/stanfordoki/apacheChecklist.html M- - Original Message - From: John Richard Moser [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Monday, November 26, 2007 12:28 PM Subject: mod_jk to remote host Hi I have a mod_jk connector that works on localhost. I am trying to change the host to the remote IP address and configure it on another server (port 8009 is open) but I'm getting nowhere. The error log consistently says the worker name=tomcat_ajp does not exist but I put it in worker.list= and configured it appropriately. Any help? Note: Tomcat itself is NOT installed locally on that machine. Also tcpdump on the remote machine shows no attempt to access the remote machine from the Web server. -- Bring back the Firefox plushy! http://digg.com/linux_unix/Is_the_Firefox_plush_gone_for_good https://bugzilla.mozilla.org/show_bug.cgi?id=322367 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: alias for directory
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miren, Miren Urkixo wrote: Hello into one apache http server i can to map one directory to oen alias can i make it into tomcat? i only uses into this server tomcat without apache Ken Bowen would tell you: Use UrlRewriteFilter: http://tuckey.org/urlrewrite/ to express the rules you need. Ignore Martin's incoherent response. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHSxZB9CaO5/Lv0PARAvBaAJ40akYpeoDPh0Q4t/ZNHkKGdiH/6QCguvQL z1ysdZpWu9egY41R91uv74Y= =Wndw -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ApacheTomcat Connector mod_jk, receiving 0711-244 ERROR when I do a make
Hi Rainer, Maybe this will help.. Rich apachectl start (Got the core file). pwd /etc/opt/freeware/apache ls access.conf httpd.conf.org mime.types core httpd.conf.sso srm.conf httpd.conf magicworkers.properties gdb /usr/sbin/httpd core GNU gdb 6.0 Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as powerpc-ibm-aix5.1.0.0... (no debugging symbols found)... BFD: /etc/opt/freeware/apache/core: warning core file truncated Core was generated by `httpd'. Program terminated with signal 11, Segmentation fault. #0 0xd16b96c0 in ap_pcalloc () from /opt/freeware/apache/libexec/mod_jk.so (gdb) bt #0 0xd16b96c0 in ap_pcalloc () from /opt/freeware/apache/libexec/mod_jk.so #1 0xd1689654 in create_jk_config (p= gdbtypes.c:533: internal-error: Assertion `TYPE_OBJFILE (*typeptr) == TYPE_OBJFI LE (type) || TYPE_STUB (*typeptr)' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) gdbtypes.c:533: internal-error: Assertion `TYPE_OBJFILE (*typeptr) == TYPE_OBJFI LE (type) || TYPE_STUB (*typeptr)' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Create a core file of GDB? (y or n) n
Re: Security Manager
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Aziz, Aziz Yacoub wrote: I'm using security manager with Tomcat 4.1.36 on NetWare 6.5 sp7. The policy file includes: grant { permission java.io.FilePermission \\SERVER1\VOL1\Photos, read, write, delete; }; which as I understand gives full access for \\SERVER1\VOL1\Photos to all web apps. But I still get: org.apache.jasper.JasperException: access denied (java.io.FilePermission \\SERVER1\VOL1\Photos read) Is there anything else I need to do? I've also tried granting access using VOL1:/Photos but with the same result. Are you running Tomcat as a service? If so, the user Tomcat runs as probably does not have read access to the resource. The SecurityManager just tells the JVM what the application is willing to tolerate: it does not instruct the operating system to elevate privileges. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHSxdP9CaO5/Lv0PARAr22AJsHu/Pw3itskeAJ075DNhNU/ELVwACgsO7C ENpxHgR0u71U0aNXbX1BteQ= =W+/I -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Comet servlet synchronization and flush problems
Leonardo, Filip, I face the exact same problem (tried with 6.0.13 and 6.0.14 on Vista), with a very similar code. Though I'm writing small packets with very high frequency (speex narrowband audio packets). The NPE shows up after 30 seconds or so in my case. I also did a sync on the response, and when I replaced it with a global sync, the NPE went away. Of course, calling flush within a globally synchronized section is not nice. From my test setup, I doubt that the problem is an invalid connection. Even if it was, I think that an NPE is a bad thing ... some kind of IOException (InvalidCxnException or so) would be better, since it can be caught intentionally. Or return silently, if there is no other chance. Cheers FFD 1000MIKES.COM Filip Hanik - Dev Lists wrote: a NPE probably has nothing to do with synchronization, more like you are trying to write back on an invalid connection (that probably timed out) Filip Leonardo Fraga wrote: Hello, I'm developing a java web application for finances quotes' real-time stream, for hundreds of concurrent users. The solution involves a long http request serving javascript snippets that will be executed by broser when received, changing the data shown to the user. To do this, I have a Comet servlet, ServletStream, that receives the request, and registers a new instance of JavascriptNotificationListener, a wrapper to the response.writer, to a running worker thread, MarketNotifier, that, when a market event occurs, fires the JavascriptNotificationListener that writes the corresponding event javascript snippet to the response.writer. There is the Flusher, a running thread that awakes every half second and do a flush on every registered response.writer through the same JavascriptNotificationListener. And there is a servlet, StreamAction, that submits commands to the MarketNotifier, to change the market event subscriptions. Some of these commands can also fire market events on the JavascriptNotificationListener, and are run while the ServletStream is sending data. Every IO on the writer (print, println, flush, checkError) is synchronized on a mutex Object holded by each instance of JavascriptNotificationListener, that is, I have a mutex for each response.writer. When running this solution, I often use to get the following error: java.lang.NullPointerException at org.apache.coyote.http11.InternalNioOutputBuffer.addToBB(InternalNioOutputBuffer.java:607) at org.apache.coyote.http11.InternalNioOutputBuffer.commit(InternalNioOutputBuffer.java:600) at org.apache.coyote.http11.Http11NioProcessor.action(Http11NioProcessor.java:1025) at org.apache.coyote.Response.action(Response.java:183) at org.apache.coyote.Response.sendHeaders(Response.java:379) at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:305) at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:288) at org.apache.catalina.connector.CoyoteWriter.flush(CoyoteWriter.java:95) at br.com.cedro.stream.JavascriptNotificationListener.syn(JavascriptNotificationListener.java:106) at br.com.cedro.stream.Flusher.run(Flusher.java:42) This error occurs even on low usage scenarios (five concurrent users) almost every hour. After the first occurrence happens, every other IO on all response.writers catches the same exception. I'm using apache-tomcat-6.0.14, with default Nio Http Connector configuration parameters on server.xml. I think this problem has to do with synchronization for IO operations. Am I right? Or must I simply check some status before doing IO? The Chat Comet tomcat example does synchronization on a single mutex for all response.writers. Must I do the same? Why? Or can I use higher-granularity mutexes like I did? If so, what is the right object to synchronize? Response? Response.writer? Has anyone developed Comet servlets and faced the same problem? Here follow the relevant pieces of my source codes (I put some comments about the problem to increase readability): public class JavascriptNotificationListener ... { // This is the only class that manipulates response.writer ... private PrintWriter out; // set as response.writer on constructor private Object writeMonitor = new Object(); // the mutex public JavascriptNotificationListener(PrintWriter responseWriter){ this.out = responseWriter; synchronized (writeMonitor) { // Althought at this time we have just one thread here out.print(htmlheadscript language=\javascript\); } } ... public void flush(){ // Called by the Flusher thread every 500 msec synchronized (writeMonitor) { out.print(/script\nscript language=\javascript\); // checkError internally calls flush if(out.checkError()){ log.error(Error flushing event stream.); }
Re: servlet-api.jar jsp path is empty
Ah, ok. It is in the jsp-api.jar. Unfortunately, that makes it harder for me to determine why the error is occurring. Thanks, Steven On Nov 26, 2007, at 12:37 PM, Martin Gainty wrote: jsp-api.jar comes with TC6 binary distro and is located in $CATALINA_HOME/lib do you not have it? M- - Original Message - From: Steven Crosley [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, November 26, 2007 1:07 PM Subject: servlet-api.jar jsp path is empty Hi, I was getting this error from my app: Caused by: java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/ TagSupport So I looked in the servlet-api.jar file that was included with my Tomcat 6 download and noticed that the javax/servlet/jsp/ folder is empty. I'm guessing this was by design, but can someone tell me what jar would contain the tagext classes? Are custom JSTL tags deprecated since Java 5? Thanks, Steven - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [HTTPS] more web app each one with a proper certificate
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Raffaele, Raffaele wrote: Inside server.xml, I have decommented the xml fragment about https, but I have noticed studying a little the documentation that through keyAlias attribute I can specify a specific alias to be used as valid certificate. My question is, How should I configure server.xml (or other things) to use different certificates with different web apps? Typically, certificates are bound to domain names, not web applications. Are you saying that you want to have multiple virtual hosts, each with separate certificates? I don't believe that's possible, not even with any other server. The problem is that the client contacts a particular port (usually 443 for HTTPS) and is immediately presented with the server's certificate (before any other information is transmitted). Since virtual hosting works by having the server sniff the client's Host HTTP header, there's no time to read that header before the certificate needs to be presented to the client. Basically, if you want more than one cert, you need more than one port listening for HTTPS requests, each with the appropriate cert configured for each. The same is true for Apache, IIS, etc. -- it's an issue with the protocol, not the implementation. Sorry, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHSxiV9CaO5/Lv0PARAoemAKC3lZsYpiUxPl/e5AoFih0s+cfT+ACguiI5 3XIyGrscaN9klxk40bkrrp4= =wphr -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: servlet-api.jar jsp path is empty
From: Steven Crosley [mailto:[EMAIL PROTECTED] Subject: Re: servlet-api.jar jsp path is empty Ah, ok. It is in the jsp-api.jar. Unfortunately, that makes it harder for me to determine why the error is occurring. Make sure that jsp-api.jar is not in some other location as well as Tomcat's lib directory. For example, placing a copy of the jar in the webapp's WEB-INF/lib directory will cause the above problem. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL problem with Tomcat 5.5
Hi Bob There is a SSL checklist that starts with 1)installing and configuring JSSE (now comes with JDK.1.4 or 1.5) 2)a)create keystore b)import the certificate into just created keystore 3)uncomment the SSL Connector entry in $CATALINA_HOME/conf/server.xml and tweak keystoreFile to point to just created keystore http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html HTH/ Martin- - Original Message - From: Bob Grabbe [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Monday, November 26, 2007 1:04 PM Subject: SSL problem with Tomcat 5.5 Our web site has had an ssl certificate from Godaddy for the last two years. I'm trying to update the certificate because it just expired. After the expiration, before updating I was able to get to the main page, with a certificate error. After the update of the certificaste I'm not able to get to the https page at all. Environment is Windows 2003 server, Tomcat 5.5.9, Server.xml is set to redirect http (port 80) to port 443, and did work before. What I've done so far: Downloaded the server certificate, Godaddy certificates and recreated the keystore. No errors along the way. Verified that server.xml has the correct keystore file and password. Restarted Tomcat. Under webapps/root there is a redirector to send the browser to my other app's index.html. At this point I can open the http page, but if I try to open the https url I don't get anything. I'm open and would be very grateful for any suggestions. Thanks Bob Grabbe Michigan Proteome Consortium University of Michigan [EMAIL PROTECTED] _ If we knew what we were doing, it wouldn't be called research, would it ? --Albert Einstien - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk to remote host
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, John Richard Moser wrote: # Worker list worker.list=fubar # Worker settings for fubar worker.fubar.port=8009 worker.fubar.host=10.1.1.21 worker.fubar.type=ajp13 worker.fubar.mount=/fubar /fubar/* This looks good, except that last line. I've never seen that used, although I can see it in the mod_jk documentation. I would remove it, as it is not necessary IMO. Have you tried using telnet to 10.1.1.21:8009 from your Apache server? There are at least 3 opportunities for firewalls to interfere with communication. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHSxnW9CaO5/Lv0PARAp09AJ0YZ+lSH0e2J+NhpOJqVMSMMlCG3wCdF/V5 zAGEZrAuUtCS7mWiTcKkhk0= =41uJ -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk to remote host
explain what you mean. What I have is... HOST A Host B Tomcat (8080:http) | | Tomcat (8009:ajp) --- Apache (443:https) Apache (80:http) | | Apache (80:http) If I go to Host A on 8080 or 80, I get the same content. On Host B at 80, I get an internal server error. nmap sees Host A on 8009 as open from Host B Is there something I need to do on Host A to tell it Host B is allowed to do that? Martin Gainty wrote: John- you will need to have an ajp (of worker.ajp13.type) connector configured and listening (on worker.ajp13.port) on the *worker.ajp13.host* you have specified in $CATALINA_HOME/conf/workers.properties file http://www.stanford.edu/group/coursework/stanfordoki/apacheChecklist.html M- - Original Message - From: John Richard Moser [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Monday, November 26, 2007 12:28 PM Subject: mod_jk to remote host Hi I have a mod_jk connector that works on localhost. I am trying to change the host to the remote IP address and configure it on another server (port 8009 is open) but I'm getting nowhere. The error log consistently says the worker name=tomcat_ajp does not exist but I put it in worker.list= and configured it appropriately. Any help? Note: Tomcat itself is NOT installed locally on that machine. Also tcpdump on the remote machine shows no attempt to access the remote machine from the Web server. -- Bring back the Firefox plushy! http://digg.com/linux_unix/Is_the_Firefox_plush_gone_for_good https://bugzilla.mozilla.org/show_bug.cgi?id=322367 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Bring back the Firefox plushy! http://digg.com/linux_unix/Is_the_Firefox_plush_gone_for_good https://bugzilla.mozilla.org/show_bug.cgi?id=322367 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk to remote host
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, John Richard Moser wrote: # Worker list worker.list=fubar # Worker settings for fubar worker.fubar.port=8009 worker.fubar.host=10.1.1.21 worker.fubar.type=ajp13 worker.fubar.mount=/fubar /fubar/* This looks good, except that last line. I've never seen that used, although I can see it in the mod_jk documentation. I would remove it, as it is not necessary IMO. Yeah, I added that at some point and it did nothing Have you tried using telnet to 10.1.1.21:8009 from your Apache server? There are at least 3 opportunities for firewalls to interfere with communication. I have tested the network on all levels. I custom-wrote the firewall and used nmap and just plain shut the thing off to test if it's interfering. That port is open. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHSxnW9CaO5/Lv0PARAp09AJ0YZ+lSH0e2J+NhpOJqVMSMMlCG3wCdF/V5 zAGEZrAuUtCS7mWiTcKkhk0= =41uJ -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Bring back the Firefox plushy! http://digg.com/linux_unix/Is_the_Firefox_plush_gone_for_good https://bugzilla.mozilla.org/show_bug.cgi?id=322367 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [HTTPS] more web app each one with a proper certificate
On Nov 26, 2007 11:03 AM, Christopher Schultz [EMAIL PROTECTED] wrote: Are you saying that you want to have multiple virtual hosts, each with separate certificates? I don't believe that's possible, not even with any other server. The problem is that the client contacts a particular port (usually 443 for HTTPS) and is immediately presented with the server's certificate (before any other information is transmitted). Since virtual hosting works by having the server sniff the client's Host HTTP header,... Let's clarify -- there's name-based virtual hosting, and IP-based virtual hosting. It's name-based SSL that won't work for the reasons above. IP-based virtual hosting with Tomcat works fine, by configuring a separate Connector (and keystore) for each SSL-enabled vhost. FWIW, -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache Tomcat 6.0.14 classloader
From: YEL [mailto:[EMAIL PROTECTED] Subject: Apache Tomcat 6.0.14 classloader no matter how i set the shared.loader in cataline.properties it does not load the jars in there: Works fine for me. I moved (not copied) jstl.jar and standard.jar from webapps/examples/WEB-INF/lib to a new $TOMCAT_HOME/shared directory, and updated catalina.properties with the following: shared.loader=${catalina.home}/shared,${catalina.home}/shared/*.jar Running the URL: http://localhost:8080/examples/jsp/jsp2/tagfiles/products.jsp forces use of the above jars. It runs correctly with the jars in shared, fails with NCDFE if I completely remove them. Make sure that the jars you placed in your shared/lib directory are not present anywhere else, in any webapp. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk to remote host
ok I noticed the logs mentioned ajp13 on localhost:8009 I ssh -L 8009:localhost:8009 to the remote server and change the mount to use worker ajp13 (NOT defined in my workers.properties) and it works! If I change the JkWorkersFile setting Apache refuses to start because it can't find the file, so I know I'm loading the workers file. I added a worker to workers.properties for ajp13, still no go, it just uses localhost:8009 and ignores my settings. This is broken. What the hell? John Richard Moser wrote: Hi I have a mod_jk connector that works on localhost. I am trying to change the host to the remote IP address and configure it on another server (port 8009 is open) but I'm getting nowhere. The error log consistently says the worker name=tomcat_ajp does not exist but I put it in worker.list= and configured it appropriately. Any help? Note: Tomcat itself is NOT installed locally on that machine. Also tcpdump on the remote machine shows no attempt to access the remote machine from the Web server. -- Bring back the Firefox plushy! http://digg.com/linux_unix/Is_the_Firefox_plush_gone_for_good https://bugzilla.mozilla.org/show_bug.cgi?id=322367 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: servlet-api.jar jsp path is empty
Doesn't look like I have the jsp-api.jar anywhere else. Could there be another reason why it can't find the class? Thanks, Steven On Nov 26, 2007, at 1:05 PM, Caldarale, Charles R wrote: From: Steven Crosley [mailto:[EMAIL PROTECTED] Subject: Re: servlet-api.jar jsp path is empty Ah, ok. It is in the jsp-api.jar. Unfortunately, that makes it harder for me to determine why the error is occurring. Make sure that jsp-api.jar is not in some other location as well as Tomcat's lib directory. For example, placing a copy of the jar in the webapp's WEB-INF/lib directory will cause the above problem. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e- mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Which license policy ASF or Sun Micro on jsp_2_0.xsd...
[EMAIL PROTECTED] wrote: Hello, I have a question regarding which licensing policy do I follow on the this file : apache-tomcat-5.5.17-src/servletapi/jsr152/src/share/dtd/jsp_2_0.xsd This file seems to have dual license, so which one is in fact valid the ASF or the Sun ??? It should be the ASF one. A correctly licensed file is available from: http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/java/javax/servlet/jsp/resources/jsp_2_0.xsd I'll get the copy in 5.5.x updated. Cheers, Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [HTTPS] more web app each one with a proper certificate
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hassan, Hassan Schroeder wrote: Let's clarify -- there's name-based virtual hosting, and IP-based virtual hosting. It's name-based SSL that won't work for the reasons above. IP-based virtual hosting with Tomcat works fine, by configuring a separate Connector (and keystore) for each SSL-enabled vhost. Thanks for clearing that up. I had forgotten about ip-based host selection. IP + port must be unique for certificates. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHSybK9CaO5/Lv0PARAu6ZAJ4xSS+xA6Tvk0VDbe8jYF46QpFoJgCfaERl kZmtu3FptQNgP1Q5oHFqYA0= =LyZe -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk to remote host
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, John Richard Moser wrote: I have tested the network on all levels. I custom-wrote the firewall and used nmap and just plain shut the thing off to test if it's interfering. That port is open. :( You mentioned that tcpdump on the target (Tomcat) machine shows no traffic. What about running tcpdump on the source (Apache httpd) machine? Does mod_jk even try to call out? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHSydA9CaO5/Lv0PARAr0oAJ9R6B2BgL+by3XTsCt7VV7c6k3wugCgg5Kw OWUqV7EUJF+e53uiimg6BTM= =s14j -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re^2: Comet servlet synchronization and flush problems
I found the origin of the problem in my case. The problem was neither the synchronization nor the connection gone. It was that the asynchronous writing started too early, before the connection was completely established, speaking losely... When I made sure that the writing starts *after* all the headers were set, the NPE was gone. I didn't see the same mistake in Leonardo's code, but maybe it's a hint. BTW, I very much like the Tomcat approach to Comet. In its striking yet powerful simplicity it's much simpler and clearer to handle than Grizzly (we tried Grizzly before choosing to go with Tomcat) or Jetty. I hope that any standardization efforts will go along Tomcat's lines. Frank Felix 1000MIKES.COM Filip Hanik - Dev Lists wrote: a NPE probably has nothing to do with synchronization, more like you are trying to write back on an invalid connection (that probably timed out) Filip Leonardo Fraga wrote: Hello, I'm developing a java web application for finances quotes' real-time stream, for hundreds of concurrent users. The solution involves a long http request serving javascript snippets that will be executed by broser when received, changing the data shown to the user. To do this, I have a Comet servlet, ServletStream, that receives the request, and registers a new instance of JavascriptNotificationListener, a wrapper to the response.writer, to a running worker thread, MarketNotifier, that, when a market event occurs, fires the JavascriptNotificationListener that writes the corresponding event javascript snippet to the response.writer. There is the Flusher, a running thread that awakes every half second and do a flush on every registered response.writer through the same JavascriptNotificationListener. And there is a servlet, StreamAction, that submits commands to the MarketNotifier, to change the market event subscriptions. Some of these commands can also fire market events on the JavascriptNotificationListener, and are run while the ServletStream is sending data. Every IO on the writer (print, println, flush, checkError) is synchronized on a mutex Object holded by each instance of JavascriptNotificationListener, that is, I have a mutex for each response.writer. When running this solution, I often use to get the following error: java.lang.NullPointerException at org.apache.coyote.http11.InternalNioOutputBuffer.addToBB(InternalNioOutputBuffer.java:607) at org.apache.coyote.http11.InternalNioOutputBuffer.commit(InternalNioOutputBuffer.java:600) at org.apache.coyote.http11.Http11NioProcessor.action(Http11NioProcessor.java:1025) at org.apache.coyote.Response.action(Response.java:183) at org.apache.coyote.Response.sendHeaders(Response.java:379) at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:305) at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:288) at org.apache.catalina.connector.CoyoteWriter.flush(CoyoteWriter.java:95) at br.com.cedro.stream.JavascriptNotificationListener.syn(JavascriptNotificationListener.java:106) at br.com.cedro.stream.Flusher.run(Flusher.java:42) This error occurs even on low usage scenarios (five concurrent users) almost every hour. After the first occurrence happens, every other IO on all response.writers catches the same exception. I'm using apache-tomcat-6.0.14, with default Nio Http Connector configuration parameters on server.xml. I think this problem has to do with synchronization for IO operations. Am I right? Or must I simply check some status before doing IO? The Chat Comet tomcat example does synchronization on a single mutex for all response.writers. Must I do the same? Why? Or can I use higher-granularity mutexes like I did? If so, what is the right object to synchronize? Response? Response.writer? Has anyone developed Comet servlets and faced the same problem? Here follow the relevant pieces of my source codes (I put some comments about the problem to increase readability): public class JavascriptNotificationListener ... { // This is the only class that manipulates response.writer ... private PrintWriter out; // set as response.writer on constructor private Object writeMonitor = new Object(); // the mutex public JavascriptNotificationListener(PrintWriter responseWriter){ this.out = responseWriter; synchronized (writeMonitor) { // Althought at this time we have just one thread here out.print(htmlheadscript language=\javascript\); } } ... public void flush(){ // Called by the Flusher thread every 500 msec synchronized (writeMonitor) { out.print(/script\nscript language=\javascript\); // checkError internally calls flush if(out.checkError()){ log.error(Error flushing event stream.); } } } ... public
Java file name is displayed when the JSP file is accessed.
Hi All, i have a web application which is deployed on Tomcat 5.0.18. Sometimes when i am navigating to a page using menu of my application, it is displaying a java file name with full package name. The java file is a business logic processing location on the application. Why is that happening. Could anybody guide me why its happening? Thanks in advance -- Pavan S. Kumar - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk to remote host
John Richard Moser wrote: here are my configuration files. Logs are compressed. I had a look at the log file. You are using version 1.2.18. We are at the moment at version 1.2.25 with a very long changelog. Do yourself and us a favour and use the most recent version 1.2.25. For me it looks like your workers.properties does not get picked up correctly and mod_jk does only configure it's alternative build in default worker (ajp13, localhost, 8009). Either it can't find or read the fiole, or the JkWorkersFile directive is not active in the httpd config, or maybe not inside the global server (it's not allowed inside a vhost). More recent versions will very explicitely log the config they read during startup (with debug log level). Regards, Rainer Charlie Wingate wrote: Logs and config files would help here. Substitute out real ips with Xs or fake ones; or just post them. In any event it is difficult for anyone to provide help based on the information you have provided. ~Charlie The significant problems we have cannot be solved at the same level of thinking with which we created them. - Albert Einstein -Original Message- From: John Richard Moser [mailto:[EMAIL PROTECTED] Sent: Monday, November 26, 2007 12:28 PM To: users@tomcat.apache.org Subject: mod_jk to remote host Hi I have a mod_jk connector that works on localhost. I am trying to change the host to the remote IP address and configure it on another server (port 8009 is open) but I'm getting nowhere. The error log consistently says the worker name=tomcat_ajp does not exist but I put it in worker.list= and configured it appropriately. Any help? Note: Tomcat itself is NOT installed locally on that machine. Also tcpdump on the remote machine shows no attempt to access the remote machine from the Web server. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SSL problem with Tomcat 5.5
Did all that, to no avail. As I said, it was working until the certificate expired, and the new certificate seems to have broken things, although I can't see anything wrong with it. What it looks like, actually, is that the server isn't processing the server.xml entries that redirect http to https. I can't see why, though. Bob Grabbe Umiversity of Michigan [EMAIL PROTECTED] _ Research is the process of going up alleys to see if they are blind. -- Marston Bates -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Monday, November 26, 2007 2:02 PM To: Tomcat Users List Subject: Re: SSL problem with Tomcat 5.5 Hi Bob There is a SSL checklist that starts with 1)installing and configuring JSSE (now comes with JDK.1.4 or 1.5) 2)a)create keystore b)import the certificate into just created keystore 3)uncomment the SSL Connector entry in $CATALINA_HOME/conf/server.xml and tweak keystoreFile to point to just created keystore http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html HTH/ Martin- - Original Message - From: Bob Grabbe [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Monday, November 26, 2007 1:04 PM Subject: SSL problem with Tomcat 5.5 Our web site has had an ssl certificate from Godaddy for the last two years. I'm trying to update the certificate because it just expired. After the expiration, before updating I was able to get to the main page, with a certificate error. After the update of the certificaste I'm not able to get to the https page at all. Environment is Windows 2003 server, Tomcat 5.5.9, Server.xml is set to redirect http (port 80) to port 443, and did work before. What I've done so far: Downloaded the server certificate, Godaddy certificates and recreated the keystore. No errors along the way. Verified that server.xml has the correct keystore file and password. Restarted Tomcat. Under webapps/root there is a redirector to send the browser to my other app's index.html. At this point I can open the http page, but if I try to open the https url I don't get anything. I'm open and would be very grateful for any suggestions. Thanks Bob Grabbe Michigan Proteome Consortium University of Michigan [EMAIL PROTECTED] _ If we knew what we were doing, it wouldn't be called research, would it ? --Albert Einstien - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Automatic restart?
Dennis Thrysøe wrote: Is there some mechanism that restarts when all threads are stuck, or after some timeout? Is this configurable. In short, there is no such mechanism. Is some other software monitoring Tomcat and restarting it if it fails? Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Serving static resources outside webapp in Tomcat 5.5.25
Félix Pedrera García wrote: What has been changed from version 5.5.9 and which is the way to access external static resources from a webapp in Tomcat 5.5.25? The checking for valid context configuration has been tightened. Adding the following, as contents.xml, to your webapps directory should work ?xml version=1.0 encoding=UTF-8? Context docBase=/app/resources /Context Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL problem with Tomcat 5.5
On Nov 26, 2007 10:04 AM, Bob Grabbe [EMAIL PROTECTED] wrote: Our web site has had an ssl certificate from Godaddy for the last two years. I'm trying to update the certificate because it just expired. After the expiration, before updating I was able to get to the main page, with a certificate error. After the update of the certificaste I'm not able to get to the https page at all. Downloaded the server certificate, Godaddy certificates and recreated the keystore. ? That sounds a little off -- the keystore should have been created as a first step, followed by generating the certificate request to send off to GoDaddy. At this point I can open the http page, but if I try to open the https url I don't get anything. And the logs say ? -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ApacheTomcat Connector mod_jk, receiving 0711-244 ERROR when I do a make
Blumlein,Richard wrote: Hello Rainer, Hope you had a nice Thanksgiving? That's not really tradition in Germany, at least not with turkeys. But yes, had a nice weekend. Does the coredump also occur, if you set JkLogLevel to info or error? Yes I tried changing to info or error and both got the dump. Also removed the statement and it dumped. I get the dump if I leave any of the Jk statements in httpd.conf. Interesting how the configtest causes the problem as if Apache does not like one of the statements? Configtest actually runs a lot of module code. See your second mail, which I'll comment in a minute. You can remove the next three lines. They are useless. workers.tomcat_home=/opt/freeware/apache-tomcat workers.java_home=/usr/local/bin/java ps=/ I had tomcat_home in here since there are multiple levels of Tomcat running for different products? Not sure how this works or if I need to have if running multiple Tomcats? I added the java_home to /usr/loca/bin/java which is a link to java 1.4. The default on this system for JAVA_HOME is Java 1.3 for an older product we are running. Not sure how this works? I overrode JAVA_HOME when I did the compile so it would pickup the 1.4 version. I commented them out for the other statements you recommended for now. mod_jk neither needs Java, not does it need to know, where in your file system tomcat resides. Usually Tomcat is on some other node in the network. mod_jk talks to Tomcat via TCP/IP, so it only needs to know IP and port it should talk to. Those two parameters are obsolete and have been used in ancient times to start the Tomcat code inside the Apache httpd process (and then communicate via JNI). That doesn' work any more since a long time ... Does the jk request log go to the access log automatically? It seems it would default to pwd /var/opt/freeware/apache/logs ls access_log error_log You can log to the apache access log. For this you use a cutom log format like explained on http://httpd.apache.org/docs/2.2/mod/mod_log_config.html You need to know, that mod_jk provides a couple of notes inside Apache, that you can integrate in the access logs. Those notes are listen on http://tomcat.apache.org/connectors-doc/reference/apache.html Search for mod_log_config and have a look at the table below this and the example below the table. On to your second mail ... - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk to remote host
Rainer Jung wrote: John Richard Moser wrote: here are my configuration files. Logs are compressed. I had a look at the log file. You are using version 1.2.18. We are at the moment at version 1.2.25 with a very long changelog. Do yourself and us a favour and use the most recent version 1.2.25. For me it looks like your workers.properties does not get picked up correctly and mod_jk does only configure it's alternative build in default worker (ajp13, localhost, 8009). Either it can't find or read the fiole, or the JkWorkersFile directive is not active in the httpd config, or maybe not inside the global server (it's not allowed inside a vhost). Put the directive in the global scope and it works. Thanks all. More recent versions will very explicitely log the config they read during startup (with debug log level). Regards, Rainer Charlie Wingate wrote: Logs and config files would help here. Substitute out real ips with Xs or fake ones; or just post them. In any event it is difficult for anyone to provide help based on the information you have provided. ~Charlie The significant problems we have cannot be solved at the same level of thinking with which we created them. - Albert Einstein -Original Message- From: John Richard Moser [mailto:[EMAIL PROTECTED] Sent: Monday, November 26, 2007 12:28 PM To: users@tomcat.apache.org Subject: mod_jk to remote host Hi I have a mod_jk connector that works on localhost. I am trying to change the host to the remote IP address and configure it on another server (port 8009 is open) but I'm getting nowhere. The error log consistently says the worker name=tomcat_ajp does not exist but I put it in worker.list= and configured it appropriately. Any help? Note: Tomcat itself is NOT installed locally on that machine. Also tcpdump on the remote machine shows no attempt to access the remote machine from the Web server. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Bring back the Firefox plushy! http://digg.com/linux_unix/Is_the_Firefox_plush_gone_for_good https://bugzilla.mozilla.org/show_bug.cgi?id=322367 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Serving static resources outside webapp in Tomcat 5.5.25
From: Mark Thomas [mailto:[EMAIL PROTECTED] Subject: Re: Serving static resources outside webapp in Tomcat 5.5.25 Adding the following, as contents.xml, to your webapps directory should work ?xml version=1.0 encoding=UTF-8? Context docBase=/app/resources /Context I think you mean to place the above Context element in conf/Catalina/[hostname]/contents.xml, not webapps/contents.xml. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk to remote host
John Richard Moser wrote: Rainer Jung wrote: John Richard Moser wrote: here are my configuration files. Logs are compressed. I had a look at the log file. You are using version 1.2.18. We are at the moment at version 1.2.25 with a very long changelog. Do yourself and us a favour and use the most recent version 1.2.25. For me it looks like your workers.properties does not get picked up correctly and mod_jk does only configure it's alternative build in default worker (ajp13, localhost, 8009). Either it can't find or read the fiole, or the JkWorkersFile directive is not active in the httpd config, or maybe not inside the global server (it's not allowed inside a vhost). Put the directive in the global scope and it works. Really consider upgrading: version 1.2.25 would e.g. warn, if it found the directive in a non-global context. Have fun with mod_jk. Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ApacheTomcat Connector mod_jk, receiving 0711-244 ERROR when I do a make
Blumlein,Richard wrote: gdb /usr/sbin/httpd core GNU gdb 6.0 Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as powerpc-ibm-aix5.1.0.0... (no debugging symbols found)... BFD: /etc/opt/freeware/apache/core: warning core file truncated Core was generated by `httpd'. Program terminated with signal 11, Segmentation fault. #0 0xd16b96c0 in ap_pcalloc () from /opt/freeware/apache/libexec/mod_jk.so (gdb) bt #0 0xd16b96c0 in ap_pcalloc () from /opt/freeware/apache/libexec/mod_jk.so #1 0xd1689654 in create_jk_config (p= OK, that's interesting. So now we come closer, although I still don't understand what should be the problem in the function. But at least we have a starting point. I'll have a look, if I can find known bugs about ap_pcalloc on your platform. Could you provide (sorry, if you did already) precise information about your platform (I remember AIX, but which version)? Also: which version of Apache httpd (1.3.X) do you use? Do you have an idea, if your Apache httpd was compiled with the same compiler, that you use? I don't know enough about AIX, but it could be, that we are getting into binary compatibility problems, if your httpd was compiled with gcc and you are using a different compiler. Try path/to/my/apxs -q CC and path/to/my/apxs -q CFLAGS There are even more interesting variables in the file apxs (it#s an ascii perl script, and the variables are near the beginning of the file). Would you be willing to do a couple of tests, if I would send you instraumented code? (Like doing another 2 or three compilation, check if it starts and if not provide output resp. gdb bt). I unfortunately don't have the platform, and this place in the code didn't produce any problem for years on Linux/Solaris/Windows. gdbtypes.c:533: internal-error: Assertion `TYPE_OBJFILE (*typeptr) == TYPE_OBJFI LE (type) || TYPE_STUB (*typeptr)' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) gdbtypes.c:533: internal-error: Assertion `TYPE_OBJFILE (*typeptr) == TYPE_OBJFI LE (type) || TYPE_STUB (*typeptr)' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Create a core file of GDB? (y or n) n Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SSL problem with Tomcat 5.5
Not sure which logs would help, but I've attached a notepad file with excerpts. I didn't generate a new csr, I figured renewing the cert shouldn't need that. Do I need to go through that or should I be able to just renew it ? What I did after downloading the new certificates was 1. Stop tomcat 2. rename the old keystore file 3. run the keytool to import the new certificates. If there's a different sequence I should have used, I'll appreciate the input. Thanks Bob Grabbe Umiversity of Michigan [EMAIL PROTECTED] _ Research is the process of going up alleys to see if they are blind. -- Marston Bates -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Monday, November 26, 2007 3:38 PM To: Tomcat Users List Subject: Re: SSL problem with Tomcat 5.5 On Nov 26, 2007 10:04 AM, Bob Grabbe [EMAIL PROTECTED] wrote: Our web site has had an ssl certificate from Godaddy for the last two years. I'm trying to update the certificate because it just expired. After the expiration, before updating I was able to get to the main page, with a certificate error. After the update of the certificaste I'm not able to get to the https page at all. Downloaded the server certificate, Godaddy certificates and recreated the keystore. ? That sounds a little off -- the keystore should have been created as a first step, followed by generating the certificate request to send off to GoDaddy. At this point I can open the http page, but if I try to open the https url I don't get anything. And the logs say ? -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Catalina log INFO: Reloading context [] Nov 26, 2007 3:50:30 PM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-80 Nov 26, 2007 3:50:30 PM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-443 Nov 26, 2007 3:50:31 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Nov 26, 2007 3:50:31 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-80 Nov 26, 2007 3:50:31 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-443 localhost log Nov 26, 2007 3:50:31 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@6db33c') Nov 26, 2007 3:50:31 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextDestroyed() Nov 26, 2007 3:50:31 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextDestroyed() Nov 26, 2007 3:50:31 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@159e6e8') Nov 26, 2007 3:50:31 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1469658') Nov 26, 2007 3:50:31 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1389b3f') Nov 26, 2007 3:50:31 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextDestroyed() Nov 26, 2007 3:50:31 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextDestroyed() localhost access log\ 192.168.0.1 - - [26/Nov/2007:15:50:09 -0500] GET / HTTP/1.1 200 121 192.168.0.1 - - [26/Nov/2007:15:50:09 -0500] GET /prime/ HTTP/1.1 200 1876 192.168.0.1 - - [26/Nov/2007:15:50:09 -0500] GET /prime/topFrame.htm HTTP/1.1 200 2420 192.168.0.1 - - [26/Nov/2007:15:50:09 -0500] GET /prime/leftUserInfoPage.htm HTTP/1.1 200 10850 192.168.0.1 - - [26/Nov/2007:15:50:09 -0500] GET /prime/images/NRPP.jpg HTTP/1.1 200 4814 192.168.0.1 - - [26/Nov/2007:15:50:09 -0500] GET /prime/JS/md5.js HTTP/1.1 200 8827 192.168.0.1 - - [26/Nov/2007:15:50:09 -0500] GET /prime/images/New_icons.gif HTTP/1.1 200 165 192.168.0.1 - - [26/Nov/2007:15:50:09 -0500] GET /prime/images/groups_bar.gif HTTP/1.1 200 2273 192.168.0.1 - - [26/Nov/2007:15:50:24 -0500] GET /prime/ HTTP/1.1 302 - 192.168.0.1 - - [26/Nov/2007:15:50:24 -0500] GET /prime/ HTTP/1.1 200 1876 192.168.0.1 - - [26/Nov/2007:15:50:24 -0500] GET /prime/leftUserInfoPage.htm HTTP/1.1 200 10850 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL problem with Tomcat 5.5
On Nov 26, 2007 12:58 PM, Bob Grabbe [EMAIL PROTECTED] wrote: Not sure which logs would help, but I've attached a notepad file with excerpts. What would be best would be catalina.log at startup, showing whether the SSL connector started cleanly. And of course, any log entry relating specifically to an HTTPS request. I didn't generate a new csr, I figured renewing the cert shouldn't need that. Do I need to go through that or should I be able to just renew it ? Dunno about GoDaddy, but when I renew a Thawte cert for one of my sites, I have to generate a new cert request. So I just create a new keystore file, named something like keystore-example.com-2007, and use that for the new cert. HTH! -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL problem with Tomcat 5.5
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bob, Bob Grabbe wrote: Bob Grabbe Umiversity of Michigan Is that a typo or a joke? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHSzYC9CaO5/Lv0PARArXbAJ9V3d6jhE686lVHcdwGQFUOL3Lw6ACcDRcW 4ga2HL5DHhhgqY8eqbKAbuk= =4/EU -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Serving static resources outside webapp in Tomcat 5.5.25
Caldarale, Charles R wrote: From: Mark Thomas [mailto:[EMAIL PROTECTED] Subject: Re: Serving static resources outside webapp in Tomcat 5.5.25 Adding the following, as contents.xml, to your webapps directory should work ?xml version=1.0 encoding=UTF-8? Context docBase=/app/resources /Context I think you mean to place the above Context element in conf/Catalina/[hostname]/contents.xml, not webapps/contents.xml. Yep. Getting my versions mixed up. Sorry. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 6.0.14 startup on Windows
I am using tomcat6w.exe to setup and configure. I would like to start up Tomcat as a service with an icon on my taskbar. The help says this is possible with the //MS// option. However, there is no explanation or example of where to put the option. I have tried putting it everywhere I think it should go. Does anyone here know? Related (I think) issue: I have Tomcat set to startup type, Automatic. The only argument on the startup tab is start When Tomcat starts, I get a command window that needs to be minimized. The last line says, INFO: server startup in 1059 seconds. If I close the window, Tomcat stops. I do not want my customers to be seeing this window. Is there any way of getting rid of this window and still have Tomcat running? Thanks in advance. Bruce
RE: SSL problem with Tomcat 5.5
OK, I've attached a new file with the startup. Unfortunately I'm not seeing anything in any logs that indicate any https requests. Just in case, what's the command to generate a new empty keystore file ? I've seen the notes on the tomcat docs for creating the csr, but I didn't do that this time. I might try it though, if I can get godaddy to go through the process with me again, Thanks Bob Grabbe University of Michigan [EMAIL PROTECTED] _ Research is the process of going up alleys to see if they are blind. -- Marston Bates -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Monday, November 26, 2007 4:09 PM To: Tomcat Users List Subject: Re: SSL problem with Tomcat 5.5 What would be best would be catalina.log at startup, showing whether the SSL connector started cleanly. And of course, any log entry relating specifically to an HTTPS request. I didn't generate a new csr, I figured renewing the cert shouldn't need that. Do I need to go through that or should I be able to just renew it ? Dunno about GoDaddy, but when I renew a Thawte cert for one of my sites, I have to generate a new cert request. So I just create a new keystore file, named something like keystore-example.com-2007, and use that for the new cert. HTH! -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] INFO: Initializing Coyote HTTP/1.1 on http-80 Nov 26, 2007 4:11:02 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-443 Nov 26, 2007 4:11:02 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1500 ms Nov 26, 2007 4:11:02 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Nov 26, 2007 4:11:02 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.9 Nov 26, 2007 4:11:02 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Nov 26, 2007 4:11:03 PM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(D:\jakarta-tomcat-5.5.9\jakarta-tomcat-5.5.9\webapps\prime\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class Nov 26, 2007 4:11:03 PM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(D:\jakarta-tomcat-5.5.9\jakarta-tomcat-5.5.9\webapps\PRIMEInstallationSite\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class Nov 26, 2007 4:11:04 PM org.apache.struts.tiles.TilesPlugin initDefinitionsFactory INFO: Tiles definition factory loaded for module ''. Nov 26, 2007 4:11:04 PM org.apache.struts.validator.ValidatorPlugIn initResources INFO: Loading validation rules file from '/WEB-INF/validator-rules.xml' Nov 26, 2007 4:11:04 PM org.apache.struts.validator.ValidatorPlugIn initResources INFO: Loading validation rules file from '/WEB-INF/validation.xml' Nov 26, 2007 4:11:05 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-80 Nov 26, 2007 4:11:05 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-443 Nov 26, 2007 4:11:05 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Nov 26, 2007 4:11:05 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/16 config=null Nov 26, 2007 4:11:05 PM org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource Nov 26, 2007 4:11:05 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 3188 ms - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL problem with Tomcat 5.5
On Nov 26, 2007 1:48 PM, Bob Grabbe [EMAIL PROTECTED] wrote: OK, I've attached a new file with the startup. Unfortunately I'm not seeing anything in any logs that indicate any https requests. mmm. Are you sure nothing else changed, firewall-wise? You might want to turn on the Request Dumper Valve to make sure requests are actually reaching TC. :-) Just in case, what's the command to generate a new empty keystore file ? I've seen the notes on the tomcat docs for creating the csr, but I didn't do that this time. It's all there in the SSL how-to. I'd just try it from scratch, maybe first with a self-signed cert and then go back to your cert vendor. -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6.0.14 startup on Windows
From: Bruce [mailto:[EMAIL PROTECTED] Subject: Tomcat 6.0.14 startup on Windows The help says this is possible with the //MS// option. Can't answer that one. When Tomcat starts, I get a command window that needs to be minimized. You appear to have the Allow service to interact with desktop check box set inside the Log On tab of tomcat6w. Just clear it, and the window will not be created. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6 virtual host problem please help
Someone know why the pages that I get via reverse proxy are relative to the real web server and not to the proxy server? eg: ProxyPass / http://localhost:8081/app/ ProxyPassReverse / http://localhost:8081/app/ when I access http://www.example.com (www.example.com resolves to proxy server), I get the first page correctly, but every link to a rosouce in it contained is relative to http://localhost:8081/app/. eg: there is a link to css/style.css in the home page of http://www.example.com and it is not loaded because i try to get http://www.example.com/app/. Such a proxy configuration may require manipulation of the HTML links. Are the links being created dynamically or are they hard coded with css/style.css instead of /app/css/style.css and so on. Then, please suggest me a way to set up mod_proxy_* so that I have no to manipulate the links. Thanks, rocsca - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL problem with Tomcat 5.5
Good Evening Bob Implementing webapps is similar to setting up a scientific experiment..you need to complete ALL the steps outlined in order or nothing works The SSL checklist that starts with 1)installing and configuring JSSE (now comes with JDK.1.4 or 1.5) 2)a)create keystore Did you create the keystore as explained Yes or No? b)import the certificate into just created keystore Did you import the certificate into the keystore Yes or No? 3)uncomment the SSL Connector entry in $CATALINA_HOME/conf/server.xml and edit keystoreFile to point to just created keystore Did you edit the connector to make sure keyStoreFile points to the new keystore Yes or No? finally read this url and verify you understand everything you see in the embodied page http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html Did you read all of this Yes or No? Do you understand everything that is explained here? If there is something in this process that is undocumented or poorly documented PLEASE let us know. HTH/ Martin- - Original Message - From: Bob Grabbe [EMAIL PROTECTED] To: 'Tomcat Users List' users@tomcat.apache.org Sent: Monday, November 26, 2007 4:48 PM Subject: RE: SSL problem with Tomcat 5.5 OK, I've attached a new file with the startup. Unfortunately I'm not seeing anything in any logs that indicate any https requests. Just in case, what's the command to generate a new empty keystore file ? I've seen the notes on the tomcat docs for creating the csr, but I didn't do that this time. I might try it though, if I can get godaddy to go through the process with me again, Thanks Bob Grabbe University of Michigan [EMAIL PROTECTED] _ Research is the process of going up alleys to see if they are blind. -- Marston Bates -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Monday, November 26, 2007 4:09 PM To: Tomcat Users List Subject: Re: SSL problem with Tomcat 5.5 What would be best would be catalina.log at startup, showing whether the SSL connector started cleanly. And of course, any log entry relating specifically to an HTTPS request. I didn't generate a new csr, I figured renewing the cert shouldn't need that. Do I need to go through that or should I be able to just renew it ? Dunno about GoDaddy, but when I renew a Thawte cert for one of my sites, I have to generate a new cert request. So I just create a new keystore file, named something like keystore-example.com-2007, and use that for the new cert. HTH! -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6.0.14 startup on Windows
IT WORKS! Thanks for the information. Now, if only I could get the icon on the taskbar, I would be completely happy. But, I'm happy now. Bruce Caldarale, Charles R wrote: From: Bruce [mailto:[EMAIL PROTECTED] Subject: Tomcat 6.0.14 startup on Windows The help says this is possible with the //MS// option. Can't answer that one. When Tomcat starts, I get a command window that needs to be minimized. You appear to have the Allow service to interact with desktop check box set inside the Log On tab of tomcat6w. Just clear it, and the window will not be created. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6 virtual host problem please help
Such a proxy configuration may require manipulation of the HTML links. Why? I think that this is not feasible! Are the links being created dynamically or are they hard coded with css/style.css instead of /app/css/style.css and so on. Sorry I have no path in style.css.. I wanna show with a practical example.. Every static page is filtered (through a servlet filter) and is added an header and a navigation menu. The header contains also the: link rel=stylesheet href=/app/css/style.css type=text/css where 'app' is extracted as the context of the application directly by the filter. The problem is that once the index.html il loaded correctly, the same in not for the stylesheet. That's because the index.html contains the link /app/css/style.css, but the browser try to get that object relative to the URL that appears in the address bar (ie: http://www.example.com/). How I have to do so that app does'n create absolute paths relative to the context of the application running under Tomcat? This problems is a clear example of how mod_proxy_* is unusable when application to be proxed contains lynks create dynamically? Or is there any workaround? rocsca - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6 virtual host problem please help
On Nov 26, 2007 3:26 PM, Rocco Scappatura [EMAIL PROTECTED] wrote: How I have to do so that app does'n create absolute paths relative to the context of the application running under Tomcat? rewrite the app :-) This problems is a clear example of how mod_proxy_* is unusable when application to be proxed contains lynks create dynamically? Or is there any workaround? or, since you're already using httpd, learn about mod_rewrite. Best of luck :-) -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Confusing Tomcat Error: SEVERE: Error listenerStart
I am writing a web app in Struts. This was working perfectly until I did an uinstall/reinstall of Apache Tomcat 6.0.14 along with the new RC2 of NetBeans 6.0. Now, when I try to run my web app, I get a generic Tomcat error screen: type Status report message /myapp/ description The requested resource (/myapp/) is not available. Looking through the Tomcat log in NetBeans I see: Nov 26, 2007 1:14:14 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 834 ms Nov 26, 2007 1:14:14 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Nov 26, 2007 1:14:14 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.14 Nov 26, 2007 1:14:15 AM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart Nov 26, 2007 1:14:15 AM org.apache.catalina.core.StandardContext start SEVERE: Context [/myapp] startup failed due to previous errors Nov 26, 2007 1:14:15 AM org.apache.coyote.http11.Http11Protocol start What does Error listenerStart mean and how do I correct that? I am completely stumped. I don't know what else to try or do. Thanks in advance for any replies! JDK: Sun JDK 1.6.0_03 IDE: NetBeans 6.0 RC2 App Server: Tomcat bundled with NetBeans 6.0 RC2 (6.0.14) OS: Ubuntu 7.10 -- View this message in context: http://www.nabble.com/Confusing-Tomcat-Error%3A-%22SEVERE%3A-Error-listenerStart%22-tf4878905.html#a13962091 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL problem with Tomcat 5.5
To ensure you have a valid keystore with the included private key and a refer to an alias 'tomcat' I recommend strongly to create a new keystore as described in the reference (see links in other answer mails). At least you can create a self-signed certificate if you don't need one signed by a trusted CA. To check if SSL is running you can test it from a Linux or Unix box with installed OpenSSL with the following command: echo -e GET /jsp-examples/index.jsp HTTP/1.0\r\n\r\n|openssl s_client -connect localhost:8443 -ssl3 -debug -quiet Replace URI-context and welcome file, replace hostname and port if neccessary, change SSL mode to ssl2 or tsl as needed Johann - Original Message - From: Bob Grabbe [EMAIL PROTECTED] To: 'Tomcat Users List' users@tomcat.apache.org Sent: Monday, November 26, 2007 10:48 PM Subject: RE: SSL problem with Tomcat 5.5 OK, I've attached a new file with the startup. Unfortunately I'm not seeing anything in any logs that indicate any https requests. Just in case, what's the command to generate a new empty keystore file ? I've seen the notes on the tomcat docs for creating the csr, but I didn't do that this time. I might try it though, if I can get godaddy to go through the process with me again, Thanks Bob Grabbe University of Michigan [EMAIL PROTECTED] _ Research is the process of going up alleys to see if they are blind. -- Marston Bates -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Monday, November 26, 2007 4:09 PM To: Tomcat Users List Subject: Re: SSL problem with Tomcat 5.5 What would be best would be catalina.log at startup, showing whether the SSL connector started cleanly. And of course, any log entry relating specifically to an HTTPS request. I didn't generate a new csr, I figured renewing the cert shouldn't need that. Do I need to go through that or should I be able to just renew it ? Dunno about GoDaddy, but when I renew a Thawte cert for one of my sites, I have to generate a new cert request. So I just create a new keystore file, named something like keystore-example.com-2007, and use that for the new cert. HTH! -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]