Various bugs with mod_jk and mod_jk2? And does Apache2.0.43+mod_jk2=inevitablehanging?
Hello, I wanted to get Apache 2.0.43 and mod_jk2 working. They seemed to setup fine, and handle requests just great. But after a while, Apache starts hanging on every other request. I tried mod_jk, and it still does this. I removed all traces of both mod_jks, and it still does eventually starts hanging, even on static image requests that are not run through Tomcat. I'm assuming it's a problem with Apacheand my setup (Redhat 8.0). Anyone else have similar issues? Anyhow, so I went back to Apache 1.3.27, which does not hang at all. Now, here's where I noticed two weird things: #1) Apache 1.3.27 with mod_jk2 - mod_rewrites that have the [P] flag to proxy don't seem to actually get interpreted and sent over to Tomcat. #2) Apache 1.3.27 with mod_jk - mod_rewrites DO get interpreted. But, with Apache and Tomcat residing on two physical servers, Apache does not send over a request for index.jsp if the URL does not exactly specify it, even if the DirectoryIndex is set. (So, /index.jsp WILL go to Tomcat, but / will not, and is just processed as an Apache level index view.) I've had to actually create fake index.jsp files in a mock directory structure on the Apache side to trick it into sending index.jsp as default to Tomcat. Does anyone know how to fix either of those strange behaviors? Or BETTER yet, has anyone had the hanging problem with Apache 2.0.43 and mod_jk2, and found a way to fix it? Thanks, -Raiden -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Various bugs with mod_jk and mod_jk2? And doesApache2.0.43+mod_jk2=inevitable hanging?
Almost forgot... I'm using Tomcat 4.1.18. -Raiden On Sat, 11 Jan 2003, Raiden wrote: Hello, I wanted to get Apache 2.0.43 and mod_jk2 working. They seemed to setup fine, and handle requests just great. But after a while, Apache starts hanging on every other request. I tried mod_jk, and it still does this. I removed all traces of both mod_jks, and it still does eventually starts hanging, even on static image requests that are not run through Tomcat. I'm assuming it's a problem with Apacheand my setup (Redhat 8.0). Anyone else have similar issues? Anyhow, so I went back to Apache 1.3.27, which does not hang at all. Now, here's where I noticed two weird things: #1) Apache 1.3.27 with mod_jk2 - mod_rewrites that have the [P] flag to proxy don't seem to actually get interpreted and sent over to Tomcat. #2) Apache 1.3.27 with mod_jk - mod_rewrites DO get interpreted. But, with Apache and Tomcat residing on two physical servers, Apache does not send over a request for index.jsp if the URL does not exactly specify it, even if the DirectoryIndex is set. (So, /index.jsp WILL go to Tomcat, but / will not, and is just processed as an Apache level index view.) I've had to actually create fake index.jsp files in a mock directory structure on the Apache side to trick it into sending index.jsp as default to Tomcat. Does anyone know how to fix either of those strange behaviors? Or BETTER yet, has anyone had the hanging problem with Apache 2.0.43 and mod_jk2, and found a way to fix it? Thanks, -Raiden -- 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]
ldap library for tomcat
Hello, Can someone tell me where can I find a free (open source or a like) ldap.jar for tomcat as I want to set up tomcat to authenticate users aginst an openldap directory server. TIA. Fathi B.N. (See attached file: smime.p7s) smime.p7s Description: Binary data -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: HTTP Status 404 with Tomcat 4.1.18
I have added the Context information in server.xml as Context path= docbase=ROOT debug=0/ Context path=/myapp docBase=myapp debug=0/ I checked the localhost log file and I can see messages Webapploader[/myapp]:Deploying class repositories to work directory $CATALINA_HOME/work/Standalone/localhost/myapp WebappLoader[/myapp]: Deploy class files /WEB-INF/classes to $CATALINA_HOME/webapps/myapp/WEB-INF/classes StandardManager[/myapp]: Seeding random number generator class java.security.SecureRandom StandardManager[/myapp]: Seeding of Random Number generator is complete StandardManager[/myapp:default]: Loading servlet default StandardManager[/myapp:invoker]:Loading container servlet invoker My class files are present in $CATALINA_HOME/Webapps/myapp/WEB-INF/classes directory and the web.xml is present in the WEB-INF directory I still get the error HTTP Status 404 with description the requested resource /myapp/servlet/TestServlet is not available. NG Hi, Would be grateful if anyone could help. It is something basic but I have been trying and there's no help ... I have installed TomCat 4.1.18 over RH Linux and am able to run succesfully but for a problem I am facing in deploying my own application. As given in the documentation I have created a directory myapp under $CATALINA_HOME/web-apps/ With-in myapps is WEB-INF/classes where I have copied by HelloServlet.class file. According to the documentation on giving http://localhost:8080/myapp/servlet/HelloServlet in browser I should be able to run my servlet but I get the error HTTP Error 404 : cannot find resource. If I copy the same to example/WEB-INF/classes it works.. What is the problem? I also tried creating web.xml in WEB-INF directory but still I get the same error.. Do I need to add /change anything in server.xml file ? Also I tried copying the index.jsp from ROOT to myapps and then if I give localhost:8080/myapps/index.jsp it runs ... Pl help N.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: filters - need to ADD a header to incoming request
If you need to set the Header on response you can have your servlet/JSP do that. Otherwise, your filter can call response.setHeader(...). -Tim David Orriss Jr wrote: Another Q.. Wouldn't I *also* have to extend getHeaderNames so that the new request header would *know* about the name *as well as* the value to be returned? Thanks again Tim. On Friday, January 10, 2003 6:34 PM, Tim Funk [EMAIL PROTECTED] wrote: Create a class which extends HttpServletRequestWrapper and extend getHeader and getHeaders In your filter, you would create your subclassed HttpServletRequestWrapper and then call: doFilter(yourWrappedHttpServletRequestWrapper , response) HttpServletRequestWrapper is part of the Servlet 2.3 API. See the javadocs on how to use it. -- David Orriss Jr. [EMAIL PROTECTED] http://www.davenet.net Want ICQ/AIM/MSN ID's? Just Ask... Linux - Chicken Soup for the Unix Soul -- 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: Need help w. servlet mapping tag.
Since the exception states that the problem servlet-mapping is at line 14 (I'm not sure that refers to the beginning or ending tag), I don't think this web.xml is the one with the problem. Unfortunately, which web.xml isn't identified by the exception. Perhaps additional information in the log will help pinpoint the webapp in which the exception is occurring. Cheers, Larry -Original Message- From: Steve R Burrus [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 11, 2003 1:47 AM To: Tomcat Users List Subject: Re: Need help w. servlet mapping tag. Dear Shawn, Hi I have never heard from u ever before, but here in all of its' glory is the web.xml file in question. Happy Reading! __ 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]
WebDav Problems
Hi, I use tomcat-4.1.18 and have the following problems with webdav. The Windows Client (webdav folder) does not show the modification dates of the files neither over the list nor for properties (I'm not sure whether thats called properties because I use German Windows, but I mean selecting a file and right mouse and the last menu entry to get info about file such last modified size etc.). This happens with tomcat after downloading and installation, thus we have done NO modification on tomcat. How can I get the date listed? The second problem is that webdav does not work correctly (it gets problems with directory names) when I change its url mapping. We have to do that because we want to integrate webdav into our application. The problems occur with the original tomcat-4.1.18 after modifying the url mapping. Any ideas how to solve this problem? Zsolt Modified web.xml servlet-mapping servlet-namewebdav/servlet-name url-pattern/webdav/*/url-pattern /servlet-mapping Original web.xml: servlet-mapping servlet-namewebdav/servlet-name url-pattern//url-pattern /servlet-mapping -- Zsolt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: WebDav Problems
Hi Zsolt, it might be, that it's a client problem, i.e. Webfolders isn't working correctly. I had issues with Webfolders of Windows 98. The same installation of Slide (which does WebDAV) worked on Windows 2000 Webfolders. Unfortunately I can't tell you more about this, it's just a thought. Andreas On 11 Jan 2003 at 14:52, Zsolt Koppany wrote: Hi, I use tomcat-4.1.18 and have the following problems with webdav. The Windows Client (webdav folder) does not show the modification dates of the files neither over the list nor for properties (I'm not sure whether thats called properties because I use German Windows, but I mean selecting a file and right mouse and the last menu entry to get info about file such last modified size etc.). This happens with tomcat after downloading and installation, thus we have done NO modification on tomcat. How can I get the date listed? The second problem is that webdav does not work correctly (it gets problems with directory names) when I change its url mapping. We have to do that because we want to integrate webdav into our application. The problems occur with the original tomcat-4.1.18 after modifying the url mapping. Any ideas how to solve this problem? Zsolt Modified web.xml servlet-mapping servlet-namewebdav/servlet-name url-pattern/webdav/*/url-pattern /servlet-mapping Original web.xml: servlet-mapping servlet-namewebdav/servlet-name url-pattern//url-pattern /servlet-mapping -- Zsolt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: interesting java.lang.NullPointerException error when first viewing an index.jsp page - refresh once and page loads correctly
On Friday 10 January 2003 05:49 pm, Brandon Rodak wrote: Paul, Here is a link to the Java - http://www.flex-internet.com/java.txt Thanks again for your help Brandon Rodak Web Services Computer Marketing Corporation http://www.cmcflex.com http://www.flex-internet.com Brandon, the scriptlet in your jsp gets your server's cookies from the client: Cookie[] cookies = request.getCookies(); but on the initial request, there are no cookies set by your server on any given client, so getCookies() returns null in accordance with the servlet spec. That triggers a NPE when you try to process the cookies later: for (int i=0; icookies.length; i++) { ... } Put an if statement around your for loop to check if cookies is null or not and that should fix your problem. Paul -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: HTTP Status 404 with Tomcat 4.1.18
On Saturday 11 January 2003 08:13 am, Nihita Goel wrote: I have added the Context information in server.xml as Context path= docbase=ROOT debug=0/ Context path=/myapp docBase=myapp debug=0/ I checked the localhost log file and I can see messages Webapploader[/myapp]:Deploying class repositories to work directory $CATALINA_HOME/work/Standalone/localhost/myapp WebappLoader[/myapp]: Deploy class files /WEB-INF/classes to $CATALINA_HOME/webapps/myapp/WEB-INF/classes StandardManager[/myapp]: Seeding random number generator class java.security.SecureRandom StandardManager[/myapp]: Seeding of Random Number generator is complete StandardManager[/myapp:default]: Loading servlet default StandardManager[/myapp:invoker]:Loading container servlet invoker My class files are present in $CATALINA_HOME/Webapps/myapp/WEB-INF/classes directory and the web.xml is present in the WEB-INF directory I still get the error HTTP Status 404 with description the requested resource /myapp/servlet/TestServlet is not available. NG You don't need to add a context for your webapp to server.xml. Add this to your webapp's web.xml: servlet servlet-nameAnyNameWorks/servlet-name servlet-classTestServlet/servlet-class /servlet servlet-mapping servlet-nameAnyNameWorks/servlet-name url-pattern/AnotherNameWorksHere/url-pattern /servlet-mapping Then try accessing the servlet with this URL: http://localhost:8080/AnotherNameWorksHere Tomcat requires you to map all your resources like servlets to URL patterns. Before Tomcat 4.1.12 a special servlet called Invoker was automatically mapped to /servlet/* pattern and it invoked your servlets for you. You can find commented out lines related to that in the server's web.xml in the conf directory. If you want more info search this list and check out conf/web.xml. Paul -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ldap library for tomcat
import javax.naming.ldap; -Original Message- From: Fathi Ben Nasr [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 11, 2003 5:40 To: 'Tomcat Users List' Subject: ldap library for tomcat Hello, Can someone tell me where can I find a free (open source or a like) ldap.jar for tomcat as I want to set up tomcat to authenticate users aginst an openldap directory server. TIA. Fathi B.N. (See attached file: smime.p7s) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [ OT ] what source code control system?
I did not know this trick! If it is this simple, you gotta wonder...why no cvs rename command... Larry [EMAIL PROTECTED] 01/10/03 17:03 PM Renaming things is trivial, just get the administrator to rename it for you. mv $CVSROOT/src/foo.java,v $CVSROOT/src/bar.java,v. Or if you don't care about losing your log history, then just delete and add it. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: WebDav Problems
I have the problem under Windows-98 and 2000. If I understand you correctly you don't have this problem with tomcat and slide and the client it W-2000. Is that correct? Zsolt On Sat, 2003-01-11 at 15:37, Andreas Probst wrote: Hi Zsolt, it might be, that it's a client problem, i.e. Webfolders isn't working correctly. I had issues with Webfolders of Windows 98. The same installation of Slide (which does WebDAV) worked on Windows 2000 Webfolders. Unfortunately I can't tell you more about this, it's just a thought. Andreas On 11 Jan 2003 at 14:52, Zsolt Koppany wrote: Hi, I use tomcat-4.1.18 and have the following problems with webdav. The Windows Client (webdav folder) does not show the modification dates of the files neither over the list nor for properties (I'm not sure whether thats called properties because I use German Windows, but I mean selecting a file and right mouse and the last menu entry to get info about file such last modified size etc.). This happens with tomcat after downloading and installation, thus we have done NO modification on tomcat. How can I get the date listed? The second problem is that webdav does not work correctly (it gets problems with directory names) when I change its url mapping. We have to do that because we want to integrate webdav into our application. The problems occur with the original tomcat-4.1.18 after modifying the url mapping. Any ideas how to solve this problem? Zsolt Modified web.xml servlet-mapping servlet-namewebdav/servlet-name url-pattern/webdav/*/url-pattern /servlet-mapping Original web.xml: servlet-mapping servlet-namewebdav/servlet-name url-pattern//url-pattern /servlet-mapping -- Zsolt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Zsolt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Document Root
I just started messing around with Tomcat and would like to know if I can change the Document Root to a location which I prefer. For example, my machine (windows) has 2 partitions, c: and d:. C is where I store my program files, including Apache, Netbeans, Tomcat, etc. And D is where I have source code files which run under Apache. In my httpd.conf file I have DocumentRoot d:/is/clients/. Now what makes this a Tomcat question is that I would like to have d:/is/java (notice that it's not under my apache docroot) as my directory for my java source code, so how can I do it. Foolish question but need clarification. What are the differences between c:/tomcat/work/standalone/localhost and c:/tomcat/webapps. For example where do I put my code?!? I am wondering because the docs say c:/tomcat/webapps, but yet when I hit localhost/examples/... it goes to c:/tomcat/work/standalone/localhost. Hope I make sense. Jonathan Villa Application Developer IS Design Development isdesigndev.com 414.429.0327 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Document Root
On Saturday 11 January 2003 10:57 am, Jonathan Villa wrote: I just started messing around with Tomcat and would like to know if I can change the Document Root to a location which I prefer. For example, my machine (windows) has 2 partitions, c: and d:. C is where I store my program files, including Apache, Netbeans, Tomcat, etc. And D is where I have source code files which run under Apache. In my httpd.conf file I have DocumentRoot d:/is/clients/. Now what makes this a Tomcat question is that I would like to have d:/is/java (notice that it's not under my apache docroot) as my directory for my java source code, so how can I do it. Foolish question but need clarification. What are the differences between c:/tomcat/work/standalone/localhost and c:/tomcat/webapps. For example where do I put my code?!? I am wondering because the docs say c:/tomcat/webapps, but yet when I hit localhost/examples/... it goes to c:/tomcat/work/standalone/localhost. Hope I make sense. Jonathan Villa Application Developer IS Design Development isdesigndev.com 414.429.0327 Check this out: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html in particular, the appBase attribute. and this: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html and the docBase attribute. As for the work directory, it shouldn't bother you at all because it's for internal Tomcat use. The webapps directory is the default location for your web applications in Tomcat. You can change that location using the information from the first link above. Paul -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
session across different domains ?
Hello, is there any way to keep the sessions when changing the domain ? I have only one webapp, but it is distributed acrosss different domains. Thx berger -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: WebDav Problems
Hi Zsolt, I don't see the dates on Win2k either. So I really think it's a client problem. I have also a web interface. It shows the dates correctly. I've never realized this problem, because I seldom test with webfolders and the date was always far right (outside the window) so I didn't see the empty column. Excuse me for the irritation. Andreas On 11 Jan 2003 at 16:36, Zsolt Koppany wrote: I have the problem under Windows-98 and 2000. If I understand you correctly you don't have this problem with tomcat and slide and the client it W-2000. Is that correct? Zsolt On Sat, 2003-01-11 at 15:37, Andreas Probst wrote: Hi Zsolt, it might be, that it's a client problem, i.e. Webfolders isn't working correctly. I had issues with Webfolders of Windows 98. The same installation of Slide (which does WebDAV) worked on Windows 2000 Webfolders. Unfortunately I can't tell you more about this, it's just a thought. Andreas On 11 Jan 2003 at 14:52, Zsolt Koppany wrote: Hi, I use tomcat-4.1.18 and have the following problems with webdav. The Windows Client (webdav folder) does not show the modification dates of the files neither over the list nor for properties (I'm not sure whether thats called properties because I use German Windows, but I mean selecting a file and right mouse and the last menu entry to get info about file such last modified size etc.). This happens with tomcat after downloading and installation, thus we have done NO modification on tomcat. How can I get the date listed? The second problem is that webdav does not work correctly (it gets problems with directory names) when I change its url mapping. We have to do that because we want to integrate webdav into our application. The problems occur with the original tomcat-4.1.18 after modifying the url mapping. Any ideas how to solve this problem? Zsolt Modified web.xml servlet-mapping servlet-namewebdav/servlet-name url-pattern/webdav/*/url-pattern /servlet-mapping Original web.xml: servlet-mapping servlet-namewebdav/servlet-name url-pattern//url-pattern /servlet-mapping -- Zsolt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
trouble w/ jk2 vs. Apache2 on OSX 10.2.3: Segmentation fault$HTTPD -k $ARGV
hi all, i've successfully installed Apache2 Tomcat on OSX 10.2.3 both run great in standalone . but Apache2 + Coyote jk2 refuses to launch/function Apache2 is a CVS build, server-info is: Server Version: Apache/2.1.0-dev (Unix) mod_perl/1.99_07-dev Perl/v5.8.0 PHP/4.4.0-dev mod_auth_pgsql/2.0b6 DAV/2 Server Built: Jan 6 2003 00:37:56 API Version: 20020903:0 Hostname/port: testserver.internal.blakers.net:80 Timeouts: connection: 300keep-alive: 300 MPM Name: Worker MPM Information: Max Daemons: 1 Threaded: yes Forked: yes Server Root: /usr Config File: /etc/apache2/httpd.conf Tomcat is binary: jakarta-tomcat-4.1.18 jk2 is built/installed from CVS (timestamp: 01/10/03 01:18:27) LoadModule jk2_module libexec/apache2/mod_jk2.so is added to httpd.conf tomcat starts as usual -- fine with/without tomcat running, an attempt to launch apache (apachectl start) results in: apachectl start /usr/sbin/apachectl: line 87: 1601 Segmentation fault $HTTPD -k $ARGV removing the jk2 LoadModule makes the error go away . Apache's error_log is: [Fri Jan 10 12:34:39 2003] [info] mod_unique_id: using ip addr 172.30.10.3 [Fri Jan 10 12:34:40 2003] [info] mod_unique_id: using ip addr 172.30.10.3 [Fri Jan 10 12:34:41 2003] [notice] Digest: generating secret for digest authentication ... [Fri Jan 10 12:34:41 2003] [notice] Digest: done [Fri Jan 10 12:34:41 2003] [notice] Apache/2.1.0-dev (Unix) mod_perl/1.99_07-dev Perl/v5.8.0 PHP/4.4.0-dev mod_auth_pgsql/2.0b6 DAV/2 configured -- re [Fri Jan 10 12:34:41 2003] [info] Server built: Jan 6 2003 00:37:56 [Fri Jan 10 12:34:41 2003] [debug] worker.c(1736): AcceptMutex: posixsem (default: posixsem) [Fri Jan 10 12:35:47 2003] [info] removed PID file /var/run/httpd.pid (pid=1587) [Fri Jan 10 12:35:47 2003] [notice] caught SIGTERM, shutting down [Fri Jan 10 12:35:50 2003] [info] mod_unique_id: using ip addr 172.30.10.3 my first surmise is that there is a problem with the jk2 connector build, but i'm not sure, and haven't the foggiest as to how to check/where to begin thoughts/suggestion? richard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: session across different domains ?
When you link to the new domain, URL encode the session id into the link. I think either the servlet spec or tomcat docs should tell you you can do this. Hello, I thought that this would work, too. But although I encoded the session id to the new url, the session I got is empty in the new domain. Thx berger -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: session across different domains ?
1 - Is the request going to the same tomcat server? 2 - Does the url look like this: http://www.foo.com/bar.jsp;jsessionid=ou812 -Tim Albrecht Berger wrote: When you link to the new domain, URL encode the session id into the link. I think either the servlet spec or tomcat docs should tell you you can do this. Hello, I thought that this would work, too. But although I encoded the session id to the new url, the session I got is empty in the new domain. Thx berger -- 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: Java Bean Scope questions (a lengthy one)
Noel, I actually got this working by using Tim's suggestion of creating a reset method in my bean, then in my controller between my useBean and setProperty tags I call formBean.reset(). Works like a charm!! Thanks for your help!! Denise -Original Message- From: Noel J. Bergman To: Tomcat Users List Sent: 1/10/2003 8:12 PM Subject: RE: Java Bean Scope questions (a lengthy one) Denise, You might code the buttons as something like: input type=submit name=formAction value=OK input type=submit name=formAction value=CANCEL Then within your webapp controller, you can call request.getParameter(formAction), and if formAction is CANCEL, you can reset your bean. --- Noel -- 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: Basic questions
On Saturday 11 January 2003 03:34 pm, Denise Mangano wrote: Hey all :) Throughout my learning experience with Tomcat, I have gotten curious about the following things. This is mostly just for informational purposes. Inquiring minds want to know ; ) #1: Is it possible to set Tomcat to restart (as user tomcat) on a schedule? #2: Is there anyway to set something up that if a user attempts to access my app within a specific time frame they are redirected to a different page. For example, when my user accesses my webapp they go to www.myhost.com/mywebapp and they are brought to index.jsp page. However, if the same exact URL is accessed within a specific time frame, they would be brought to index2.jsp. Thanks! Denise Hi, #1: It's OS-specific, and you can do it in a few ways, from writing a shell script to developing a native application. If you use UNIX, try man crond at the prompt. #2: Have a Controller servlet that will forward (RequestDispatcher comes to mind) to different JSPs based on any criteria including time. Ah, the advantages of Model 2... Paul -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: A transport-guarantee problem with 4.1.18
On Saturday 11 January 2003 03:40 pm, Peter Lee wrote: I asked this earlier, but I still got problems with it. I upgraded to 4.1.18, but I got some problems with security constraints. I have applied a security constraint on a particular url pattern. Only certain users with a special rolename can access that link. The data transportation is also secure, therefore I put in a transport-guarantee in web.xml user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint It used to work but now the page does not load with v4.1.18. I got a blank page instead of a login page. Is SSL implemented differently v4.1.18 that prevents my application from working like before? I think it has to do with rolenames. I put in the needed role in tomcat-user.xml already. Did I miss something? Is there any documentation on tomcat v4.1.18 SSL security stuff? Here is my security constraint in web.xml: !-- Secure form URLs of the form http://localhost/Prefix/mypage require SSL and are redirected to https://localhost/Prefix/mypage -- security-constraint web-resource-collection web-resource-nameSSLspecial/web-resource-name url-pattern/protectedpage/*/url-pattern /web-resource-collection auth-constraint role-namespecialrole/role-name /auth-constraint user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint Did you read this? http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html Paul -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: session across different domains ?
I am at a loss. My last guesses: - Its a programming issue - Your tomcat has virtual hosting set up that tomcat treats localhost/webapp and 192.x.x.x/webapp as different webapps Tim Albrecht Berger wrote: 1 - Is the request going to the same tomcat server? yes, there is only one 2 - Does the url look like this: http://www.foo.com/bar.jsp;jsessionid=ou812 sure, I have the following urls on my development server (local) : http://localhost:8080/webapp/example.jsp;jsessionid=abcd https://192.x.x.x:8443/webapp/example.jsp;jsessionid=abcd the ip in the second url is the localhost server, too. berger -- 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: ldap library for tomcat
Or maybe a free one .. have a look at com.novell.ldap on http://www.openldap.org .. eriam Rob A. Augustinus a écrit: import javax.naming.ldap; Netscape has a package that I have used, very stable and solid. I never checked into the licensesing because I was working on a academic project. I believe you can also cruise through ldap using JNDI which is probably a overall better long term solution then using LDAP specific libraries. Just a thought. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Basic questions
Hey all :) Throughout my learning experience with Tomcat, I have gotten curious about the following things. This is mostly just for informational purposes. Inquiring minds want to know ; ) #1: Is it possible to set Tomcat to restart (as user tomcat) on a schedule? #2: Is there anyway to set something up that if a user attempts to access my app within a specific time frame they are redirected to a different page. For example, when my user accesses my webapp they go to www.myhost.com/mywebapp and they are brought to index.jsp page. However, if the same exact URL is accessed within a specific time frame, they would be brought to index2.jsp. Thanks! Denise -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Basic questions
On Saturday 11 January 2003 04:55 pm, Steve R Burrus wrote: Denise, can you figure out why this servlet doesn't seem to work for me at all. It's called the GreetingServlet.java I am not Denise but I thought I'd throw something on the table. Change your web.xml as shown below. You got your servlet-mapping element wrong before. After that just make sure GreetingServlet.class is in webapps/whatever your webapp name is/WEB-INF/classes and you're ready to go (http://localhost:8080/your webapp name goes here/MyOwnServlet should work then). web-app servlet !-- Servlet alias -- servlet-namegreeting/servlet-name !-- Fully qualified Servlet class -- servlet-classGreetingServlet/servlet-class /servlet servlet-mapping servlet-namegreeting/servlet-name url-pattern/MyOwnServlet/url-pattern /servlet-mapping /web-app Paul -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: trouble w/ jk2 vs. Apache2 on OSX 10.2.3: Segmentation fault $HTTPD -k$ARGV
You probably have a mismatch between the cvs versions you're using. JK2, at last look, only worked with Apache 2.0.43. Try the older version of Apache, it should work. rls R Blake [EMAIL PROTECTED] 01/11/2003 10:04 AM Please respond to Tomcat Users List To: [EMAIL PROTECTED] cc: Subject:trouble w/ jk2 vs. Apache2 on OSX 10.2.3: Segmentation fault $HTTPD -k $ARGV hi all, i've successfully installed Apache2 Tomcat on OSX 10.2.3 both run great in standalone . but Apache2 + Coyote jk2 refuses to launch/function Apache2 is a CVS build, server-info is: Server Version: Apache/2.1.0-dev (Unix) mod_perl/1.99_07-dev Perl/v5.8.0 PHP/4.4.0-dev mod_auth_pgsql/2.0b6 DAV/2 Server Built: Jan 6 2003 00:37:56 API Version: 20020903:0 Hostname/port: testserver.internal.blakers.net:80 Timeouts: connection: 300keep-alive: 300 MPM Name: Worker MPM Information: Max Daemons: 1 Threaded: yes Forked: yes Server Root: /usr Config File: /etc/apache2/httpd.conf Tomcat is binary: jakarta-tomcat-4.1.18 jk2 is built/installed from CVS (timestamp: 01/10/03 01:18:27) LoadModule jk2_module libexec/apache2/mod_jk2.so is added to httpd.conf tomcat starts as usual -- fine with/without tomcat running, an attempt to launch apache (apachectl start) results in: apachectl start /usr/sbin/apachectl: line 87: 1601 Segmentation fault $HTTPD -k $ARGV removing the jk2 LoadModule makes the error go away . Apache's error_log is: [Fri Jan 10 12:34:39 2003] [info] mod_unique_id: using ip addr 172.30.10.3 [Fri Jan 10 12:34:40 2003] [info] mod_unique_id: using ip addr 172.30.10.3 [Fri Jan 10 12:34:41 2003] [notice] Digest: generating secret for digest authentication ... [Fri Jan 10 12:34:41 2003] [notice] Digest: done [Fri Jan 10 12:34:41 2003] [notice] Apache/2.1.0-dev (Unix) mod_perl/1.99_07-dev Perl/v5.8.0 PHP/4.4.0-dev mod_auth_pgsql/2.0b6 DAV/2 configured -- re [Fri Jan 10 12:34:41 2003] [info] Server built: Jan 6 2003 00:37:56 [Fri Jan 10 12:34:41 2003] [debug] worker.c(1736): AcceptMutex: posixsem (default: posixsem) [Fri Jan 10 12:35:47 2003] [info] removed PID file /var/run/httpd.pid (pid=1587) [Fri Jan 10 12:35:47 2003] [notice] caught SIGTERM, shutting down [Fri Jan 10 12:35:50 2003] [info] mod_unique_id: using ip addr 172.30.10.3 my first surmise is that there is a problem with the jk2 connector build, but i'm not sure, and haven't the foggiest as to how to check/where to begin thoughts/suggestion? richard -- 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: WebDav Problems (same problem + hint)
The second problem is that webdav does not work correctly (it gets problems with directory names) when I change its url mapping. Yes, I have the same problem and I really think it's a bug in the servlet. It doesn't seem to consider its url mapping internally (not at all or not correctly). I tried the following: MyDavServlet extends WebdavServlet { protected String getRelativePath(HttpServletRequest request) { String res = super.getRelativePath(request); System.err.println(translating path + res); if (res.startsWith(/XDAV)) res = res.substring(5); if (res.length() 1) return /; return res; } } Without this modification, Windows webfolders do not work at all. With this modification, they work, but not 100% correctly. Every folder (collection) also seems to contain itself. Funny effect. == My patch is not the solution, but probably a pointer to the problem... I haven't spent more time with it (yet) because I don't use it yet. I just stumbled across this problem after just 10 minutes of experimenting :-((( Holger We have to do that because we want to integrate webdav into our application. The problems occur with the original tomcat-4.1.18 after modifying the url mapping. Any ideas how to solve this problem? Zsolt Modified web.xml servlet-mapping servlet-namewebdav/servlet-name url-pattern/webdav/*/url-pattern /servlet-mapping Original web.xml: servlet-mapping servlet-namewebdav/servlet-name url-pattern//url-pattern /servlet-mapping -- Intland GmbH www.intland.com Schulze-Delitzsch-Str. 16 70565 Stuttgart Tel: +49-711-7221873 Fax: +49-1212-5168-29527 -- 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: session across different domains ?
I think you will have to code specifically for Tomcat. The only way to get jsession encoded into your string is with Request.encodeURL or Request.encodeRedirectURL, but they won't do it because Tomcat will determine that encoding wasn't necessary, and will return your string as-is. isEncodeable() is quite strict in Tomcat. Here is from org.apache.catalina.connector.HttpResponseBase: /** * Encode the session identifier associated with this response * into the specified redirect URL, if necessary. * * @param url URL to be encoded */ public String encodeRedirectURL(String url) { if (isEncodeable(toAbsolute(url))) { HttpServletRequest hreq = (HttpServletRequest) request.getRequest(); return (toEncoded(url, hreq.getSession().getId())); } else return (url); } See this which does the Tomcat servlet container's encoding: org.apache.catalina.connector.HttpResponseBase.toEncoded() -AAron From: Tim Funk [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: session across different domains ? Date: Sat, 11 Jan 2003 13:15:48 -0500 When you link to the new domain, URL encode the session id into the link. I think either the servlet spec or tomcat docs should tell you you can do this. -Tim Albrecht Berger wrote: Hello, is there any way to keep the sessions when changing the domain ? I have only one webapp, but it is distributed acrosss different domains. Thx berger -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: trouble w/ jk2 vs. Apache2 on OSX 10.2.3: Segmentation fault$HTTPD -k $ARGV
i'll certainly give it a try . thanks btw, WHERE do you look to see which version JK2 works with? i've scoured my files, and have clearly missed it (somewhere obvious, no doubt ...) cheers, richard --On Saturday, January 11, 2003 2:37 PM -0800 Robert L Sowders [EMAIL PROTECTED] wrote: You probably have a mismatch between the cvs versions you're using. JK2, at last look, only worked with Apache 2.0.43. Try the older version of Apache, it should work. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Help me please.
Dear Whom It May Concern, I am a new user. Using tomcat 4.1.18. Right now I can access localhost (http://localhost:8080). But I can not access my JSP file(hello.jsp) in default directory as follows : %@ page contentType=text/html; charset=TIS-620 % html body % out.println(ÊÇÑÊ´Õ¤ÃѺ); % /body /html When I access http://localhost:8080/hello.jsp, it said as follows: HTTP Status 404 - /hello.jsp type Status report message /hello.jsp description The requested resource (/hello.jsp) is not available. Apache Tomcat/4.1.18 So please help me. I am looking forward to hearing from you soon. Thanks in advance. Best regards, Wasin Rujikietgumjorn. [EMAIL PROTECTED] _ 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]
Re: Help me please.
Wasin - When you say default directory, you mean $CATALINA_HOME/webapps/ROOT? Lajos Wasin Rujikietgumjorn wrote: Dear Whom It May Concern, I am a new user. Using tomcat 4.1.18. Right now I can access localhost (http://localhost:8080). But I can not access my JSP file(hello.jsp) in default directory as follows : %@ page contentType=text/html; charset=TIS-620 % html body % out.println(ÊÇÑÊ´Õ¤ÃѺ); % /body /html When I access http://localhost:8080/hello.jsp, it said as follows: HTTP Status 404 - /hello.jsp type Status report message /hello.jsp description The requested resource (/hello.jsp) is not available. Apache Tomcat/4.1.18 So please help me. I am looking forward to hearing from you soon. Thanks in advance. Best regards, Wasin Rujikietgumjorn. [EMAIL PROTECTED] _ 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] -- galatea.com Cocoon training, consulting support -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Is there a way to use Apache Authentication on jsp pages located ona different server?
I'm using Apache 2.0.43, and Tomcat 4.1.18 (which is located on a separate sever). Is there a way to use Apache basic authentication to authenticate these pages, when they exist on a separate server? When they're on the same server, I can just create a Directory tag, and set the authentication. But how do I do this when the jsp files are not on the same file system? Thanks, Raiden -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Webapp specific endorsed dir?
Hi all, Is there a way for webapps to declare jars that can override jars in Tomcat's common/endorsed directory? For example, if I want to my webapp to use a specific version of Xerces, independent of what gets distributed with Tomcat, what do I have to do? Right now, with Tomcat 4.1.18, if I have a copy of xercesImpl.jar in /WEB-INF/lib I get: Exception during startup processing java.lang.reflect.InvocationTargetException 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) Caused by: java.lang.VerifyError: Cannot inherit from final class at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:509) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1664) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:953) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1394) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1274) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.createContentDispatcher(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.init(XMLDocumentFragmentScannerImpl.java:249) at org.apache.xerces.impl.XMLDocumentScannerImpl.init(XMLDocumentScannerImpl.java:245) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.init(Unknown Source) at org.apache.xerces.parsers.IntegratedParserConfiguration.createDocumentScanner(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.init(DTDConfiguration.java:367) at org.apache.xerces.parsers.StandardParserConfiguration.init(StandardParserConfiguration.java:198) at org.apache.xerces.parsers.IntegratedParserConfiguration.init(Unknown Source) at org.apache.xerces.parsers.IntegratedParserConfiguration.init(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:296) at java.lang.Class.newInstance(Class.java:249) at org.apache.xerces.util.ObjectFactory.newInstance(ObjectFactory.java:266) at org.apache.xerces.util.ObjectFactory.findJarServiceProvider(ObjectFactory.java:360) at org.apache.xerces.util.ObjectFactory.createObject(ObjectFactory.java:185) at org.apache.xerces.util.ObjectFactory.createObject(ObjectFactory.java:120) at org.apache.xerces.parsers.SAXParser.init(SAXParser.java:140) at org.apache.xerces.parsers.SAXParser.init(SAXParser.java:125) at org.apache.xerces.jaxp.SAXParserImpl.init(SAXParserImpl.java:102) at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.java:95) at org.apache.commons.digester.Digester.getParser(Digester.java:676) at org.apache.commons.digester.Digester.getXMLReader(Digester.java:892) at org.apache.commons.digester.Digester.parse(Digester.java:1495) at org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:548) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:638) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3567) 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:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at
Changes in jsps do not appear
Greetings I am using Tomcat 4.1.10 in its standalone mode. My understanding of the documentation is that every time a jsp is requested, the source is checked and reparsed if it is more recent than the object in memory. (Where would this be?) I have a jsp that I have changed, but the changes do not appear. I have reloaded the web app via the manager app, and I have even restarted tomcat and still no change. I don't see anything in the logs that would indicate a problem, although I'm not sure what I'm looking for. Does anybody have any ideas where to start looking? Thanks. Mike -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Urgent problem with Singleton
Craig, As well as synchronizing that block and setting reloadable=false in the server.xml I paid close attention to when these extra instances are being created. When the server start and no requests have been received there is only the 1 instance. However as soon as a single request is made another 2 instances appear. From then on no more get created. I am not modifying code on the fly either. Any other ideas? regards, Dave - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, January 10, 2003 12:49 PM Subject: Re: Urgent problem with Singleton On Fri, 10 Jan 2003, David Hemingway wrote: Date: Fri, 10 Jan 2003 11:49:35 +1100 From: David Hemingway [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Urgent problem with Singleton Hi, I have a task scheduler thread that implements ServletContextListener and starts up as a listener with the following code from my web.xml: listener listener-class mypackage.MyServlet /listener-class /listener My problem is however I need this to be a singleton, its imperative. There always seems to be about 3 threads created though. The number of threads that Tomcat creates is *totally* independent of the number of listener instances that are created. I have tried numerous things including making this servlet call a singleton class to do the task scheduling but it still ends up with 3 threads. This is causing terrible concurrency problems that wouldn't exist if this was working properly. My serlvet code currently resembles the following: boolean hasBeenInitialized = false; public void contextInitialized(ServletContextEvent sce) { if(!hasBeenInitialized) { //Start up the task scheduler thread hasBeenInitialized = true; } } I am using Tomcat 4.1.18, Apache 1.3.27 under RedHat 7.3. I didn't have this problem under wn32 only Linux. Any help, or ideas on how I can get this to be a single instance would be greatly appreciated. Thank you At webapp startup time, Tomcat is supposed to create one and only one instance of each declared listener, and call its appropriate init method (contextInitialized() in your case). However, there's a bug in 4.1.18 (and earlier 4.1.x releases) where, if you are using Tomcat's auto-reload facility, the list of listeners doesn't get cleared so a new instance of the listener gets added each time you reload the app. This will be fixed in 4.1.19 -- in the mean time, be sure that you avoid Tomcat's auto-reload facilities if you depend on the listeners being singletons. A class that implements ServletContextListener should *not* itself be a Servlet, by the way. The only purpose for such a class should be to initialize resources that your webapp needs, not to also respond to requests. regards, Dave Craig -- 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: ldap library for tomcat
I too am using the Netscape Directory SDK for Java since 2 years, and it hasn't given me any trouble. It is quite stable and has a good documentation and tutorials to go with it. Regards, Kaustuv - Original Message - From: David Durst To: [EMAIL PROTECTED] Sent: Sunday, January 12, 2003 2:27 AM Subject: Re: ldap library for tomcat Or maybe a free one .. have a look at com.novell.ldap on http://www.openldap.org .. eriam Rob A. Augustinus a écrit: import javax.naming.ldap; Netscape has a package that I have used, very stable and solid. I never checked into the licensesing because I was working on a academic project. I believe you can also cruise through ldap using JNDI which is probably a overall better long term solution then using LDAP specific libraries. Just a thought. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [ OT ] what source code control system?
Renaming the file in the CVS repository makes it impossible to build old versions of your code. If you rename the file within CVS, then CVS thinks that file has always been called the new name. Checking out old tags will give you the file with the new name, not the old name. Most likely this will break your build. In general, renaming the file in the repository is a really bad idea and should be done only in very carefully considered circumstances. The only safe way to rename a file in CVS is to remove it and re-add it with the new name. Kinda lame. Jeff Schnitzer [EMAIL PROTECTED] The Sims Online -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 11, 2003 7:04 AM To: [EMAIL PROTECTED] Subject: Re: [ OT ] what source code control system? I did not know this trick! If it is this simple, you gotta wonder...why no cvs rename command... Larry [EMAIL PROTECTED] 01/10/03 17:03 PM Renaming things is trivial, just get the administrator to rename it for you. mv $CVSROOT/src/foo.java,v $CVSROOT/src/bar.java,v. Or if you don't care about losing your log history, then just delete and add it. -- 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]
Re: Various bugs with mod_jk and mod_jk2? And does Apache2.0.43+mod_jk2=inevitable hanging?
Raiden [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Just as a followup, even though all of the below still holds true, I did find out my problem with Apache 2.0.43 (it was a DNS misconfiguration that eventually held Apache up, even though I don't have it resolving host names). So, Apache 2.0.43 is now running fine with mod_jk2. However, it still has the problem where DirectoryIndex won't check for an index.jsp through tomcat by default, which creates a problem for those of us that have Apache on Tomcat running on separate machines. And how, exactly is Apache supposed to figure this out? ;-) The simplest way to work around this is to create a minimalist directory structure on the Apache box with dummy (e.g. zero length) index.jsp files. Apache can then figure out that it needs to serve 'index.jsp', and send the request to the Tomcat box to serve the actual page. Anyone have a workaround for this? (Besides creating empty index.jsp files to trick Apache). Thanks, -Raiden On Sat, 11 Jan 2003, Raiden wrote: Hello, I wanted to get Apache 2.0.43 and mod_jk2 working. They seemed to setup fine, and handle requests just great. But after a while, Apache starts hanging on every other request. I tried mod_jk, and it still does this. I removed all traces of both mod_jks, and it still does eventually starts hanging, even on static image requests that are not run through Tomcat. I'm assuming it's a problem with Apacheand my setup (Redhat 8.0). Anyone else have similar issues? Anyhow, so I went back to Apache 1.3.27, which does not hang at all. Now, here's where I noticed two weird things: #1) Apache 1.3.27 with mod_jk2 - mod_rewrites that have the [P] flag to proxy don't seem to actually get interpreted and sent over to Tomcat. #2) Apache 1.3.27 with mod_jk - mod_rewrites DO get interpreted. But, with Apache and Tomcat residing on two physical servers, Apache does not send over a request for index.jsp if the URL does not exactly specify it, even if the DirectoryIndex is set. (So, /index.jsp WILL go to Tomcat, but / will not, and is just processed as an Apache level index view.) I've had to actually create fake index.jsp files in a mock directory structure on the Apache side to trick it into sending index.jsp as default to Tomcat. Does anyone know how to fix either of those strange behaviors? Or BETTER yet, has anyone had the hanging problem with Apache 2.0.43 and mod_jk2, and found a way to fix it? Thanks, -Raiden -- 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]