mod_jk apache-1.3.24 mass-hosting

2002-05-23 Thread Marten Lehmann
, that means the autowebapp-tag doesn't work. Any ideas? Regards Marten Lehmann -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

changing user/group tomcat is running as

2003-11-26 Thread Marten Lehmann
Hello, after almost comleting Oreilly's Tomcat - The Definitive Guide, the only thing mentioned there about changing the user tomcat is running as is to put it into a chroot-environment, whereby the chroot is not as important as changing the user and group in the same step. Without doing

Re: changing user/group tomcat is running as

2003-11-27 Thread Marten Lehmann
You could check out the commons-daemon jsvc (ships with TC 5.x, but should work with 4.1.x as well). It doesn't handle the chroot problem (but, since Solaris 8, I've almost given up on getting chroot to work). However, it does handle the port-binding and then changing uid problem. Thanks. I

auto-deploying/reloading doesn't work with xml

2003-12-03 Thread Marten Lehmann
? reloadable=true and autoDeploy=true is set everywhere. Am I doing something wrong or does tomcat simply not look for changes in .xml-files, but only for changed .war-files and single servlets and jsp's in directories? Regards Marten Lehmann

anyone running tomcat-4.1.29 with commons-daemons?

2003-12-04 Thread Marten Lehmann
Hello, I'm trying to use the commons-daemons package as of 20031204.tar.gz with jakarta-tomcat-4.1.29, everything should be in the right place, but jsvc exits with java.lang.NoSuchMethodException: org.apache.catalina.startup.BootstrapService.init([Ljava.lang.String;) at

Re: anyone running tomcat-4.1.29 with commons-daemons?

2003-12-04 Thread Marten Lehmann
tomcat 5 was released just 2 days ago. Can I use my tomcat 4.1.29 setup and configuration files with tomcat 5 or do I have to look through the manuals and change several things? Regards Marten Lehmann - To unsubscribe, e-mail

tomcat-5.0.16 with jsvc exists with error

2003-12-08 Thread Marten Lehmann
Hello, I'm using tomcat-5.0.16 with jsvc to bind tomcat to port 80, but running it with a different user than root. Startup and running is fine. Shutdown (in general) also. But when tomcat (or jsvc?) exits, the following entry always appears in catalina.out: jsvc.exec error: Service exit with

Re: tomcat-5.0.16 with jsvc exists with error

2003-12-09 Thread Marten Lehmann
The jsvc name is a Linux thing, having to do with quirks in Linux permissions. You can look through the source if you really find this interesting (it's half decently documentented there :). Jsvc works on a parent-slave model. The parent sits around to see if the slave has died, and recieves

servlet-mapping like mod_rewrite?

2003-12-09 Thread Marten Lehmann
Hello, to offer language-depended websites I want to make a webapp available through /de/* (german) and /en/* (english). Of course, I don't want to use two servlet-repositories for that. My idea is, that no matter if e.g. /en/helloworld or /de/helloworld is requested, a unique

Re: including a page outside webapp

2003-12-09 Thread Marten Lehmann
Did you turn on SSI support?? An include-statement doesn't require SSI. To Sumit: You're using a relative path to the file. Have you tried with an absolut path to make absolutely sure that's nothing wrong with permissions or base-paths the relative path relies on? Maybe some security-rules

Re: servlet-mapping like mod_rewrite?

2003-12-10 Thread Marten Lehmann
Hello, What about using one centralized servlet that parses req.getPathInfo(), sets the language as request attribute and forwards to the real servlet(s) ? how is a request-forwarding done? Regards Marten - To unsubscribe,

Re: servlet-mapping like mod_rewrite?

2003-12-10 Thread Marten Lehmann
Hello, Have a session variable that tracks what language they're using. I'm not looking for a different solution, but one, that solves my question. I definitely cannot do anything else than the /de/ or /en/ thing. Regards Marten

dbcp doesn't stacktrace

2003-12-13 Thread Marten Lehmann
Hello, to test dbcp's stacktrace functionality, I didn't close the databases connection after use. But although I set the abondedTimeout to 60, the connections are never returned, they are still open and I don't see a stacktrace, too. I used the following parameters, as from the howto:

how to check if a String is empty?

2004-06-24 Thread Marten Lehmann
Hello, maybe this is not the perfect group for my question, but as my problem appears at the development of JSPs and tomcat is concerned with that, I hope you can answer it. I often see the condition String test = req.getParameter(test); if (test == null) { /* string is empty */ } else

-security with 5.0.16 doesn't work

2004-01-15 Thread Marten Lehmann
Hello, I was setting fine grained permissions to my webapp, but always an exception was thrown. So I tried to use grant { permission java.security.AllPermission; }; but even with that, my application doesn't run (which it does without -security). When calling the site, I get:

how to replace j_security_check

2005-06-24 Thread Marten Lehmann
Hello, I don't want to reinvent the wheel. Container managed security is a fine thing and works well. While it's easy to call a session.invalidate() to logout of a session in whatever way I like (JSP, Servlet, ...), loggin in still looks a bit ugly, even with the possibility to define a

how to get the original requestURI after jsp:forward()

2005-07-24 Thread Marten Lehmann
Hello, I have a forward to a jsp-file. This jsp-file needs to know which URI was requested in the initial request. Currently, I can only see the requestURI of the forwarded jsp-file. Any ideas? Regards Marten - To

forcing non-cookie sessions?

2005-07-24 Thread Marten Lehmann
Hello, is there a way to force tomcat (or a web-container in general) not to use cookies to keep track of sessions, but to use url-rewriting with the ;jsessionid=sessID suffix instead? Regards Marten - To unsubscribe,

Re: how to get the original requestURI after jsp:forward()

2005-07-24 Thread Marten Lehmann
Hi, You need to read SRV.8.4 of the servlet specification. I read it now. However, it's stated there, that path-related-values should be overwritten by the container in all request-dispatcher occurences. This means: include and forward. But for an include, I can see the original

Re: I canĀ“t add mod_rewrite.so to t he module folder in apache http server

2005-07-24 Thread Marten Lehmann
Hello, My problem is: the mod_proxy.so , mod_rewrite.so don't appear anywhere, What do I have to do in order to get these *.so? if you don't ask the compiler to create them, they aren't created as shared modules, but are included in the httpd-binary by default. Look at the output of

attributes in servletcontext and servletrequest

2005-07-26 Thread Marten Lehmann
Hello, within the init() of a filter, I'm storing a reference to the servletContext: filterConfig.getServletContext().setAttribute(servletContext, filterConfig.getServletContext()); But when I'm trying to access this attribute in the doFilter-method, I get a NullPointerException:

getContextURI?

2005-07-26 Thread Marten Lehmann
Hello, how can I get the requestURI or pathTranslated without the context-prefix? Instead of /newsletter/config/login.jsp I would like to get returned just /config/login.jsp Additionally, while you can enter //newsletter//config/login.jsp in the address-field of the browser, it would be

how to set index.faces as welcome-file

2005-07-26 Thread Marten Lehmann
Hello, I tried to put the following into web.xml: welcome-file-list welcome-fileindex.faces/welcome-file /welcome-file-list But obviously, this doesn't work, because there is no file index.faces, but index.jsp. However, if the index.jsp isn't called through index.faces, the

ho to check if forward-target exists?

2005-07-27 Thread Marten Lehmann
Hello, I can start a forward like this e.g. through a filter: request.getRequestDispatcher(/test.html).forward(request, response); But how can I check if the ressource really exists? request.getRequestDispatcher(/test.html) always gives me a RequestDispatcher reference. Or is it possible to

Re: how to set index.faces as welcome-file

2005-07-27 Thread Marten Lehmann
Hello, thanks for your class. I'm not usig it (and I guess its partially wrong, because you can't simply append the welcome-file the the path-info), but it inspired me to create a better way: Through a filter. I attached the filter-class, you would integrate it in the web.xml as follows:

injecting a new request within a filter

2005-07-27 Thread Marten Lehmann
Hello, from within a filter, I'm trying to do the following: request.getRequestDispatcher(req.getServletPath() + index.faces).forward(request, response); This works generally fine. The problem is, that attached filters simply aren't processed for this request. I have two filters in series,

Re: injecting a new request within a filter

2005-07-28 Thread Marten Lehmann
Hello, 1) You need to be running tomcat 5 2) See SRV.6.2.5 Filters and the RequestDispatcher in the servlet spec - it discusses exactly what you need to do. thanks, it works as I expected it to work now. Regards Marten -