application timeout
Hello, I am using 'application' to persist and make available simple text values accessible to multiple clients. Can someone tell me how to set the timeout value to this please (default lifetime)? I have acheived this with HttpSession by editing my conf/web.xml file, but can see no reference to applicatrion. Can anyone tell me how to define the application timeout please? Thanks Paul.
Re: Status of Symbolic Links on Linux/TC 4.1.12???
Eugene Gluzberg [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Could you please specify how to configure it in 4.1.15? should we omit the docBase in Context and specify it in Resources instead? or do we need both? Does the Resources have to have a absolute docBase (assuming FileDirContext), or relative? If relative, what is it relative to? Will the Context eventually support the allowLinking option? Personally, I specify docBase in the Context (where it is relative to the Host), and omit it in the Resources. e.g. (caseSensitive, only because I'm using pre-4.1.15 code. It can be omitted on higher versions): Context path= docBase=ROOT debug=0 Resources className=org.apache.naming.resources.FileDirContext allowLinking=true caseSensitive=false / /Context Works fine for me. It seems (glancing at the source code) that if you specify docBase in the Resources, then the path must be absolute. I'd be +1 for moving the allowLinking option up to the Context level. I'd guess that if it doesn't make the cut on the 4.1.x development, then it will show up in some form in the 5.x development. Bill Barker wrote: It should be pretty much working in 4.1.15 now (as long as you configure the Resources yourself). From 4.1.13, you can also get it to work by setting the caseSensitive=false attribute on the Resources tag. Bob McCormick [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi All, Have checked the archives and see that someone was having a problem with being able to access URL's via Tomcat 4.1.x that contain a symbolic link. I too am having this problem and was hoping to only use TomCat to serve up content. Would anyone be able to tell me whether this is just an overlooked bug, specified setting in the security settings somewhere or flat-out not going to be something that is supported any longer. We'd really like to NOT have to use Apache to have on less thing to worry about, and so any information on this particular would be GREATLY appreciated. Thanks...Bob Bob McCormick IST -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: application timeout
I've replied before, you can set in your jsp code if you wish, here's how you do it, setMaxInactiveInterval(int interval) ; This is a method, so you need to call it. You can check out the apis that you need information on, comes with every copy of tomcat. http://localhost:8080/tomcat-docs/servletapi/index.html [EMAIL PROTECTED] wrote: Hello, I am using 'application' to persist and make available simple text values accessible to multiple clients. Can someone tell me how to set the timeout value to this please (default lifetime)? I have acheived this with HttpSession by editing my conf/web.xml file, but can see no reference to applicatrion. Can anyone tell me how to define the application timeout please? Thanks Paul. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: mod_jk2 and userdirectories
The CVS HEAD version of mod_jk2 (i.e. pre-release) has some support for using REs in the mappings. Haven't used it myself, but it may solve your problem. joe udder [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello. Can anyone please point out a guide or documentation on how to enable userdirectories for usage with mod_jk2 and tomcat? So normal users can have servlets and jsps in their public_html-directories. Google revealed the solution for the tomcat-part, by adding these lines to server.xml it should be ok: Listener className=org.apache.catalina.startup.UserConfig directoryName=public_html homeBase=/home userClass=org.apache.catalina.startup.PasswdUserDatabase / But I am stalled at how to configure mod_jk2, I have no idea on what is going into workers2.properties and/or jk2.properties. I tried this one, but didn't help me much. :-/ [uri:/~*/*] worker=ajp13:localhost:8009 TIA. /j _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Betr.: mod_jk2-2.0.43 for freebsd
try ./configure options (see ./configure --help for available options) gmake I've build one with ./configure --with-apxs2=/local/apache/bin/apxs --with-tomcat41=/usr/local/tomcat --without-jni but the options depend on youre setup [EMAIL PROTECTED] 21-11-2002 3:23:36 Does anyone know where I can get a copy of mod_jk2 built in freebsd. The buildconf.sh script from the build source won't build it for me so if someone out there has built it or can give me help in building it I would really appreciate it. Thanx in advance Warren Roberts -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: problem with Classloader and symbolic links in 4.1.12
Have you considered using Ant to build and deploy your applications? -Original Message- From: Eugene Gluzberg [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 21. November 2002 01:45 To: Tomcat Users List Subject: problem with Classloader and symbolic links in 4.1.12 Here is a scenario. I created a reloadable webapp in my tomcat installation, created the directory structure: webapps/test/WEB-INF/lib webapps/test/WEB-INF/classes I then create a symlink from classes to where my code package resides: ln -s $HOME/source/testPackage webapps/test/WEB-INF/classes in $HOME/source/testPackage resides a java file TestServlet.java and its compiled version TestServlet.class TestServlet.java is a servlet class in the testPackage package Tomcat runs as my user, its installed in my home directory, my catalina.policy has: grant { permission java.security.AllPermission; }; When i try to load the servlet, i get the following exception: Wrapper cannot find servlet class testPackage.TestServlet or a class it depends on I do the following: cd webapps/test/WEB-INF/classes rm -f testPackage (remove the link) cp -r $HOME/source/testPackage . restart tomcat, go to the URL of the servlet, and it works fine. Why does it not work with the symbolic link? Is there an option i can give somewhere to tomcat's classloader to follow symbolic links? it would make my life so much easier since I am trying to develop an app with thousands of classes and hundreds of packages, modifying my build system to send all the classes to the tomcat dir would be a hassle. Thanks, Eugene -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: application timeout
Hi Kwok, I looked at the docs you referenced and the method you mentioned (setMaxInactiveInterval) was not present, and did not compile? If the method it is available how is it called? I have: Hashtable hstyle = new Hashtable(); application.setAttribute(appstyle, hstyle); OK! appstyle.setMaxInactiveInterval(100); NO! Also, in what unit is the argument measured (mls / sec etc) minutes? Thank you Paul. Kwok Peng Tuck [EMAIL PROTECTED] 21-11-2002 16:10 Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: application timeout I've replied before, you can set in your jsp code if you wish, here's how you do it, setMaxInactiveInterval(int interval) ; This is a method, so you need to call it. You can check out the apis that you need information on, comes with every copy of tomcat. http://localhost:8080/tomcat-docs/servletapi/index.html [EMAIL PROTECTED] wrote: Hello, I am using 'application' to persist and make available simple text values accessible to multiple clients. Can someone tell me how to set the timeout value to this please (default lifetime)? I have acheived this with HttpSession by editing my conf/web.xml file, but can see no reference to applicatrion. Can anyone tell me how to define the application timeout please? Thanks Paul. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: mod_webapp.so versus mod_jk
Matthew Hannigan [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Wed, Nov 20, 2002 at 01:51:33PM -0600, Kent Perrier wrote: On Wed, 2002-11-20 at 13:24, Steve Cromer wrote: Hi, I would like to integrate Tomcat and Apache. I noticed that there is more than one way to do this. One way involves Warp, using mod_webapp.so and another involves mod_jk. Please, go look in the archives. This question is asked almost on a daily basis. The answer is in the archives. It's asked daily in the archives because there is no clear answer in the docs. Add to this the code word and acronym soup of jakarta, tomcat, catalina, jasper, warp, coyote, ajp12, ajp13, ajp14. Don't underestimate the hurdle a newbie has to go through. I belive the answer is: mod_webapp - don't use, obsolete Not quite. More like being maintained but not enhanced. This means that without new volunteers, it probably won't support anything other than the Apache pre-fork MPM. It has way fewer active developers than mod_jk*, but that is not the same as none. mod_jk - stable, being maintained but not enhanced, use with apache1.* or apache2, and tomcat3 or tomcat4 mod_jk2 - developmental, being maintained and enhanced, use with apache2 and tomcat4 Current enhancements improve the support for all threaded servers (i.e. Apache2[non-pre-fork]/IIS/iPlanet). On *nix platforms, there is also support for Unix-Sockets (which should out-perform the default TCP-Sockets). If you want to use JNI to connect to Tomcat, than this is the only way to go. Current support is for Apache-1.3.x, Apache2, IIS, (and less active, iPlanet). Full support for Tomcat 3.3.x, Tomcat 4.1.x and Tomcat 5.x. Partial support for Tomcat 3.2.x (native-only), and Tomcat 4.0.x (you need to build the classes for yourself, not hard). IMHO, well worth deploying and testing if you have a non-production box to do it on. I use mod_jk with apache1.3.27 and tomcat4.0.6 and haven't had many problems. Matt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How does servlets know it is a page refresh?
Take a look at this example chapter from the book Core J2EE Patterns: http://vig.pearsoned.com/samplechapter/0130648841.pdf On page 10 of the pdf (43 on the book :-), it speaks about this subject, and a good strategy to address it Hope it helps, Rodrigo I have some servlets serving html pages from the servlet engine. suppose the user click the refresh button of the browser. How does the servlet know that the user wants a refresh of the page? My servlet needs to know if it is a refresh since if it processes the same request twice in a row, it may produce unexpected results by the issuing the same comand twice. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
problem tomcat-postgresql datasource
I am using Tomcat 4 on a linux-box with postgresql. I'm trying to set up a data source. I followed the instructions on http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html But the ds.getConnection method waits for an undefined time to give me a connection. Any suggestion will be appreciated. Thanks Andrea This is a few lines from my server.xml: Resource name=jdbc/mydb scope=Shareable type=javax.sql.DataSource/ ResourceParams name=jdbc/mydb parameter namevalidationQuery/name value/value /parameter parameter namemaxWait/name value5000/value /parameter parameter namemaxActive/name value4/value /parameter parameter namepassword/name valuepassword/value /parameter parameter nameurl/name valuejdbc:postgresql://myserver:5432/mydb/value /parameter parameter namedriverClassName/name valueorg.postgresql.Driver/value /parameter parameter namemaxIdle/name value2/value /parameter parameter nameusername/name valueusername/value /parameter /ResourceParams and some more from web.xml of my web-app resource-ref descriptionpostgreSQL Datasource/description res-ref-namejdbc/mydb/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref I access to the db with this servlet: public class ProvaConnessioneAlDb extends HttpServlet { static final private String CONTENT_TYPE = text/html; //Initialize global variables public void init() throws ServletException { } //Process the HTTP Post request public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(CONTENT_TYPE); PrintWriter out = response.getWriter(); out.println(html); out.println(headtitleProvaConnessioneAlDb/title/head); out.println(body); out.println(pThe servlet has received a POST. This is the reply./p); out.println(/body/html); } public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(CONTENT_TYPE); PrintWriter out = response.getWriter(); String foo=new String(); try { Context initContext = new InitialContext(); log(initcontext); if(initContext == null ) throw new Exception(Boom - No Context); Context envContext = (Context)initContext.lookup(java:/comp/env); log(envcontext); if(envContext == null ) throw new Exception(Boom - No Context); DataSource ds = (DataSource)envContext.lookup(/jdbc/mydb); log(datasource); if (ds != null) { log(if); log(Ciao + ds.toString()); Connection conn = ds.getConnection(); log(connection); if(conn != null) { foo = Got Connection +conn.toString(); } conn.close(); } } catch (SQLException e) { e.printStackTrace(out); out.println(p+e.toString()+/p); }catch (NamingException e) { out.println(p+e.toString()+/p); } catch (Exception e){ e.printStackTrace(out); out.println(p+e.toString()+/p); } out.println(html); out.println(headtitleProvaConnessioneAlDb/title/head); out.println(body); out.println(pThe servlet has received a GET. This is the reply./p); out.println(p+foo+/p); out.println(/body/html); } //Clean up resources public void destroy() { } } and this is the localhost_myapp.txt log 2002-11-21 10:01:46 StandardContext[/myapp]: Mapped to servlet 'provaconnessionealdb' with servlet path '/provaconnessionealdb' and path info 'null' and update=true 2002-11-21 10:01:46 provaconnessionealdb: initcontext 2002-11-21 10:01:46 provaconnessionealdb: envcontext 2002-11-21 10:01:46 provaconnessionealdb: datasource 2002-11-21 10:01:46 provaconnessionealdb: if 2002-11-21 10:01:46 provaconnessionealdb: Ciao org.apache.commons.dbcp.BasicDataSource@dd75a4 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: problem tomcat-postgresql datasource
Remove the sql validation parameter, or actually give it a sql statement to use. And in this Resource name=jdbc/mydb scope=Shareable type=javax.sql.DataSource/ add auth=Container so that it looks like Resource name=jdbc/mydb scope=Shareable auth=Container type=javax.sql.DataSource/ Took me a while to figure out the validation bit. [EMAIL PROTECTED] wrote: I am using Tomcat 4 on a linux-box with postgresql. I'm trying to set up a data source. I followed the instructions on http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html But the ds.getConnection method waits for an undefined time to give me a connection. Any suggestion will be appreciated. Thanks Andrea This is a few lines from my server.xml: Resource name=jdbc/mydb scope=Shareable type=javax.sql.DataSource/ ResourceParams name=jdbc/mydb parameter namevalidationQuery/name value/value /parameter parameter namemaxWait/name value5000/value /parameter parameter namemaxActive/name value4/value /parameter parameter namepassword/name valuepassword/value /parameter parameter nameurl/name valuejdbc:postgresql://myserver:5432/mydb/value /parameter parameter namedriverClassName/name valueorg.postgresql.Driver/value /parameter parameter namemaxIdle/name value2/value /parameter parameter nameusername/name valueusername/value /parameter /ResourceParams and some more from web.xml of my web-app resource-ref descriptionpostgreSQL Datasource/description res-ref-namejdbc/mydb/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref I access to the db with this servlet: public class ProvaConnessioneAlDb extends HttpServlet { static final private String CONTENT_TYPE = text/html; //Initialize global variables public void init() throws ServletException { } //Process the HTTP Post request public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(CONTENT_TYPE); PrintWriter out = response.getWriter(); out.println(html); out.println(headtitleProvaConnessioneAlDb/title/head); out.println(body); out.println(pThe servlet has received a POST. This is the reply./p); out.println(/body/html); } public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(CONTENT_TYPE); PrintWriter out = response.getWriter(); String foo=new String(); try { Context initContext = new InitialContext(); log(initcontext); if(initContext == null ) throw new Exception(Boom - No Context); Context envContext = (Context)initContext.lookup(java:/comp/env); log(envcontext); if(envContext == null ) throw new Exception(Boom - No Context); DataSource ds = (DataSource)envContext.lookup(/jdbc/mydb); log(datasource); if (ds != null) { log(if); log(Ciao + ds.toString()); Connection conn = ds.getConnection(); log(connection); if(conn != null) { foo = Got Connection +conn.toString(); } conn.close(); } } catch (SQLException e) { e.printStackTrace(out); out.println(p+e.toString()+/p); }catch (NamingException e) { out.println(p+e.toString()+/p); } catch (Exception e){ e.printStackTrace(out); out.println(p+e.toString()+/p); } out.println(html); out.println(headtitleProvaConnessioneAlDb/title/head); out.println(body); out.println(pThe servlet has received a GET. This is the reply./p); out.println(p+foo+/p); out.println(/body/html); } //Clean up resources public void destroy() { } } and this is the localhost_myapp.txt log 2002-11-21 10:01:46 StandardContext[/myapp]: Mapped to servlet 'provaconnessionealdb' with servlet path '/provaconnessionealdb' and path info 'null' and update=true 2002-11-21 10:01:46 provaconnessionealdb: initcontext 2002-11-21 10:01:46 provaconnessionealdb: envcontext 2002-11-21 10:01:46 provaconnessionealdb: datasource 2002-11-21 10:01:46 provaconnessionealdb: if 2002-11-21 10:01:46 provaconnessionealdb: Ciao org.apache.commons.dbcp.BasicDataSource@dd75a4 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Managed Bean Question
Fortunately, there is a yet-undocumented-method :( that works much better. The ServerLifecycleListener in the server.xml file takes an (undocumented) attribute called 'descriptors'. The value is a ';' separated list of resources to load the mbean-descriptors from. This allows you to package your mbeans-descriptors.xml file with the jar that contains the custom Realm. You just create your own mbeans-descriptors.xml file with your Realm, and in server.xml set: Listener className=org.apache.catalina.mbeans.ServerLifecycleListener descriptors=/net/utilitiynet/my/package/mbean-descriptors.xml debug=0/ and all of your custom classes will be registered. It works great for me. Anthony Mutiso 2 [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a webapp with a custom realm class. The webapp worked fine in TC 4.0.5. When I migrate my webapp to 4.1.12 I get Managed Bean errors which fail my realm initialization. On searching the mail-list I found suggestions that I need to register the realm class in the mbeans-discriptors.xml file. My qustions is, is this the only or right way to address this issues? It feels somewhat dirty to update a file in the catalina.jar file. Thanks Anthony -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: session startup
[EMAIL PROTECTED] wrote: OK, Perhaps then a session is not what is required here. I wish to make available upon startup of the server, some simple string values. They must be accessible to all clients, auto initialised when the service starts up. This is something similar to a posting I made a while ago reagrding libraries. I want to load into memory these values when the server starts, that will be accessible to all clients. Thanks Paul. You need to implement a ContextListener class. Here's a snippet of what I have: 1) Java: package com.terma.martin.drs.util; import java.io.*; import java.util.*; import javax.servlet.*; public class ApplicationInitializer implements ServletContextListener { public void contextInitialized(ServletContextEvent sce) { ServletContext ctx = sce.getServletContext(); String propsFileName = ctx.getInitParameter(props-file); ... etc. 2) web.xml: web-app context-param param-nameprops-file/param-name param-value/WEB-INF/app.properties/param-value /context-param listener listener-classcom.terma.martin.drs.util.ApplicationInitializer/listener-class /listener HTH Martin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat Mbeans
Hi, I'm looking for documentation on the Mbean system in tomcat. I've developed a new Valve that I would like to run with in tomcat, and it does, but the parameters in server.xml dont seem to get passed down to the class, on server-startup. I've added a config for the Valve in the Mbean-descriptors.xml but it seems like more is needed ? Thanx, [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Apache cannot serve html files in webapp directory
Bill Barker wrote: Usually this is a problem with file permissions. The Apache user (I think that this defaults to apache on RedHat, but I don't use RedHat that much) needs to have read+execute permissions on all directories upto and including the examples directory. In practice, this usually means that they all need rwxr-xr-x permissions, unless you want to setup group access yourself. Irwan [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all, I have installed mod_jk but cannot get apache to serve html files from tomcat webapp. The interesting thing, Apache can serve gif files but when the request is for html files, it returns this: Forbidden You don't have permission to access /examples/index.html on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.0.43 Server at 192.168.0.1 Port 80 I have verified that Tomcat can serve the html thru the 8080 port. Here is my http.conf files. I followed what was written in Tomcat website on how to configure Apache: http.conf: # Load mod_jk module LoadModule jk_module /usr/lib/apache2/mod_jk.so Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Allow from all /Directory # Where to find workers.properties JkWorkersFile /etc/httpd2/conf/workers.properties # Send servlet for context /examples to worker named worker1 JkMount /examples/servlet/* ajp13 # Send JSPs for context /examples to worker named worker1 JkMount /examples/*.jsp ajp13 end of http.conf extract My environment is: Apache 2.0.43 Red Hat Linux 7.3 Tomcat 4.1.12 mod_jk-ap20-1.2.0-2jpp.i386.rpm Can anyone help please. Regards, eone -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hi Bill, It worked. What I do not understand is both Apache and Tomcat were installed as root so Apache should have access to Tomcat webapp, or do they. Thanks for the help Rgds, Irwan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: application timeout
See the javax.servlet.http.HttpSession interface. You should get what you need. Pae - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 12:40 AM Subject: Re: application timeout Hi Kwok, I looked at the docs you referenced and the method you mentioned (setMaxInactiveInterval) was not present, and did not compile? If the method it is available how is it called? I have: Hashtable hstyle = new Hashtable(); application.setAttribute(appstyle, hstyle); OK! appstyle.setMaxInactiveInterval(100); NO! Also, in what unit is the argument measured (mls / sec etc) minutes? Thank you Paul. Kwok Peng Tuck [EMAIL PROTECTED] 21-11-2002 16:10 Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: application timeout I've replied before, you can set in your jsp code if you wish, here's how you do it, setMaxInactiveInterval(int interval) ; This is a method, so you need to call it. You can check out the apis that you need information on, comes with every copy of tomcat. http://localhost:8080/tomcat-docs/servletapi/index.html [EMAIL PROTECTED] wrote: Hello, I am using 'application' to persist and make available simple text values accessible to multiple clients. Can someone tell me how to set the timeout value to this please (default lifetime)? I have acheived this with HttpSession by editing my conf/web.xml file, but can see no reference to applicatrion. Can anyone tell me how to define the application timeout please? Thanks Paul. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
File Path Problem...
Hello, I am running Tomcat 4.1 on Windows 2000 as a service. I have written a JSP page where in I am trying to read an XML. If I try to access the file using absolute path, for eg. c:\abc\xyz.xml, the page works without any problem. But if i try to access it thru relative path, for eg. ../data/xyz.xml, the tomcat will throw a FileNotFoundException saying that xyz.xml doesnt exist in SYSTEM-ROOT\System32 dir. The reason behind this is that the JSP is tring to access the file from where JVM was started according to Java Documentation, ie SYSTEM-ROOT\System32 directory where the Service Control Manager starts the Tomcat service which in turn starts the JVM. So the question is, is there any other way I can use a relative path inside my application to access a file? (I dont want to use absolute path as my application has to be distributed in many places). Thanks in advance... Warm Regards, Harsha Yalagach -- Cerebra Integrated Technologies Ltd., Bangalore, India -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
tomcat n apache
sir.. tell me what is tomcat and apache.. what is the difference b/w both.. where we can use tomcat and where apache.. regards Puneet __ Do you Yahoo!? Yahoo! Mail Plus Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Session Tracking based on the Client's IP
would have to punch in the code for verification, that would definetly defeat any script but is less convenient for the user. I would prefer to dynamically identify any individual user who uses my service more than say 10-15 times in a minute and ban him for an hour or so. Set a cookie and ask for it :-) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: application timeout
I think it's session.setMaxInactiveInterval(100) ; the session is accessible to each jsp . [EMAIL PROTECTED] wrote: Hi Kwok, I looked at the docs you referenced and the method you mentioned (setMaxInactiveInterval) was not present, and did not compile? If the method it is available how is it called? I have: Hashtable hstyle = new Hashtable(); application.setAttribute(appstyle, hstyle); OK! appstyle.setMaxInactiveInterval(100); NO! Also, in what unit is the argument measured (mls / sec etc) minutes? Thank you Paul. Kwok Peng Tuck [EMAIL PROTECTED] 21-11-2002 16:10 Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: application timeout I've replied before, you can set in your jsp code if you wish, here's how you do it, setMaxInactiveInterval(int interval) ; This is a method, so you need to call it. You can check out the apis that you need information on, comes with every copy of tomcat. http://localhost:8080/tomcat-docs/servletapi/index.html [EMAIL PROTECTED] wrote: Hello, I am using 'application' to persist and make available simple text values accessible to multiple clients. Can someone tell me how to set the timeout value to this please (default lifetime)? I have acheived this with HttpSession by editing my conf/web.xml file, but can see no reference to applicatrion. Can anyone tell me how to define the application timeout please? Thanks Paul. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: application timeout
I forgot to mention that by doing this appstyle.setMaxInactiveInterval(100); you are trying to referrence a object in the session. which won't work. The name appstyle is what you use to retreive the object from the session. good luck. [EMAIL PROTECTED] wrote: Hi Kwok, I looked at the docs you referenced and the method you mentioned (setMaxInactiveInterval) was not present, and did not compile? If the method it is available how is it called? I have: Hashtable hstyle = new Hashtable(); application.setAttribute(appstyle, hstyle); OK! appstyle.setMaxInactiveInterval(100); NO! Also, in what unit is the argument measured (mls / sec etc) minutes? Thank you Paul. Kwok Peng Tuck [EMAIL PROTECTED] 21-11-2002 16:10 Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: application timeout I've replied before, you can set in your jsp code if you wish, here's how you do it, setMaxInactiveInterval(int interval) ; This is a method, so you need to call it. You can check out the apis that you need information on, comes with every copy of tomcat. http://localhost:8080/tomcat-docs/servletapi/index.html [EMAIL PROTECTED] wrote: Hello, I am using 'application' to persist and make available simple text values accessible to multiple clients. Can someone tell me how to set the timeout value to this please (default lifetime)? I have acheived this with HttpSession by editing my conf/web.xml file, but can see no reference to applicatrion. Can anyone tell me how to define the application timeout please? Thanks Paul. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Mbeans
Custom Valves, at least at the moment, have some issues (:. If your Valve extends org.apache.catalina.valve.ValveBase, then it should work fine. Otherwise, it will probably need to at least implement org.apache.catalina.Contained to work anytime in the near future. If you have a better idea on how to patch this, I'm very interested, but at the moment, I can't find a way other than Contained to get the parent component to form the MBean name. Reynir Hübner [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I'm looking for documentation on the Mbean system in tomcat. I've developed a new Valve that I would like to run with in tomcat, and it does, but the parameters in server.xml dont seem to get passed down to the class, on server-startup. I've added a config for the Valve in the Mbean-descriptors.xml but it seems like more is needed ? Thanx, [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
jboss integration
where can i found information about integration of tomcat and jboss 3? free information, i mean. thanks - Yahoo! Messenger Nueva versión: Webcam, voz, y mucho más ¡Gratis!
Re: Session Tracking based on the Client's IP
Hi , request.getRemoteAddr() will give u the IP Put time with session and compare when there is new request jabs - Original Message - From: Power-Netz (Schwarz) [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 3:33 PM Subject: AW: Session Tracking based on the Client's IP would have to punch in the code for verification, that would definetly defeat any script but is less convenient for the user. I would prefer to dynamically identify any individual user who uses my service more than say 10-15 times in a minute and ban him for an hour or so. Set a cookie and ask for it :-) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: problem tomcat-postgresql datasource
It works !!! Thank you andrea Remove the sql validation parameter, or actually give it a sql statement to use. And in this Resource name=jdbc/mydb scope=Shareable type=javax.sql.DataSource/ add auth=Container so that it looks like Resource name=jdbc/mydb scope=Shareable auth=Container type =javax.sql.DataSource/ Took me a while to figure out the validation bit. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: File Path Problem...
Hello, maybe you could save the absolute path inside a properties file or pass it as an init parameter in web.xml. For each location of your app you would have to set this path appropriately. You could use absolute paths and wouldn't need to change the source code of the application. Regards, Andreas On 21 Nov 2002 at 14:31, Harsha Yalagach wrote: Hello, I am running Tomcat 4.1 on Windows 2000 as a service. I have written a JSP page where in I am trying to read an XML. If I try to access the file using absolute path, for eg. c:\abc\xyz.xml, the page works without any problem. But if i try to access it thru relative path, for eg. ../data/xyz.xml, the tomcat will throw a FileNotFoundException saying that xyz.xml doesnt exist in SYSTEM-ROOT\System32 dir. The reason behind this is that the JSP is tring to access the file from where JVM was started according to Java Documentation, ie SYSTEM-ROOT\System32 directory where the Service Control Manager starts the Tomcat service which in turn starts the JVM. So the question is, is there any other way I can use a relative path inside my application to access a file? (I dont want to use absolute path as my application has to be distributed in many places). Thanks in advance... Warm Regards, Harsha Yalagach -- Cerebra Integrated Technologies Ltd., Bangalore, India -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Has anyone got php (as a servlet) stable with Tomcat?
Hi I'm having a bad time installing php as a servlet under tomcat. My tomcat install is fine. I have php-4.2.3 installed with tomcat-4.1.12 on WINNT. When I create a file that simple has print 'hello, world'; it works twice and always fails on the third instance, generating an error dump as below: An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x97fcbba Function name=zend_hash_destroy Library=C:\WINNT\System32\php4ts.dll Has anyone had success with tomcat running php as a servlet and can anyone advise me with this problem. Thanks in advance Ben __ 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, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Session Tracking based on the Client's IP
But, How can I change the SessionID, for using the Client IP as the Index? The getSession() method retrieves the Session for the client, based on the SessionID (that normally is based in Cookies or re-writed URLs) What I need is a way to force the SessionID to different value, for example, the Client IP. Probably the best way, is simply define a Hashtable as a Context Atributte, in order to store client status information indexed by the Client IP, and don't use the Session Tracking API. -JM - Original Message - From: vivek baliga [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 9:01 AM Subject: Re: Session Tracking based on the Client's IP Hi , request.getRemoteAddr() will give u the IP Put time with session and compare when there is new request jabs - Original Message - From: Power-Netz (Schwarz) [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 3:33 PM Subject: AW: Session Tracking based on the Client's IP would have to punch in the code for verification, that would definetly defeat any script but is less convenient for the user. I would prefer to dynamically identify any individual user who uses my service more than say 10-15 times in a minute and ban him for an hour or so. Set a cookie and ask for it :-) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
MacOS
Anyone have experience with Tomcat on MacOS X servers? Or with java in general? I would like to know if these machines are good options for serving jsp or I should stick with PCs... -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: newbie Q
-Original Message- From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20, 2002 7:59 PM To: Tomcat Users List Subject: Re: newbie Q That's the context for the webapp ROOT . If you point your browser to your tomcat server like , http://localhost:8080/ ; That's the page that gets served to you. And there should be context for that webapp in server.xml as well. ps. There is only one server.xml, and it is located in $CATALINA_HOME/conf/ So presumably one can change the root webapp without putting it under a directory named $CATALINA_HOME/webapps/ROOT if they are handy with the server.xml file and know the correct Context node attributes. [...] Ah, after checking the config docs, it seems that this is done by specifying a Context node with an empty-string path attribute. Erik -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: File Path Problem...
I think you could store it in WEB-INF and use ServletContext.getRealPath(/WEB-INF). Andreas Probst [EMAIL PROTECTED] wrote on 21.11.2002 12:19:51: Hello, maybe you could save the absolute path inside a properties file or pass it as an init parameter in web.xml. For each location of your app you would have to set this path appropriately. You could use absolute paths and wouldn't need to change the source code of the application. Regards, Andreas On 21 Nov 2002 at 14:31, Harsha Yalagach wrote: Hello, I am running Tomcat 4.1 on Windows 2000 as a service. I have written a JSP page where in I am trying to read an XML. If I try to access the file using absolute path, for eg. c:\abc\xyz.xml, the page works without any problem. But if i try to access it thru relative path, for eg. ../data/xyz.xml, the tomcat will throw a FileNotFoundException saying that xyz.xml doesnt exist in SYSTEM-ROOT\System32 dir. The reason behind this is that the JSP is tring to access the file from where JVM was started according to Java Documentation, ie SYSTEM-ROOT\System32 directory where the Service Control Manager starts the Tomcat service which in turn starts the JVM. So the question is, is there any other way I can use a relative path inside my application to access a file? (I dont want to use absolute path as my application has to be distributed in many places). Thanks in advance... Warm Regards, Harsha Yalagach -- Cerebra Integrated Technologies Ltd., Bangalore, India -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: File Path Problem...
Hi Andreas, That doesnt solve my problem as our client wants the application without any configuration hassles and moreover the deployment platform is also not specific. It may be deployed on win32 machines or Solarix machines or Linux machines... :( Any more ideas... Regards, Harsha -Original Message- From: Andreas Probst [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 17:50 To: Tomcat Users List Subject: Re: File Path Problem... Hello, maybe you could save the absolute path inside a properties file or pass it as an init parameter in web.xml. For each location of your app you would have to set this path appropriately. You could use absolute paths and wouldn't need to change the source code of the application. Regards, Andreas On 21 Nov 2002 at 14:31, Harsha Yalagach wrote: Hello, I am running Tomcat 4.1 on Windows 2000 as a service. I have written a JSP page where in I am trying to read an XML. If I try to access the file using absolute path, for eg. c:\abc\xyz.xml, the page works without any problem. But if i try to access it thru relative path, for eg. ../data/xyz.xml, the tomcat will throw a FileNotFoundException saying that xyz.xml doesnt exist in SYSTEM-ROOT\System32 dir. The reason behind this is that the JSP is tring to access the file from where JVM was started according to Java Documentation, ie SYSTEM-ROOT\System32 directory where the Service Control Manager starts the Tomcat service which in turn starts the JVM. So the question is, is there any other way I can use a relative path inside my application to access a file? (I dont want to use absolute path as my application has to be distributed in many places). Thanks in advance... Warm Regards, Harsha Yalagach -- Cerebra Integrated Technologies Ltd., Bangalore, India -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Cerebra Integrated Technologies Ltd., Bangalore, India -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: MacOS
I'm running tomcat (4.1.12) on Mac OS X. Not in production (yet), but everything seems to work as expected ... On Thursday, November 21, 2002, at 12:33 PM, Felipe Schnack wrote: Anyone have experience with Tomcat on MacOS X servers? Or with java in general? I would like to know if these machines are good options for serving jsp or I should stick with PCs... -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: File Path Problem...
Use ServletContext.getResourceAsStream() and store the XML file in WEB-INF/classes Using a file path is very, very bad for web applications as the web application may be deployed as a WAR where the file path just doesn't exist, or it may be deployed into an environment (such as a database) where a file path makes no sense. The Servlet specification is quite clear on this topic. The only thing you can rely on is that you can deploy your application as a WAR file, and that you can get access to a temporary bit of filesystem via the javax.servlet.context.tempdir context attribute. Anything else you may want to do is application server specific and therefore not portable. Cheers, -- jon Harsha Yalagach wrote: Hi Andreas, That doesnt solve my problem as our client wants the application without any configuration hassles and moreover the deployment platform is also not specific. It may be deployed on win32 machines or Solarix machines or Linux machines... :( Any more ideas... Regards, Harsha -Original Message- From: Andreas Probst [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 17:50 To: Tomcat Users List Subject: Re: File Path Problem... Hello, maybe you could save the absolute path inside a properties file or pass it as an init parameter in web.xml. For each location of your app you would have to set this path appropriately. You could use absolute paths and wouldn't need to change the source code of the application. Regards, Andreas On 21 Nov 2002 at 14:31, Harsha Yalagach wrote: Hello, I am running Tomcat 4.1 on Windows 2000 as a service. I have written a JSP page where in I am trying to read an XML. If I try to access the file using absolute path, for eg. c:\abc\xyz.xml, the page works without any problem. But if i try to access it thru relative path, for eg. ../data/xyz.xml, the tomcat will throw a FileNotFoundException saying that xyz.xml doesnt exist in SYSTEM-ROOT\System32 dir. The reason behind this is that the JSP is tring to access the file from where JVM was started according to Java Documentation, ie SYSTEM-ROOT\System32 directory where the Service Control Manager starts the Tomcat service which in turn starts the JVM. So the question is, is there any other way I can use a relative path inside my application to access a file? (I dont want to use absolute path as my application has to be distributed in many places). Thanks in advance... Warm Regards, Harsha Yalagach -- Cerebra Integrated Technologies Ltd., Bangalore, India -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Cerebra Integrated Technologies Ltd., Bangalore, India -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Jon Eaves [EMAIL PROTECTED] http://www.eaves.org/jon/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Supressing Authentication Box in Apache
Hi, I need to supress Authentication Box in Apache but need to be Authenticated. I will pass the user/pwd as URLStrng for the pagethe Apache server need to authenticate without showing the Dialog Box. How it can be done. can anyone help me in this regard Regards Laxmikanth M S Off* : 6610330 extn 1256 Res* : 5267150 http://www.sonata-software.com Coming together is the beginning, staying together is progress and working together is Success What lies behind us and what lies before us are tiny matters compared to what lies within us - Emerson * Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: MacOS
Felipe Schnack wrote: Anyone have experience with Tomcat on MacOS X servers? Or with java in general? I would like to know if these machines are good options for serving jsp or I should stick with PCs... I'm running Apache + mod_jk + Tomcat 4.1.12 + OpenSSL + MySQL on Mac OS 10.2 and it all runs just fine! Check the archives - someone posted recently regarding probs with Mac OS X *Server* - IIRC, WebObjects is pre-installed, and generates some conflicts with Tomcat. Martin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Integrating / Connecting HTTPD 2.0.43 with TOMCAT 4.1.12
I don't use Windows, but two things: 1) pathnames with spaces can cause problems...people seem to have more luck using pathnames without spaces, such as apache instead of Apache Group. Yes, the Apache installer puts things in Apache Group, but the Apache team has no idea that you're going to be running Tomcat as well. 2) in workers.properties, you can remove all references to ajp14, as well as all of the worker.inprocess.* and worker.loadbalance.* lines. In a one-to-one configuration, those lines do nothing. John -Original Message- From: Mike Young [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20, 2002 8:25 PM To: [EMAIL PROTECTED] Subject: Integrating / Connecting HTTPD 2.0.43 with TOMCAT 4.1.12 First of all is this version combination possible? I can get Tomcat (4.1.12) installed and working on its own and I can get HTTPD (2.0.43) working on its own, but as soon as I load the mod_jk module in my httpd.conf file I get The requested operation has failed and no obvious error logs to help problem solve the issue. My configuration / Install process was as follows (Win 2K Server): 1) Installed Apache HTTPD 2.0.43 2) Installed Java 2 System Developers Kit (j2sdk1.4.1_01) 3) Installed Tomcat 4.1.12 4) Created a Service for Tomcat - Can now see tomcat pages at http://hostname:8080 - Can now see httpd pages at http://hostname:80 5) Downloaded mod_jk-2.0.42.dll from (http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk /release/v1.2.0/bin/win32/) 6) Edited the server.xml file in the conf subdirectory of the Tomcat directory as follows: Immediately following the Server port=8005 ... tag near the top of the file, I added the following tag: Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=e:/Program files/Apache Group/Apache2/modules/mod_jk.dll jkDebug=info workersConfig=E:/jakarta-tomcat-4.1.12/conf/jk/workers.properties jkLog=E:/jakarta-tomcat-4.1.12/logs/mod_jk.log / About halfway down the file, following the Host name=localhost ... tag I added the following tag: Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true / 7) Created a new directories called /jk in the Tomcat conf directory . 8) Created a workers.properties file in the new jk folder with the following: workers.tomcat_home=d:/Apache/Tomcat workers.java_home=$(JAVA_HOME) ps=\ worker.list=ajp13, ajp14 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.ajp14.port=8010 worker.ajp14.host=localhost worker.ajp14.type=ajp14 worker.ajp14.secretkey=secret worker.ajp14.credentials=myveryrandomentropy worker.ajp14.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13 worker.inprocess.type=jni worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps )tomcat.jar worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$ (ps)classic$(ps)jvm.dll worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)in process.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)in process.stderr 9) Restarted the Tomcat server and it automatically created another directory in its conf directory called auto with a file called mod_jk.conf. 10 Copied the contents of the newly created mod_jk.conf file into the Apache HTTPD httpd.conf file directly after the last load module Load Module #LoadModule ssl_module modules/mod_ssl.so They were: # Tomcat Mod_jk Connector IfModule !mod_jk.c LoadModule jk_module e:/Program files/Apache Group/Apache2/modules/mod_jk.dll /IfModule JkWorkersFile E:/jakarta-tomcat-4.1.12/conf/jk/workers.properties JkLogFile E:/jakarta-tomcat-4.1.12/logs/mod_jk.log JkLogLevel info VirtualHost localhost ServerName localhost JkMount /admin ajp13 JkMount /admin/* ajp13 JkMount /webdav ajp13 JkMount /webdav/* ajp13 JkMount /examples ajp13 JkMount /examples/* ajp13 JkMount /tomcat-docs ajp13 JkMount /tomcat-docs/* ajp13 JkMount /manager ajp13 JkMount /manager/* ajp13 /VirtualHost 10) I then restart the Apache web server and I get The requested operation has failed and no obvious error logs Can anyone help please? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: symbolic links in 4.1.12
Symbolic links are disabled in 4.1.12. The workaround is to use a tag in server.xml, though I believe the workaround is broken in .12 and .13. Search the archives, this comes up quite a bit (like every day). We don't use symlinks, so I can't tell you specifically what the workaround is. John -Original Message- From: Eugene Gluzberg [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20, 2002 11:26 PM To: Tomcat Users List Subject: symbolic links in 4.1.12 Was ... Re: problem with Classloader and symbolic links in 4.1.12 ok, i installed ant and am now putting classes in the right places. However, it seems that images and plain html files wont load through symbolic links either. There must be a setting somewhere for this! Jon Eaves wrote: it would make my life so much easier since I am trying to develop an app with thousands of classes and hundreds of packages, modifying my build system to send all the classes to the tomcat dir would be a hassle. The simplest way is to setup the context so that it points to your development environment. There is plenty of great examples of exactly how to do this here: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html ** Which everybody who is developing web applications really should read. ** The context element should end up looking something like this: Context path=/myapp docBase=/full/path/to/my/build reloadable=true debug=99 Loader className=org.apache.catalina.loader.WebappLoader debug=0 loaderClass=org.apache.catalina.loader.WebappClassLoader checkInterval=1 reloadable=true delegate=false/ Logger className=org.apache.catalina.logger.FileLogger prefix=myapp_log suffix=.txt debug=99 timestamp=true / /Context With the Loader element included, once the configuration is done once, you can just recompile your application directly into /full/path/to/my/build/WEB-INF/classes and it will update the classes nicely. Cheers, -- jon -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
webapp fails to start using /manager start command
Hello, I checked the archives for this but couldn't find the answer to my problem. I created a new webapp yesterday and put it into the $CATALINA_HOME/webapps directory. From this list I learned that it is possible to have a webapp recognized by restarting Tomcat *OR* by adding a Context node into $CATALINA_HOME/conf/server.xml that points to the path of the webapp. Since I do not have root access on this server, I cannot change root-owned files and have asked my system administrator to restart Tomcat for me, to get my webapp recognized. He sent me an email saying that he gave me access to the manager webapp, which I have studied from the HOWTO in the documentation. I understand how to use it, but I cannot get my webapp to start. Is it possible to get a webapp to start (for the very first time) from the manager webapp? Or does Tomcat really need to be restarted completely? When I list the webapps on the server using http://domainname:8080/manager/list I can see a list of the webapps that are recognized, including my webapp. But all of the other webapps are listed as running, and my own webapp looks like this: /epricetest:stopped:0 So I thought that I might have to start the webapp using the start command, so I try this: http://domainname:8080/manager/start?path=/epricetest But the error message I receive when I try this is FAIL - Application at context path /epricetest could not be started This does not match any of the error messages detailed in the manager app HOWTO, so I am unsure of what is causing the problem. Could it be that to start a webapp for the very first time, Tomcat must really be restarted? (In which case, there is no way to do it without bugging my system administrator again?) Any suggestions? Thank you, Erik -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: webapp fails to start using /manager start command
Have you checked the log files to see if there is a reason as to why the app could not be started? -Original Message- From: Price, Erik [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 21. November 2002 14:43 To: [EMAIL PROTECTED] Subject: webapp fails to start using /manager start command Hello, I checked the archives for this but couldn't find the answer to my problem. I created a new webapp yesterday and put it into the $CATALINA_HOME/webapps directory. From this list I learned that it is possible to have a webapp recognized by restarting Tomcat *OR* by adding a Context node into $CATALINA_HOME/conf/server.xml that points to the path of the webapp. Since I do not have root access on this server, I cannot change root-owned files and have asked my system administrator to restart Tomcat for me, to get my webapp recognized. He sent me an email saying that he gave me access to the manager webapp, which I have studied from the HOWTO in the documentation. I understand how to use it, but I cannot get my webapp to start. Is it possible to get a webapp to start (for the very first time) from the manager webapp? Or does Tomcat really need to be restarted completely? When I list the webapps on the server using http://domainname:8080/manager/list I can see a list of the webapps that are recognized, including my webapp. But all of the other webapps are listed as running, and my own webapp looks like this: /epricetest:stopped:0 So I thought that I might have to start the webapp using the start command, so I try this: http://domainname:8080/manager/start?path=/epricetest But the error message I receive when I try this is FAIL - Application at context path /epricetest could not be started This does not match any of the error messages detailed in the manager app HOWTO, so I am unsure of what is causing the problem. Could it be that to start a webapp for the very first time, Tomcat must really be restarted? (In which case, there is no way to do it without bugging my system administrator again?) Any suggestions? Thank you, Erik -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache cannot serve html files in webapp directory
It doesn't matter if Apache is installed as root...it doesn't run as root. It starts as root so that it can bind to port 80, but all HTTP requests are handled by forked children that run as a non-root user specified by the administrator (typically user nobody, group nobody). This is for security. Thus, your Apache user needs permissions to the Tomcat directory tree...starting Apache as root will not provide root override on those permissions automatically. John -Original Message- From: Irwan [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 4:50 AM To: Tomcat Users List Subject: Re: Apache cannot serve html files in webapp directory Bill Barker wrote: Usually this is a problem with file permissions. The Apache user (I think that this defaults to apache on RedHat, but I don't use RedHat that much) needs to have read+execute permissions on all directories upto and including the examples directory. In practice, this usually means that they all need rwxr-xr-x permissions, unless you want to setup group access yourself. Irwan [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all, I have installed mod_jk but cannot get apache to serve html files from tomcat webapp. The interesting thing, Apache can serve gif files but when the request is for html files, it returns this: Forbidden You don't have permission to access /examples/index.html on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.0.43 Server at 192.168.0.1 Port 80 I have verified that Tomcat can serve the html thru the 8080 port. Here is my http.conf files. I followed what was written in Tomcat website on how to configure Apache: http.conf: # Load mod_jk module LoadModule jk_module /usr/lib/apache2/mod_jk.so Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Allow from all /Directory # Where to find workers.properties JkWorkersFile /etc/httpd2/conf/workers.properties # Send servlet for context /examples to worker named worker1 JkMount /examples/servlet/* ajp13 # Send JSPs for context /examples to worker named worker1 JkMount /examples/*.jsp ajp13 end of http.conf extract My environment is: Apache 2.0.43 Red Hat Linux 7.3 Tomcat 4.1.12 mod_jk-ap20-1.2.0-2jpp.i386.rpm Can anyone help please. Regards, eone -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hi Bill, It worked. What I do not understand is both Apache and Tomcat were installed as root so Apache should have access to Tomcat webapp, or do they. Thanks for the help Rgds, Irwan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Supressing Authentication Box in Apache
This is an Apache question, not a Tomcat question. Check the HTTP spec...you can pass usernames and passwords on the URL. John -Original Message- From: Laxmikanth M.S. [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 8:22 AM To: [EMAIL PROTECTED] Subject: Supressing Authentication Box in Apache Hi, I need to supress Authentication Box in Apache but need to be Authenticated. I will pass the user/pwd as URLStrng for the pagethe Apache server need to authenticate without showing the Dialog Box. How it can be done. can anyone help me in this regard Regards Laxmikanth M S Off* : 6610330 extn 1256 Res* : 5267150 http://www.sonata-software.com Coming together is the beginning, staying together is progress and working together is Success What lies behind us and what lies before us are tiny matters compared to what lies within us - Emerson * Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat n apache
Tomcat is a servlet container. It is used with JSP and servlets. Apache is an HTTP server. It serves web pages. John -Original Message- From: puneet sachar [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 5:01 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: tomcat n apache sir.. tell me what is tomcat and apache.. what is the difference b/w both.. where we can use tomcat and where apache.. regards Puneet __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: init parameters acces
Hi, Check the tomcat logs on startup: if you posted your entire web.xml, then your web.xml is incomplete and you'll see errors in the tomcat logs. Furthermore, as a matter of good design, don't override init(ServletConfig config). Override init() instead. That way you don't have to call init(config) yourself. Yoav Shapira Millennium ChemInformatics -Original Message- From: Javier Linares [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20, 2002 12:59 PM To: [EMAIL PROTECTED] Subject: init parameters acces Hi, I'm trying to access my init parameters in my web.xml file located in my install_dir/webapps/ROOT/WEB-INF folder with this init method: public void init(ServletConfig config) throws ServletException { super.init(config); message = config.getInitParameter(message); servletName = config.getServletName(); } Here's my web.xml: web-app servlet servlet-name ShowMsg /servlet-name servlet-class coreservlets.ShowMessage /servlet-class init-param param-name message /param-name param-value whatever /param-value /init-param /web-app Unfortunately, message is always return as null by config.getInitParameter(message). Is my web.xml file in the correct folder? Thanx for the answer Javier -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Apache cannot server jsp file
Hi all Initially Apache was able to serve jsps from example webapp until i deployed jetspeed.war. Nothing seems to work now, I get Internal Server Error. Even after deleting Jetspeed.war and httpd.conf . I supect it s Tomcat that is causing it because when I start tomcat. I get this error message in Catalina.out log shown below My environment is: Apache 2.0.43 Red Hat Linux 7.3 Tomcat 4.1.12 mod_jk-ap20-1.2.0-2jpp.i386.rpm Has anybody encountered this problem?Please help catalina.out: INFO: Initializing Coyote HTTP/1.1 on port 8080 ServerLifecycleListener: createMBeans: MBeanException java.lang.Exception: ManagedBean is not found with Ajp13Connector at org.apache.catalina.mbeans.MBeanUtils.createMBean(Unknown Source) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Unknown Source) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Unknown Source) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Unknown Source) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Unknown Source) at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(Unknown Source) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown Source) at org.apache.catalina.core.StandardServer.start(Unknown Source) at org.apache.catalina.startup.Catalina.start(Unknown Source) at org.apache.catalina.startup.Catalina.execute(Unknown Source) at org.apache.catalina.startup.Catalina.process(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Unknown Source) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: proper use of servlet contexts
Hi, A couple of suggestions. Basically, we develop all of our applications under contexts. Each one a separate context. When they go live, they go to the default context so users don't have to request everything with /context/blah. This means that if Don't do this. Deploy them to their own contexts if possible. This will let you do much more later in terms of security, administration, etc. If you're really hung up on users not having /context in their bookmarks, have some redirect files (just for the app entry points: the things users would bookmark) in the root context. the application has links to /context/anything.jsp or /context/servletpath (instead of anything.jsp and servletpath) they'll break. So I guess my real question is, what's the best way to design the application so these problems don't arise. Or is this just a configuration issue? Use relative links. For example, if this is your structure: /myApp -- some html files here -- /jsp -- /images -- /WEB-INF -- web.xml -- lib -- classes For a JSP to link to an HTML page, it would use a href=../someHtmlFile.htmlFile/a For a servlet to link to a JSP: a href=../jsp/jspFileName.jspJSP/a etc. Keep all links relative. No /myApp/jsp/someJsp, just ../jsp/someJsp. It'll save you trouble ;) Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.1.12 ArrayIndexOutOfBoundsException in InternalOutputBuffer.write()
Hi I'm seeing an occasional ArrayIndexOutOfBoundsException in the org.apache.coyote.http11.InternalOutputBuffer write method. It appears that the buffer holding the response headers (which has a default size of 32000 bytes) is occasionally overflowing. I can't reliably repeat this so I'm not sure under what circumstances it occurs - I have to hammer the site for a while to get it to repeat! I added some logging to the code to see what the buf byte array had in it just as it was about to overflow and it appears to have multiple responses of the form: HTTP/1.1 200 OK Content-Type: text/html;charset=ISO-8859-1 Cache-Control: no-cache, post-check=0, pre-check=0 Pragma: no-cache Expires: Thu, 01 Dec 1994 16:00:00 GMT Transfer-Encoding: chunked Date: Thu, 21 Nov 2002 12:02:39 GMT Server: Apache Coyote/1.0 Transfer-Encoding: chunked Date: Thu, 21 Nov 2002 12:02:39 GMT Server: Apache Coyote/1.0 Transfer-Encoding: chunked Date: Thu, 21 Nov 2002 12:02:39 GMT Server: Apache Coyote/1.0 Transfer-Encoding: chunked Date: Thu, 21 Nov 2002 12:02:39 GMT Server: Apache Coyote/1.0 with an arbitrary number of repeats of the last three lines. I'm not sure why the buffer would have more than one response in it, and I'm not sure why the transfer encoding, date and server lines are repeated so often. Any ideas? Since I've only just started looking at the source I'm not really familiar enough with the flow of the code to know if this is expected behaviour. I guess a short term fix would be to resize buf as required rather than just assuming it has the capacity, but it would be nice to know why so much stuff ends up in the array sometimes! Any ideas? Neil -- Neil MilneHippo IT Consultants Ltd -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Fwd: Startup Problem - Win2K - How To Get Stacktrace?
Could it be that until Ant is installed, that Tomcat does not have all of the class files it needs for deployment and startup? regards, Douglas Reames Hi, I am trying to run Tomcat 4.1 on a Win2K box, and 'startup' is problematic. I have set the environment variables, and pointed the JAVA_HOME to JDK1.3. And yet, I the startup does not complete. I have included the script output - environment variables - below. When it runs, I can see that I am getting a stacktrace, but it runs in another DOS window that is gone before I can read it. What I would like to get instruction on is how do I tell Tomcat to either: [A] Direct the stacktrace to a log file, OR [B] Force Tomcat to send its output ( stacktrace ) to the DOS window that I issue the 'startup.bat' command on. Thanks ahead for any assistance. Regards, Douglas Reames G:\%CATALINA_HOME%\bin\startup Using CATALINA_BASE: G:\Tomcat4.1 Using CATALINA_HOME: G:\Tomcat4.1 Using CATALINA_TMPDIR: G:\Tomcat4.1\temp Using JAVA_HOME: G:\jdk1.3.1_04 execjava is start Tomcat G:\jdk1.3.1_04\bin\java java_opts is catalina_opts is debug_opts is java_endorsed_dirs is G:\Tomcat4.1\bin;G:\Tomcat4.1\common\endorsed classpath is G:\jdk1.3.1_04\lib\tools.jar;G:\Tomcat4.1\bin\bootstrap.jar catalina_base is G:\Tomcat4.1 catalina_home is G:\Tomcat4.1 catalina_temp is G:\Tomcat4.1\temp mainclass org.apache.catalina.startup.Bootstrap cmd_line action start G:\ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.1.12 ArrayIndexOutOfBoundsException in InternalOutputBuffer.write()
Hi, I had the EXACT same thing happen. A temporary solution, applied in 4.1.14-LE, was to increase the buffer size to 48K. But I've yet to test this, and I suspect it's not the perfect solution. Yoav Shapira Millennium ChemInformatics -Original Message- From: Neil Milne [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 9:14 AM To: [EMAIL PROTECTED] Subject: Tomcat 4.1.12 ArrayIndexOutOfBoundsException in InternalOutputBuffer.write() Hi I'm seeing an occasional ArrayIndexOutOfBoundsException in the org.apache.coyote.http11.InternalOutputBuffer write method. It appears that the buffer holding the response headers (which has a default size of 32000 bytes) is occasionally overflowing. I can't reliably repeat this so I'm not sure under what circumstances it occurs - I have to hammer the site for a while to get it to repeat! I added some logging to the code to see what the buf byte array had in it just as it was about to overflow and it appears to have multiple responses of the form: HTTP/1.1 200 OK Content-Type: text/html;charset=ISO-8859-1 Cache-Control: no-cache, post-check=0, pre-check=0 Pragma: no-cache Expires: Thu, 01 Dec 1994 16:00:00 GMT Transfer-Encoding: chunked Date: Thu, 21 Nov 2002 12:02:39 GMT Server: Apache Coyote/1.0 Transfer-Encoding: chunked Date: Thu, 21 Nov 2002 12:02:39 GMT Server: Apache Coyote/1.0 Transfer-Encoding: chunked Date: Thu, 21 Nov 2002 12:02:39 GMT Server: Apache Coyote/1.0 Transfer-Encoding: chunked Date: Thu, 21 Nov 2002 12:02:39 GMT Server: Apache Coyote/1.0 with an arbitrary number of repeats of the last three lines. I'm not sure why the buffer would have more than one response in it, and I'm not sure why the transfer encoding, date and server lines are repeated so often. Any ideas? Since I've only just started looking at the source I'm not really familiar enough with the flow of the code to know if this is expected behaviour. I guess a short term fix would be to resize buf as required rather than just assuming it has the capacity, but it would be nice to know why so much stuff ends up in the array sometimes! Any ideas? Neil -- Neil Milne Hippo IT Consultants Ltd -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JMS / InitialContext question
Hi, Using tomcat's built-in JNDI support, and placing the JMS distribution (jms.jar from java.sun.com) in my WEB-INF/lib directory, I should be able to send a JMS message to a queue on a remote server, right? The remote server is a full server (weblogic) with a JMS implementation of its own. I don't need tomcat to have any of its own queues, topics, destinations etc. The current design of the app manages to send these JMS messages to the remote weblogic server, but it uses a weblogic InitialContextFactory class. So it has a jar with some weblogic classes in /WEB-INF/lib. I'd like to get rid of this jar, for licensing and portability reasons. Can I use tomcat's url context factory instead? Any help is appreciated ;) Thanks, Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Oracle Connection Pool - Global Naming Resource - HOW TO
I had problems earlier getting a Global Naming Resource database connection pool to work with my Oracle db. The only reply I got was that someone else had the same problem! I now have it working, so for those interested, here is the HOW TO: When defining the parameters for the db pool (say TESTdb) ensure that the maxActive parameter is not set too high, i.e. that Oracle has enough connections available for the pool (Oracle config parameter max_connections). Mine was set to 100 in server.xml, and when the pool tried to establish itself, it just sat and waited for 100 connections to become available! Every app that wants to use the connection pool should have a Context entry in server.xml containing a ResourceLink to the name of the pool. ResourceLink name=testDb global=jdbc/TESTdb type=javax.sql.DataSource/ The application can then connect using: Context ctx = null; ctx = new InitialContext(); Context envCtx = (Context) ctx.lookup(java:/comp/env/); DataSource ds = (DataSource) envCtx.lookup(/testDb); Connection conn = ds.getConnection(); No entries are required in the application web.xml to reference the resource. Have Fun! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
apache-tomcat configuration for java server pages
hi we are in a project that which is a e-mail reader which involves jsp, voicexml.the problem has arised with the part of trying to configure apache-tomcat for java server pages. please look into the folowing: WEB.XML FILE servlet servlet-nameWebAppRegistrant/servlet-name servlet-classorg.machino.gardenpath.WebAppRegistrant/servlet-class init-param param-namegardenpath.registry.url/param-name param-valuehttp://localhost:8080/gardenpath/registrar/param-value /init-param init-param param-namegardenpath.httpserver.port/param-name param-value8080/param-value /init-param load-on-startup1/load-on-startup /servlet the default path taken by it is gardenpath as mentioned above. for our project we need to configure the web.xml file in such a way that it configures our javaserver pages. could u please help us in this and as to what is going on with this, how to change the entire servlet code above to jsp and as to how to register to get our java server pages running. also need information regarding as to how to use tomcat manager application. we would be greatly helpful if u can help us in this regard. waiting for ur reply.thanking u sunil k.n.s _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Retrieving SSL client certificates from the Request
Hi all, Can I retrieve the SSL client certificate from an incoming request and use it in another one? Let me explain the background: We have implemented a server that only accepts SOAP requests. The purpose of this server is to act as a job dispatcher for a cluster of N machines. The jobs to execute are defined by the users, so we designed it to have a public API (accesed via SOAP calls), with which we can define jobs, upload executable files and resources and control execution in the cluster. Currently, it uses basic authentication for all connections, but we are planning to pass to a two-way SSL authentication model in a short time. Users access this server through different front-ends, ones more specialized than others. Some of them are themselves web applications. We want our front-end to capture the client certificate from a request, and use it to authenticate itself in its calls to our SOAP server. We need this capability, because each user can have different permissions, and we don't want all connections through the front-end to be made with a common certificate. Also, we want to avoid the need to register the clients in our front-end, as it should act as a simple proxy to our soap service. Is this possible from a servlet? We are now using Tomcat 3.3.1, and migrating to 4.1.12 for client certificate authentication support. Any help would be appreciated -- GRIDSYSTEMSRodrigo Ruiz Aguayo Parc Bit - Son EspanyolAnalista Programador 07120 Palma de Mallorca[EMAIL PROTECTED] Baleares - España Tel:+34-971435085 www.gridsystems.comFax:+34-971435082 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Startup Problem - Win2K - How To Get Stacktrace?
Tomcat doesn't require Ant unless you are building it. Have you looked at the log files in CATALINA_HOME\logs for any ideas. The other option is to open a command window, cd to CATALINA_HOME\bin and run startup. regards, Lance Smith -Original Message- From: Douglas Reames [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 8:26 AM To: [EMAIL PROTECTED] Subject: Fwd: Startup Problem - Win2K - How To Get Stacktrace? Could it be that until Ant is installed, that Tomcat does not have all of the class files it needs for deployment and startup? regards, Douglas Reames Hi, I am trying to run Tomcat 4.1 on a Win2K box, and 'startup' is problematic. I have set the environment variables, and pointed the JAVA_HOME to JDK1.3. And yet, I the startup does not complete. I have included the script output - environment variables - below. When it runs, I can see that I am getting a stacktrace, but it runs in another DOS window that is gone before I can read it. What I would like to get instruction on is how do I tell Tomcat to either: [A] Direct the stacktrace to a log file, OR [B] Force Tomcat to send its output ( stacktrace ) to the DOS window that I issue the 'startup.bat' command on. Thanks ahead for any assistance. Regards, Douglas Reames G:\%CATALINA_HOME%\bin\startup Using CATALINA_BASE: G:\Tomcat4.1 Using CATALINA_HOME: G:\Tomcat4.1 Using CATALINA_TMPDIR: G:\Tomcat4.1\temp Using JAVA_HOME: G:\jdk1.3.1_04 execjava is start Tomcat G:\jdk1.3.1_04\bin\java java_opts is catalina_opts is debug_opts is java_endorsed_dirs is G:\Tomcat4.1\bin;G:\Tomcat4.1\common\endorsed classpath is G:\jdk1.3.1_04\lib\tools.jar;G:\Tomcat4.1\bin\bootstrap.jar catalina_base is G:\Tomcat4.1 catalina_home is G:\Tomcat4.1 catalina_temp is G:\Tomcat4.1\temp mainclass org.apache.catalina.startup.Bootstrap cmd_line action start G:\ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: webapp fails to start using /manager start command
Eric, Great! I didn't know about the log files, but that had the answer. A SAX parse error in my WEB-INF/web.xml file. This is kind of surprising since I just copied the web.xml file from the URL at http://domainname:8080/tomcat-docs/appdev/web.xml.txt and removed the .txt extension. I realize that this example file is intended to be just that, an example, but did anyone know that it does not validate? There is a servlet node called graph that is missing a servlet-class node. It took me a few tries, some judicious log-reading, and some web.xml-editing, but I managed to get my webapp started! The HelloWorld is just a start, but now I can move forward. QUESTION: How important is the web.xml file to a webapp? All I did was comment the offending node and the webapp started. I still have completely invalid data in the web.xml file. The reason for this is that I have not really designed a webapp; this is just a testbed for miscellaneous servlets. So until I have designed a true web application and created a correct web.xml file, does the web.xml file really matter? Thanks again to all who help me on this list. (Please CC me in response as I am a digester, thank you) Erik -Original Message- From: Roberts, Eric [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 8:48 AM To: Tomcat Users List Subject: RE: webapp fails to start using /manager start command Have you checked the log files to see if there is a reason as to why the app could not be started? -Original Message- From: Price, Erik [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 21. November 2002 14:43 To: [EMAIL PROTECTED] Subject: webapp fails to start using /manager start command Hello, I checked the archives for this but couldn't find the answer to my problem. I created a new webapp yesterday and put it into the $CATALINA_HOME/webapps directory. From this list I learned that it is possible to have a webapp recognized by restarting Tomcat *OR* by adding a Context node into $CATALINA_HOME/conf/server.xml that points to the path of the webapp. Since I do not have root access on this server, I cannot change root-owned files and have asked my system administrator to restart Tomcat for me, to get my webapp recognized. He sent me an email saying that he gave me access to the manager webapp, which I have studied from the HOWTO in the documentation. I understand how to use it, but I cannot get my webapp to start. Is it possible to get a webapp to start (for the very first time) from the manager webapp? Or does Tomcat really need to be restarted completely? When I list the webapps on the server using http://domainname:8080/manager/list I can see a list of the webapps that are recognized, including my webapp. But all of the other webapps are listed as running, and my own webapp looks like this: /epricetest:stopped:0 So I thought that I might have to start the webapp using the start command, so I try this: http://domainname:8080/manager/start?path=/epricetest But the error message I receive when I try this is FAIL - Application at context path /epricetest could not be started This does not match any of the error messages detailed in the manager app HOWTO, so I am unsure of what is causing the problem. Could it be that to start a webapp for the very first time, Tomcat must really be restarted? (In which case, there is no way to do it without bugging my system administrator again?) Any suggestions? Thank you, Erik -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Not using the usual/ normal process, is their another way of executing a servlet?
no, you set up a background thread(using ServletContextListener) that calls a URL at the specified time to complete the task. This URL can be a normal servlet/jsp. you have to make sure that you end the thread on shutdown or Tomcat will not shutdown gracefully. Charlie -Original Message- From: Nathan Smith [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20, 2002 6:28 PM To: Tomcat Users List Subject: Re: Not using the usual/ normal process, is their another way of executing a servlet? Thanks for response Charlie. So are you saying by maybe setting up a servlet mapping in the web.xml I can call that so a scheduling servlet is run, which will take the task string as a parameter any any other data the task needs and forward the request,response to the task servlet. Can calling the URL work by using HttpServlet.getServletContext().getResource(http://myserver/sc heduler/doTask );, which returns a URL object? The point I am at when it comes to executing the servlet I don't have access to any HttpServletRequest or HttpServletResponse so it makes it a bit trickier. Nathan. - Original Message - From: Cox, Charlie [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 10:16 AM Subject: RE: Not using the usual/ normal process, is their another way of executing a servlet? why not set up a URL that your scheduler can call? http://myserver/scheduler/doTask http://myserver/scheduler/doTask This could run a servlet that would do the task. You can set up filters or valves to restrict access to localhost. Charlie -Original Message- From: Nathan Smith [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20, 2002 4:06 PM To: Tomcat Users List Subject: Not using the usual/ normal process, is their another way of executing a servlet? I have a schedule program which takes a task string being some program or servlet and needs to be able to run the program or task in the background in it's own thread. The problem is that in this case the servlet is not being executed through a browser, a jsp page, or from another servlet. I was wondering if anybody had used or tried another way of running a servlet. I do have an instance of the starting servlet that starts up the background scheduler, so I have access to that servlets methods and the servlet context and servlet config. I am actually trying to get the URL using the servlet instance.getServletContext().getResource(task); I have no idea if this will work and what I can then do after I have created the URL object. Any ideas? Nathan. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
mod_webapp Compile Problems on FreeBSD 4.7
Our shop is running FreeBSD 4.7 and we are experiencing some curious problems with our attempts to compile mod_webapp. The compile warnings involve several missing files, all of which can be found in the source of our Apache 1.3.27 installation. Even when the include files are explicitly included (gcc -I x/y/httpd.c...) the errors still appear. If anyone else has experienced problems compiling mod_webapp, on ANY system, a short discussion of your problems and your solutions would be most appreciated! Bob Tilley If you don't understand the answer, you don't understand the problem. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
The major.minor version '48.0' is too recent for this tool to understand.
Hello, I'm getting the following error: org.apache.jasper.JasperException: Unable to compile error: Invalid class file format in C:\PROGRA~1\CA\BrightStorPortal\jre\lib\rt.jar(java/lang/Object.class). The major.minor version '48.0' is too recent for this tool to understand. C:\Program Files\CA\BrightStorPortal\jakarta-tomcat-3.3a\work\DEFAULT\ROOT\jsp\Mana ge\addManagedObj_1.java:0: Class java.lang.Object not found in class javax.servlet.GenericServlet. package jsp.Manage; ^ 2 errors at org.apache.tomcat.facade.JasperLiaison.javac(Unknown Source) at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source) at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source) at org.apache.tomcat.core.ContextManager.processRequest(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.processConnection(Htt p10Interceptor.java:161) 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(Unknown Source) The tomcat is 3.3a, the jdk is 1.4.1_01. I know that this error can occur if you are trying to use an old jdk with a jar (or rt.jar in particular) from a newer jdk. I wiped my box clean, installed only the 1.4.1_01 JRE, wiped the java.exe from winnt/system. Checked the system, no other java.exe anywhere. Please help. Thank you, Edward. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Startup Problem - Win2K - How To Get Stacktrace?
To get the output in the same window, in your script where you say action start, change that to action run that runs tomcat in the same command window. hope that helps. -Original Message- From: Lance Smith [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 09:46 To: 'Tomcat Users List' Subject: RE: Startup Problem - Win2K - How To Get Stacktrace? Tomcat doesn't require Ant unless you are building it. Have you looked at the log files in CATALINA_HOME\logs for any ideas. The other option is to open a command window, cd to CATALINA_HOME\bin and run startup. regards, Lance Smith -Original Message- From: Douglas Reames [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 8:26 AM To: [EMAIL PROTECTED] Subject: Fwd: Startup Problem - Win2K - How To Get Stacktrace? Could it be that until Ant is installed, that Tomcat does not have all of the class files it needs for deployment and startup? regards, Douglas Reames Hi, I am trying to run Tomcat 4.1 on a Win2K box, and 'startup' is problematic. I have set the environment variables, and pointed the JAVA_HOME to JDK1.3. And yet, I the startup does not complete. I have included the script output - environment variables - below. When it runs, I can see that I am getting a stacktrace, but it runs in another DOS window that is gone before I can read it. What I would like to get instruction on is how do I tell Tomcat to either: [A] Direct the stacktrace to a log file, OR [B] Force Tomcat to send its output ( stacktrace ) to the DOS window that I issue the 'startup.bat' command on. Thanks ahead for any assistance. Regards, Douglas Reames G:\%CATALINA_HOME%\bin\startup Using CATALINA_BASE: G:\Tomcat4.1 Using CATALINA_HOME: G:\Tomcat4.1 Using CATALINA_TMPDIR: G:\Tomcat4.1\temp Using JAVA_HOME: G:\jdk1.3.1_04 execjava is start Tomcat G:\jdk1.3.1_04\bin\java java_opts is catalina_opts is debug_opts is java_endorsed_dirs is G:\Tomcat4.1\bin;G:\Tomcat4.1\common\endorsed classpath is G:\jdk1.3.1_04\lib\tools.jar;G:\Tomcat4.1\bin\bootstrap.jar catalina_base is G:\Tomcat4.1 catalina_home is G:\Tomcat4.1 catalina_temp is G:\Tomcat4.1\temp mainclass org.apache.catalina.startup.Bootstrap cmd_line action start G:\ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: The major.minor version '48.0' is too recent for this tool to understand.
Hi, The tomcat is 3.3a, the jdk is 1.4.1_01. I know that this error can occur if you are trying to use an old jdk with a jar (or rt.jar in particular) from a newer jdk. I wiped my box clean, installed only the 1.4.1_01 JRE, wiped the java.exe from winnt/system. Checked the system, no other java.exe anywhere. Please help. Tomcat requires the JDK, not JRE, you know ;) Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: The major.minor version '48.0' is too recent for this tool to understand.
This may sound silly, but why? It was working just fine with a 1.3 jre, I believe, and it does have its own tools.jar. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 10:15 AM To: Tomcat Users List Subject: RE: The major.minor version '48.0' is too recent for this tool to understand. Hi, The tomcat is 3.3a, the jdk is 1.4.1_01. I know that this error can occur if you are trying to use an old jdk with a jar (or rt.jar in particular) from a newer jdk. I wiped my box clean, installed only the 1.4.1_01 JRE, wiped the java.exe from winnt/system. Checked the system, no other java.exe anywhere. Please help. Tomcat requires the JDK, not JRE, you know ;) Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Startup Problem - Win2K - How To Get Stacktrace?
Thanks Lance, Your comments helped jog my memory. The startup routine is looking for the InputSource class file from the xml package. Now I have a starting point. Regards, Douglas Reames At 08:45 AM 11/21/2002 -0600, you wrote: Tomcat doesn't require Ant unless you are building it. Have you looked at the log files in CATALINA_HOME\logs for any ideas. The other option is to open a command window, cd to CATALINA_HOME\bin and run startup. regards, Lance Smith -Original Message- From: Douglas Reames [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 8:26 AM To: [EMAIL PROTECTED] Subject: Fwd: Startup Problem - Win2K - How To Get Stacktrace? Could it be that until Ant is installed, that Tomcat does not have all of the class files it needs for deployment and startup? regards, Douglas Reames Hi, I am trying to run Tomcat 4.1 on a Win2K box, and 'startup' is problematic. I have set the environment variables, and pointed the JAVA_HOME to JDK1.3. And yet, I the startup does not complete. I have included the script output - environment variables - below. When it runs, I can see that I am getting a stacktrace, but it runs in another DOS window that is gone before I can read it. What I would like to get instruction on is how do I tell Tomcat to either: [A] Direct the stacktrace to a log file, OR [B] Force Tomcat to send its output ( stacktrace ) to the DOS window that I issue the 'startup.bat' command on. Thanks ahead for any assistance. Regards, Douglas Reames G:\%CATALINA_HOME%\bin\startup Using CATALINA_BASE: G:\Tomcat4.1 Using CATALINA_HOME: G:\Tomcat4.1 Using CATALINA_TMPDIR: G:\Tomcat4.1\temp Using JAVA_HOME: G:\jdk1.3.1_04 execjava is start Tomcat G:\jdk1.3.1_04\bin\java java_opts is catalina_opts is debug_opts is java_endorsed_dirs is G:\Tomcat4.1\bin;G:\Tomcat4.1\common\endorsed classpath is G:\jdk1.3.1_04\lib\tools.jar;G:\Tomcat4.1\bin\bootstrap.jar catalina_base is G:\Tomcat4.1 catalina_home is G:\Tomcat4.1 catalina_temp is G:\Tomcat4.1\temp mainclass org.apache.catalina.startup.Bootstrap cmd_line action start G:\ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: The major.minor version '48.0' is too recent for this tool to understand.
I believe this means that the tools.jar being used is out of sync with your JDK/JRE. Note that you state that you installed 1.4.1_01 JRE, which doesn't include a tools.jar. If you are using a tools.jar from a 1.3.x JDK, I think you would get an error like this. Cheers, Larry -Original Message- From: Grinvald, Edward [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 10:07 AM To: Tomcat Users List Subject: The major.minor version '48.0' is too recent for this tool to understand. Hello, I'm getting the following error: org.apache.jasper.JasperException: Unable to compile error: Invalid class file format in C:\PROGRA~1\CA\BrightStorPortal\jre\lib\rt.jar(java/lang/Objec t.class). The major.minor version '48.0' is too recent for this tool to understand. C:\Program Files\CA\BrightStorPortal\jakarta-tomcat-3.3a\work\DEFAULT\ROO T\jsp\Mana ge\addManagedObj_1.java:0: Class java.lang.Object not found in class javax.servlet.GenericServlet. package jsp.Manage; ^ 2 errors at org.apache.tomcat.facade.JasperLiaison.javac(Unknown Source) at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source) at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source) at org.apache.tomcat.core.ContextManager.processRequest(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(Htt p10Interceptor.java:161) 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(Unknown Source) The tomcat is 3.3a, the jdk is 1.4.1_01. I know that this error can occur if you are trying to use an old jdk with a jar (or rt.jar in particular) from a newer jdk. I wiped my box clean, installed only the 1.4.1_01 JRE, wiped the java.exe from winnt/system. Checked the system, no other java.exe anywhere. Please help. Thank you, Edward. -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Performance Manager
I was just wondering if there was a performance tracking application for Tomcat such that it will have statistics and graphs of usage. Is there also one for Apache by any chance? Thank You, Kevin Kevin Andryc Web Systems Engineer MISER http://www.umass.edu/miser/ Phone: (413)-545-3460 [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problem in starting the TOMCAT
Hi everybody, I am receiving the following error in starting the tomcat thru the manager application. FAIL - Encountered exception java.lang.IllegalStateException: Container StandardContext[/vikas2] has not been started Of late I have been copying some stuff into my directory. Is this something to do with the error. Thanks, VIkas. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat4.1.12 with Apache1.3.27
Hi, Can you please send the steps to Integrate Apache1.3.27 with Tomcat4.1.12 using MOD_JK. For me the Index.jsp of Tomcat page is opening through Apache but none of the other JSP pages open. Regards Laxmikanth M S Off* : 6610330 extn 1256 Res* : 5267150 http://www.sonata-software.com Coming together is the beginning, staying together is progress and working together is Success What lies behind us and what lies before us are tiny matters compared to what lies within us - Emerson * Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: OFF Topic : Any java based API converters from DOC or PDFto HTML
What you need to do is to remove the tag !--This file, generated by JBuilder, may be deleted and regenerated at any time.-- from server8080.xml, and then jbuilder will stop to regenerate the file. /Bjorn - Original Message - From: Nagarjuna Rao Chakka [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 20, 2002 7:36 PM Subject: RE: OFF Topic : Any java based API converters from DOC or PDFto HTML Hi Joel, I did ask google before coming to this site. But there was no java based API conversion tool to convert to HTML. I found other tools such as SoftInterface, BCLTech, Snowbound, LDConverter all these are commerical products and only does batch/GUI based utilities. There was no API based conversion (which we need to do some manipulations with data). Anyway, thank you for your advice and information. Thanks and regards, Nagarjuna Rao Chakka -Original Message- From: Joel Sather [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20, 2002 1:18 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: OFF Topic : Any java based API converters from DOC or PDFto HTML Well, you could always try http://www.jpedal.org/, but it seems to only be an API to extract info from a PDF--you'd still have to build the HTML pages. If you don't mind paying, you could always ask Google--they seem to convert PDF and DOC to HTML on the fly. I'd also recommend running the conversion as a backend process rather than as an on the fly type thing. There are probably libraries for other languages out there. I'm also pretty sure that Adobe provides backend tools which can be batched to do this sort of stuff (possibly their Web Output Pak). By the way, save yourself some time next question and ask google first: http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=java+pdf+conversion. -Joel Joel Sather email: [EMAIL PROTECTED] phone: 651-649-5789 [EMAIL PROTECTED] 11/20/02 12:01PM Hi, We have a situation where the documents (DOC/PDF) will get uploaded to server and we need to convert and publish them to HTML format (which is accessible for all the users). We are looking for any kind of convertion utility (java based API) for converting to HTML. Our enviroment is Apache - Tomcat under Sun-Solaris machine. There is a POI (HDF) sub-project under jakarta.apache.com which does convertion from Word 97 DOC to HTML. But this module is still in the early stages does not have full capabilities. Thanks in advance for your information. Thanks and regards, Nagarjuna Rao Chakka -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat4.1.12 with Apache1.3.27
http://www.johnturner.com/howto John -Original Message- From: Laxmikanth M.S. [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 5:06 AM To: [EMAIL PROTECTED] Subject: Tomcat4.1.12 with Apache1.3.27 Hi, Can you please send the steps to Integrate Apache1.3.27 with Tomcat4.1.12 using MOD_JK. For me the Index.jsp of Tomcat page is opening through Apache but none of the other JSP pages open. Regards Laxmikanth M S Off* : 6610330 extn 1256 Res* : 5267150 http://www.sonata-software.com Coming together is the beginning, staying together is progress and working together is Success What lies behind us and what lies before us are tiny matters compared to what lies within us - Emerson * Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
tomcat 4.1.12 + DB Connection Pool
Hi I am using Tomcat 4.1.12 on Win2k with SQL Server. I am using MS JDBC driver. I tried to implement Connection pool with DBCP. When I do a getConnection(username,password) on the datasource I get a UnsupportedOperationException. Any ideas. Thanks. Srinath.
Manager problem (Priveleged Servlets?) with Virtual Hosts
This is my first attempt at using the manager and I am having some problems. I can use the manager if I access the localhost. It shows me everything installed into the webapps folder. I am trying to set up the manager for each virtual host but am having problems. I have entered the context definition for the Host like this... Context path=/manager docBase=/usr/local/tomcat4112/server/webapps/manager debug=9 priveleged=true/ After logging into the manager, I get the following error... ManagerServlet is privileged and cannot be loaded Is there some other security setting I need to change to make this work? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: MacOS
On Thursday, November 21, 2002, at 01:31 PM, Martin Jacobson wrote: Felipe Schnack wrote: Anyone have experience with Tomcat on MacOS X servers? Or with java in general? I would like to know if these machines are good options for serving jsp or I should stick with PCs... I'm running Apache + mod_jk + Tomcat 4.1.12 + OpenSSL + MySQL on Mac OS 10.2 and it all runs just fine! Check the archives - someone posted recently regarding probs with Mac OS X *Server* - IIRC, WebObjects is pre-installed, and generates some conflicts with Tomcat. That was me. If you're running on OS X Server, there's a catalina.jar in /Library/Java/Extensions, or maybe in /Library/Java/Home/lib/ext/, or at least somewhere in the system classpath (see the archives). I'm not sure what this is used by ... not the default tomcat install, but *maybe* by WebObjects (although quite possibly not). Anyway, you will need to disable this file somehow (I gzipp'ed it) to get a custom install of tomcat ( 4.0.6, but probably some lower versions as well) to run. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: The major.minor version '48.0' is too recent for this tool to understand.
Hi, This may sound silly, but why? It was working just fine with a 1.3 jre, I believe, and it does have its own tools.jar. I didn't think the JRE has its own tools.jar. The JDK includes javac, which the JRE doesn't. javac is required (unless you're using Jikes or some other setup) for runtime compilation of JSPs. More generically, if a product states a certain requirement for running (JDK in this case) and you don't have that requirement, is it surprising that you're getting errors? ;) Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: The major.minor version '48.0' is too recent for this tool to understand. [SOLVED]
Hi all, Thank you for your help. You can get bye with a JRE, as long as you have a tools.jar, and tomcat 3.3a was shipping one in lib/container, but it was outdated (from 1.4 perspective), and was giving me the problems. I replaced it with the tools.jar from the 1.4 jdk, and everything seems to be working just fine. Edward -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 10:20 AM To: Tomcat Users List Subject: RE: The major.minor version '48.0' is too recent for this tool to understand. I believe this means that the tools.jar being used is out of sync with your JDK/JRE. Note that you state that you installed 1.4.1_01 JRE, which doesn't include a tools.jar. If you are using a tools.jar from a 1.3.x JDK, I think you would get an error like this. Cheers, Larry -Original Message- From: Grinvald, Edward [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 10:07 AM To: Tomcat Users List Subject: The major.minor version '48.0' is too recent for this tool to understand. Hello, I'm getting the following error: org.apache.jasper.JasperException: Unable to compile error: Invalid class file format in C:\PROGRA~1\CA\BrightStorPortal\jre\lib\rt.jar(java/lang/Objec t.class). The major.minor version '48.0' is too recent for this tool to understand. C:\Program Files\CA\BrightStorPortal\jakarta-tomcat-3.3a\work\DEFAULT\ROO T\jsp\Mana ge\addManagedObj_1.java:0: Class java.lang.Object not found in class javax.servlet.GenericServlet. package jsp.Manage; ^ 2 errors at org.apache.tomcat.facade.JasperLiaison.javac(Unknown Source) at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source) at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source) at org.apache.tomcat.core.ContextManager.processRequest(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(Htt p10Interceptor.java:161) 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(Unknown Source) The tomcat is 3.3a, the jdk is 1.4.1_01. I know that this error can occur if you are trying to use an old jdk with a jar (or rt.jar in particular) from a newer jdk. I wiped my box clean, installed only the 1.4.1_01 JRE, wiped the java.exe from winnt/system. Checked the system, no other java.exe anywhere. Please help. Thank you, Edward. -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
mod_webapp Compile Problems on FreeBSD 4.7 -- More Info
I left some information out in the original posting of this message. Our shop is running FreeBSD 4.7 and we are trying to setup a Tomcat 4.0.5-Apache website. We are experiencing problems with our attempts to compile mod_webapp. The compile warnings involve several missing files, all of which can be found in the source of our Apache 1.3.27 installation. Even when the include files are explicitly included (gcc -I x/y/httpd.c...) the errors still appear. If anyone else has experienced problems compiling mod_webapp, on ANY system, a short discussion of your problems and your solutions would be most appreciated! Bob Tilley If you don't understand the answer, you don't understand the problem. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Session Tracking based on the Client's IP
What difference does it make what the sessionid is? the session will still expire, so if you need to keep track of data by ip address instead of sessions, store it in a database. You can always store the ipaddress in the session and retrieve it just as you sould retrieve the session id. The use of jsessionid is part of the spec and isn't likely to change. Session id's are also made to be unique so that multiple people can use different sessions from through the same proxy. Charlie -Original Message- From: Jose Miguel Guzman Cassanello [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 7:32 AM To: Tomcat Users List Subject: Re: Session Tracking based on the Client's IP But, How can I change the SessionID, for using the Client IP as the Index? The getSession() method retrieves the Session for the client, based on the SessionID (that normally is based in Cookies or re-writed URLs) What I need is a way to force the SessionID to different value, for example, the Client IP. Probably the best way, is simply define a Hashtable as a Context Atributte, in order to store client status information indexed by the Client IP, and don't use the Session Tracking API. -JM - Original Message - From: vivek baliga [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 9:01 AM Subject: Re: Session Tracking based on the Client's IP Hi , request.getRemoteAddr() will give u the IP Put time with session and compare when there is new request jabs - Original Message - From: Power-Netz (Schwarz) [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 3:33 PM Subject: AW: Session Tracking based on the Client's IP would have to punch in the code for verification, that would definetly defeat any script but is less convenient for the user. I would prefer to dynamically identify any individual user who uses my service more than say 10-15 times in a minute and ban him for an hour or so. Set a cookie and ask for it :-) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Retrieving SSL client certificates from the Request
I think there is a request property for this. X509Certificate[] cert = request.getProperty(javax.servlet.request.X509Certificate); This property has an array of X509Certificates because you will be presented with a certificate chain, not just a single certificate. To forward this certificate to another request, I think you will need to do the following: Create a temporary keystore containing the client certificates Create a KeyManagerFactory that uses this keystore Create an SSLSocketFactory that uses your KeyManagerFactory Set the default SSLSocketFactory for Https Url Connections This is quite complicated, so maybe someone else knows a better way. I reckon it should work though. Regards, Andy -Original Message- From: Rodrigo Ruiz To: Tomcat Users List Sent: 21/11/2002 14:45 Subject: Retrieving SSL client certificates from the Request Hi all, Can I retrieve the SSL client certificate from an incoming request and use it in another one? Let me explain the background: We have implemented a server that only accepts SOAP requests. The purpose of this server is to act as a job dispatcher for a cluster of N machines. The jobs to execute are defined by the users, so we designed it to have a public API (accesed via SOAP calls), with which we can define jobs, upload executable files and resources and control execution in the cluster. Currently, it uses basic authentication for all connections, but we are planning to pass to a two-way SSL authentication model in a short time. Users access this server through different front-ends, ones more specialized than others. Some of them are themselves web applications. We want our front-end to capture the client certificate from a request, and use it to authenticate itself in its calls to our SOAP server. We need this capability, because each user can have different permissions, and we don't want all connections through the front-end to be made with a common certificate. Also, we want to avoid the need to register the clients in our front-end, as it should act as a simple proxy to our soap service. Is this possible from a servlet? We are now using Tomcat 3.3.1, and migrating to 4.1.12 for client certificate authentication support. Any help would be appreciated -- GRIDSYSTEMSRodrigo Ruiz Aguayo Parc Bit - Son EspanyolAnalista Programador 07120 Palma de Mallorca[EMAIL PROTECTED] Baleares - España Tel:+34-971435085 www.gridsystems.comFax:+34-971435082 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RESEND:Problem in starting the TOMCAT
Hi everybody, I am receiving the following error in starting the tomcat thru the manager application. FAIL - Encountered exception java.lang.IllegalStateException: Container StandardContext[/vikas2] has not been started Of late I have been copying some stuff into my directory. Is this something to do with the error. Thanks, VIkas. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: SOAP: Unable to resolve target object
Craig R. McClanahan wrote: Of course, I also feel that ***way*** too many Tomcat developers and users put ***way*** too much stock in sharing JAR files, giving up the notion that a webapp is a stand-alone deployable unit. Very true, but the very presence of $CATALINA_HOME/common, suggests that there is a need for sharing, rare though it may be. The greatest need for sharing arises with more complex apps, especially when 3rd parties are involved. Your point is a good one though, and we shouldn't blindly follow the class sharing techniques employed by conventional apps. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Logging the IP address
I want to log the IP address of everyone connecting to my web server - is that possible and if so - then how? I am currently using tomcat 3.2.3, but have no problem in upgrading if necessary. Regards Torben Jensen
Negatives to reloadable=true
Are there any downsides/negatives to setting reloadable=true in a context? e.g. Are there security or performance implications? Thank you, Mike -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: webapp fails to start using /manager start command
Erik, Applications gain their context environments in Tomcat as follows: DefaultContext as defined in server.xml - all apps inherit from here. Context - specific to the app in server.xml web.xml - as in CATALINA_HOME/conf web.xml - as in Webapps/app/WEB-INF I have web.xml´s which only contain: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-nameApp Name/display-name servlet servlet-nameApp/servlet-name servlet-classApp/servlet-class /servlet servlet-mapping servlet-nameApp/servlet-name url-pattern/App/web-app/url-pattern /servlet-mapping /web-app and even only: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-nameApp Name/display-name /web-app if I don´t have a servlet. I like my apps to inherit from DefaultContext and use Context to access Global Resources such as database connection pools. Applications are easier to manage this way, and also save you having to debug your web.xml files. You just have to get your server.xml right! Regards Eric -Original Message- From: Price, Erik [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 21. November 2002 16:03 To: Roberts, Eric; Tomcat Users List Subject: RE: webapp fails to start using /manager start command Eric, Great! I didn't know about the log files, but that had the answer. A SAX parse error in my WEB-INF/web.xml file. This is kind of surprising since I just copied the web.xml file from the URL at http://domainname:8080/tomcat-docs/appdev/web.xml.txt and removed the .txt extension. I realize that this example file is intended to be just that, an example, but did anyone know that it does not validate? There is a servlet node called graph that is missing a servlet-class node. It took me a few tries, some judicious log-reading, and some web.xml-editing, but I managed to get my webapp started! The HelloWorld is just a start, but now I can move forward. QUESTION: How important is the web.xml file to a webapp? All I did was comment the offending node and the webapp started. I still have completely invalid data in the web.xml file. The reason for this is that I have not really designed a webapp; this is just a testbed for miscellaneous servlets. So until I have designed a true web application and created a correct web.xml file, does the web.xml file really matter? Thanks again to all who help me on this list. (Please CC me in response as I am a digester, thank you) Erik -Original Message- From: Roberts, Eric [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 8:48 AM To: Tomcat Users List Subject: RE: webapp fails to start using /manager start command Have you checked the log files to see if there is a reason as to why the app could not be started? -Original Message- From: Price, Erik [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 21. November 2002 14:43 To: [EMAIL PROTECTED] Subject: webapp fails to start using /manager start command Hello, I checked the archives for this but couldn't find the answer to my problem. I created a new webapp yesterday and put it into the $CATALINA_HOME/webapps directory. From this list I learned that it is possible to have a webapp recognized by restarting Tomcat *OR* by adding a Context node into $CATALINA_HOME/conf/server.xml that points to the path of the webapp. Since I do not have root access on this server, I cannot change root-owned files and have asked my system administrator to restart Tomcat for me, to get my webapp recognized. He sent me an email saying that he gave me access to the manager webapp, which I have studied from the HOWTO in the documentation. I understand how to use it, but I cannot get my webapp to start. Is it possible to get a webapp to start (for the very first time) from the manager webapp? Or does Tomcat really need to be restarted completely? When I list the webapps on the server using http://domainname:8080/manager/list I can see a list of the webapps that are recognized, including my webapp. But all of the other webapps are listed as running, and my own webapp looks like this: /epricetest:stopped:0 So I thought that I might have to start the webapp using the start command, so I try this: http://domainname:8080/manager/start?path=/epricetest But the error message I receive when I try this is FAIL - Application at context path /epricetest could not be started This does not match any of the error messages detailed in the manager app HOWTO, so I am unsure of what is causing the problem. Could it be that to start a webapp for the very first time, Tomcat must really be restarted? (In which case, there is
RE: RESEND:Problem in starting the TOMCAT
The vikas2 application is failing to start. Check CATALINA_HOME/logs and see what the logfiles say. -Original Message- From: Nagpal, Vikas [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 21. November 2002 17:17 To: '[EMAIL PROTECTED]' Subject: RESEND:Problem in starting the TOMCAT Hi everybody, I am receiving the following error in starting the tomcat thru the manager application. FAIL - Encountered exception java.lang.IllegalStateException: Container StandardContext[/vikas2] has not been started Of late I have been copying some stuff into my directory. Is this something to do with the error. Thanks, VIkas. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Logging the IP address
This is doing via access logs. I'm not sure how 3.X does access logs but there is ample docs for 4.X. I'm sure there is for 3.X too. 4.X is also setup by default to write out access logs. For more info for 4.X - look for AccessLogValve Torben C G Jensen wrote: I want to log the IP address of everyone connecting to my web server - is that possible and if so - then how? I am currently using tomcat 3.2.3, but have no problem in upgrading if necessary. Regards Torben Jensen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Negatives to reloadable=true
Hi, Yes. Significant performance implications can be assumed. Don't set reloadable=true in a production server. Yoav Shapira Millennium ChemInformatics -Original Message- From: Mike Millson [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 11:45 AM To: Tomcat Users List Subject: Negatives to reloadable=true Are there any downsides/negatives to setting reloadable=true in a context? e.g. Are there security or performance implications? Thank you, Mike -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
jk1.2 load-balancing help needed
I am running a web application that has 2 Apache instances listening on 4 total interfaces (to account for NIC failure) using mod_jk to load-balance across 4 tomcat instances.I have two boxes with two tomcats on each box listening on seprate interfaces (again, for Nic failure). Apache is version 1.3.27 with mod_jk 1.2. Tomcat is version 4.0.6. Picture it like this: Apache 1Apache 2 -- -- + Apache + + Apache + + mod_jk + + mod_jk + -- -- Java Server 1 Java Server 2 -- -- + Tomcat 1 + + Tomcat 3 + + Tomcat 2 + + Tomcat 4 + -- -- We ran into a production issue due to a hung query that was run a number of times. It caused a number of users to get hung requests. They were able to fix the problem by restarting their browser. What normally happens is that our load is such that Tomcat1 gets almost all the requests. When Tomcat1 gets too busy (all the ajp13 processors are full and a new session is requested, the request gets routed to Tomcat2, and so on for Tomcat 2, 3, and 4. Because our load is low right now, we never get requests to Tomcats 3 and 4. However, once a hung query started eating up database (and therfore, AJP13 connections which were waiting for the DB to return) the new connections got routed to the other Tomcats. Tomcat failed over, basically. This leads me to my request: I would like to do true round-robin load-balancing on all four tomcats to minimize the impact of problems like we just saw. Since all connections are normally handled by Tomcats 1 and 2, a problem that occurs in Tomcats 1 and 2 has an effect on amost all the users. However, if the users were round-robin load-balanced and Tomcat 1 hit the bad query enough to hose all its connections it had, only those in Tomcat1 would be affected; the ones in Tomcats 2,3, and 4 would be unaffected. How can one change the weights to get new request, round-robin load-balancing from mod_jk? Does this make sense to anyone? I checked the connectors documentation, but nothing explains why Tomcat1 gets all the new connections. It appears to me that round-robin is not working? Here is my workers.properties file. it is identical on both Apache servers: --Begin workers.properties # # workers.properties # # In Unix, we use forward slashes: ps=/ # list the workers by name worker.list=tomcat1,tomcat2,tomcat3,tomcat4,loadbalancer # # First tomcat server # worker.tomcat1.port=11009 worker.tomcat1.host=10.1.2.45 worker.tomcat1.type=ajp13 # Specify the size of the open connection cache. #worker.tomcat1.cachesize # # Specifies the load balance factor when used with # a load balancing worker. # Note: # lbfactor must be 0 # Low lbfactor means less work done by the worker. worker.tomcat1.lbfactor=100 # # Second tomcat server # worker.tomcat2.port=12009 worker.tomcat2.host=10.1.2.145 worker.tomcat2.type=ajp13 # Specify the size of the open connection cache. #worker.tomcat2.cachesize # # Specifies the load balance factor when used with # a load balancing worker.# Note: # lbfactor must be 0 # Low lbfactor means less work done by the worker. worker.tomcat2.lbfactor=100 # # Third tomcat server # worker.tomcat3.port=11009 worker.tomcat3.host=10.1.2.12 worker.tomcat3.type=ajp13 # Specify the size of the open connection cache. #worker.tomcat2.cachesize # # Specifies the load balance factor when used with # a load balancing worker. # Note: # lbfactor must be 0 # Low lbfactor means less work done by the worker. worker.tomcat2.lbfactor=100 # # Fourth tomcat server # worker.tomcat4.port=12009 worker.tomcat4.host=10.1.2.112 worker.tomcat4.type=ajp13 # Specify the size of the open connection cache. #worker.tomcat2.cachesize # # Specifies the load balance factor when used with # a load balancing worker. # Note: # lbfactor must be 0 # Low lbfactor means less work done by the worker. worker.tomcat2.lbfactor=100 # # Load Balancer worker # # # The loadbalancer (type lb) worker performs weighted round-robin # load balancing with sticky sessions. # Note: # If a worker dies, the load balancer will check its state #once in a while. Until then all work is redirected to peer #worker. worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tomcat1,tomcat2,tomcat3,tomcat4 # # END workers.properties # -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail:
Re: MacOS
I dropped my PC for development work once I got on MacOSX (Nope I'm not aspiring to be in an Apple add) but it's worth exploring for those of you who are thinking about it. MacOSX is an excellent option for serving JSP and great Java platform in general. It gives Java a red carpet treatment for example it provides a decent class browser, tools to turn your Java apps into double-clickable apps, some Swing enhancements provide for the Aqua look and feel etc. The shipping JDK is 1.3.1 but 1.4.x is at it's final beta stages. I have used Tomcat 3.x and currently on 4.1.12, I personally prefer it to any version of Windows since it adds a gazillion cool things on top of its Unix implementation. However, If your are the proud vi type of developer then you may not care about UI tricks etc. But the core Unix is is there as expected. Some differences exist but nothing too dramatic. If interested, there's an excellent book out there by O'Reilly, MacOSX for Unix Geeks which describes these: http://www.oreilly.com/catalog/mosxgeeks/ As far as J2EE is concerned, all the Opensource J2EE apps that I come across so far perform as well as they would in any other Unix i.e. JBoss, OpenEJB, Tomcat, Jetty, Apache -but this is just a gut feel assessment, I have no formal metrics. On Thursday, November 21, 2002, at 09:37 AM, Martin Redington wrote: On Thursday, November 21, 2002, at 01:31 PM, Martin Jacobson wrote: Felipe Schnack wrote: Anyone have experience with Tomcat on MacOS X servers? Or with java in general? I would like to know if these machines are good options for serving jsp or I should stick with PCs... I'm running Apache + mod_jk + Tomcat 4.1.12 + OpenSSL + MySQL on Mac OS 10.2 and it all runs just fine! Check the archives - someone posted recently regarding probs with Mac OS X *Server* - IIRC, WebObjects is pre-installed, and generates some conflicts with Tomcat. That was me. If you're running on OS X Server, there's a catalina.jar in /Library/Java/Extensions, or maybe in /Library/Java/Home/lib/ext/, or at least somewhere in the system classpath (see the archives). I'm not sure what this is used by ... not the default tomcat install, but *maybe* by WebObjects (although quite possibly not). Anyway, you will need to disable this file somehow (I gzipp'ed it) to get a custom install of tomcat ( 4.0.6, but probably some lower versions as well) to run. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: MacOS
You make me want to go out and pickup a titanium iBook, course, I've been drooling over those for a while A note on OSX Server and Open Source, there are few projects that ship with it by default. OpenEJB and OpenORB are used in WebObjects for EJB and CORBA support, so that explains them. I'm pretty sure Tomcat is there for the same reason, though I've never heard that first-hand from the WebObjects team -- never thought of asking. One thing of note is that in Linux it's fairly easy to upgrade the packages that ship with the platform by default. I'm not so sure it's as trivial in OSX Server. I'm interested to see where that goes -David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 11:23 AM To: Tomcat Users List Subject: Re: MacOS I dropped my PC for development work once I got on MacOSX (Nope I'm not aspiring to be in an Apple add) but it's worth exploring for those of you who are thinking about it. MacOSX is an excellent option for serving JSP and great Java platform in general. It gives Java a red carpet treatment for example it provides a decent class browser, tools to turn your Java apps into double-clickable apps, some Swing enhancements provide for the Aqua look and feel etc. The shipping JDK is 1.3.1 but 1.4.x is at it's final beta stages. I have used Tomcat 3.x and currently on 4.1.12, I personally prefer it to any version of Windows since it adds a gazillion cool things on top of its Unix implementation. However, If your are the proud vi type of developer then you may not care about UI tricks etc. But the core Unix is is there as expected. Some differences exist but nothing too dramatic. If interested, there's an excellent book out there by O'Reilly, MacOSX for Unix Geeks which describes these: http://www.oreilly.com/catalog/mosxgeeks/ As far as J2EE is concerned, all the Opensource J2EE apps that I come across so far perform as well as they would in any other Unix i.e. JBoss, OpenEJB, Tomcat, Jetty, Apache -but this is just a gut feel assessment, I have no formal metrics. On Thursday, November 21, 2002, at 09:37 AM, Martin Redington wrote: On Thursday, November 21, 2002, at 01:31 PM, Martin Jacobson wrote: Felipe Schnack wrote: Anyone have experience with Tomcat on MacOS X servers? Or with java in general? I would like to know if these machines are good options for serving jsp or I should stick with PCs... I'm running Apache + mod_jk + Tomcat 4.1.12 + OpenSSL + MySQL on Mac OS 10.2 and it all runs just fine! Check the archives - someone posted recently regarding probs with Mac OS X *Server* - IIRC, WebObjects is pre-installed, and generates some conflicts with Tomcat. That was me. If you're running on OS X Server, there's a catalina.jar in /Library/Java/Extensions, or maybe in /Library/Java/Home/lib/ext/, or at least somewhere in the system classpath (see the archives). I'm not sure what this is used by ... not the default tomcat install, but *maybe* by WebObjects (although quite possibly not). Anyway, you will need to disable this file somehow (I gzipp'ed it) to get a custom install of tomcat ( 4.0.6, but probably some lower versions as well) to run. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Fw: Oracle thin client DataSource configuration with tomcat
Change the parameter name driverName to url parameter nameurl/name valuejdbc:oracle:thin:@ip:1521:SID/value /parameter Manavendra Gupta wrote: Hey Gurus, any ideas what could be the problem? following are the settings (revised): server.xml: Context path=/rti docBase=rti debug=4 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=rti_log. suffix=.txt timestamp=true / Resource name=jdbc/rtidb auth=CONTAINER type=javax.sql.DataSource / ResourceParams name=jdbc/rtidb parameter nameuser/name valuerti/value /parameter parameternamepassword/namevaluerti/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameternamedriverName/name valuejdbc:oracle:thin:@rti:1521:rti/value/parameter /ResourceParams /Context web.xml: web-app resource-ref res-ref-namejdbc/rtidb/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app test.java Context ctx = new InitialContext(); if(ctx == null ) throw new Exception(Boom - No Context); Context envCtx = (Context) ctx.lookup(java:comp/env); DataSource ds = (DataSource)envCtx.lookup(jdbc/rtidb); System.out.println(DataSource: + ds); if (ds != null) { Connection conn = ds.getConnection(); } - DataSource is always null. (excerpt) thread dump of catalina: XmlMapper: org.apache.catalina.deploy.ContextResource.setName( jdbc/rtidb) XmlMapper: org.apache.catalina.deploy.ContextResource.setType( javax.sql.DataSource) XmlMapper: org.apache.catalina.deploy.ContextResource.setAuth( Container) XmlMapper: Calling org.apache.catalina.core.StandardContext.addResource ContextResource[name=jdbc/rtidb, type=javax.sql.DataSource, auth=Container, scope=Shareable] XmlMapper: pop resource-ref org.apache.catalina.deploy.ContextResource: ContextResource[name=jdbc/rtidb, type=javax.sql.DataSource, auth=Container, scope=Shareable] Any clues? TIA, Manav. - Original Message - From: Manavendra Gupta [EMAIL PROTECTED] To: Manavendra Gupta [EMAIL PROTECTED] Sent: Wednesday, November 20, 2002 5:50 AM Subject: Re: Oracle thin client DataSource configuration with tomcat Sorry, forgot to attach the thread dump... Thanks manav === javax.naming.NameNotFoundException: Name java:comp is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:811) at org.apache.naming.NamingContext.lookup(NamingContext.java:194) at tmp.DBTest.init(DBTest.java:20) at org.apache.jsp.test$jsp._jspService(test$jsp.java:60) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSe vlet.java:202) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: 82) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App icationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Application ilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapper alve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipelin .java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.ja a:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943 at org.apache.catalina.core.StandardContextValve.invoke(StandardContext alve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipelin .java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValv .java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipelin .java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.ja a:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943 at org.apache.catalina.core.StandardContext.invoke(StandardContext.java 2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve. ava:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipelin .java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatch rValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipelin .java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve. ava:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipelin .java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java 462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipelin .java:564) at
SSL FAQ and question
I am trying to do some initial research on SSL and tomcat. Perhaps there is a faq out there that can help me, but the ones I've found on the tomcat site haven't, so I turn to the newsgroup. I'm looking for some tried and true knowledge on implementing one tomcat instance with both secure and non-secure webapps. If I request comes into a webapp that needs to be secure, I would like to redirect that request to the secure site. Is it best to do this in code (by checking the request.isSecure()) and then issuing response.sendRedirect() or can it be done through server.xml in tomcat or web.xml in the webapp? I assume you'd set up a second Host in server.xml and include the webapp Context in there. The non-secure Host has a redirectPort configured which is suppose to then redirect to the secure site. Or would you set up the security-constraint in web.xml. Or am I way off? Jay -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Is anyone using manager for virtual hosts?
Do I have to copy the entire webapp into each virtual host's appbase or will it be enough to just add the context definition? I have added the context definition, but am getting a servlet error that says ManagerServlet is priveleged and can't be loaded. -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 9:53 AM To: Tomcat Users List Subject: Manager problem (Priveleged Servlets?) with Virtual Hosts This is my first attempt at using the manager and I am having some problems. I can use the manager if I access the localhost. It shows me everything installed into the webapps folder. I am trying to set up the manager for each virtual host but am having problems. I have entered the context definition for the Host like this... Context path=/manager docBase=/usr/local/tomcat4112/server/webapps/manager debug=9 priveleged=true/ After logging into the manager, I get the following error... ManagerServlet is privileged and cannot be loaded Is there some other security setting I need to change to make this work? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat n apache plz.....help
thanxx John...for ur help tell me apache is the server ok..ur oracle also uses it at backgroung but we says tomcat server..where does apache ..fit into tomcat... and...if apache is web server..means it is my httpd ok.and then why we need tomcat as...it can also server...the request..is tomcat only work with java not with asp..or with IIS.. thsi way we can use the tomcat with IIS,,as if it is only container... help me... Puneet __ Do you Yahoo!? Yahoo! Mail Plus Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat n apache plz.....help
Tomcat can be used as an HTTP server if you wish. It's main purpose is as a servlet container. People use it to serve JSP (Java Server Pages) and execute servlets. Tomcat doesn't work with ASP. If you want to use a web server (like Apache, IIS, etc) in conjunction with Tomcat, this can be done. In that scenario static content would be served by the web server, dynamic content via JSP and servlets would come from Tomcat. John -Original Message- From: puneet sachar [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 1:15 PM To: Tomcat Users List Subject: RE: tomcat n apache plz.help thanxx John...for ur help tell me apache is the server ok..ur oracle also uses it at backgroung but we says tomcat server..where does apache ..fit into tomcat... and...if apache is web server..means it is my httpd ok.and then why we need tomcat as...it can also server...the request..is tomcat only work with java not with asp..or with IIS.. thsi way we can use the tomcat with IIS,,as if it is only container... help me... Puneet __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: proper use of servlet contexts
(In response to Noah Davis) At 05:55 AM 11/21/2002, Yoav Shapira wrote: Basically, we develop all of our applications under contexts. Each one a separate context. When they go live, they go to the default context so users don't have to request everything with /context/blah. This means that if Don't do this. Deploy them to their own contexts if possible. This will let you do much more later in terms of security, administration, etc. If you're really hung up on users not having /context in their bookmarks, have some redirect files (just for the app entry points: the things users would bookmark) in the root context. Agreed. If you can avoid sloshing all the apps together, it'd be best. But... the application has links to /context/anything.jsp or /context/servletpath (instead of anything.jsp and servletpath) they'll break. So I guess my real question is, what's the best way to design the application so these problems don't arise. Or is this just a configuration issue? Use relative links. For example, if this is your structure: /myApp -- some html files here -- /jsp -- /images -- /WEB-INF -- web.xml -- lib -- classes Keep all links relative. No /myApp/jsp/someJsp, just ../jsp/someJsp. It'll save you trouble ;) This is definitely the generally accepted way to do things, but there are very real situations (such as yours, it seems) where, for one reason or another, you've got your applications aware of and talking to eachother. If you've got a complex system where a single jsp may make a call to 3 different servers or apps -- granted, this situation should not be intentionally designed as such -- I've found that relative links complicate life more than help. Because we have to support a multitude of deployment configurations, we decided long ago to dynamically generate each link based on some configuration files. In the jsp, it looks something like: % // For dynamic content String urlPrepend = MyAppConfig.getURLPrepend(); // For static content String webUrlPrepend = MyAppConfig.getWebURLPrepend(); % form action=%=urlPrepend%/historyQuery.jsp Depending on configuration, the generated link could look like: /myWebApp/historyQuery.jsp http://somehost.com/proxy/myWebApp/historyQuery.jsp; http://somehost.com:8080/myWebApp/historyQuery.jsp; ... and so on. A little simplified for, but that's the basic idea. Because I'm also responsible for deployment of our apps, I want as many options as possible, and something like this gives it to me. Anyways, if you do this, you can modify all your urls with a simple flick of the configuration switch and make all your references independent of your context name, host port, proxy configuration, etc. Sounds like you could benefit from that as well. justin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Enabling Symlinks Cause FileNotFound Exception
Tomcat v4.1.12 Slackware, Kernel 2.4.19 I'm attempting to port a web application from Tomcat v. 4.0.6 to 4.1.12. It uses a symlink to provide access to a file repository. From my web browsing, I understand that following symlinks was disabled with v 4.1.10, but a workaround was included in 4.1.11 to re-enable the functionality. I modified my server.xml file to allowLinking: Context path= docBase=insertDocbaseHere debug=0 reloadable=true Resources className=org.apache.naming.resources.FileDirContext allowLinking=true caseSensitive=false / ... /Context When I attempt to start the application, the following error occurs: javax.servlet.ServletException: Exception processing JAR at resource path /WEB-INF/lib/lucene.jar at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java: 243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3493) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.Catalina.start(Catalina.java:510) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) - Root Cause - java.io.FileNotFoundException at org.apache.naming.resources.DirContextURLConnection.getInputStream(DirContex tURLConnection.java:344) at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:161) at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:42) at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:68) at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:85) at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:6 9) at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:906) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java: 243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3493) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.Catalina.start(Catalina.java:510) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) 2002-11-21 13:27:34 ContextConfig[]: Marking this application unavailable due to previous error(s) 2002-11-21 13:27:34 StandardManager[]: Seeding random number generator class java.security.SecureRandom 2002-11-21 13:27:34 StandardManager[]: Seeding of random number generator has been completed 2002-11-21 13:27:34 StandardContext[]: Context
RE: Is anyone using manager for virtual hosts?
you have to define the Manager context for each virtual host. You do not need to copy any files for the manager app. Charlie -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 1:22 PM To: Tomcat Users List Subject: Is anyone using manager for virtual hosts? Do I have to copy the entire webapp into each virtual host's appbase or will it be enough to just add the context definition? I have added the context definition, but am getting a servlet error that says ManagerServlet is priveleged and can't be loaded. -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 9:53 AM To: Tomcat Users List Subject: Manager problem (Priveleged Servlets?) with Virtual Hosts This is my first attempt at using the manager and I am having some problems. I can use the manager if I access the localhost. It shows me everything installed into the webapps folder. I am trying to set up the manager for each virtual host but am having problems. I have entered the context definition for the Host like this... Context path=/manager docBase=/usr/local/tomcat4112/server/webapps/manager debug=9 priveleged=true/ After logging into the manager, I get the following error... ManagerServlet is privileged and cannot be loaded Is there some other security setting I need to change to make this work? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Status of Symbolic Links on Linux/TC 4.1.12???
Hi Bill, OK - sounds good. Now, how do I find the 4.1.15? I went to the binaries and see that there is only 4.1.12. I a bit new to Tomcat, so I'm groping a bit here. Thanks..Bob On Wed, 2002-11-20 at 22:41, Bill Barker wrote: It should be pretty much working in 4.1.15 now (as long as you configure the Resources yourself). From 4.1.13, you can also get it to work by setting the caseSensitive=false attribute on the Resources tag. Bob McCormick [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi All, Have checked the archives and see that someone was having a problem with being able to access URL's via Tomcat 4.1.x that contain a symbolic link. I too am having this problem and was hoping to only use TomCat to serve up content. Would anyone be able to tell me whether this is just an overlooked bug, specified setting in the security settings somewhere or flat-out not going to be something that is supported any longer. We'd really like to NOT have to use Apache to have on less thing to worry about, and so any information on this particular would be GREATLY appreciated. Thanks...Bob Bob McCormick IST -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Status of Symbolic Links on Linux/TC 4.1.12???
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.15-alpha/bi n/ John -Original Message- From: Bob McCormick [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 1:50 PM To: Tomcat Users List Subject: Re: Status of Symbolic Links on Linux/TC 4.1.12??? Hi Bill, OK - sounds good. Now, how do I find the 4.1.15? I went to the binaries and see that there is only 4.1.12. I a bit new to Tomcat, so I'm groping a bit here. Thanks..Bob On Wed, 2002-11-20 at 22:41, Bill Barker wrote: It should be pretty much working in 4.1.15 now (as long as you configure the Resources yourself). From 4.1.13, you can also get it to work by setting the caseSensitive=false attribute on the Resources tag. Bob McCormick [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi All, Have checked the archives and see that someone was having a problem with being able to access URL's via Tomcat 4.1.x that contain a symbolic link. I too am having this problem and was hoping to only use TomCat to serve up content. Would anyone be able to tell me whether this is just an overlooked bug, specified setting in the security settings somewhere or flat-out not going to be something that is supported any longer. We'd really like to NOT have to use Apache to have on less thing to worry about, and so any information on this particular would be GREATLY appreciated. Thanks...Bob Bob McCormick IST -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Enabling Symlinks Cause FileNotFound Exception
I had the same problem, 4.1.12 does not work. Try 4.1.15 alpha, although the alpha has other bugs. I did not try to find them, I gave up after a day and went back to 4.0.6 Carl Hume wrote: Tomcat v4.1.12 Slackware, Kernel 2.4.19 I'm attempting to port a web application from Tomcat v. 4.0.6 to 4.1.12. It uses a symlink to provide access to a file repository. From my web browsing, I understand that following symlinks was disabled with v 4.1.10, but a workaround was included in 4.1.11 to re-enable the functionality. I modified my server.xml file to allowLinking: Context path= docBase=insertDocbaseHere debug=0 reloadable=true Resources className=org.apache.naming.resources.FileDirContext allowLinking=true caseSensitive=false / ... /Context When I attempt to start the application, the following error occurs: javax.servlet.ServletException: Exception processing JAR at resource path /WEB-INF/lib/lucene.jar at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java: 243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3493) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.Catalina.start(Catalina.java:510) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) - Root Cause - java.io.FileNotFoundException at org.apache.naming.resources.DirContextURLConnection.getInputStream(DirContex tURLConnection.java:344) at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:161) at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:42) at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:68) at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:85) at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:6 9) at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:906) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java: 243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3493) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.Catalina.start(Catalina.java:510) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) 2002-11-21 13:27:34 ContextConfig[]: Marking this application unavailable due to previous error(s) 2002-11-21 13:27:34 StandardManager[]: Seeding random number generator
change localhost_access_log to use . instead of -
I just spent 45min looking through the docs and archive to see if there's an easy way to change the filename format for the access log. Anyone know of a quick way to change localhost_access_log.2002-11-02.txt t0 localhost_access_log.2002.11.02.txt peter -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: change localhost_access_log to use . instead of -
mv localhost_access_log.2002-11-02.txt localhost_access_log.2002.11.02.txt Sorry, but I figured someone had to say it. ;) John -Original Message- From: peter lin [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 2:26 PM To: Tomcat Users List Subject: change localhost_access_log to use . instead of - I just spent 45min looking through the docs and archive to see if there's an easy way to change the filename format for the access log. Anyone know of a quick way to change localhost_access_log.2002-11-02.txt t0 localhost_access_log.2002.11.02.txt peter -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]