Re: apache virtual hosting + server.xml + context
We are having the similar problem, but if we place context in server.xml, ( I also have a META-INF/context.xml ) and as we are using dbcp connection pool, and it seems that tomcat initializes those pool twice On 10/7/05, gianni dalmasso [EMAIL PROTECTED] wrote: hi list, i have a problem. i have apache 2.0 + tomcat 5.5. i have N name based virtual hosts on the same machine managed by apache; some of them need to use tomcat (have jsp pages and servlets...) if i set a server.xml of tomcat with several hosts, and every host has ist context -- it's ok ( but tomcat documentation says Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended to place Context elements directly in the server.xml file) if i try to move the context informations in a .xml file in a $CATALINA_HOME/conf/[enginename]/[hostname]/ directory, tomcat cannot serve anything (it acts as he cannot find files in docBase); - which is the right configuration ? - is it necessary to define different host in server.xml ?(-- so, when i add a new host i need to restart apache and tomcat...) thanks in advance here is the configuration that works.. HTTPD.CONF Include /var/jakarta-tomcat-5.5.9/conf/mod_jk.conf MOD_JK.CONF . NameVirtualHost xx.yy.zz.kk:80 VirtualHost xx.yy.zz.kk:80 DocumentRoot /var/www/html ServerName web.ccc.com http://web.ccc.com /VirtualHost VirtualHost xx.yy.zz.kk:80 Directory /var/www/html/aaa DirectoryIndex index.htm index.html index.jsp /Directory ServerName www.aaa.com http://www.aaa.com DocumentRoot /var/www/html/aaa JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 /VirtualHost VirtualHost xx.yy.zz.kk:80 Directory /var/jakarta-tomcat-5.5.9/webapps/bbb DirectoryIndex index.htm index.html /Directory ServerName www.bbb.com http://www.bbb.com DocumentRoot /var/jakarta-tomcat-5.5.9/webapps/bbb JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 /VirtualHost SERVER.XML Host name=www.aaa.com http://www.aaa.com Context path= docBase=/var/www/html/aaa debug=0 reloadable=true /Context /Host Host name=www.bbb.com http://www.bbb.com Context path= docBase=/var/jakarta-tomcat-5.5.9/webapps/bbb debug=0 reloadable=true /Context /Host This for example, don't work setting : SERVER.XML Host name=www.aaa.com http://www.aaa.com appBase = /var/www/html/aaa (or similar... ) /Host Host name=www.bbb.com http://www.bbb.com /Host the file : $CATALINA_HOME/conf/Catalina/www.aaa.com/aaa.xml Context path= docBase=/var/www/html/aaa debug=0 reloadable=true /Context - Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3
Re: tomcat 5 - apache 2 - ldap
But, you will run into problems if you use JNDIRealm with SSL (ldap with ssl - Container Managed Security)use mozilla-java sdk if you prefer to do this way. http://www.mozilla.org/directory On 7/27/05, Nili Adoram [EMAIL PROTECTED] wrote: What about single sign-on for web applications and PHP? Does tomcat delegate credentials back to Apache so Apache would not authenticate again? Thanks Nili On Wed, 27 Jul 2005 13:05:49 +0100, Raghupathy,Gurumoorthy [EMAIL PROTECTED] wrote: If you use Form-based authentication (login page) then tomcat needs to do it... Regards Guru -Original Message- From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: 27 July 2005 13:02 To: 'Tomcat Users List' Subject: RE: tomcat 5 - apache 2 - ldap Ask tomcat Because if sometime you change the webserver ( in the worst case ) then you don't need to change anything :) Tomcat has good support for OpenLdap ... ( I have been using it for 1 year ) Guru -Original Message- From: Nili Adoram [mailto:[EMAIL PROTECTED] Sent: 27 July 2005 12:54 To: tomcat-user@jakarta.apache.org Subject: tomcat 5 - apache 2 - ldap Hi, I need to setup the following system: - Tomcat 5.5.9 - Apache 2 (using mod_jk) - Redhat 7.3 - User authentication against Ldap (using OpenLdap) - Single sign-on (e.g. if the user is authenticated for entering a web application he will not have to authenticate again when browsing a PHP page) - Form-based authentication (login page) I still need to figure out the following: - Should Tomcat or Apache do ldap authentication ? - How are credentials passed between Tomcat and Apache (to ensure single sign-on) ? Your help is appreciated. -- Nili Adoram ([EMAIL PROTECTED]) SEMPRE Team, RD Qlusters Inc. 972-3-6081976 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with memory leak using Tomcat
I have experienced similar kind of memory leak, but that was while reloading the context. There was a steady increase in the memory usage after each autoReload of my struts 1.2.7-hibernate 2.1.8 powered webApp in Tomcat 5.5.7/JDK 1.5/Fedora Core 2. At the beginning: the process memory used by tomcat was 6.6%, then after each reload it went on slight increase such as: 7.8%, 8.3%, 8.8%, 9.1%, 10.1%, 10.7%Then I shutdown the tomcat server and restarted the server, I saw the memory usage as 6.4%, then on the next reload the usage was 7.9%. Meanwhile, the Java memory ( Runtime.getRuntime().totalMemory() Runtime.getRuntime().freeMemory() ) seem to stay pretty stabilizedSo, basically only process memory is increasing...which tells me that there is a leak in native memory. I saw similar threads like this when somebody had memory leaks with application reload/startup/shutdown with Tomcat Manager webapp... I am also looking for a good direction to move ahead. On 6/10/05, Mark Thomas [EMAIL PROTECTED] wrote: Does your profiling tool tell you the classes of the objects being created? Can you take a snapshot at two points in time, compare them and see what is different? If we know the class of the objects being created, it gives us a pretty good pointer as to where to start looking. Without this information, it is needle in haystack time. If your profiler doesn't do this, you probably need to get a new profiler. Mark Ed Hamilton wrote: I posted something similar to the Tomcat bug list and was asked to move it here. My first mailing to this list, so please correct any gaffes on my part... I'm running Tomcat 5.5.9; isapi redirector 1.2.13; J2SE 1.5.0.03; JDBC 3.1.8a; to support 2 very low volume websites. I have some kind of memory leak which triples tomcat's memory usage over about 4-5 days. I downloaded and installed AppPerfect profiler, and it shows a steady, consistent increase in objects and a corresponding decrease in the heap size. Even with my webserver shutdown and no Tomcat usage, this leak is persistent. The memory leak checker portion of AppPerfect reports multiple memory leaks (even with the web server shutdown as I mentioned.) Can anybody help me figure out how to find out where this is coming from? Best regards, Ed Hamilton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IE-Page not found problem
I have a struts-hibernate powered webapp running off a debian box, jdk 1.5 and tomcat 5.5.7 I have IE users complaining about page not found problems from time to time where as Firefox users never. I myselft have never encountered this problem as I use FirefoxThis led me to thinking that this might be a IE problem...Any suggestions on how to move ahead on the problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IE-Page not found problem
Dude: Read the email first... I am informing of the problem after we experienced with IE... On 6/6/05, Joe Plautz [EMAIL PROTECTED] wrote: Simple, test with IE as well. sudip shrestha wrote: I have a struts-hibernate powered webapp running off a debian box, jdk 1.5 and tomcat 5.5.7 I have IE users complaining about page not found problems from time to time where as Firefox users never. I myselft have never encountered this problem as I use FirefoxThis led me to thinking that this might be a IE problem...Any suggestions on how to move ahead on the problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IE-Page not found problem
I have no idea why you are continuing on this pathBut all I am looking for is suggestions on how to debug this problem with IE, if there is any. I am not offerring any excuse!! It's my work related work. I have had few issues with IE in the past such as url redirection problem but I have managed to find the fix for those. So, I was thinking maybe somebody in the users list have had some kind of positive experience with this in the past. Frank's suggestion on this regard was constructive. I work in a huge company...suddenly asking users to change the browser is not exactly the pratical solution either. On 6/6/05, Joe Plautz [EMAIL PROTECTED] wrote: Sorry for not including the smiley face but, dude, you're informing of a problem that exists within a browser that is used by the vast majority of web users and for some reason refused to test with it. Works on my box is not a valid excuse. Here's a link to a html validator, http://validator.w3.org/ Here's a link that explains a lot of the known issues, http://www.howtocreate.co.uk/wrongWithIE/ sudip shrestha wrote: Dude: Read the email first... I am informing of the problem after we experienced with IE... On 6/6/05, Joe Plautz [EMAIL PROTECTED] wrote: Simple, test with IE as well. sudip shrestha wrote: I have a struts-hibernate powered webapp running off a debian box, jdk 1.5 and tomcat 5.5.7 I have IE users complaining about page not found problems from time to time where as Firefox users never. I myselft have never encountered this problem as I use FirefoxThis led me to thinking that this might be a IE problem...Any suggestions on how to move ahead on the problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IE-Page not found problem
Thanks a lotI am using SSL and this is definitely a good direction to work on On 6/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: You are using SSL ? try: BrowserMatch .*MSIE.* nokeepalive ssl-unclean-shutdown regards Quoting Joe Plautz [EMAIL PROTECTED]: If it was only that simple. Rafa Krupiski wrote: Joe Plautz wrote: Simple, test with IE as well. yet simpler, tell your users it's IE problem and to use firefox instead :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- /\ /\/ \/\ Powerd by llbc.de - letz board it, yeahhh !!/ \ \ \ \ --- / / \ \ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ssl-forwarding filter not working in IE 6
Actually, I fixed the code by adding encodeRedirectURL method. Strange thing is Firefox does not seem to care about proper url encoding, where as IE does. On 4/15/05, Sng Wee Jim [EMAIL PROTECTED] wrote: Try setting the following 2 response header response.setHeader(Pragma, public); response.setHeader(Cache-Control, max-age=0); - Jim -Original Message- From: sudip shrestha [mailto:[EMAIL PROTECTED] Sent: Friday, April 15, 2005 9:54 PM To: Struts Users Mailing List; Tomcat Users List Subject: ssl-forwarding filter not working in IE 6 Hi : I have following code for automatic ssl-forwarding filter: public void doFilter(ServletRequest servletrequest, ServletResponse servletresponse, FilterChain filterchain) throws IOException, ServletException { String s = servletrequest.getScheme(); if( !s.equalsIgnoreCase(http) ) { //System.out.println( Normal filter Operation ); filterchain.doFilter(servletrequest, servletresponse); } else { HttpServletResponse response = (HttpServletResponse)servletresponse; HttpServletRequest request = (HttpServletRequest)servletrequest; //System.out.println( currPort: +request.getServerPort() ); String url = https://; + request.getServerName(); //System.out.println( currUrl: +url ); url = url + : + PORT; //System.out.println( currUrl: +url ); url = url + request.getRequestURI(); //System.out.println( currUrl: +url ); String queryStr = request.getQueryString(); if( queryStr!=null ) url = url + ? + queryStr; //System.out.println( currUrl: +url ); response.sendRedirect(url); return; } } This works perfectly in Firefox. However, IE just sits there till it throws me a page cannot be displayed. If I directly type secure url, e.g., https://domain.com/siteAdd, it works in IE as well, but IE just cannot seem to forward it to the secure url from the plain url. Any suggestions? The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not an intended recipient, please notify the sender of this email immediately. You should not copy, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Capco. http://www.capco.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ssl-forwarding filter not working in IE 6
Hi : I have following code for automatic ssl-forwarding filter: public void doFilter(ServletRequest servletrequest, ServletResponse servletresponse, FilterChain filterchain) throws IOException, ServletException { String s = servletrequest.getScheme(); if( !s.equalsIgnoreCase(http) ) { //System.out.println( Normal filter Operation ); filterchain.doFilter(servletrequest, servletresponse); } else { HttpServletResponse response = (HttpServletResponse)servletresponse; HttpServletRequest request = (HttpServletRequest)servletrequest; //System.out.println( currPort: +request.getServerPort() ); String url = https://; + request.getServerName(); //System.out.println( currUrl: +url ); url = url + : + PORT; //System.out.println( currUrl: +url ); url = url + request.getRequestURI(); //System.out.println( currUrl: +url ); String queryStr = request.getQueryString(); if( queryStr!=null ) url = url + ? + queryStr; //System.out.println( currUrl: +url ); response.sendRedirect(url); return; } } This works perfectly in Firefox. However, IE just sits there till it throws me a page cannot be displayed. If I directly type secure url, e.g., https://domain.com/siteAdd, it works in IE as well, but IE just cannot seem to forward it to the secure url from the plain url. Any suggestions? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ssl-forwarding filter not working in IE 6
Actually, I have apache serving static pages with jk-connector integrating services with Tomcat 5, and I did not show the full script, but I would like to redirect to secure url to only those requests coming from outside the company intranet. On 4/15/05, Jason Bainbridge [EMAIL PROTECTED] wrote: On 4/15/05, sudip shrestha [EMAIL PROTECTED] wrote: Hi : I have following code for automatic ssl-forwarding filter: Why do it that way? Why not just add transport-guarantee's in your web.xml and setup a redirect port for your http connector in your server.xml? eg. http://www.jguru.com/faq/view.jsp?EID=748030 Regards, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ssl-forwarding filter not working in IE 6
But still the question remains is this some sort of bug in IE? On 4/15/05, sudip shrestha [EMAIL PROTECTED] wrote: Actually, I have apache serving static pages with jk-connector integrating services with Tomcat 5, and I did not show the full script, but I would like to redirect to secure url to only those requests coming from outside the company intranet. On 4/15/05, Jason Bainbridge [EMAIL PROTECTED] wrote: On 4/15/05, sudip shrestha [EMAIL PROTECTED] wrote: Hi : I have following code for automatic ssl-forwarding filter: Why do it that way? Why not just add transport-guarantee's in your web.xml and setup a redirect port for your http connector in your server.xml? eg. http://www.jguru.com/faq/view.jsp?EID=748030 Regards, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ssl-forwarding filter not working in IE 6
I disabled my filter and have tried this way, once again works with Firefox but not with IE, exact same results. On 4/15/05, Jason Bainbridge [EMAIL PROTECTED] wrote: On 4/15/05, sudip shrestha [EMAIL PROTECTED] wrote: Hi : I have following code for automatic ssl-forwarding filter: Why do it that way? Why not just add transport-guarantee's in your web.xml and setup a redirect port for your http connector in your server.xml? eg. http://www.jguru.com/faq/view.jsp?EID=748030 Regards, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
connection pooling with JTOpen Toolbox_tomcat 5.5.7
Using: tomcat 5.5.7, JTOpen 4.7 JDBC Driver for AS/400 DB2 The DBAdmin of the company I work for ends the subsystems at night time for the backup, so the connection dies during that time and when I try to reconnect to application server via my webapp in the morning, it throws me exception saying that the connection does not exist: WARN http-8080-Processor22 net.sf.hibernate.util.JDBCExceptionReporter - SQL Error: -9, SQLState: 08003 ERROR http-8080-Processor22 net.sf.hibernate.util.JDBCExceptionReporter - The connection does not exist. However, after I try it couple of times I am able to connect, probably Tomcat re-establishes the connection to AS/400, so I was wondering if there was any parameter such as autoreconnect (such as in mysql) that can be provided in server.xml file, which will automatically reconnect in the first try instead of having to try if few times. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JNDI LDAP Resource
At the moment, Tomcat does not support JNDIRealm for LDAP via SSL with . However there an alternative available and I have documented it at: http://www.geocities.com/dipsth/myDocs/LDAPRealmTomcat.txt It makes use of mozilla Java-LDAP SDKI have successfully tested it with Tomcat 5.0.x, but haven't been successful with 5.5.xI guess you need to play with custom mbeans..which comes with the jar from the original author's site...Let me know if you are successful with the latter version of Tomcat. On Tue, 08 Mar 2005 10:04:30 -0600, Justin Crabtree [EMAIL PROTECTED] wrote: I am trying to setup a JNDI Resource in my server.xml for a SSL connection to a LDAP server. I have setup and used JDBC resources, but I have been unable to find any examples on setting up a LDAP connection. Is this even possible? If so, anyone have some good examples of how to set it up? If not, any suggestions on how to get the connection stuff out of the Java code and into some sort of config file? Thanks in advance for any help. -- Justin Crabtree Java Programmer Ozarks Technical Community College 447-7533 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running heavily loaded tomcat sites.
It was good to read your paper. I was wondering why ReiserFS is suitable for webapps that you are hosting. On Wed, 09 Feb 2005 00:18:52 +0100, Wojciech Sobczuk [EMAIL PROTECTED] wrote: Hello, I have collected my experiences with running a heavily loaded (and soon to be high availability) tomcat setup in a paper available here: http://brandlay.com/wojtek/publ/tomcat.jsp Have a look if you're interested and please email any comments directly to my email. Thanks! -- Wojciech Sobczuk [EMAIL PROTECTED] +48 605 607 170 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Performance of different Tomcat Releases
I would like to know if there is significant performance improvement from 5.0.x to 5.5.x. Is there some sort of relative performance study done by anybody? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JndiRelm/tomcat admin tool/ user, role listing
As Tim said, JNDIRealm does not have the ability to do that...So you will have to write a custom code (after you authenticate and get into the 'admin area' ) to make a connection to your realm and retrieve the list of users. However, Current JNDIRealm does not support ldap with SSL and it's not a good idea to use simple authentication on production. I have raised this issue on discussion threads in the past, but never seem to get an answer from anybody. There is an option available to use native java/ldap implementation of a realm module for the tomcat server developed by tony dahbura [http://www.dahbura.com/ldap/] and it supports Realm Authentication via SSL. I would like to know what is the status of development on JNDIRealm and how close it is to achieving the goal of authentication via SSL! On Wed, 19 Jan 2005 06:36:48 -0500, Tim Funk [EMAIL PROTECTED] wrote: JndiRealm does not hav the ability to browse users/groups. The user functionality in the admin app is to be able to edit the xml file as used by memoryRelm. -Tim Rakesh Tripathi wrote: Hi , I have a question related to Tomcat admin tool . Is it possible to list the users and roles from the tomcat admin tool , if tomcat is using JndiRelm for authentication. I'm using tomcat 5.0.28 and i recently migrated from memoryRelm to JndiRelm . Admin tool works great with memoryRelm. Using JndiRelm I can login as admin , but when I try to browse the users. I get the following message in the browser *type* Status report *message* _Error retrieving attribute users_ *description* _The server encountered an internal error (Error retrieving attribute users) that prevented it from fulfilling this request. _ And in the admin log i get following exception : 2005-01-18 12:57:48 StandardContext[/admin]action: Error retrieving attribute users javax.management.InstanceNotFoundException: MBeanServer cannot find MBean with ObjectName Users:type=UserDatabase,database=UserDatabase at mx4j.server.MBeanServerImpl.fin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JNDI Realm
Does the tomcat version 5.5.4 and above support JNDI Realm with SSL. If you check previous posts, several users have reported unsuccessful attempts at using JNDIRealm with SSL. I have been successful in setting up LDAPRealm with SSL on tomcat 5.0.28 that uses Mozilla's Java-LDAP SDK. This alternative Realm implementation was developed by Tony Dahbura..I don't know how many people are familiar with it. Go to http://www.dahbura.com/ldap/. Was just CURIOUS on if this was done with JNDIRealm or when this will be supported by JNDIRealm. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
which Linux Platform is best for Tomcat?
Hi! We are going to use Tomcat as our J2EE Server for the next project. I was wondering if anybody knows of some sort of comparative study of performance of Tomcat on different Linux Distributions. Recently I have seen that people were posting problems about Debian (woody). We are thinking of Fedora Core 2. Any suggestions/comments are welcome. Regards, Sudip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0.28 Shutdown problem
- If anybody has gotten around it, please let me know. Thanx, Sudip Shrestha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AS/400 DB2
Hi ! I am trying to connect to an AS/400 DB2 via IBM DataDirect JDBC DriverWondering if anybody has any experience with this. You have to specify a location and collectionId attribute. My url connection string looks like this: jdbc:datadirect:db2://serverName:5;Location=nameOfDatabase;CollectionId=DEFAULT; I am providing a 'existing' database name [termed as library in AS/400 language] as nameOfDatabase in the string..but the exception thrown is: - java.sql.SQLException: [DataDirect][DB2 JDBC Driver]An invalid databaseName was specified. at com.ddtek.jdbc.base.BaseExceptions.createException(Unknown Source) at com.ddtek.jdbc.base.BaseExceptions.getException(Unknown Source) at com.ddtek.jdbc.db2.DB2ImplConnection.open(Unknown Source) at com.ddtek.jdbc.base.BaseConnection.connect(Unknown Source) at com.ddtek.jdbc.base.BaseConnection.setupImplConnection(Unknown Source) at com.ddtek.jdbc.base.BaseConnection.open(Unknown Source) at com.ddtek.jdbc.base.BaseDriver.connect(Unknown Source) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:171) at ddJdbcTest.main(ddJdbcTest.java:29) - So, it seems to make a connection but fails to find that database which does exists! Is there something else to this? If anybody else has any experience, please let me know! Thanx, Sudip Shrestha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0.28 Shutdown Problem
- If anybody has gotten around it, please let me know. Thanx, Sudip Shrestha Bellevue, NE 68005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Alternative to Tomcat's JNDI Implementation
First read this trail: http://www.mail-archive.com/[EMAIL PROTECTED]/msg127064.html Current Tomcat JNDI implementation for LDAP authentication with SSL on port 636 does not work...Set the appropriate debug level in the Realm Definition and check your tomcat log to view the exceptions. Here is an Alternative from Tony Dahbura that utilizes LDAP Java SDK: http://www.dahbura.com/ldap/jdk14/index.html I have tried it and it works for both simple and secure authenticationSo, if anybody is looking for tomcat - openldap - Authentication solution this is the way to go at the moment. Sudip Shrestha Web Developer Information Technology Services UNO ---