Re[2]: WEB-INF/classes
Hello Anla, at setting up a new context for Tomcat, I must have forgotten something, because tomcat doesn't find my classes in WEB-INF/classes. The following fault appears: login_0005ftest$jsp.java:71: Class org.apache.jsp.DBSConnect not found. DBSConnect connect = new DBSConnect(); If you use = new DBSConnect(); in jsp code: 1. you should write in JSP: %@ page import=org.apache.jsp.DBSConnect % 2. Place jasper-jar files in WEB-INF/lib I think it'll be enough. AB I'm not familiar with JSP, but it looks like all you need is to import your DBSConnect, AB I don't think it really in org.apache.jsp package. Right? Until now I thought: When Tomcat is restarted, it recognizes the content in WEB-INF/classes. But perhaps I have to make some entries in server.xml or web.xml referring to this classes? Thank you for any help Anja -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re[2]: Init method of servlet called twice?
Hello Anton, Can anybody tell me why the init method can be called twice in a servlet. I am loading the servlet on startup and init is first called there. The first request to the servlet then calls the same init method again? Please help. I cannot init twice. AB This topic was discussed about a week ago, and Craig gave perfect and clear AB answer (as always). Try mail archives. AB As far as I remember init() can be called multiple times if: AB 1. TC4 and servlet implements SingleThreadModel AB 2. servlet is called by invoker (something like http://myhost/servlets/myServlet) AB 3. init() throws exception (that I don't remember exactly) Oh, yes. Craig answered to me as denoted above, but I still didn't solved this problem. Partially I did not returned to my problem yet, but I think that no any of 3 described reasons match my case. 2: I've checked many times before I've asked that question. My init servlet is called _once_. There's only one reference to the init servlet class in _one_ of my web.xml files. 3: init doesn't throws exceptions : log files is clear. Also there's a thread that starts from init(), and the thread remains alive (I think in case of exception this child thread must die). 1: My init servlet is extended from the Struts init servlet, so it doesn't implements SingleThreadModel, as Craig said. Moreover, I said, I declared a static variable in my init servlet class, and affected this variable, and traced this variable state into log file. And I certainly know: I have several instances of this variable !!! Each thread of init servlet has own static variable !!! Again: OS: RHL JDK: sun, 1.3 I'll show my configs and code if anybody will be so greatful to deep into. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Re[2]: Init method of servlet called twice?
Hi Serge, -Original Message- From: Serge A. Redchuk [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 10:30 AM To: [EMAIL PROTECTED] Subject: Re[2]: Init method of servlet called twice? AB This topic was discussed about a week ago, and Craig gave perfect and clear AB answer (as always). Try mail archives. AB As far as I remember init() can be called multiple times if: AB 1. TC4 and servlet implements SingleThreadModel AB 2. servlet is called by invoker (something like http://myhost/servlets/myServlet) AB 3. init() throws exception (that I don't remember exactly) Oh, yes. Craig answered to me as denoted above, but I still didn't solved this problem. Partially I did not returned to my problem yet, but I think that no any of 3 described reasons match my case. 2: I've checked many times before I've asked that question. My init servlet is called _once_. There's only one reference to the init servlet class in _one_ of my web.xml files. 3: init doesn't throws exceptions : log files is clear. Also there's a thread that starts from init(), and the thread remains alive (I think in case of exception this child thread must die). 1: My init servlet is extended from the Struts init servlet, so it doesn't implements SingleThreadModel, as Craig said. Moreover, I said, I declared a static variable in my init servlet class, and affected this variable, and traced this variable state into log file. And I certainly know: I have several instances of this variable !!! Each thread of init servlet has own static variable !!! Good idea, and it shows the problem. Your class gets loaded in different class loaders. So, it looks like your servlet still defined in more then one place. Again: OS: RHL JDK: sun, 1.3 I'll show my configs and code if anybody will be so greatful to deep into. Anton -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Default Servlet
Dear gurus. I am running Apache+Tomcat4. Please help me on the following: 1.How should I configure tomcat and apache to run on the same port 80. 2.If both in port 80, How should I configure apache that every request like http://test.myserver.com will be redirected to only one servlet http://test.myserver.com/servlet/Myservlet not using web.xml's welcome? (In my case I ought not use web.xml because I want every request sholud passed to servlet Myservlet only directly!) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Problem with cookies
Hi, Is there a way in Tomcat 401 to set cookies off on the server side. I tried setting the cookies off by specifying the cookies attribute in server.xml so that my server.xml looks like: Context path=/cnams docBase=cnams debug=0 privileged=true cookies =false/ But this doesn't seem to work. My browser is still being prompted for cookies. Has any one else encountered this problem. Is there any other way of achieving this? Regards, Gaurav
MIGRATION TO JAKARTA-TOMCAT 4.01
Hello! I've an webapp with jsp, servlets and beans (on an win2k OS) that is functioning on a jakarta-tomcat-3.3m4 (in webapps directory/myapp and my classes in myapp/web-inf/classes) and I want to migrate on a JAKARTA-TOMCAT 4.01., but the same architecture that I'm using on jakarta-tomcat-3.3m4 is not functioning on new server. Please tell me where I have to put my classes , my beans and my jsp-s? Thanks to all! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat IIS Servlets
Hi, Tomcat is running fine with IIS. I can surf .jsp pages and JDBC is also working. But I've troubles with servlets. Placing a servlet in WEB-INF/classes seems not to work. Is there any basic (uriworkermap.properties?) or webapp specific (apps*.xml) configuration needed do get it work? my uriworkermap.properties currently looks like described in howto documentation: default.worker=ajp13 /*.jsp=$(default.worker) - jsp's are running But is it not needed to add a line like this for servlets? /servlet/*=$(default.worker) (I did it but servlets still not work) Martin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Newbie problem with reading init params
Sorry Chinni, but that didnt't work. Why isn't there a connection between the server and the compiler? Dominik -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 7. Februar 2002 20:15 An: Tomcat Users List Betreff: Re: Newbie problem with reading init params You actually read them from ServletContext not from the ServletConfig. You can get the Servlet Context by doing... ServletContext sc = getServletContext(); Hope this helps. -Chinni. Dominik Jednoralski To: [EMAIL PROTECTED] tomcat@lime-cc: design.de Subject: Newbie problem with reading init params 02/07/02 12:02 PM Please respond to Tomcat Users List Hey Guys, I have a problem with getting my init-params from the web.xml-file. These are the parameters I inserted into the webapps/root/web-inf/web.xml-file: web-app servlet servlet-nameShowMsg/servlet-name servlet-classlimeservlets.ShowMessage/servlet-class init-param param-namemessage/param-name param-valueNerv-Serv/param-value /init-param init-param param-namerepeats/param-name param-value5/param-value /init-param /servlet /web-app Now I failed to read these parameters with the follwing servlet: package limeservlets; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; public class ShowMessage extends HttpServlet { private String message; private String defaultMessage = Leider keine Nachricht.; private int repeats = 1; public void init (ServletConfig config) throws ServletException{ super.init(config); message = config.getInitParameter(message); if (message == null) { message = defaultMessage; } try { String repeatString = config.getInitParameter (repeats); repeats = Integer.parseInt(repeatString); } catch (NumberFormatException nfe){} } public void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ response.setContentType(text/html); PrintWriter out = response.getWriter(); String title = The Servlet which shows a message!; out.println(ServletUtilities.headWithTitle(title) + body bgcolor=#fdf5f6\nh1+ title + /h1br); for (int i = 0; i repeats; i ++) { out.println(message + br); } out.println(/body/html); } } Does anyone know the reason for that? I for myself don't have a clue- I'm not really into configuring servers... Dominik Jednoralski . Lime Design Mediengestaltung . Lilienstr. 23 . 63768 Hvsbach . Tel. 06021.550470 . visit www.lime-design.de -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Default Servlet
Hello Odo, 1. First of all, you can't make apache AND tomcat listen on the same port at the same time. 2. You can use a rewrite rule. Look at this url: http://httpd.apache.org/docs/mod/mod_rewrite.html Cheers, Loïc Lefèvre -Message d'origine- De : Odo [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 8 février 2002 10:33 À : Tomcat Users List Objet : Default Servlet Dear gurus. I am running Apache+Tomcat4. Please help me on the following: 1.How should I configure tomcat and apache to run on the same port 80. 2.If both in port 80, How should I configure apache that every request like http://test.myserver.com will be redirected to only one servlet http://test.myserver.com/servlet/Myservlet not using web.xml's welcome? (In my case I ought not use web.xml because I want every request sholud passed to servlet Myservlet only directly!) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Is it possible to execute a reloadable...
Hi everybody, I'm using SOLARIS 8, apache 1.3.22, tomcat 4.0.1 Tomcat is configured to communicate with Apache via the WARP Connector. As it is set for devlopement stuff, i want all the changes made in the WEB_INF/lib or classes under CATALINA_BASE/webapps to be automatically reloaded. Below is my server.xml. Where can i put my directive relodable=true so that it is effective for the whole ./webapps projects ? !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8012 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0/ !-- Replace localhost with what your Apache ServerName is set to -- Engine className=org.apache.catalina.connector.warp.WarpEngine name=apache debug=0 appBase=webapps defaultHost=photosharing.ko.kodak.com !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ !-- Because this Realm is here, an instance will be shared globally -- Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service Any clues welcome. Regards. Jean-Luc B :O) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Default Servlet
Hi, -Original Message- From: Odo [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 11:33 AM To: Tomcat Users List Subject: Default Servlet Dear gurus. I am running Apache+Tomcat4. Please help me on the following: 1.How should I configure tomcat and apache to run on the same port 80. No way, only one application can listen specific port on specific IP. 2.If both in port 80, How should I configure apache that every request like http://test.myserver.com will be redirected to only one servlet http://test.myserver.com/servlet/Myservlet not using web.xml's welcome? You should set your servlet as default one for default context. You can define default context in server.xml or just use ROOT, and you should map your servlet to / in your web.xml Try with docs or ask again for xml samples. And it looks like you don't need Apache at all if you want ALL requests go to Tomcat. (In my case I ought not use web.xml because I want every request should passed to servlet Myservlet only directly!) Anton -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
How do I define Tomcats CLASSPATH - tools.jar not found
Hi I have just installed the IBM JVM 1.3 and want to use it with Tomcat 4. I started Tomcat and got an error which after some investigation said I needed tools.jar in my CLASSPATH. I am using linux and have a tools.jar at /usr/java/jdk1.3.1_02/lib/tools.jar /usr/java/j2sdk1.4.0/lib/tools.jar How do I set my CLASSPATH so Tomcat uses one of these? -- Cheers Tony$B!#(B - _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Have people used IBM JDK 1.3 with Tomcat4 with UTF8
Hi I have just installed IBMS JDK and am using it to run Tomcat 4. I am getting a few exceptions relating to the character encoding. Can someone please tell me if it is possible to use the IBM JDK 1.3 with UTF-8 for Tomcat 4 -- Cheers Tony$B!#(B - _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Default Servlet
Yes Anton,in my case as you said it's enough to have only Tomcat4. But if I'll configure Tomcat4 running alone,listening port 80, what should i do to redirect all my requests directly (not using in middle any html or jsp) to only one servlet Myservlet? Please give me some examples or links with examples? Anton Brazhnyk wrote: Hi, -Original Message- From: Odo [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 11:33 AM To: Tomcat Users List Subject: Default Servlet Dear gurus. I am running Apache+Tomcat4. Please help me on the following: 1.How should I configure tomcat and apache to run on the same port 80. No way, only one application can listen specific port on specific IP. 2.If both in port 80, How should I configure apache that every request like http://test.myserver.com will be redirected to only one servlet http://test.myserver.com/servlet/Myservlet not using web.xml's welcome? You should set your servlet as default one for default context. You can define default context in server.xml or just use ROOT, and you should map your servlet to / in your web.xml Try with docs or ask again for xml samples. And it looks like you don't need Apache at all if you want ALL requests go to Tomcat. (In my case I ought not use web.xml because I want every request should passed to servlet Myservlet only directly!) Anton -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: How do I define Tomcats CLASSPATH - tools.jar not found
Hi Tony, Tomcat uses another CLASSPATH than you system. You can change it in TOMCAT_HOME/bin/catalina.bat. You will have to look for the right position. But note: To change Tomcat-CLASSPATH is unsupported by jakarta. Anja PS: I have added the JDBC-Driver to Tomcat-CLASSPATH and is runs without problems. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Default Servlet
-Original Message- From: Odo [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 12:27 PM To: Tomcat Users List Subject: Re: Default Servlet Yes Anton,in my case as you said it's enough to have only Tomcat4. But if I'll configure Tomcat4 running alone,listening port 80, what should i do to redirect all my requests directly (not using in middle any html or jsp) to only one servlet Myservlet? Please give me some examples or links with examples? I wouldn't recommend you using invoker servlet (it usually used when you call something like /servlet/myServlet. Assuming you will use ROOT application (to leave server.xml alone) in your web.xml you can write something like: servlet servlet-namename/servlet-name servlet-classpackage.YourServlet/servlet-class /servlet servlet-mapping servlet-namename/servlet-name url-pattern//url-pattern !-- its default now -- /servlet-mapping One thing you need to be aware of, absolutely any request that isn't mapped explicitly will go to your servlet (including static resources e.g. http://host//index.html or /images/top.jpeg) Somebody please correct me if I'm wrong, since I tried it long ago. :) Anton -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
TOMCAT 4.0 on port 80
Hi all, We have temporarily given up on trying to get Tomcat working with apache as we seemed to be getting nowhere. What we wanted to do was to only serve JSP's anyway, but thought it would be a good idea to run it through apache - commercially we don't have the time to persue this and our static pages are served by our ISP anyway. The next problem I need to overcome is to get Tomcat running on port 80 - we have changed the server.xml file so that both instances of 8080 were changed to 80. This works on windows but not on SuSE Linux 7.3 - please can you give me any pointers. Regards Kevin Passey To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: TOMCAT 4.0 on port 80
You have to be root to startup tomcat under port 80. Mvgr, martin -Original Message- From: Kevin Passey [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 12:23 To: Tomcat Users List Subject: TOMCAT 4.0 on port 80 Hi all, We have temporarily given up on trying to get Tomcat working with apache as we seemed to be getting nowhere. What we wanted to do was to only serve JSP's anyway, but thought it would be a good idea to run it through apache - commercially we don't have the time to persue this and our static pages are served by our ISP anyway. The next problem I need to overcome is to get Tomcat running on port 80 - we have changed the server.xml file so that both instances of 8080 were changed to 80. This works on windows but not on SuSE Linux 7.3 - please can you give me any pointers. Regards Kevin Passey To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
setMaxAge getMaxAge cookie problem
Hello there, I don't know if this is off topic for this list but I will ask anyway. I written two java servlets which I am running on tomcat 4.0. One servlet creates cookies, the other displays details about them. One thing I have done is to use the setMaxAge method on a cookie object. But when I interrogate the cookie using getMaxAge in the other servlet the value is always -1 reagardless of what I originaly set it to. Having a value of -1 means that the cookie gets to deleted as soon as the browser window is closed. This could be a problem with my browser settings (IE 5) or something with tomcat. I am pretty sure I am setting the value correctly in the java code. Any ideas kind regards Nic
Re: Configuration Issue of Tomcat4.0.1 and Apache1.3.22
1. What's the relationship of Apache, Apache Jserv and Tomcat? Apache 1.3 is a standards compliant, fast and mature web server which excels at delivering static content such as static HTML pages and images. The Tomcat web server is great for serving Java Server Pages and servlets, but it is not as fast as Apache for delivering static content. From the JServ web page: * Apache JServ is in a maintenance only mode at this point. This means that there will be no new official releases and that only well tested patches are being committed. No new features are being added. If you are looking for the latest implementation of a Java Servlet Engine and/or Java Server Pages (JSP) then you should consider using the Jakarta Tomcat http://jakarta.apache.org/tomcat/ product available from the Jakarta Project.* 2. Can Tomcat replaces Apache Jserv? 3. How can I config Tomcat4.0.1 and Apache1.3.22 to make them work together? www.ubeans.com/tomcat -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError: javax/net/ServerSocketFactory
Hello, Does anyone have an explaination or remedy for this error? I get this error when I try to run Tomcat with the SSL invoked, Tomcat/4.0.2-b1 -- Windows 2000 Pro. I followed the instructions given in the documentation to the letter, but I still get this error. ___ Exception during startup processing java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError: javax/net/ServerSocketFactory at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616) at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412) at org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329) at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376) at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1284) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:362) at javax.xml.parsers.SAXParser.parse(SAXParser.java:301) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) ___ There is a class, org.apache.catalina.net.SSLServerSocketFactory, that imports javax.net.ServerSocketFactory. The problem may be that this class, javax.net.ServerSocketFactory can't be found because it's in the JDK 1.4.0, but then when I use JDK 1.4.0 to run Apache Tomcat/4.0.2-b1 its still not found. Thanks for any help. LDD -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: TOMCAT 4.0 on port 80
Kevin Passey wrote: Hi all, We have temporarily given up on trying to get Tomcat working with apache as we seemed to be getting nowhere. What we wanted to do was to only serve JSP's anyway, but thought it would be a good idea to run it through apache - commercially we don't have the time to persue this and our static pages are served by our ISP anyway. The next problem I need to overcome is to get Tomcat running on port 80 - we have changed the server.xml file so that both instances of 8080 were changed to 80. This works on windows but not on SuSE Linux 7.3 - please can you give me any pointers. If you can't get tomcat to bind to port 80 on a Linux box - or on any box for that matter - you should check that there is no other web server running on the machine. For example, Red Hat installs an apache web server by default. I don't know about SuSe, but this could be your problem. In order to ensure that there is no httpd server running on your Linux box, do the following: /etc/rc.d/init.d/httpd stop rm -f /etc/rc.d/rc?.d/S??httpd And then try to launch tomcat again. I hope this helps, Pascal Forget -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: TOMCAT 4.0 on port 80
Pascal - We have shut down apache using rcapache stop and have modified the rc.config file so that it does not start on bootup. Thanks anyway - what we are trying is to change the server.xml file back to 80 and to restart tomcat under root. Do you think that was our problem - not starting under root. Regards Kevin Passey -Original Message- From: Pascal Forget [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 11:42 AM To: Tomcat Users List Subject: Re: TOMCAT 4.0 on port 80 Kevin Passey wrote: Hi all, We have temporarily given up on trying to get Tomcat working with apache as we seemed to be getting nowhere. What we wanted to do was to only serve JSP's anyway, but thought it would be a good idea to run it through apache - commercially we don't have the time to persue this and our static pages are served by our ISP anyway. The next problem I need to overcome is to get Tomcat running on port 80 - we have changed the server.xml file so that both instances of 8080 were changed to 80. This works on windows but not on SuSE Linux 7.3 - please can you give me any pointers. If you can't get tomcat to bind to port 80 on a Linux box - or on any box for that matter - you should check that there is no other web server running on the machine. For example, Red Hat installs an apache web server by default. I don't know about SuSe, but this could be your problem. In order to ensure that there is no httpd server running on your Linux box, do the following: /etc/rc.d/init.d/httpd stop rm -f /etc/rc.d/rc?.d/S??httpd And then try to launch tomcat again. I hope this helps, Pascal Forget -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Adding apps to Tomcat
Hello everyone. Actually i have tomcat and Apache successfully installed and running (in a w32 enviroment). I have one app serving servlets (call it, appA). I want to create another app (under webapps also), call it appB. In the httpd.conf i added something like this (another alias) Alias /appB C:/tomcat/webapps/appB Directory c:/tomcat/webapps/appB Options Indexes FollowSymLinks /Directory ApJServMount /eroski_manten/servlet /appB In the web.xml inside appB i put something like this: servlet servlet-nameAServlet/servlet-name description/ servlet-classcom.cidat.appB/servlet-class load-on-startup1/load-on-startup /servlet and servlet-mapping servlet-nameAServlet/servlet-name url-pattern/Aservlet/url-pattern /servlet-mapping but when i browse to the servlet it doesnt found the file!!! Whats wrong in all this thing? If i put the servlet in appA and map it in his web.xml it works fine, it seems as if Tomcat couldnt define the appB. I´m quite desperate with it!! Any help will be welcomed. Thanks a lot Javi -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat and JSP
Are you perhaps storing some information in some page variable? When you recompile the JSP the previous state is lost and it would appear from the error message that perhaps some variable is now null that wasn't previously null. Randy -Original Message- From: James McCall [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 9:52 PM To: Tomcat Users List Subject: RE: Tomcat and JSP Hi, When I edit a working JSP file in the Tomcat directory I get a java null pointer error. Most times if I just rename the file it works under the new name, but mostly it doesn't. I have tried several things with no success. Any help would be appreciated. -James The error is below: Location: /examples/jsp/test/NPPU.jsp Internal Servlet Error: javax.servlet.ServletException: Database not found or no system permission. at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown Source) at jsp.test.NPPU_2._jspService(NPPU_2.java:158) at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source) at org.apache.tomcat.core.Handler.invoke(Unknown Source) at org.apache.tomcat.core.Handler.service(Unknown Source) at org.apache.tomcat.facade.ServletHandler.service(Unknown Source) at org.apache.tomcat.core.ContextManager.internalService(Unknown Source) at org.apache.tomcat.core.ContextManager.service(Unknown Source) at org.apache.tomcat.modules.server.Http10Interceptor.processConn ection(Unknown Source) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:484) Root cause: java.sql.SQLException: Database not found or no system permission. at com.informix.jdbc.IfxSqliConnect.(IfxSqliConnect.java:587) at java.lang.reflect.Constructor.newInstance(Native Method) at com.informix.jdbc.IfxDriver.connect(IfxDriver.java:194) at java.sql.DriverManager.getConnection(DriverManager.java:517) at java.sql.DriverManager.getConnection(DriverManager.java:199) at jsp.test.NPPU_2._jspService(NPPU_2.java:66) at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source) at org.apache.tomcat.core.Handler.invoke(Unknown Source) at org.apache.tomcat.core.Handler.service(Unknown Source) at org.apache.tomcat.facade.ServletHandler.service(Unknown Source) at org.apache.tomcat.core.ContextManager.internalService(Unknown Source) at org.apache.tomcat.core.ContextManager.service(Unknown Source) at org.apache.tomcat.modules.server.Http10Interceptor.processConn ection(Unknown Source) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:484) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: TomCat Issues
We were close - IIS 4, Tomcat 3 and SQL Server 7 using INetSoftware.de's drivers. No problems and no stability issues. It was a fairly small user base (20-30), but the users were very active (6-8 hours a day 5 days a week). We shared the hardware with another system and never received any complaints about the system being slow. We have since moved up to IIS 5 and SQL Server 2000 and now have stability issues (seems to be a JVM/OS interaction problem). Randy -Original Message- From: Vinay Urs [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 11:20 PM To: [EMAIL PROTECTED] Subject: TomCat Issues Hello there, We are developing an application with IIS 4.0(SSL-enabled), Apache TomCat 4.0.1,SQL Server 7.0 with freetds as the JDBC Driver. The programming elements are mainly JSPs for the presentation layer and Java Beans for the Business logic. Are there any projects out there with the same development platform? If so, are there any known performance issues that we need to look out for? Any suggestion is much appreciated. Thanks, Vinay __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Please Help....Re: Listeners in the WARP Connector?
Mark R. Diggory wrote: I assume I would need to use a WebAppDeploy descriptor to map the users directories to Tomcat, how would I do that for generic users directories (~/public_html)? WebAppConnection warpConnection warp localhost:8008 WebAppDeploy examples warpConnection /examples/ WebAppDeploy manager warpConnection /manager/ WebAppDeploy webdav warpConnection /webdav/ Mark R. Diggory wrote: I've successflly set up tomcat to server user public_html directories using the example in the docmentation. However, this doesn't seem to work as well when I try it through my WARP connection. Is this possible? Any tips? !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0/ !-- Replace localhost with what your Apache ServerName is set to -- Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 appBase=webapps !-- Attempt to define a default virtual host and a listener to map the user dir's through the apache connector-- Host name=Apache debug=0 appBase=webapps unpackWARs=true Listener className=org.apache.catalina.startup.UserConfig directoryName=public_html homeBase=/home/login userClass=org.apache.catalina.startup.HomesUserDatabase/ /Host /Engine /Service -Mark Diggory -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: java.lang.StackOverflowError
StackOverflowError Java Doc states: Thrown when a stack overflow occurs because an application recurses too deeply So I would suggest that you look at your application at the point of when the error is thrown. If you don't see anything, post the stack trace with the exception and someone here should be able to point out your problem. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 11:56 PM To: Tomcat Users List Subject: java.lang.StackOverflowError Hi, I have tomacat4.0.1 and apache 1.3.0 running on RH7.1.Iam using HTML,JSP and Servlets for application developement.when i start the tomcat and apache it is working fine,but after some time it hangs and does not respond.It is a tomcat issue as i checked out apache is rendering pages which does not require tomcat. when i checked the catalina.out what i found this line java.lang.StackOverflowError.is there any way to get rid of this problem.Is there any configuration parameters to be set? Any help is greatly appreciated. Thanks Ahmed - -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat IIS Servlets
When you want to run servlets, you do need to modify your mapping. However, people don't generally call servlets from /servlet/className any more. Its more typical that you would have some specific URLs. There are two places where you might be having problems: 1. IIS doesn't recognize that it must forward the request. To check this you need to look at your IIS log files and see if you are getting 404 errors for the servlet requests, or if they have been rewritten to the ISAPI Redirector. If so you need to modify the uriworkermap.properties. 2. Tomcat doesn't recognize the URL passed from IIS as a valid servlet URL. To check this you need check the Tomcat logs for 404 errors. If this is the case then you need to either create servlet mappings in your web.xml file or change the URL that you are using. Randy -Original Message- From: Martin Jussel [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 4:50 AM To: Tomcat Users List Subject: Tomcat IIS Servlets Hi, Tomcat is running fine with IIS. I can surf .jsp pages and JDBC is also working. But I've troubles with servlets. Placing a servlet in WEB-INF/classes seems not to work. Is there any basic (uriworkermap.properties?) or webapp specific (apps*.xml) configuration needed do get it work? my uriworkermap.properties currently looks like described in howto documentation: default.worker=ajp13 /*.jsp=$(default.worker) - jsp's are running But is it not needed to add a line like this for servlets? /servlet/*=$(default.worker) (I did it but servlets still not work) Martin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
REPOST: two web.xml?
--- Start of forwarded message --- From: Madock Chiwenda [EMAIL PROTECTED] To: [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] Subject: Fwd: two web.xml? Date: 06/02/02 14:45:03 How can a person specify default web.xml to be used at startup. I would like to start tomcat accessing the jsp in two different modes: 1. Accessing the source using WebDAV enabled editor. 2. Viewing the executed page content (HTML) using a browser. I think the source access can be achieved by disabling the JSP servlet but I still want to preview it in the browser. I cant see any documentation for specifying web.xml to be used at startup or by the server/engine/host or anywhere appropriate. Has someone tried to solve such problem? Madock _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] End of forwarded message _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Tomcat IIS Servlets
Hi, Thanx for your help. I checked the IIS log and found lines like that: [...] 2002-02-08 13:29:59 192.168.0.38 - 192.168.0.3 80 GET /kunden/servlet/Abbildung picID=16$08517270 404 [...] I think this is what you described under 1. and so I've to modify the uriworkermap.properties. Can you help me how to modify? Martin -Ursprüngliche Nachricht- Von: Randy Layman [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 08. Februar 2002 13:24 An: 'Tomcat Users List' Betreff: RE: Tomcat IIS Servlets When you want to run servlets, you do need to modify your mapping. However, people don't generally call servlets from /servlet/className any more. Its more typical that you would have some specific URLs. There are two places where you might be having problems: 1. IIS doesn't recognize that it must forward the request. To check this you need to look at your IIS log files and see if you are getting 404 errors for the servlet requests, or if they have been rewritten to the ISAPI Redirector. If so you need to modify the uriworkermap.properties. 2. Tomcat doesn't recognize the URL passed from IIS as a valid servlet URL. To check this you need check the Tomcat logs for 404 errors. If this is the case then you need to either create servlet mappings in your web.xml file or change the URL that you are using. Randy -Original Message- From: Martin Jussel [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 4:50 AM To: Tomcat Users List Subject: Tomcat IIS Servlets Hi, Tomcat is running fine with IIS. I can surf .jsp pages and JDBC is also working. But I've troubles with servlets. Placing a servlet in WEB-INF/classes seems not to work. Is there any basic (uriworkermap.properties?) or webapp specific (apps*.xml) configuration needed do get it work? my uriworkermap.properties currently looks like described in howto documentation: default.worker=ajp13 /*.jsp=$(default.worker) - jsp's are running But is it not needed to add a line like this for servlets? /servlet/*=$(default.worker) (I did it but servlets still not work) Martin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Tomcat IIS Servlets
Is it possible to do a more *basic* configuration? I want to run multiple webs and do not want to change the uriworkermap.properties for each app. Replacing default.worker=ajp13 /admin=$(default.worker) /admin/*=$(default.worker) /examples=$(default.worker) /examples/*=$(default.worker) with default.worker=ajp13 /*.jsp=$(default.worker) is also working fine for JSP pages. Is it not possible to do stuff like this for servlets? Martin -Ursprüngliche Nachricht- Von: Randy Layman [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 08. Februar 2002 13:50 An: 'Tomcat Users List' Betreff: RE: Tomcat IIS Servlets You need to map /kunden/servlet to Tomcat, so add /kunden/servlet/*=${default.worker} to your uriworkermap.properties file. Randy -Original Message- From: Martin Jussel [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 8:35 AM To: Tomcat Users List Subject: AW: Tomcat IIS Servlets Hi, Thanx for your help. I checked the IIS log and found lines like that: [...] 2002-02-08 13:29:59 192.168.0.38 - 192.168.0.3 80 GET /kunden/servlet/Abbildung picID=16$08517270 404 [...] I think this is what you described under 1. and so I've to modify the uriworkermap.properties. Can you help me how to modify? Martin -Ursprüngliche Nachricht- Von: Randy Layman [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 08. Februar 2002 13:24 An: 'Tomcat Users List' Betreff: RE: Tomcat IIS Servlets When you want to run servlets, you do need to modify your mapping. However, people don't generally call servlets from /servlet/className any more. Its more typical that you would have some specific URLs. There are two places where you might be having problems: 1. IIS doesn't recognize that it must forward the request. To check this you need to look at your IIS log files and see if you are getting 404 errors for the servlet requests, or if they have been rewritten to the ISAPI Redirector. If so you need to modify the uriworkermap.properties. 2. Tomcat doesn't recognize the URL passed from IIS as a valid servlet URL. To check this you need check the Tomcat logs for 404 errors. If this is the case then you need to either create servlet mappings in your web.xml file or change the URL that you are using. Randy -Original Message- From: Martin Jussel [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 4:50 AM To: Tomcat Users List Subject: Tomcat IIS Servlets Hi, Tomcat is running fine with IIS. I can surf .jsp pages and JDBC is also working. But I've troubles with servlets. Placing a servlet in WEB-INF/classes seems not to work. Is there any basic (uriworkermap.properties?) or webapp specific (apps*.xml) configuration needed do get it work? my uriworkermap.properties currently looks like described in howto documentation: default.worker=ajp13 /*.jsp=$(default.worker) - jsp's are running But is it not needed to add a line like this for servlets? /servlet/*=$(default.worker) (I did it but servlets still not work) Martin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: REPOST: two web.xml?
Hi, -Original Message- From: Madock Chiwenda [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 2:13 PM To: [EMAIL PROTECTED] Subject: REPOST: two web.xml? --- Start of forwarded message --- From: Madock Chiwenda [EMAIL PROTECTED] To: [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] Subject: Fwd: two web.xml? Date: 06/02/02 14:45:03 How can a person specify default web.xml to be used at startup. I would like to start tomcat accessing the jsp in two different modes: 1. Accessing the source using WebDAV enabled editor. 2. Viewing the executed page content (HTML) using a browser. I think the source access can be achieved by disabling the JSP servlet but I still want to preview it in the browser. I cant see any documentation for specifying web.xml to be used at startup or by the server/engine/host or anywhere appropriate. Do you look for CATALINA_HOME/conf/web.xml ? Has someone tried to solve such problem? Madock Anton -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat + Apache lifecycle question
Hi, -Original Message- From: Daniel Drasin [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 3:37 PM To: Tomcat Users List Subject: Tomcat + Apache lifecycle question I've set up Tomcat 4.x to work with Apache 1.3.x using the Warp connector stuff. I followed the standard instructions for how to modify the httpd.conf file of apache, etc. (All pretty straightforward...) My problem is that i need to have a certain activity occur when Tomcat starts up. This activity is to initialize a certain set of java objects and make them available to servlets. Because of classpath issues (i.e. classloaders) i was unable to use the lifecycle hooks of the contexts and had to settle for the (hackish) method of making a dummy servlet that only exists to have its load-on-startup value set (excerpt from the web.xml is below). This servlet has an init() definition that initializes the objects in question (example definition below.) The issue is that i need to have this activity occur once and only once - so i add a static flag into the init method to see if it's already run. However, this doesn't work. When i start tomcat, the initialization code runs and when i start apache, it runs again - despite the flag. (Output included below). My guess is that the flag doesn't help because these init() calls are occuring in two different object spaces (class loaders) so the flag really is false both times. So my question is - what's going on here. Fundamentally, how can i achieve my goal outlined in paragraph 1. At a deeper level, my question is - why do i get two calls to startup? Well, AFAIK yes. But by default there are two Services. Standalone and Apache-Tomcat. So, you either have to choose one of them (since they're really different) or try to use JNDI for that purpose. Is tomcat starting a new context for apache? If so, why doesn't it use the one that it's already started? Is there a way to surpress the starting of one of the contexts? Any help is appreciated Dan Anton -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: servlet.jar and 3.3
I believe that org.apache.tomcat.startup.Main now requires a task to be specified. It no longer defaults to starting. Include start or -start (without quotes) as an argument to the Main class. Cheers, Larry -Original Message- From: Mario Felarca [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 5:48 PM To: Tomcat Users List Subject: RE: servlet.jar and 3.3 At 05:36 PM 02/07/2002 -0500, you wrote: I haven't used JavaService.exe. What are the other java startup arguments and parameters being specified. Having just tomcat.jar for the classpath should be fine. The other parameters relevant to tomcat are: -Dtomcat.home, the value is the Tomcat directory. The start class is or.apache.tomcat.startup.Main. The start method is main. The start param is -config The config value is the location for my server.xml file. Thanks, Mario- _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat IIS Servlets
I don't believe that the ISAPI Redirector offers double wild cards, but it would seem like what you are trying to do is: /*/servlets/*=${default.worker} Like I said, I don't believe that this syntax is supported, but there is nothing stopping you from downloading the source and adding this functionality yourself. Randy -Original Message- From: Martin Jussel [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 8:42 AM To: Tomcat Users List Subject: AW: Tomcat IIS Servlets Is it possible to do a more *basic* configuration? I want to run multiple webs and do not want to change the uriworkermap.properties for each app. Replacing default.worker=ajp13 /admin=$(default.worker) /admin/*=$(default.worker) /examples=$(default.worker) /examples/*=$(default.worker) with default.worker=ajp13 /*.jsp=$(default.worker) is also working fine for JSP pages. Is it not possible to do stuff like this for servlets? Martin -Ursprüngliche Nachricht- Von: Randy Layman [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 08. Februar 2002 13:50 An: 'Tomcat Users List' Betreff: RE: Tomcat IIS Servlets You need to map /kunden/servlet to Tomcat, so add /kunden/servlet/*=${default.worker} to your uriworkermap.properties file. Randy -Original Message- From: Martin Jussel [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 8:35 AM To: Tomcat Users List Subject: AW: Tomcat IIS Servlets Hi, Thanx for your help. I checked the IIS log and found lines like that: [...] 2002-02-08 13:29:59 192.168.0.38 - 192.168.0.3 80 GET /kunden/servlet/Abbildung picID=16$08517270 404 [...] I think this is what you described under 1. and so I've to modify the uriworkermap.properties. Can you help me how to modify? Martin -Ursprüngliche Nachricht- Von: Randy Layman [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 08. Februar 2002 13:24 An: 'Tomcat Users List' Betreff: RE: Tomcat IIS Servlets When you want to run servlets, you do need to modify your mapping. However, people don't generally call servlets from /servlet/className any more. Its more typical that you would have some specific URLs. There are two places where you might be having problems: 1. IIS doesn't recognize that it must forward the request. To check this you need to look at your IIS log files and see if you are getting 404 errors for the servlet requests, or if they have been rewritten to the ISAPI Redirector. If so you need to modify the uriworkermap.properties. 2. Tomcat doesn't recognize the URL passed from IIS as a valid servlet URL. To check this you need check the Tomcat logs for 404 errors. If this is the case then you need to either create servlet mappings in your web.xml file or change the URL that you are using. Randy -Original Message- From: Martin Jussel [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 4:50 AM To: Tomcat Users List Subject: Tomcat IIS Servlets Hi, Tomcat is running fine with IIS. I can surf .jsp pages and JDBC is also working. But I've troubles with servlets. Placing a servlet in WEB-INF/classes seems not to work. Is there any basic (uriworkermap.properties?) or webapp specific (apps*.xml) configuration needed do get it work? my uriworkermap.properties currently looks like described in howto documentation: default.worker=ajp13 /*.jsp=$(default.worker) - jsp's are running But is it not needed to add a line like this for servlets? /servlet/*=$(default.worker) (I did it but servlets still not work) Martin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat + Apache lifecycle question
Daniel Drasin a écrit : I've set up Tomcat 4.x to work with Apache 1.3.x using the Warp connector stuff. I followed the standard instructions for how to modify the httpd.conf file of apache, etc. (All pretty straightforward...) My problem is that i need to have a certain activity occur when Tomcat starts up. This activity is to initialize a certain set of java objects and make them available to servlets. Because of classpath issues (i.e. classloaders) i was unable to use the lifecycle hooks of the contexts and had to settle for the (hackish) method of making a dummy servlet that only exists to have its load-on-startup value set (excerpt from the web.xml is below). This servlet has an init() definition that initializes the objects in question (example definition below.) The issue is that i need to have this activity occur once and only once - so i add a static flag into the init method to see if it's already run. However, this doesn't work. When i start tomcat, the initialization code runs and when i start apache, it runs again - despite the flag. (Output included below). My guess is that the flag doesn't help because these init() calls are occuring in two different object spaces (class loaders) so the flag really is false both times. So my question is - what's going on here. Fundamentally, how can i achieve my goal outlined in paragraph 1. At a deeper level, my question is - why do i get two calls to startup? Is tomcat starting a new context for apache? If so, why doesn't it use the one that it's already started? Is there a way to surpress the starting of one of the contexts? Any help is appreciated Dan -CODE AND OUTPUT--- ... servlet servlet-name ServletTest /servlet-name servlet-class ServletTest /servlet-class load-on-startup0/load-on-startup ... ... public class ServletTest extends HttpServlet { static int i = 0; static boolean flag = false; static { i++; if(!flag) { flag = true; System.out.println(***GOT + i + **); } } ... ... Starting service Tomcat-Standalon Apache Tomcat/4.0.1 ***GOT 1 ** delete this service ( everything in the right Service section ) from server.xml hope this helps Starting service Tomcat-Apache Apache Tomcat/4.0.1 ***GOT 1 ** ... -- Daniel Drasin Applied Reasoning [EMAIL PROTECTED] 8612 Long Meadow Ct. (410)-461-6168 Columbia, MD, 21045 http://www.appliedreasoning.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Need help with CLIENT_CERT authentication
Hi All, I tried to get client authentication through certificate working. No success so far. I had a hard time with a certificate chain and it has finally worked. So server authentication is ok now. I turned to client auth and here are some more troubles. I've got couple personal certs installed in IE 5.5 but IE even doesn't prompt to choose them. IE 6 does prompt to choose from empty list. Do that certs have to be signed in specific way or have to contain specific extensions? So, some questions: 1. What kind of certificates are considered client's one? The rfc2246 - The TLS Protocol.txt looks pretty technical and protocol related (I think it should be). Does somebody find something about it (I tied to STW with no success). So links or success stories would be highly appreciated. 2. I'm going to use certificate authentication with Apache, so does certificate go through mod_jk or mod_webapp? 3. Am I right that clientAuth in org.apache.catalina.net.SSLServerSocketFactory requires auth from every connection made through associated connector. And web.xml can require auth from certain requests even with clientAuth set to false in Factory? Thanks in advance. Anton. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat + Apache lifecycle question
To achieve what you're trying to do, use the Singleton Pattern. I have used it successfully. In the init method, have a class with a private constructor and a public static synchronized method that creates an instance of the class and creates and stores the objects in the context. But remember that before creating the objects, first check to make sure that they do not exist in the context. If they do, just return from the method. I have not encountered situations where init is called more than once. Tomcat 4.x complies to both the Servlet 2.3 and JSP 1.2 specifications. Those specifications stipulate that init should be called only once. Since Tomcat is Sun's (Microsystems) reference implementation for the Servlet and JSP specs, it duly conforms. Hope this is helpful. Charles -Original Message- From: Julien OIX [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 9:13 AM To: Tomcat Users List Subject: Re: Tomcat + Apache lifecycle question Daniel Drasin a écrit : I've set up Tomcat 4.x to work with Apache 1.3.x using the Warp connector stuff. I followed the standard instructions for how to modify the httpd.conf file of apache, etc. (All pretty straightforward...) My problem is that i need to have a certain activity occur when Tomcat starts up. This activity is to initialize a certain set of java objects and make them available to servlets. Because of classpath issues (i.e. classloaders) i was unable to use the lifecycle hooks of the contexts and had to settle for the (hackish) method of making a dummy servlet that only exists to have its load-on-startup value set (excerpt from the web.xml is below). This servlet has an init() definition that initializes the objects in question (example definition below.) The issue is that i need to have this activity occur once and only once - so i add a static flag into the init method to see if it's already run. However, this doesn't work. When i start tomcat, the initialization code runs and when i start apache, it runs again - despite the flag. (Output included below). My guess is that the flag doesn't help because these init() calls are occuring in two different object spaces (class loaders) so the flag really is false both times. So my question is - what's going on here. Fundamentally, how can i achieve my goal outlined in paragraph 1. At a deeper level, my question is - why do i get two calls to startup? Is tomcat starting a new context for apache? If so, why doesn't it use the one that it's already started? Is there a way to surpress the starting of one of the contexts? Any help is appreciated Dan -CODE AND OUTPUT--- ... servlet servlet-name ServletTest /servlet-name servlet-class ServletTest /servlet-class load-on-startup0/load-on-startup ... ... public class ServletTest extends HttpServlet { static int i = 0; static boolean flag = false; static { i++; if(!flag) { flag = true; System.out.println(***GOT + i + **); } } ... ... Starting service Tomcat-Standalon Apache Tomcat/4.0.1 ***GOT 1 ** delete this service ( everything in the right Service section ) from server.xml hope this helps Starting service Tomcat-Apache Apache Tomcat/4.0.1 ***GOT 1 ** ... -- Daniel Drasin Applied Reasoning [EMAIL PROTECTED] 8612 Long Meadow Ct. (410)-461-6168 Columbia, MD, 21045 http://www.appliedreasoning.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: web hosting
I am new to the apache/tomcat environment. I have been developing web-apps using resin as http and servlet containerso from what I have seen we have to add an entry to the httpd.conf file denoting the web-app. so you can't auto-deploy. Is this correct? The apache/tomcat environment seems to be more easily hosed up (to use a technical term) by the users apps. When using just tomcat the users can remove their webapps and redeploy them without shutting down tomcat. I can't get the manager app to deploy and remove webapps from tomcat when using apache as the http and tomcat as the servlet container. The manager will start and stop web apps but not install and remove them. It seems to work... but the web app does not work. I posted a message about this but didn't get a response. Thanks Mark Micael Padraig Og mac Grene wrote: Why does the use of Apache preclude installing and so on web apps? At 12:54 PM 2/6/02 -0700, you wrote: I have a friend that is hosting a apache/tomcat machine for a couple of people. We are running apache and tomcat 4.0.1 Does anyone know a resource for information on how to set this environment up so that each user can manage his/her webapps within tomcat. We cannot restart tomcat (no password) and it is a pain to email our friend and have him do it all the time. Plus restarting tomcat shuts everyone else down :-( We are using manager but we can't redeploy because of apache as the web server. We can't add new web apps for this reason also. Thanks Mark -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Logging virtual host
Hello, I have a question regerding logging in Tomcat. When I define a Virtual Host in Apache i would put VirtualHost * DocumentRoot /home/gunnar/public-www/opbit/ ServerName somename CustomLog /home/gunnar/public-www/logs/opbit.log full /VirtualHost Or even maybe ErrorLog logs/public-www-error.log TransferLog logs/public-www-access.log instead of customlog. Anyway, I want to be able to perform the same when I define my VirtualHost in a apps-somename.xml file. Is there some directive that I can put before a line in my xml file to get it in the auto/mod_jk.conf file that is automaticly generated with tomcat.sh start -jkconf? Something like # CustomLog /home/gunnar/public-www/logs/opbit.log ful so that jkconf creates the file with CustomLog /home/gunnar/public-www/logs/opbit.log ful between the VirtualHost * directive for that virtual domain? So if this is one of the apps-.xml file for example ?xml version=1.0 encoding=ISO-8859-1? Server Host name=www.example.com Context path= docBase=/var/www-data/example.com/ LogSetter name=example.com.log path=/usr/local/apache_1.3.23/logs/ / /Context /Host /Server The output of this is : VirtualHost * ServerName www.opbit.com DocumentRoot /home/gunnar/public-www/opbit Directory /var/www-data/example.com/ Options Indexes FollowSymLinks DirectoryIndex index.jsp index.html index.htm /Directory # Deny direct access to WEB-INF and META-INF # Location /WEB-INF/* AllowOverride None deny from all /Location Location /META-INF/* AllowOverride None deny from all /Location JkMount /servlet/* ajp13 JkMount /*.jsp ajp13 /VirtualHost I want something like CustomLog /home/gunnar/public-www/logs/opbit.log full inthere when the file is generated. Thanks for any responses! Elm -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Strange mod_webapp problem with Tomcat 4.01 Apache 1.3.23...
That was a known bug eith TC 4.01. It was fixed a few weeks ago, you should try a more recent version of Tomcat, such as 4.02 beta2 or even a recent daily snapshot. I tried 4.02 beta2, and the same problem still exists in that release (Under windoze)images are not handled correctly across the warp connection (and lock up the connection). I guess it was fixed shortly after 4.02beta2 was packaged up. I might just wait for beta3, not sure I want to do a whole build of Tomcat from a daily snapshot. Andrzej Jan Taramina Chaeron Corporation: Enterprise System Solutions http://www.chaeron.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat multiple machines
I've been using Tomcat on SCO for a while. I need to have a certain web-app be hosted on a different box, (Linux) What is the right way to do this? There are a ton of posting for load balancing, but this just a single web-app. I don't know what to look for. Your help is greatly appreciated.. I have Apache - Tomcat 3.3 right now. Thanks T.W. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: How do I define Tomcats CLASSPATH - tools.jar not found
Antony Stace wrote: I started Tomcat and got an error which after some investigation said I needed tools.jar in my CLASSPATH. Have you set JAVA_HOME correctly? What script are you using to start Tomcat? What does the script print when it starts up? What, exactly, is the error message you're getting? -- Christopher St. John [EMAIL PROTECTED] DistribuTopia http://www.distributopia.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Re[2]: Init method of servlet called twice?
-Original Message- From: Serge A. Redchuk [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 3:30 AM To: [EMAIL PROTECTED] Subject: Re[2]: Init method of servlet called twice? Hello Anton, Can anybody tell me why the init method can be called twice in a servlet. I am loading the servlet on startup and init is first called there. The first request to the servlet then calls the same init method again? Please help. I cannot init twice. AB This topic was discussed about a week ago, and Craig gave perfect and clear AB answer (as always). Try mail archives. AB As far as I remember init() can be called multiple times if: AB 1. TC4 and servlet implements SingleThreadModel AB 2. servlet is called by invoker (something like http://myhost/servlets/myServlet) AB 3. init() throws exception (that I don't remember exactly) Oh, yes. Craig answered to me as denoted above, but I still didn't solved this problem. Partially I did not returned to my problem yet, but I think that no any of 3 described reasons match my case. 2: I've checked many times before I've asked that question. My init servlet is called _once_. There's only one reference to the init servlet class in _one_ of my web.xml files. But is your context defined multiple times? in different virtual hosts maybe? 3: init doesn't throws exceptions : log files is clear. Also there's a thread that starts from init(), and the thread remains alive (I think in case of exception this child thread must die). 1: My init servlet is extended from the Struts init servlet, so it doesn't implements SingleThreadModel, as Craig said. Moreover, I said, I declared a static variable in my init servlet class, and affected this variable, and traced this variable state into log file. And I certainly know: I have several instances of this variable !!! Each thread of init servlet has own static variable !!! This means that it is loaded in two separate class loaders which would point to the same context being defined multiple times in server.xml. note that contexts are auto-loaded, so if you defined contextA as path= docbase=/contextA, it will be loaded twice, once for and the default loading of /contextA. Charlie Again: OS: RHL JDK: sun, 1.3 I'll show my configs and code if anybody will be so greatful to deep into. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: setMaxAge getMaxAge cookie problem
Hammonds Nicholas wrote: One thing I have done is to use the setMaxAge method on a cookie object. But when I interrogate the cookie using getMaxAge in the other servlet the value is always -1 reagardless of what I originaly set it to. It's not Tomcat-specific, that's how it's supposed to work. Expires is a client side thing. It's in the original Set-cookie that the server sends to the client, but the Cookie header that the client sends back to the server only has the cookie's name and value. It's up to the client to simply stop sending the Cookie when it expires. Try: http://www.netscape.com/newsref/std/cookie_spec.html or RFC 2109 for details. Most of those get/set values on javax.servlet.http.Cookie can't work on cookies you get back from the client. -- Christopher St. John [EMAIL PROTECTED] DistribuTopia http://www.distributopia.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Tomcat 3.3a IIS JDBC
... and no more CLASSPATH definition is needed!? I removed the entry for the JDBC driver and it still works. Is this normal after copying the stuff to TOMCAT_HOME/lib/common? Maritn -Ursprüngliche Nachricht- Von: Martin Jussel Gesendet: Donnerstag, 07. Februar 2002 19:37 An: Tomcat Users List Betreff: AW: Tomcat 3.3a IIS JDBC Thanx. That's working!!! Martin -Ursprüngliche Nachricht- Von: Larry Isaacs [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 07. Februar 2002 19:17 An: 'Tomcat Users List' Betreff: RE: Tomcat 3.3a IIS JDBC See method #1 under: http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.htm l#configur ing_classes You must create the classes directory yourself, under TOMCAT_HOME/lib/common for example. It is not present by default. During startup Tomcat 3.3 looks for such classes directories and includes it in the corresponding classloader if found. Cheers, Larry -Original Message- From: Martin Jussel [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 1:11 PM To: Tomcat Users List Subject: AW: Tomcat 3.3a IIS JDBC Sorry but there is no .jar file and the driver works while copying the stuff in WEB-INF/classes of each web. So it looks like that jar files are not needed to get tomcat running. Am I right? Otherwise: is it possible to create a jar file myself if it's a Tomcat must-have? Martin -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 07. Februar 2002 18:49 An: [EMAIL PROTECTED] Betreff: RE: Tomcat 3.3a IIS JDBC Your JDBC driver should have come in a .jar file (or multiples .jar files) and those should be put in the TOMCAT_HOME/lib/common directory (there are README files in the lib/ tree explaining what all the directories in there are for). Colin -- From: Martin Jussel[SMTP:[EMAIL PROTECTED]] Reply To: Tomcat Users List Sent: Thursday, February 07, 2002 11:48 AM To: Tomcat Users List Subject: AW: Tomcat 3.3a IIS JDBC Hi, - There are only *.class files in the dir and no jar's ... - The driver should be usable from different webapps Martin -Ursprüngliche Nachricht- Von: Martin van den Bemt [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 07. Februar 2002 18:37 An: Tomcat Users List Betreff: RE: Tomcat 3.3a IIS JDBC put the jar file in the WEB-INF/lib directory of your webapp.. Mvgr, Martin -Original Message- From: Martin Jussel [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 18:42 To: [EMAIL PROTECTED] Subject: Tomcat 3.3a IIS JDBC Hi, I'm a newbie: I installed Tomcat and the IIS redirector successfully and found the solution to host multiple webs with this configuration. But now I have to install a JDBC driver (SQLBase) and to get it run, I found only the solution to copy the complete JDBC driver path (com.centurasoft.java.sqlbase) to the WEB-INF\classes of each web and define the path in the web.xml. Is there no *global* place for installing driver classes like this? Regards, Martin Jussel -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: java.lang.StackOverflowError
Are you using jdk 1.3? If so, this is a known issue (see tomcat documentation), and you should start using j2sdk1.4. It's beta, but I haven't had any issues w/it, and it solved this problem for me. You can keep 1.3 on your machine. Just install 1.4 and update your JAVA_HOME environment variable to point to 1.4. -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 7:18 AM To: 'Tomcat Users List' Subject: RE: java.lang.StackOverflowError StackOverflowError Java Doc states: Thrown when a stack overflow occurs because an application recurses too deeply So I would suggest that you look at your application at the point of when the error is thrown. If you don't see anything, post the stack trace with the exception and someone here should be able to point out your problem. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 11:56 PM To: Tomcat Users List Subject: java.lang.StackOverflowError Hi, I have tomacat4.0.1 and apache 1.3.0 running on RH7.1.Iam using HTML,JSP and Servlets for application developement.when i start the tomcat and apache it is working fine,but after some time it hangs and does not respond.It is a tomcat issue as i checked out apache is rendering pages which does not require tomcat. when i checked the catalina.out what i found this line java.lang.StackOverflowError.is there any way to get rid of this problem.Is there any configuration parameters to be set? Any help is greatly appreciated. Thanks Ahmed - -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat IIS optional packages
Hi, I want to use optional packages like JavaMail. Installing and adding the path to the CLASSPATH seems not to work. Running pages which import classes (e.g. %@ page import='javax.mail.*' %) return a Package *** not found in import. How to include these packages correctly? Martin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
JAASRealms classes
Hello, I downloaded this two files: binary: jakarta-tomcat-4.0-20020208.zip src: jakarta-tomcat-4.0-src-20020208.zip But I found the JAASRealm classes only in the sources. The bineries doesn`t have them. Is that right, have I to compile the tomcat ? thank you, juraj -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat not running
I found my error, i changed CATALINA_HOME from CATALINA_HOME=/usr/local/jakarta-tomcat-4.0.1-src/catalina/build to CATALINA_HOME=/usr/local/jakarta-tomcat-4.0.1-src/catalina/dist and all seems OK. (I compiled tomcat 4.01 from sources with Sun's jdk 1.40 rpm on RH 7.2) -- Mario Haza Jefe de Internet / MultiPack 5230-8970 ext. 2787 www.multipack.com.mx -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Logging virtual host
What you are asking for isn't currently supported. You are welcome to enter an enhancement request in Bugzilla bug database. However, since Tomcat 3.3 is in maintenance mode, and 3.3.1 Beta 1 due out soon, chances are not very high to get this feature unless you supply the patch to implement it. Cheers, Larry -Original Message- From: Elm Gysel [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 9:54 AM To: [EMAIL PROTECTED] Subject: Logging virtual host Hello, I have a question regerding logging in Tomcat. When I define a Virtual Host in Apache i would put VirtualHost * DocumentRoot /home/gunnar/public-www/opbit/ ServerName somename CustomLog /home/gunnar/public-www/logs/opbit.log full /VirtualHost Or even maybe ErrorLog logs/public-www-error.log TransferLog logs/public-www-access.log instead of customlog. Anyway, I want to be able to perform the same when I define my VirtualHost in a apps-somename.xml file. Is there some directive that I can put before a line in my xml file to get it in the auto/mod_jk.conf file that is automaticly generated with tomcat.sh start -jkconf? Something like # CustomLog /home/gunnar/public-www/logs/opbit.log ful so that jkconf creates the file with CustomLog /home/gunnar/public-www/logs/opbit.log ful between the VirtualHost * directive for that virtual domain? So if this is one of the apps-.xml file for example ?xml version=1.0 encoding=ISO-8859-1? Server Host name=www.example.com Context path= docBase=/var/www-data/example.com/ LogSetter name=example.com.log path=/usr/local/apache_1.3.23/logs/ / /Context /Host /Server The output of this is : VirtualHost * ServerName www.opbit.com DocumentRoot /home/gunnar/public-www/opbit Directory /var/www-data/example.com/ Options Indexes FollowSymLinks DirectoryIndex index.jsp index.html index.htm /Directory # Deny direct access to WEB-INF and META-INF # Location /WEB-INF/* AllowOverride None deny from all /Location Location /META-INF/* AllowOverride None deny from all /Location JkMount /servlet/* ajp13 JkMount /*.jsp ajp13 /VirtualHost I want something like CustomLog /home/gunnar/public-www/logs/opbit.log full inthere when the file is generated. Thanks for any responses! Elm -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: java.lang.StackOverflowError
I would be more carefully say: it can be a known issue. But it can also be an application error or a setup error. Without any information about where in the java code the StackOverFlow happens and under what circumstances it's hard to say. (As Randy said at least a stacktrace would give some hints what kind of bug it is. -Ursprüngliche Nachricht- Von: Mike Millson [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 8. Februar 2002 17:15 An: Tomcat Users List Betreff: RE: java.lang.StackOverflowError snip/ Are you using jdk 1.3? If so, this is a known issue (see tomcat documentation), and you should start using j2sdk1.4. It's beta, but I haven't had any issues w/it, and it solved this problem for me. You can keep snip/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat IIS optional packages
Tomcat ignores the Classpath (for good reason). You need to add JAR files to either WEB-INF/lib or TOMCAT_HOME/lib as appropriate. Randy -Original Message- From: Martin Jussel [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 11:20 AM To: Tomcat Users List Subject: Tomcat IIS optional packages Hi, I want to use optional packages like JavaMail. Installing and adding the path to the CLASSPATH seems not to work. Running pages which import classes (e.g. %@ page import='javax.mail.*' %) return a Package *** not found in import. How to include these packages correctly? Martin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: MIGRATION TO JAKARTA-TOMCAT 4.01
I am going through this process and was caught by 1 difference. I don't know if this affects you or not. My app uses rmi servlets and mysql. I have an applet which uses a proxy for the database calls which invokes the servlets. The servlets use rmi to get the database objects, and then make calls on that object to perform the database functions. I had this running easily under Windows with tomcat 3.2.1. When I moved to Linux under apache and tomcat 4.0.1 I couldn't get it to work. The catalina.out log indicated a class not found on the mysql driver, which I had properly in the WEB-INF/lib dir. I tried a lot of different, but futile things until the only thing left to try was to include the driver as part of the jar file that powered the applet. This worked. It made no sense to me because the applet didn't use the database object, only the servlets did. Other than that, everything has worked the same so far. Frank [EMAIL PROTECTED] wrote: Hello! I've an webapp with jsp, servlets and beans (on an win2k OS) that is functioning on a jakarta-tomcat-3.3m4 (in webapps directory/myapp and my classes in myapp/web-inf/classes) and I want to migrate on a JAKARTA-TOMCAT 4.01., but the same architecture that I'm using on jakarta-tomcat-3.3m4 is not functioning on new server. Please tell me where I have to put my classes , my beans and my jsp-s? Thanks to all! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: setMaxAge getMaxAge cookie problem
On Fri, 8 Feb 2002, Hammonds Nicholas wrote: Date: Fri, 8 Feb 2002 12:33:07 +0100 From: Hammonds Nicholas [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: setMaxAge getMaxAge cookie problem Hello there, I don't know if this is off topic for this list but I will ask anyway. I written two java servlets which I am running on tomcat 4.0. One servlet creates cookies, the other displays details about them. One thing I have done is to use the setMaxAge method on a cookie object. But when I interrogate the cookie using getMaxAge in the other servlet the value is always -1 reagardless of what I originaly set it to. Having a value of -1 means that the cookie gets to deleted as soon as the browser window is closed. This could be a problem with my browser settings (IE 5) or something with tomcat. I am pretty sure I am setting the value correctly in the java code. The answer to this is in the cookie specification (don't recall which RFC it is at the moment). When you set up a cookie and send it, you can populate all of the properties. However, when the browser returns the cookie with a subsequent request, it *only* sends the value. Thus, there is no way toi determine what the browser thinks the maximum age is; you will have to remember what you told it in the first place. Any ideas kind regards Nic Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: JAASRealm (fwd)
Forward the anaswer to TOMCAT-USER as well since it was asked both places. Craig -- Forwarded message -- Date: Fri, 8 Feb 2002 08:36:03 -0800 (PST) From: Craig R. McClanahan [EMAIL PROTECTED] Reply-To: Tomcat Developers List [EMAIL PROTECTED] To: Tomcat Developers List [EMAIL PROTECTED] Subject: Re: JAASRealm On Fri, 8 Feb 2002, juraj Lenharcik wrote: Date: Fri, 8 Feb 2002 16:41:30 +0100 From: juraj Lenharcik [EMAIL PROTECTED] Reply-To: Tomcat Developers List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: JAASRealm Hello, can it be that the JAASRealm classes only in the sources are? I downloaded the binary and src but found the needed classes only in the src. binary: jakarta-tomcat-4.0-20020208.zip src: jakarta-tomcat-4.0-src-20020208.zip Can someone tell me if they come later to the binaries, or I have to build the sources? Aargh, that is probably a snafu in my build environment for the nighly builds. The JAASRealm stuff is conditionally compiled only if the jaas.jar property is set. This will get fixed by Monday (I'm out of town at the moment). thank you juraj Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
WG: JAASRealm (fwd)
-Ursprüngliche Nachricht- Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 8. Februar 2002 17:45 An: [EMAIL PROTECTED] Betreff: Re: JAASRealm (fwd) Forward the anaswer to TOMCAT-USER as well since it was asked both places. Craig -- Forwarded message -- Date: Fri, 8 Feb 2002 08:36:03 -0800 (PST) From: Craig R. McClanahan [EMAIL PROTECTED] Reply-To: Tomcat Developers List [EMAIL PROTECTED] To: Tomcat Developers List [EMAIL PROTECTED] Subject: Re: JAASRealm On Fri, 8 Feb 2002, juraj Lenharcik wrote: Date: Fri, 8 Feb 2002 16:41:30 +0100 From: juraj Lenharcik [EMAIL PROTECTED] Reply-To: Tomcat Developers List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: JAASRealm Hello, can it be that the JAASRealm classes only in the sources are? I downloaded the binary and src but found the needed classes only in the src. binary: jakarta-tomcat-4.0-20020208.zip src: jakarta-tomcat-4.0-src-20020208.zip Can someone tell me if they come later to the binaries, or I have to build the sources? Aargh, that is probably a snafu in my build environment for the nighly builds. The JAASRealm stuff is conditionally compiled only if the jaas.jar property is set. This will get fixed by Monday (I'm out of town at the moment). thank you juraj Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
WG: JAASRealm
Hi Craig, I am sorry I have overlooked them. I found them in the catalina.jar . I try your JAASRealm at the moment. juraj -Ursprüngliche Nachricht- Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 8. Februar 2002 17:36 An: Tomcat Developers List Betreff: Re: JAASRealm On Fri, 8 Feb 2002, juraj Lenharcik wrote: Date: Fri, 8 Feb 2002 16:41:30 +0100 From: juraj Lenharcik [EMAIL PROTECTED] Reply-To: Tomcat Developers List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: JAASRealm Hello, can it be that the JAASRealm classes only in the sources are? I downloaded the binary and src but found the needed classes only in the src. binary: jakarta-tomcat-4.0-20020208.zip src: jakarta-tomcat-4.0-src-20020208.zip Can someone tell me if they come later to the binaries, or I have to build the sources? Aargh, that is probably a snafu in my build environment for the nighly builds. The JAASRealm stuff is conditionally compiled only if the jaas.jar property is set. This will get fixed by Monday (I'm out of town at the moment). thank you juraj Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat and j2se1.4 with headless support
I have Tomcat 4.0.1 with j2se 1.4 running on Solaris 7, and some of the servlets running will generate images. Is there special setting in Tomcat to take advantage of the new environment with a headless implementation in j2se 1.4. AWT documentation says: To run our environment with a headless implementation, the follow property may be specified at the java command line: -Djava.awt.headless=true This command should be added at CATALINA_OPTS? Any idea will be appreciated. vasile -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat and j2se1.4 with headless support
I haven't tried it, but this should work. The -D option is just like the -X options that people use for setting the heap memory. Add it to CATALINA_OPTS (or TOMCAT_OPTS for those running TC3), restart and you should be running just fine. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 11:47 AM To: Tomcat Users List Subject: Tomcat and j2se1.4 with headless support I have Tomcat 4.0.1 with j2se 1.4 running on Solaris 7, and some of the servlets running will generate images. Is there special setting in Tomcat to take advantage of the new environment with a headless implementation in j2se 1.4. AWT documentation says: To run our environment with a headless implementation, the follow property may be specified at the java command line: -Djava.awt.headless=true This command should be added at CATALINA_OPTS? Any idea will be appreciated. vasile -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Tomcat IIS optional packages
Placing the jars in TOMCAT_HOME/lib does not work. But placing it in TOMCAT_HOME/lib/common works!!! Thanx for the help. Martin -Ursprüngliche Nachricht- Von: Randy Layman [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 08. Februar 2002 16:49 An: 'Tomcat Users List' Betreff: RE: Tomcat IIS optional packages Tomcat ignores the Classpath (for good reason). You need to add JAR files to either WEB-INF/lib or TOMCAT_HOME/lib as appropriate. Randy -Original Message- From: Martin Jussel [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 11:20 AM To: Tomcat Users List Subject: Tomcat IIS optional packages Hi, I want to use optional packages like JavaMail. Installing and adding the path to the CLASSPATH seems not to work. Running pages which import classes (e.g. %@ page import='javax.mail.*' %) return a Package *** not found in import. How to include these packages correctly? Martin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Another Tomcat4 IIS Install
Like many others, I am also having difficulty integrating win2ksp2, IIS5.0, and Tomcat 4.0.1. I have read through several how-to docs, read through a few of the mailing list archives but I am still having issues. I used the following link for my main install http://www.vacodi.com/howto/tomcat/iisnt/index.html isapi_redirect is green, and tomcat appears to work fine using 8080. When I try and hit ther server through IIS I get strange results, such as the page does not load or the jsp will execute but information is not shown. For exmple the date.jsp example displays date is but doesn't show the current date. The ajp13 connector in server.xml has also been uncommented. I am also unsure if IIS has been configured properly for use with tomcat. I currently have the default website set to e:\webroot . I then created a virtual directory called examples and pointed it to e:\tomcat4\webapps\examples. I am attaching my settings and isapi log entries.. I have also created the virtual Jakarta directory which points to e:\tomcat4\conf\ntis\ with execute access.. Is there a common IIS/Tomcat config? Please let me know if anything obvious appears. Thanks in advance Richard Haag Isapi Redirect log -- In HttpFilterProc test Default redirection of /examples/jsp/error/err.jsp [Fri Feb 08 00:23:49 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Feb 08 00:23:49 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/examples/jsp/error/err.jsp' [Fri Feb 08 00:23:49 2002] [jk_uri_worker_map.c (416)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - *.jsp [Fri Feb 08 00:23:49 2002] [jk_isapi_plugin.c (617)]: HttpFilterProc [/examples/jsp/error/err.jsp?name=z3submit=Submit] is a servlet url - should redirect to ajp13 [Fri Feb 08 00:23:49 2002] [jk_isapi_plugin.c (639)]: HttpFilterProc check if [/examples/jsp/error/err.jsp?name=z3submit=Submit] is points to the web-inf directory [Fri Feb 08 00:23:49 2002] [jk_isapi_plugin.c (555)]: HttpFilterProc started [Fri Feb 08 00:23:49 2002] [jk_isapi_plugin.c (600)]: In HttpFilterProc Virtual Host redirection of /10.3.1.8/jakarta/isapi_redirect.dll [Fri Feb 08 00:23:49 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Feb 08 00:23:49 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/10.3.1.8/jakarta/isapi_redirect.dll' [Fri Feb 08 00:23:49 2002] [jk_uri_worker_map.c (456)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Fri Feb 08 00:23:49 2002] [jk_isapi_plugin.c (606)]: In HttpFilterProc test Default redirection of /jakarta/isapi_redirect.dll [Fri Feb 08 00:23:49 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Feb 08 00:23:49 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/jakarta/isapi_redirect.dll' [Fri Feb 08 00:23:49 2002] [jk_uri_worker_map.c (456)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Fri Feb 08 00:23:49 2002] [jk_isapi_plugin.c (638)]: HttpFilterProc [/jakarta/isapi_redirect.dll] is not a servlet url [Fri Feb 08 00:23:49 2002] [jk_isapi_plugin.c (647)]: HttpFilterProc check if [/jakarta/isapi_redirect.dll] is points to the web-inf directory [Fri Feb 08 00:23:49 2002] [jk_isapi_plugin.c (679)]: HttpExtensionProc started [Fri Feb 08 00:23:49 2002] [jk_worker.c (123)]: Into wc_get_worker_for_name ajp12 [Fri Feb 08 00:23:49 2002] [jk_worker.c (127)]: wc_get_worker_for_name, done found a worker [Fri Feb 08 00:23:49 2002] [jk_isapi_plugin.c (701)]: HttpExtensionProc got a worker for name ajp12 [Fri Feb 08 00:23:49 2002] [jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint [Fri Feb 08 00:23:49 2002] [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service [Fri Feb 08 00:23:49 2002] [jk_connect.c (108)]: Into jk_open_socket [Fri Feb 08 00:23:49 2002] [jk_connect.c (115)]: jk_open_socket, try to connect socket = 1648 [Fri Feb 08 00:23:50 2002] [jk_connect.c (124)]: jk_open_socket, after connect ret = -1 [Fri Feb 08 00:23:50 2002] [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61 [Fri Feb 08 00:23:50 2002] [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = -1 [Fri Feb 08 00:23:50 2002] [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 [Fri Feb 08 00:23:50 2002] [jk_isapi_plugin.c (716)]: HttpExtensionProc error, service() failed [Fri Feb 08 00:23:50 2002] [jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done Is Isapi_redirect.dll supposed to be here? uriworkermap.properties * # Default worker to be used through our mappings # default.worker=ajp13 # # Sites to be redirected to Tomcat # /examples=$(default.worker) /examples/*.jsp=$(default.worker) * worker.properties *** workers.tomcat_home=e:\tomcat4 # #
RE: servlet.jar and 3.3
At 09:04 AM 02/08/2002 -0500, you wrote: I believe that org.apache.tomcat.startup.Main now requires a task to be specified. It no longer defaults to starting. Include start or -start (without quotes) as an argument to the Main class. Thanks for the idea, unfortunately I still see the same behavior. My problem wasn't that Tomcat wouldn't start. It seemed to start just fine, whether I had the -start parameter in there or not. My problem was that when it tried to load a servlet, and we have servlets that specify load-on-startup, it would be unable to see the servlet.jar. This would result in a NoClassDefFound error for javax.servlet.http.HttpServlet, that would in turn result in none of my servlets loading. Tomcat is up and running, it's just that my servlets don't get loaded. The odd thing is, from command line, my servlets work fine. Any more ideas or suggestions would be welcome. Thanks again, Mario- _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: jsp:useBean / Scope Bug in 4.01 !
Back to the basic question where in this code: % if (request.getParameter(type)!= null request.getParameter(type).equals(user)) { % jsp:useBean id=user class=com.rutker.UsrData scope=request/ % } else if(request.getParameter(type)!= null request.getParameter(type).equals(group)) { % jsp:useBean id=group class=com.rutker.GpData scope=request/ % } % is there am i declaring the same ID twice? Thanks Lou Hi, Can you explain what you mean by: Duplicate ids found in the same translation unit shall result in a fatal translation error. What is duplicate? I am declaring 2 seperate beans based on the condition. Neither of them should be visible to the rest of the page. Yet they are visible to Tomcat. The JSP follows the XML syntax rules, which look at the *static* content of your document at compile time. As it examines the incoming text, it discovers that, in fact, you *are* declaring the same ID twice -- conditional execution is a runtime thing, not a compile-time thing. Short answer -- you can't do that. Lou Craig From: Craig R. McClanahan [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: jsp:useBean / Scope Bug in 4.01 ! Date: Fri, 1 Feb 2002 14:41:57 -0800 (PST) On Fri, 1 Feb 2002, L Rutker wrote: Date: Fri, 01 Feb 2002 12:59:34 -0500 From: L Rutker [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: jsp:useBean / Scope Bug in 4.01 ! Hi, The following is a bug I found using Tomcat 4.01 on NT4 The following code: % if (request.getParameter(type)!= null request.getParameter(type).equals(user)) { % jsp:useBean id=user class=com.rutker.UsrData scope=request/ % } else if(request.getParameter(type)!= null request.getParameter(type).equals(group)) { % jsp:useBean id=group class=com.rutker.GpData scope=request/ % } % should not be visible to the jsp:getProperty name=user property=firstName / tag farther down the page because the useBean tag was declared in the if block, yet the jsp:getProperty tag can see it and works in Tomcat. I noticed the bug when I tried the above code on WL 6.1 on Linux and it didnt work. I think that WL has the proper implementation. I don't. They are violating the JSP Specification if they support this. In the JSP 1.3 Specification, Section 4.1 (page 68), you will find the following statement: Duplicate ids found in the same translation unit shall result in a fatal translation error. The fact that you are doing this inside scriptlet conditionals does not change the fact that you are using two jsp:useBean elements with the same id attribute in the same page. Is this the correct mailing list for this post? The best place to report bugs is in the bug tracking system: http://nagoya.apache.org/bugzilla/ Thanks Lou R. Craig McClanahan -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: servlet.jar and 3.3
Sorry. I'm having trouble connecting yesterday to today. Next, I think I would need to see the startup log output and the full stack trace of the error to make further guesses. Cheers, Larry -Original Message- From: Mario Felarca [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 12:29 PM To: Tomcat Users List Subject: RE: servlet.jar and 3.3 At 09:04 AM 02/08/2002 -0500, you wrote: I believe that org.apache.tomcat.startup.Main now requires a task to be specified. It no longer defaults to starting. Include start or -start (without quotes) as an argument to the Main class. Thanks for the idea, unfortunately I still see the same behavior. My problem wasn't that Tomcat wouldn't start. It seemed to start just fine, whether I had the -start parameter in there or not. My problem was that when it tried to load a servlet, and we have servlets that specify load-on-startup, it would be unable to see the servlet.jar. This would result in a NoClassDefFound error for javax.servlet.http.HttpServlet, that would in turn result in none of my servlets loading. Tomcat is up and running, it's just that my servlets don't get loaded. The odd thing is, from command line, my servlets work fine. Any more ideas or suggestions would be welcome. Thanks again, Mario- _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Please someone, I really need help with this issue.
I anyone has any experince with this please let me know. It could be just one sentence (Even just one word!). I just need to know why I can't run my users jsp's through my warp connector... Here's my Connector in server.xml !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0/ !-- Replace localhost with what your Apache ServerName is set to -- Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 appBase=webapps !-- Attempt to define a default virtual host and a listener to map the user dir's through the apache connector-- Host name=Apache debug=0 appBase=webapps unpackWARs=true Listener className=org.apache.catalina.startup.UserConfig directoryName=public_html homeBase=/home/login userClass=org.apache.catalina.startup.HomesUserDatabase/ /Host /Engine /Service I assume I would need to use a WebAppDeploy descriptor to map the users directories to Tomcat, how would I do that for generic users directories (~/public_html)? WebAppConnection warpConnection warp localhost:8008 WebAppDeploy examples warpConnection /examples/ WebAppDeploy manager warpConnection /manager/ WebAppDeploy webdav warpConnection /webdav/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: jsp:useBean / Scope Bug in 4.01 !
I agree, the id's are unique. Could you attache the generated source file? I'm unable to reproduce this with a build from the HEAD branch, so I'm curious what the difference (if any) is. On Fri, 2002-02-08 at 12:31, L Rutker wrote: Back to the basic question where in this code: % if (request.getParameter(type)!= null request.getParameter(type).equals(user)) { % jsp:useBean id=user class=com.rutker.UsrData scope=request/ % } else if(request.getParameter(type)!= null request.getParameter(type).equals(group)) { % jsp:useBean id=group class=com.rutker.GpData scope=request/ % } % is there am i declaring the same ID twice? Thanks Lou Hi, Can you explain what you mean by: Duplicate ids found in the same translation unit shall result in a fatal translation error. What is duplicate? I am declaring 2 seperate beans based on the condition. Neither of them should be visible to the rest of the page. Yet they are visible to Tomcat. The JSP follows the XML syntax rules, which look at the *static* content of your document at compile time. As it examines the incoming text, it discovers that, in fact, you *are* declaring the same ID twice -- conditional execution is a runtime thing, not a compile-time thing. Short answer -- you can't do that. Lou Craig From: Craig R. McClanahan [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: jsp:useBean / Scope Bug in 4.01 ! Date: Fri, 1 Feb 2002 14:41:57 -0800 (PST) On Fri, 1 Feb 2002, L Rutker wrote: Date: Fri, 01 Feb 2002 12:59:34 -0500 From: L Rutker [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: jsp:useBean / Scope Bug in 4.01 ! Hi, The following is a bug I found using Tomcat 4.01 on NT4 The following code: % if (request.getParameter(type)!= null request.getParameter(type).equals(user)) { % jsp:useBean id=user class=com.rutker.UsrData scope=request/ % } else if(request.getParameter(type)!= null request.getParameter(type).equals(group)) { % jsp:useBean id=group class=com.rutker.GpData scope=request/ % } % should not be visible to the jsp:getProperty name=user property=firstName / tag farther down the page because the useBean tag was declared in the if block, yet the jsp:getProperty tag can see it and works in Tomcat. I noticed the bug when I tried the above code on WL 6.1 on Linux and it didnt work. I think that WL has the proper implementation. I don't. They are violating the JSP Specification if they support this. In the JSP 1.3 Specification, Section 4.1 (page 68), you will find the following statement: Duplicate ids found in the same translation unit shall result in a fatal translation error. The fact that you are doing this inside scriptlet conditionals does not change the fact that you are using two jsp:useBean elements with the same id attribute in the same page. Is this the correct mailing list for this post? The best place to report bugs is in the bug tracking system: http://nagoya.apache.org/bugzilla/ Thanks Lou R. Craig McClanahan -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Moving to Tomcat from SilverStream - replacement for Fulcrum?
We are in the process of transitioning from SilverStream to Tomcat. SilverStream bundles with Fulcrum Search engine. Does anyone know of any good replacement options to intelligently (and quickly) search text fields? Preferably an open source solution? TIA, Sean -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: java.lang.StackOverflowError
Thanks for the reply mike and randy. Iam using IBMJava2-122 .Is this the problem.Because tomcat4.0.1 just hangs .I know its for sure it is not an application issue as this happens with examples web application too.so if i install jdk1.4 if it solve this problem i will do that.tomcat run only for brief period and hangs(does not respond). Also iam using modweb_app and warp connector for communication between apache and tomcat.is this setup stable? I just want tomcat4.0.1 to run ,becuase we are using it in production system for every 20-30 minutes manually we are shutting down and restarting the tomcat. some times even shutdown.sh is not working properly,then explicitly i have to kill the process(kill pid). - - Original Message - From: Mike Millson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, February 08, 2002 8:15 AM Subject: RE: java.lang.StackOverflowError Are you using jdk 1.3? If so, this is a known issue (see tomcat documentation), and you should start using j2sdk1.4. It's beta, but I haven't had any issues w/it, and it solved this problem for me. You can keep 1.3 on your machine. Just install 1.4 and update your JAVA_HOME environment variable to point to 1.4. -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 7:18 AM To: 'Tomcat Users List' Subject: RE: java.lang.StackOverflowError StackOverflowError Java Doc states: Thrown when a stack overflow occurs because an application recurses too deeply So I would suggest that you look at your application at the point of when the error is thrown. If you don't see anything, post the stack trace with the exception and someone here should be able to point out your problem. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 11:56 PM To: Tomcat Users List Subject: java.lang.StackOverflowError Hi, I have tomacat4.0.1 and apache 1.3.0 running on RH7.1.Iam using HTML,JSP and Servlets for application developement.when i start the tomcat and apache it is working fine,but after some time it hangs and does not respond.It is a tomcat issue as i checked out apache is rendering pages which does not require tomcat. when i checked the catalina.out what i found this line java.lang.StackOverflowError.is there any way to get rid of this problem.Is there any configuration parameters to be set? Any help is greatly appreciated. Thanks Ahmed - -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Manage the garbage collector in tomcat
Hello , I want to modify the action of garbage collector. Where can I change this values (-Xms, -Xmx,-Xminf, etc.)? or I have to modify the scripts where you call %JAVA_HOME%? Thanks a lot for the time . -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Manage the garbage collector in tomcat
In Tomcat 3 you set TOMCAT_OPTS, Tomcat 4 CATALINA_OPTS. On Windows this would be something like: SET TOMCAT_OPTS=-Xms128M -Xmx2048M and these will get passed to the JVM at Tomcat startup. Randy -Original Message- From: Emilio Miranda [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 12:54 PM To: Tomcat Users List Subject: Manage the garbage collector in tomcat Hello , I want to modify the action of garbage collector. Where can I change this values (-Xms, -Xmx,-Xminf, etc.)? or I have to modify the scripts where you call %JAVA_HOME%? Thanks a lot for the time . -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: AW: java.lang.StackOverflowError
try ulimit -s 2048 before starting tomcat. Solved the problem for me a way back. hth, jim I would be more carefully say: it can be a known issue. But it can also be an application error or a setup error. Without any information about where in the java code the StackOverFlow happens and under what circumstances it's hard to say. (As Randy said at least a stacktrace would give some hints what kind of bug it is. -Ursprüngliche Nachricht- Von: Mike Millson [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 8. Februar 2002 17:15 An: Tomcat Users List Betreff: RE: java.lang.StackOverflowError snip/ Are you using jdk 1.3? If so, this is a known issue (see tomcat documentation), and you should start using j2sdk1.4. It's beta, but I haven't had any issues w/it, and it solved this problem for me. You can keep snip/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Jim McLaughlin Software Engineer Stonewater Software email: [EMAIL PROTECTED] Phone: 847.864.1060 x107 Fax : 847.864.1238 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Manage the garbage collector in tomcat
ok I have tomcat 4.0 if I understand you mean that I have to set environment variable with TOMCAT_OPTS ? or CATALINA_OPTS Really apreciate if you could help in that. -Mensaje original- De: Randy Layman [mailto:[EMAIL PROTECTED]] Enviado el: viernes, 08 de febrero de 2002 12:11 Para: 'Tomcat Users List' Asunto: RE: Manage the garbage collector in tomcat In Tomcat 3 you set TOMCAT_OPTS, Tomcat 4 CATALINA_OPTS. On Windows this would be something like: SET TOMCAT_OPTS=-Xms128M -Xmx2048M and these will get passed to the JVM at Tomcat startup. Randy -Original Message- From: Emilio Miranda [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 12:54 PM To: Tomcat Users List Subject: Manage the garbage collector in tomcat Hello , I want to modify the action of garbage collector. Where can I change this values (-Xms, -Xmx,-Xminf, etc.)? or I have to modify the scripts where you call %JAVA_HOME%? Thanks a lot for the time . -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Manage the garbage collector in tomcat
CATALINA_OPTS -Original Message- From: Emilio Miranda [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 1:07 PM To: Tomcat Users List Subject: RE: Manage the garbage collector in tomcat ok I have tomcat 4.0 if I understand you mean that I have to set environment variable with TOMCAT_OPTS ? or CATALINA_OPTS Really apreciate if you could help in that. -Mensaje original- De: Randy Layman [mailto:[EMAIL PROTECTED]] Enviado el: viernes, 08 de febrero de 2002 12:11 Para: 'Tomcat Users List' Asunto: RE: Manage the garbage collector in tomcat In Tomcat 3 you set TOMCAT_OPTS, Tomcat 4 CATALINA_OPTS. On Windows this would be something like: SET TOMCAT_OPTS=-Xms128M -Xmx2048M and these will get passed to the JVM at Tomcat startup. Randy -Original Message- From: Emilio Miranda [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 12:54 PM To: Tomcat Users List Subject: Manage the garbage collector in tomcat Hello , I want to modify the action of garbage collector. Where can I change this values (-Xms, -Xmx,-Xminf, etc.)? or I have to modify the scripts where you call %JAVA_HOME%? Thanks a lot for the time . -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
manager app: deploy new Host ?
I use the tomcat manager app to be able to modify existing sites without having to restart the Tomcat server. It works fine, but I'm hosting multiple sites on the same Tomcat server, and each site has its own virtual host. Each virtual host has a corresponding Host in server.xml, so when I want to deploy a whole new site, I have to add a new Host and restart the server. Is there a way to tell tomcat to reread the server.xml, without restarting the server? Thanks -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Image handling mod_webapp problem
That was a known bug eith TC 4.01. It was fixed a few weeks ago, you should try a more recent version of Tomcat, such as 4.02 beta2 or even a recent daily snapshot. Nope. Still doesn't work. I'm running on Win2K Server(SP2). I grabbed the latest dev snapshot of Tomcat 4.0.2 (Feb 8th). Grabbed the latest sources for mod_webapp from the CVS tree and rebuilt libapr, mod_webapp and the warp.jar file. Still running the latest release build 1.3.23 of Apache. Still does the same thingTomcat runs fine, Apache runs fine. But if I try to access an html file through the warp connection (mod_webapp) I block on one of the image files referenced in the tomcat examples html. This bug has NOT been fixed yet, at least not that I can determine. Any ideas? Thanks! Andrzej Jan Taramina Chaeron Corporation: Enterprise System Solutions http://www.chaeron.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
help with diretories in servlets
Hi ! I am trying to create a samll web application which will query the database depending upon the input parameters provided, generates XML file from the Result Set, applies XSLT and generates HTML, which in turn I want to display in a frame. I want to organize those files in following way relative to my web application path. Reports ( my root path ) | | - forms ( which will contain forms to accept input parameters ) | - xml ( which will store converted XML file from the Result Set ) | - xslt ( which will contain pre generated XSLT files ) | - html ( which will store transformed HTML file ) I am initializingfollowing variables _xsltFileName = request.getContextPath() + \\xslt\\newCommodities.xslt ; _xmlFileName = request.getContextPath() + \\xml\\newCommodities.xml ; _htmlFileName = request.getContextPath() + \\html\\newCommodities.html ; and using following code to transform and display HTML. transformXML( _xmlFileName, _xsltFileName, _htmlFileName ) ; response.sendRedirect( _htmlFileName ) ; What is wrong with this, as I am not able to create HTML file in /html/ directory, and obviously not able to display the file as it doesn't exist there. Thankyou very much in advance for the help. -Hemant -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: java.lang.StackOverflowError
It supposedly isn't an issue w/ the IBM jdk, so installing jdk1.4 might not solve your particular problem. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 12:50 PM To: Tomcat Users List; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: java.lang.StackOverflowError Thanks for the reply mike and randy. Iam using IBMJava2-122 .Is this the problem.Because tomcat4.0.1 just hangs .I know its for sure it is not an application issue as this happens with examples web application too.so if i install jdk1.4 if it solve this problem i will do that.tomcat run only for brief period and hangs(does not respond). Also iam using modweb_app and warp connector for communication between apache and tomcat.is this setup stable? I just want tomcat4.0.1 to run ,becuase we are using it in production system for every 20-30 minutes manually we are shutting down and restarting the tomcat. some times even shutdown.sh is not working properly,then explicitly i have to kill the process(kill pid). - - Original Message - From: Mike Millson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, February 08, 2002 8:15 AM Subject: RE: java.lang.StackOverflowError Are you using jdk 1.3? If so, this is a known issue (see tomcat documentation), and you should start using j2sdk1.4. It's beta, but I haven't had any issues w/it, and it solved this problem for me. You can keep 1.3 on your machine. Just install 1.4 and update your JAVA_HOME environment variable to point to 1.4. -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 7:18 AM To: 'Tomcat Users List' Subject: RE: java.lang.StackOverflowError StackOverflowError Java Doc states: Thrown when a stack overflow occurs because an application recurses too deeply So I would suggest that you look at your application at the point of when the error is thrown. If you don't see anything, post the stack trace with the exception and someone here should be able to point out your problem. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 11:56 PM To: Tomcat Users List Subject: java.lang.StackOverflowError Hi, I have tomacat4.0.1 and apache 1.3.0 running on RH7.1.Iam using HTML,JSP and Servlets for application developement.when i start the tomcat and apache it is working fine,but after some time it hangs and does not respond.It is a tomcat issue as i checked out apache is rendering pages which does not require tomcat. when i checked the catalina.out what i found this line java.lang.StackOverflowError.is there any way to get rid of this problem.Is there any configuration parameters to be set? Any help is greatly appreciated. Thanks Ahmed - -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: servlet.jar and 3.3
At 12:36 PM 02/08/2002 -0500, you wrote: Sorry. I'm having trouble connecting yesterday to today. Not a problem. I know the feeling. :) Next, I think I would need to see the startup log output and the full stack trace of the error to make further guesses. Here is my stderr.log. There is absolutely nothing in the stdout.log. I have changed a few areas denoted with and my comment in between. Please take a look and lend me your thoughts. Thanks in advance, Mario- 2002-02-08 13:30:47 - ServerXmlReader: Config=Install Dir\Tomcat\conf\server.xml 2002-02-08 13:30:47 - PathSetter: home=Install Dir\tomcat 2002-02-08 13:30:47 - ContextXmlReader: Context config=$TOMCAT_HOME\conf\apps-127.0.0.1.xml 2002-02-08 13:30:47 - ContextXmlReader: Context config=$TOMCAT_HOME\conf\apps-admin.xml 2002-02-08 13:30:47 - ContextXmlReader: Context config=$TOMCAT_HOME\conf\apps-app1.xml 2002-02-08 13:30:47 - ContextXmlReader: Context config=$TOMCAT_HOME\conf\apps-examples.xml 2002-02-08 13:30:47 - ContextXmlReader: Context config=$TOMCAT_HOME\conf\apps-app2.xml 2002-02-08 13:30:47 - AutoWebApp: Loaded from config: DEFAULT:/admin 2002-02-08 13:30:47 - AutoWebApp: Loaded from config: DEFAULT:/examples 2002-02-08 13:30:47 - AutoWebApp: Auto-Adding DEFAULT:/ 2002-02-08 13:30:47 - ContextManager: Tomcat configured and in stable state 2002-02-08 13:30:47 - ContextManager: Adding DEFAULT:/admin 2002-02-08 13:30:48 - ContextManager: Adding DEFAULT:app1 context 2002-02-08 13:30:48 - ContextManager: Adding DEFAULT:/examples 2002-02-08 13:30:48 - ContextManager: Adding DEFAULT:app2 context 2002-02-08 13:30:48 - ContextManager: Adding DEFAULT:/ROOT 2002-02-08 13:30:48 - LoadOnStartupInterceptor: cannot load servlet name: app1 servlet name - java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.net.FactoryURLClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.net.FactoryURLClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.net.FactoryURLClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.net.FactoryURLClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.apache.tomcat.util.depend.DependClassLoader.loadClassInternal1(Unknown Source) at org.apache.tomcat.util.depend.DependClassLoader12$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at org.apache.tomcat.util.depend.DependClassLoader12.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.apache.tomcat.facade.ServletHandler.getServlet(Unknown Source) at org.apache.tomcat.facade.ServletHandler.preInit(Unknown Source) at org.apache.tomcat.facade.ServletHandler.init(Unknown Source) at org.apache.tomcat.facade.LoadOnStartupInterceptor.contextInit(Unknown Source)
Re: java.lang.StackOverflowError
I am usign HTML and servlets.both of them handled by tomcat.HTML files do have some images. Is tomcat4.0.1 have problems with image loading?. the application is not so large it is only few HTML's and Servlets.still the tomcat hangs after every 30 minutes. All the HTML s and images are in /usr/local/jakarat*/webapps/campaign/jsp/ All the servlets are /usr/local/jakarat*/webapps/campaign/WEB-INF/classes . Is this setup that is making tomcat to hang? - - Original Message - From: Mike Millson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, February 08, 2002 11:06 AM Subject: RE: java.lang.StackOverflowError It supposedly isn't an issue w/ the IBM jdk, so installing jdk1.4 might not solve your particular problem. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 12:50 PM To: Tomcat Users List; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: java.lang.StackOverflowError Thanks for the reply mike and randy. Iam using IBMJava2-122 .Is this the problem.Because tomcat4.0.1 just hangs .I know its for sure it is not an application issue as this happens with examples web application too.so if i install jdk1.4 if it solve this problem i will do that.tomcat run only for brief period and hangs(does not respond). Also iam using modweb_app and warp connector for communication between apache and tomcat.is this setup stable? I just want tomcat4.0.1 to run ,becuase we are using it in production system for every 20-30 minutes manually we are shutting down and restarting the tomcat. some times even shutdown.sh is not working properly,then explicitly i have to kill the process(kill pid). - - Original Message - From: Mike Millson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, February 08, 2002 8:15 AM Subject: RE: java.lang.StackOverflowError Are you using jdk 1.3? If so, this is a known issue (see tomcat documentation), and you should start using j2sdk1.4. It's beta, but I haven't had any issues w/it, and it solved this problem for me. You can keep 1.3 on your machine. Just install 1.4 and update your JAVA_HOME environment variable to point to 1.4. -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 7:18 AM To: 'Tomcat Users List' Subject: RE: java.lang.StackOverflowError StackOverflowError Java Doc states: Thrown when a stack overflow occurs because an application recurses too deeply So I would suggest that you look at your application at the point of when the error is thrown. If you don't see anything, post the stack trace with the exception and someone here should be able to point out your problem. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 11:56 PM To: Tomcat Users List Subject: java.lang.StackOverflowError Hi, I have tomacat4.0.1 and apache 1.3.0 running on RH7.1.Iam using HTML,JSP and Servlets for application developement.when i start the tomcat and apache it is working fine,but after some time it hangs and does not respond.It is a tomcat issue as i checked out apache is rendering pages which does not require tomcat. when i checked the catalina.out what i found this line java.lang.StackOverflowError.is there any way to get rid of this problem.Is there any configuration parameters to be set? Any help is greatly appreciated. Thanks Ahmed - -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat and j2se1.4 with headless support
Thanks Randy, I modified catalina.sh file inserting if [ -z $CATALINA_OPTS ] ; then CATALINA_OPTS=-Djava.awt.headless=true headless support fi .. restarted the server and I get the following exception: java.awt.HeadlessException at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:121) at java.awt.Window.(Window.java:251) at java.awt.Frame.(Frame.java:398) at java.awt.Frame.(Frame.java:363) at HelloGraphics.doGet(HelloGraphics.java:19) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:446) at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180) Any idea of what I'm doing whrong here! many thanks in advance. vasile Randy Layman randy.layman@asweTo: 'Tomcat Users List' think.com[EMAIL PROTECTED] cc: 02/08/02 11:07 AM Subject: RE: Tomcat and j2se1.4 with headless Please respond to support Tomcat Users List I haven't tried it, but this should work. The -D option is just like the -X options that people use for setting the heap memory. Add it to CATALINA_OPTS (or TOMCAT_OPTS for those running TC3), restart and you should be running just fine. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 11:47 AM To: Tomcat Users List Subject: Tomcat and j2se1.4 with headless support I have Tomcat 4.0.1 with j2se 1.4 running on Solaris 7, and some of the servlets running will generate images. Is there special setting in Tomcat to take advantage of the new environment with a headless implementation in j2se 1.4. AWT documentation says: To run our environment with a headless implementation, the follow property may be specified at the java command line: -Djava.awt.headless=true This command should be added at CATALINA_OPTS? Any idea will be appreciated. vasile -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat and j2se1.4 with headless support
JavaDoc for 1.4 indicates: Thrown when code that is dependent on a keyboard, display, or mouse is called in an environment that does not support a keyboard, display, or mouse I think this is a Sun problem, not Tomcat. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 3:00 PM To: Tomcat Users List Subject: RE: Tomcat and j2se1.4 with headless support Thanks Randy, I modified catalina.sh file inserting if [ -z $CATALINA_OPTS ] ; then CATALINA_OPTS=-Djava.awt.headless=true headless support fi .. restarted the server and I get the following exception: java.awt.HeadlessException at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment .java:121) at java.awt.Window.(Window.java:251) at java.awt.Frame.(Frame.java:398) at java.awt.Frame.(Frame.java:363) at HelloGraphics.doGet(HelloGraphics.java:19) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.servlets.InvokerServlet.serveRequest(Invok erServlet.java:446) at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServl et.java:180) Any idea of what I'm doing whrong here! many thanks in advance. vasile Randy Layman randy.layman@asweTo: 'Tomcat Users List' think.com [EMAIL PROTECTED] cc: 02/08/02 11:07 AM Subject: RE: Tomcat and j2se1.4 with headless Please respond to support Tomcat Users List I haven't tried it, but this should work. The -D option is just like the -X options that people use for setting the heap memory. Add it to CATALINA_OPTS (or TOMCAT_OPTS for those running TC3), restart and you should be running just fine. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 11:47 AM To: Tomcat Users List Subject: Tomcat and j2se1.4 with headless support I have Tomcat 4.0.1 with j2se 1.4 running on Solaris 7, and some of the servlets running will generate images. Is there special setting in Tomcat to take advantage of the new environment with a headless implementation in j2se 1.4. AWT documentation says: To run our environment with a headless implementation, the follow property may be specified at the java command line: -Djava.awt.headless=true This command should be added at CATALINA_OPTS? Any idea will be appreciated. vasile -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
SSL and multipart/form-data POST ?
Is it possible to use SSL with multipart/form-data on a POST operation? The send form in my webmail app uses a multipart post for attachments. It works fine over regular http, but chokes on https. Is this a limitation of Tomcat-Apache-mod_ssl or am I barking up the wrong tree? form method=post enctype=multipart/form-data action=/webmail/jwmasm Thanks, August __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: servlet.jar and 3.3
Hi Mario, At this point my help may be in the form of a sequence of possibly worthless guesses. Since it is a pain for me to try to keep up with tomcat-user from home over the weekend, reply directly to me if need an answer during this time. From the log, I am curious about the Install Dir\... that appears at the top of the log. Is this something you modified or does this literally appear in the file? If it is not your doine, then this isn't normal. Note that Tomcat 3.3 currently does a poor job with respect complaining about configuration errors. It will tend to do *something*, event if it is wrong. Larry -Original Message- From: Mario Felarca [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 2:39 PM To: Tomcat Users List Subject: RE: servlet.jar and 3.3 At 12:36 PM 02/08/2002 -0500, you wrote: Sorry. I'm having trouble connecting yesterday to today. Not a problem. I know the feeling. :) Next, I think I would need to see the startup log output and the full stack trace of the error to make further guesses. Here is my stderr.log. There is absolutely nothing in the stdout.log. I have changed a few areas denoted with and my comment in between. Please take a look and lend me your thoughts. Thanks in advance, Mario- -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat and j2se1.4 with headless support
Looks like I'm out of luck here and I should go back to pre jkd 1.4 solutions using Xserver or Xvfb? Randy did you had the chance to try headless support on your system? thanks vasile Did Randy Layman randy.layman@asweTo: 'Tomcat Users List' think.com[EMAIL PROTECTED] cc: 02/08/02 02:33 PM Subject: RE: Tomcat and j2se1.4 with headless Please respond to support Tomcat Users List JavaDoc for 1.4 indicates: Thrown when code that is dependent on a keyboard, display, or mouse is called in an environment that does not support a keyboard, display, or mouse I think this is a Sun problem, not Tomcat. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 3:00 PM To: Tomcat Users List Subject: RE: Tomcat and j2se1.4 with headless support Thanks Randy, I modified catalina.sh file inserting if [ -z $CATALINA_OPTS ] ; then CATALINA_OPTS=-Djava.awt.headless=true headless support fi .. restarted the server and I get the following exception: java.awt.HeadlessException at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment .java:121) at java.awt.Window.(Window.java:251) at java.awt.Frame.(Frame.java:398) at java.awt.Frame.(Frame.java:363) at HelloGraphics.doGet(HelloGraphics.java:19) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.servlets.InvokerServlet.serveRequest(Invok erServlet.java:446) at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServl et.java:180) Any idea of what I'm doing whrong here! many thanks in advance. vasile Randy Layman randy.layman@asweTo: 'Tomcat Users List' think.com [EMAIL PROTECTED] cc: 02/08/02 11:07 AM Subject: RE: Tomcat and j2se1.4 with headless Please respond to support Tomcat Users List I haven't tried it, but this should work. The -D option is just like the -X options that people use for setting the heap memory. Add it to CATALINA_OPTS (or TOMCAT_OPTS for those running TC3), restart and you should be running just fine. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 11:47 AM To: Tomcat Users List Subject: Tomcat and j2se1.4 with headless support I have Tomcat 4.0.1 with j2se 1.4 running on Solaris 7, and some of the servlets running will generate images. Is there special setting in Tomcat to take advantage of the new environment with a headless implementation in j2se 1.4. AWT documentation says: To run our environment with a headless implementation, the follow property may be specified at the java command line: -Djava.awt.headless=true This command should be added at CATALINA_OPTS? Any idea will be appreciated. vasile -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat and j2se1.4 with headless support
[EMAIL PROTECTED] wrote: I modified catalina.sh file inserting if [ -z $CATALINA_OPTS ] ; then CATALINA_OPTS=-Djava.awt.headless=true headless support I think the idea is that you just need to do a: $ export CATALINA_OPTS=-Djava.awt.headless=true $ bin/startup.sh No need to actually modify the catalina.sh code, it will automatically pick up the environment variable. I just tried it with code like: BufferedImage bi = new BufferedImage(128,128,BufferedImage.TYPE_INT_RGB); Graphics2D g = bi.createGraphics(); g.drawLine(0, 0, 120, 120); Raster r = bi.getData(); rsp.setContentType(image/jpeg); JPEGImageEncoder ie = JPEGCodec.createJPEGEncoder(rsp.getOutputStream()); ie.encode(bi); and it worked fine. java.awt.HeadlessException at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:121) at java.awt.Window.(Window.java:251) at java.awt.Frame.(Frame.java:398) Are you trying to create a Frame? Heavyweight components are always going to throw HeadlessExceptions, ref: http://java.sun.com/j2se/1.4/docs/guide/awt/AWTChanges.html -- Christopher St. John [EMAIL PROTECTED] DistribuTopia http://www.distributopia.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.0.1 Performance tuning problems
Remy Maucherat wrote: Hello, We're having some troubles with our Tomcat4.0.1. I'm not sure if there's a problem in the configuration or if it's something else. First the configuration: Sun-Fire-280R/Solaris 8 1024MB Memory Sun jdk1.3.1_01 with 512MB for the jvm and the following configuration for the proxy-connector: Connector className=org.apache.catalina.connector.http.HttpConnector port=8081 minProcessors=100 maxProcessors=150 enableLookups=false acceptCount=20 debug=0 connectionTimeout=15000 proxyPort=80/ The server is getting about 30 requests (hits) a day. A while after starting the server we're getting the following message: 2002-02-07 21:51:29 HttpConnector[8081] No processor available, rejecting this connection It looks like the connections aren't freed after being used. But I'm not sure how I can test it. Allmost every page contains database-queries, but we're using heavy caching (in memory and oscaches for the jsp-pages). What can I do, increase the maxprocessors? But how far can I go, I did some tests, but it looks like more than 150 isn't possible. How many memory do I need per processor? If somebody could give some hints. Bug 5735 (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5735) is currently the most wanted Tomcat bug. Unfortunately, it's very hard to debug or find in which component the bug is, so if you or anyone else can help, that would be great. The bug could be either: - in the connector code, or in the networking code - in the thread pooling code (in which case the other connectors, like JK, could be affected since they reuse the code) You can try the HTTP/1.0 connector (it's commented out in the default configuration), and see if there are still problems. If the problems are gone, then it's likely the cause is the first item (although I have no idea what it could be at this point). I tried this (not in a live-situation, but with ab), but I don't see any difference. I can't reproduce the situation with ab. But it's still happening in the live-server. Could it be 150 processors isn't enough in our situation? I would love the help you on this one, but I find it very hard to reproduce it :( I'll do some more testing and keep you informed. Gerard -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Exception : No Suitable JDBC Driver Found, when running Tomcat 4.0 as NT service with JDK1.3.1_01
Hi all, I used jk_nt_service to install tomcat as a NT service. However, when I start the service, I got an Exception complaining No Suitable Driver Found. However, when I start tomcat from the command line, everything works fine. My JDBC driver is loaded successfully by Tomcat when running as a NT service, however, the next thing I know is the no suitable driver found exception. I even attempted to include the JDBC driver(IBM DB2 driver, db2java.jar) as part of the classpath in wrapper.properties, and it doesn't help, Can anybody shed any light on this? Thanks, -dongqi CONFIDENTIALITY NOTICE -- This transmission is intended for the sole use of the individual and/or entity to whom it is addressed, and may contain information and/or attachments that are privileged, confidential and exempt from disclosure under applicable law. If the reader of this transmission is not the intended recipient, you are hereby notified that any disclosure, dissemination, distribution, duplication or the taking of any action in reliance on the contents of this transmission by someone other than the intended addressee or its designated agent is strictly prohibited. If your receipt of this transmission is in error, please notify the sender by replying immediately to this transmission and destroy the transmission. Thank you. (MSWPR1/ODpt) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: servlet.jar and 3.3
At 03:53 PM 02/08/2002 -0500, Larry Isaacs wrote: Hi Mario, At this point my help may be in the form of a sequence of possibly worthless guesses. Since it is a pain for me to try to keep up with tomcat-user from home over the weekend, reply directly to me if need an answer during this time. Will do. Thanks for helping me out with this. From the log, I am curious about the Install Dir\... that appears at the top of the log. Is this something you modified or does this literally appear in the file? If it is not your doine, then this isn't normal. No, I put that in there. Any place where the text is the form of this: SOME TEXT I put in personally. I just edited the log for brevity and clarity. Note that Tomcat 3.3 currently does a poor job with respect complaining about configuration errors. It will tend to do *something*, event if it is wrong. That seems to be the case, because using the exact same setup, I can run from tomcat.bat just fine, I just can't seem to get it to run as a service. :( Thanks, Mario- _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
web.xml example for new app in Tomcat 4?
Hello: I need an example how to configure web.xml for a new application in Tomcat 4.01. When I was using Tomcat 3.x, I had something like this: ?xml version=1.0? !DOCTYPE web-app PUBLIC //Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app servlet servlet-nameMyServlet/servlet-name servet-classMyServlet/servlet-class /servlet servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/MyServlet/url-pattern /servlet-mapping /web-app Now, I moved to Tomcat 4.02 b1 and I created the following directory structure: webapps/ /MyApp/ .html pages .jsp pages MyServlet.jsp /WEB-INF/ /source/ MyServlet.java /classes/ MyServlet.class /lib/ servlet.jar web.xml I also modified the jakarta-tomcat/conf/server.xml and added the following lines: Context path=/MyApp docBase=MyApp debug=0 reloadable=true crossContext=false /Context Here is my problem: 1. The previous web.xml doesn't work, since my *.jsp page cannot find the servlet 2. I copied the web.xml from the ROOT directory in webapps to MyApp/WEB-INF directory and I can browse the directory, but the servlet still doesn't work. 3. I tried to use the following URLs: http://:8080/MyApp/MyServlet.jsp http://:8080/MyApp/MyServlet http://:8080/servlet/MyServlet none of them work, as they did on Tomcat 3.x I apologize for the long e-mail, but if someone could help me, I will sincerely appreciate it. Walter -- If we were logical, the future would be bleak | indeed. But we are more than logical. We are |(408)294-4750 human beings, and we have faith, and we have |[EMAIL PROTECTED] hope, and we can work. -Jacques Cousteau |http://www.wdacruz.com ---|-- -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat and j2se1.4 with headless support
Thanks Christopher, can you please post the entire servlet sample code you used! can't figure what I'm doing wrong here. vasile Christopher K. St. John To: Tomcat Users List cks@distribu[EMAIL PROTECTED] topia.com cc: Subject: Re: Tomcat and j2se1.4 with headless 02/08/02 support 04:56 PM Please respond to Tomcat Users List [EMAIL PROTECTED] wrote: I modified catalina.sh file inserting if [ -z $CATALINA_OPTS ] ; then CATALINA_OPTS=-Djava.awt.headless=true headless support I think the idea is that you just need to do a: $ export CATALINA_OPTS=-Djava.awt.headless=true $ bin/startup.sh No need to actually modify the catalina.sh code, it will automatically pick up the environment variable. I just tried it with code like: BufferedImage bi = new BufferedImage(128,128,BufferedImage.TYPE_INT_RGB); Graphics2D g = bi.createGraphics(); g.drawLine(0, 0, 120, 120); Raster r = bi.getData(); rsp.setContentType(image/jpeg); JPEGImageEncoder ie = JPEGCodec.createJPEGEncoder(rsp.getOutputStream ()); ie.encode(bi); and it worked fine. java.awt.HeadlessException at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:121) at java.awt.Window.(Window.java:251) at java.awt.Frame.(Frame.java:398) Are you trying to create a Frame? Heavyweight components are always going to throw HeadlessExceptions, ref: http://java.sun.com/j2se/1.4/docs/guide/awt/AWTChanges.html -- Christopher St. John [EMAIL PROTECTED] DistribuTopia http://www.distributopia.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Bad escape sequence using jikes
Hello, We sometimes get errormessages saying: Bad escape sequence. Most of the time it occures when there are certain characters like é in the jsp-pages. It happens only when the jsp-page is created on windows. We're using tomcat4.0.1 and jikes on solaris. Is there a way to set the encoding jikes must use? Gerard -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Please someone, I really need help with this issue.
Hi Mark, Could you be a more specific about what is happening/not happening. One thing maybe worth looking at in your warp config WebAppConnection warpConnection warp localhost:8008 WebAppDeploy examples warpConnection /examples/ WebAppDeploy manager warpConnection /manager/ WebAppDeploy webdav warpConnection /webdav/ There's is no mapping of the root / so I'd guess a request such as http://americano.stanford.edu/~skinny won't be processed by the Warp connector and will fall through to Apache. HTH, -Janek --- Mark Diggory [EMAIL PROTECTED] wrote: I anyone has any experince with this please let me know. It could be just one sentence (Even just one word!). I just need to know why I can't run my users jsp's through my warp connector... Here's my Connector in server.xml !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0/ !-- Replace localhost with what your Apache ServerName is set to -- Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 appBase=webapps !-- Attempt to define a default virtual host and a listener to map the user dir's through the apache connector-- Host name=Apache debug=0 appBase=webapps unpackWARs=true Listener className=org.apache.catalina.startup.UserConfig directoryName=public_html homeBase=/home/login userClass=org.apache.catalina.startup.HomesUserDatabase/ /Host /Engine /Service I assume I would need to use a WebAppDeploy descriptor to map the users directories to Tomcat, how would I do that for generic users directories (~/public_html)? WebAppConnection warpConnection warp localhost:8008 WebAppDeploy examples warpConnection /examples/ WebAppDeploy manager warpConnection /manager/ WebAppDeploy webdav warpConnection /webdav/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
security-constraint problems
Hi folks! I'm observing a couple of problems with security-constraints, and I'd like to know wether I'm encountering bugs in Tomcat or simply doing something stupid. Here are the details: I have a constraint that is setup like this: security-constraint web-resource-collection web-resource-nameTest/web-resource-name url-pattern/servlet/HelloWorld/url-pattern url-pattern*.event/url-pattern /web-resource-collection auth-constraint role-nameUser/role-name /auth-constraint /security-constraint 1. URL patterns with wildcards do not seem to be matching. For instance, given a url of http://localhost:8080/MyApp/GoHome.event, when I use the following url patterns, I do not get challenged: url-pattern/*.event/url-pattern url-pattern*.event/url-pattern If I use the specific url, however: url-pattern/GoHome.event/url-pattern then it does in fact work and I get prompted for user/pwd as expected. So my question is, am I doing somethign wrong or is this in fact a bug? 2. When I try and access Tomcat directly on port 8080 using http://localhost:8080/MyApp/servlet/HelloWorld, I get challenged as expected. When I try to access the exact same URL through IIS using http://localhost/MyApp/servlet/HelloWorld, I don't get challenged at all; I just immediately get an access denied error message. If I remove the url pattern for /servlet/HelloWorld, then I can access it just fine through IIS, which tells me that the isapi redirection is working ok. Again, am I doing something wrong, or is this a bug? Should role based authentication work when integrating Tomcat with IIS? Thanks, Christian -- Christian Cryder [[EMAIL PROTECTED]] Internet Architect, ATMReports.com Barracuda - http://barracuda.enhydra.org -- What a great time to be a(n employed) Geek -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Manage of memory and Garbage collector.
Hello, maybe is an off-topic but could anybody tell me how could I know the value of parameters like Xms , MaxPermSize, Xminf, New Ratio , etc. which are involve with the garbage collector -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Manage of memory and Garbage collector.
you can set what they are with an environment variable. which one depends on the version of tomcat you are running. this is in the docs. matt - Original Message - From: Emilio Miranda [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, February 08, 2002 5:38 PM Subject: Manage of memory and Garbage collector. Hello, maybe is an off-topic but could anybody tell me how could I know the value of parameters like Xms , MaxPermSize, Xminf, New Ratio , etc. which are involve with the garbage collector -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Another Tomcat4 IIS Install
Problem solved.. I guess I over-engineered it.. stuck with the default uriworkers and did not add a virtual directory within webapps... - Original Message - From: Richard To: [EMAIL PROTECTED] Sent: Friday, February 08, 2002 9:08 AM Subject: Another Tomcat4 IIS Install Like many others, I am also having difficulty integrating win2ksp2, IIS5.0, and Tomcat 4.0.1. I have read through several how-to docs, read through a few of the mailing list archives but I am still having issues. I used the following link for my main install http://www.vacodi.com/howto/tomcat/iisnt/index.html isapi_redirect is green, and tomcat appears to work fine using 8080. When I try and hit ther server through IIS I get strange results, such as the page does not load or the jsp will execute but information is not shown. For exmple the date.jsp example displays date is but doesn't show the current date. The ajp13 connector in server.xml has also been uncommented. I am also unsure if IIS has been configured properly for use with tomcat. I currently have the default website set to e:\webroot . I then created a virtual directory called examples and pointed it to e:\tomcat4\webapps\examples. I am attaching my settings and isapi log entries.. I have also created the virtual Jakarta directory which points to e:\tomcat4\conf\ntis\ with execute access.. Is there a common IIS/Tomcat config? Please let me know if anything obvious appears. Thanks in advance Richard Haag Isapi Redirect log -- In HttpFilterProc test Default redirection of /examples/jsp/error/err.jsp [Fri Feb 08 00:23:49 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Feb 08 00:23:49 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/examples/jsp/error/err.jsp' [Fri Feb 08 00:23:49 2002] [jk_uri_worker_map.c (416)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - *.jsp [Fri Feb 08 00:23:49 2002] [jk_isapi_plugin.c (617)]: HttpFilterProc [/examples/jsp/error/err.jsp?name=z3submit=Submit] is a servlet url - should redirect to ajp13 [Fri Feb 08 00:23:49 2002] [jk_isapi_plugin.c (639)]: HttpFilterProc check if [/examples/jsp/error/err.jsp?name=z3submit=Submit] is points to the web-inf directory [Fri Feb 08 00:23:49 2002] [jk_isapi_plugin.c (555)]: HttpFilterProc started [Fri Feb 08 00:23:49 2002] [jk_isapi_plugin.c (600)]: In HttpFilterProc Virtual Host redirection of /10.3.1.8/jakarta/isapi_redirect.dll [Fri Feb 08 00:23:49 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Feb 08 00:23:49 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/10.3.1.8/jakarta/isapi_redirect.dll' [Fri Feb 08 00:23:49 2002] [jk_uri_worker_map.c (456)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Fri Feb 08 00:23:49 2002] [jk_isapi_plugin.c (606)]: In HttpFilterProc test Default redirection of /jakarta/isapi_redirect.dll [Fri Feb 08 00:23:49 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Feb 08 00:23:49 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/jakarta/isapi_redirect.dll' [Fri Feb 08 00:23:49 2002] [jk_uri_worker_map.c (456)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Fri Feb 08 00:23:49 2002] [jk_isapi_plugin.c (638)]: HttpFilterProc [/jakarta/isapi_redirect.dll] is not a servlet url [Fri Feb 08 00:23:49 2002] [jk_isapi_plugin.c (647)]: HttpFilterProc check if [/jakarta/isapi_redirect.dll] is points to the web-inf directory [Fri Feb 08 00:23:49 2002] [jk_isapi_plugin.c (679)]: HttpExtensionProc started [Fri Feb 08 00:23:49 2002] [jk_worker.c (123)]: Into wc_get_worker_for_name ajp12 [Fri Feb 08 00:23:49 2002] [jk_worker.c (127)]: wc_get_worker_for_name, done found a worker [Fri Feb 08 00:23:49 2002] [jk_isapi_plugin.c (701)]: HttpExtensionProc got a worker for name ajp12 [Fri Feb 08 00:23:49 2002] [jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint [Fri Feb 08 00:23:49 2002] [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service [Fri Feb 08 00:23:49 2002] [jk_connect.c (108)]: Into jk_open_socket [Fri Feb 08 00:23:49 2002] [jk_connect.c (115)]: jk_open_socket, try to connect socket = 1648 [Fri Feb 08 00:23:50 2002] [jk_connect.c (124)]: jk_open_socket, after connect ret = -1 [Fri Feb 08 00:23:50 2002] [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61 [Fri Feb 08 00:23:50 2002] [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = -1 [Fri Feb 08 00:23:50 2002] [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 [Fri Feb 08 00:23:50 2002] [jk_isapi_plugin.c (716)]: HttpExtensionProc error, service() failed [Fri Feb 08 00:23:50 2002] [jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done Is Isapi_redirect.dll supposed to be here?
jdbc driver deployment problem.
Q: How can I get Tomcat to see 3 specific jar files? They're already in my classpath. Details: Win2k, MSSQL 2k sp1, tomcat 4.0.1 (not a service), apache 1.3.22 (service). Aargh. It was suggested that I try to change jdbc drivers in my servlets. I used to use the jdbc/odbc bridge (sun provided) driver and decided to replace it with Microsoft's MSSQL 2000 Server JDBC type 4 driver (beta 2) to see if it solved my (other) problem. If it works, I'll be open to buying a better (released) driver. For now, I can't get it to work. Microsoft's news server has a newsgroup just for this driver and I've read all about it. I can get a test app to work with it. After plugging the driver into my servlet on the same machine, it doesn't work. (Same thing on my workstation and our production server) I get a java.lang.ClassNotFoundException. This is what happened in my test app until I got 3 jar files into my classpath. Now that I try it inside Tomcat, the jar files are not in scope. It occurs after one of these two lines: Class.forName(com.microsoft.sqlserver.SQLServerDriver); con = DriverManager.getConnection (jdbc:microsoft:sqlserver://172.29.6.12:1433;DatabaseName=sqaa;user=sqaauser ); In trying to remedy the problem, I put the drivers in the same directory as my servlets I get it working outside Tomcat, so I conclude that it's a Tomcat issue. If you think this is an issue with the driver and not Tomcat, I'll ask the jdbc driver newsgroup. Regards, -Phil -- __ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
tomcat plugin on mac
I try running tomcat as plugin to webstar 4.5 on a g3 mac, and get this strange malfunction: Is there any explanation to why tomcat works perfectly when called directly on port 8080, while when called as a webstar plugin, it just works a little. For instance, the numberguess seems ok at first, then after the first guess the next page shows 1 guess. But further on, the counter counts no further, and I think java comes up with a new secret number at each new attempt. Similarly, the cart adds the first item, but if you want to add more, it replaces the first item with the second one. What kind of wrong settings can generate this error? Hallvard, Norway