Re: Tools for benchmarking profiling Tomcat
I have not gotten jmeter to support mutually authenticated SSL. Is this possible? jmeter -Tim Steph Richardson wrote: I guess this is more of a generic http server question than a tomcat one, but I'm looking for recommended toolset(s) to use in benchmarking the performace of our tomcat based webapps. I'm looking for something like Apache Benchmarking Tool that I could use on windows - preferably free, and preferably a java based thing that I could run elsewhere, and that I could wrap in Ant tasks, and that supports https. Suggestions appreciated. - 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: RH8 vs RH9 problem (resolved)
This problem is solved. Just in time actually, it had to be live tomorrow. The solution was particular for jCharts: it uses X11 to generate the charts (I guess) and therefore it needed a special configuration. Jaap On Sun, 2003-08-24 at 00:21, Jaap Stelwagen wrote: Hi, I have two systems running the same web application. The first system is a test system and it works OK, but the production server throws a NoClassDefFoundError error. The application is deployed from a war file. And the jar's are packed in the war (WEB-INF/lib directory). So the war's are the same on both servers. You can see online: http://test.jaap.nl/charts/what.png (works OK) http://jaap.nl/charts/what.png (the error) Some details, Test system: Tomcat 4.1.24, Java 1.4.2, Red Hat 9 on Intel, jCharts 0.7.4 Production system: Tomcat 4.1.24, Java 1.4.2, Red Hat 8 on AMD, jCharts 0.7.4 Can anybody show me where to look? Regards, Jaap - 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]
Setting up Eclipse for remote debug struts action classes in tomcat?
I know I have read that you can use eclipse to remote debug tomcat, but is it possible to have eclipse debug struts action classes that are being executed by Tomcat? And is there anywhere that documents how that would work.. I'd love to know what the value of some variables are at runtime etc when I'm having problems with it.. thanks in advance! -D
Re: problem installing basic app
At 01:21 PM 8/24/2003 -0700, you wrote: How would you register a webapp's servlet and that servlet's url-mapping when the invoker servlet mapping is disabled...??? I hope that sounds right. I just uncommented the invoker mapping in conf/web.xml but if this is a security risk I would like to know the other way to go about installing new web apps Use your own custom servlet mappings. In fact, you can set up your mappings to be under /servlet if you want, giving you the paths you are used to without enabling the invoker servlet. Jake - 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: Shared Webapp
At 11:47 AM 8/24/2003 -0500, you wrote: I am able to put classes in the CATALINA_HOME\shared\classes and have all of my hosts access a common class. Is there a way to set a user directory as a shared webapp like that? Not unless you modify the startup scripts. I'd avoid this since that will be one more thing you have to maintain. I am trying to move all of my webapps outside of the installed directories. I have a directory F:\www\common\classes and I want to make all classes in that directory shared by all hosts. Can that be done? Keep in mind that if you shared classes/libraries between apps, you have to look out for static variables. If one app sets a static variable, all the other apps will be affected by the change. This can make debugging pretty difficult. That is why even if you have to duplicate libraries, you should supply these in WEB-INF/lib or WEB-INF/classes of each webapp. This is much safer and makes the apps more portable. If you need to move one app to another server, but not the other apps, the only thing you have to do is send the .war file and you won't have to worry about libraries external to the .war being required to set up on the other server. But, if you want to forgo that advice, modify Tomcat's startup scripts to suit your needs. Jake Thanks, Keith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Servlet re-load question
I'm having trouble reloading servlets on Tomcat 4.1.27. The log files indicate that Tomcat notices that the servlet has changed. First time, after updating the servlet, I hit up the servlet I get a 500 error and a stack trace. Every time after that I get a resource not available error. My context looks something like this: Context docBase= docRoot= reloadable=true Can anyone please tell me what I can do? This is pretty serious because I have to re-start Tomcat each time somone changes a servlet. Thanks in advance. Atreya - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Directory Listing problem Apache-Tomcat
Hello, I'm having a problem getting a directory listing using Apache and Tomcat. I have a directory that I want to display the contents of using Apache. However, when I access the directory (http://myhost.com/dir/) I get a 404 error from Tomcat. In my workers2.properties file I have the uri directive set to only allow .jsps: [uri:myhost.com/*.jsp] group= And I have listings set to false in the conf/web.xml file. Can anyone please give me any suggestions? Oh, I'm using Apache2 and Tomcat 4.1.27 Thanks, Atreya - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
of vhosts and workers
I'm in the process of configuration Tomcat 4.1.27 to communicate with Apache 1.3.28 through mod_jk on a single machine. I have several virtual hosts set up on my server in the following way: /home/vhost1, /home/vhost2, etc.. I would like to configure Apache/Tomcat to allow users of these vhosts to serve JSPs/Servlets from beneath their home directories, e.g.: /home/vhost1/public_html/webapps/ and /home/vhost2/public_html/webapps/. From my reading, I understand that this can be accomplished by: - setting the appBase attribute of the Home tag in the server.xml to those absolute directories: Home appBase=/home/vhost1/public_html/webapps/... ... Home appBase=/home/vhost2/public_html/webapps/... - setting the docBase/path attributes in the child Context tag to some directory within the appBase path: Home appBase=/home/vhost1/public_html/webapps/... Context docBase=app1 path=/app1... ... Home appBase=/home/vhost2/public_html/webapps/... Context docBase=app1 path=/app1... This would cause the primarly application app1 to be served out of vhost1's home from /home/vhost1/public_html/webapps/app1, and another applicationed app1 belonging to vhost2 to be served out of /home/vhost2/public_html/webapps/app1. This is my understanding of these attributes, though I don't quite get what the distinction between docBase and path is, as I've not found a decent enough description nor a solid example to set these in stone for me. My questions: 1: Would the aforementioned configuration properly serve JSPs/Servlets from locations beneath vhost1 and vhost2's home directories? 2: What exactly do the docBase and path attributes define within the Context tag? What is the distinction? 3: It is possible to have a single worker handle requests for more than one web application belonging to more than one virtual host/user. How beneficial would it be to have a single worker handle requests sent to it from Apache for more than one virtual host? Would it be more efficient to have one worker for each virtual host and have a load balancing worker to manage those subordinate workers? 4: What sort of mechanisms to workers use to handle requests? Does a worker receive a request, fork(), child process handles the request, communicates with the Tomcat JVM, and returns the result to the requesting client, while the parent simply sits and listens for more connections? If this is the case, would a load balancer really serve to benefit anything if all this is taking place on a single machine, given that all the workers would be of type ajp13? I'm trying to achieve and optimal, secure configuration. One that would allow the users to manage their own web applications within their home directories so I don't have to open up rwx access to the world beneath the $TOMCAT_HOME directory. Granted, I'll still have to amend server.xml to insert new contexts for users adding new WARs, but this is trivial. I've read a number of articles and even the manual describing configuration options, etc., but it seems that there are just a few points missing that would really put things into perspective for me, so I'm sending these, probably simple, questions to the list, as my last resort. Any information or links would be greatly appreciated, and hopefully I'll be able to get everything organized efficiently and securely. Thanks, Christopher Garrett III Inixoma, Incorporated - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting up Eclipse for remote debug struts action classes intomcat?
The most basic way is probably to use log4j or commons logging and then use the eclipse logwatcher plugin to keep watch over your log files. Paul Sundling Quasar wrote: I know I have read that you can use eclipse to remote debug tomcat, but is it possible to have eclipse debug struts action classes that are being executed by Tomcat? And is there anywhere that documents how that would work.. I'd love to know what the value of some variables are at runtime etc when I'm having problems with it.. thanks in advance! -D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
(confirmed) WebdavServlet: PROPPATCH doesnt work
Hi confirmed: the WebdavServlet's PROPPATCH method in tomcat 4 5 doesnt work actually, it just isnt implemented. the fact is not in the docs (afaik), on the contrary, several pages in the jakarta site claim tomcat 4 supports webdav level 2, which is not true. it is not in the bugtracker; but it may be considered not a bug, it's just not implemented. the tomcat 5 source code simply reads /** * PROPPATCH Method. */ protected void doProppatch(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { if (readOnly) { resp.sendError(WebdavStatus.SC_FORBIDDEN); return; } if (isLocked(req)) { resp.sendError(WebdavStatus.SC_LOCKED); return; } resp.sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED); } $2c, *-pike Internet search engines that take money from Web sites in exchange for prominent placement should make that practice clearer to Web users, federal regulators said Friday.Many search engine Web sites, including AltaVista, LookSmart and AOL Search, give preferred placement to paid advertisers. The Federal Trade Commission said that prime space can confuse Web users who are looking for the best response to their search, rather than ads for sites that paid up front. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
trying to use manager/html app with o.a.catalina.realm.JAASRealm
I'm using org.apache.catalina.realm.JAASRealm for my authentication for my webapps, and I have got to the point where I want to use tomcat's manager and admin app. Unfortunately when I try to use JAASRealm for the manager, JAASCallBackHandler throws an exception because it hasn't been given the username and password. It is in fact throwing the exception before the user (i.e. me) has even hit the login button on the basic auth. login form. It looks like JAASRealm has just not been developed that far yet. Is this so? Secondly, how can I configure two realms so that manager can use the MemoryRealm and my apps can carry on using the JAASRealm? I can't work out from the docs what exactly I am meant to do. To try to run both realms, I tried this with no joy: !-- This Realm uses the UserDatabase configured in the global JNDI resources under the key UserDatabase. Any edits that are performed against this UserDatabase are immediately available for use by the Realm. -- Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=99 resourceName=UserDatabase/ !-- this is the BlackSail realm -- Realm className=org.apache.catalina.realm.JAASRealm appName=BlackSailRealm userClassNames=org.blacksail.realm.BlackSailUser roleClassNames=org.blacksail.realm.BlackSailRole debug=0 / Can anybody help? Thanks Adam -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OutofMemory Error
Hi , I am running a simple servlet/jsp on Tomcat 4.1.18 (on Solaris machine with 4GB mem). The application suppose to extract some data from database but I encountered this error: java.lang.OutOfMemoryError . I don't have any traffic on the tomcat server. Is this a java or tomcat error ?. How can I solve this problem ?. Appreciate your advice. Thanks Regards, Thana - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Servlet re-load question
Atreya Your code looks fine but it may be that you are ommiting the path paramater that is causing the problem: Context path=/examples docBase=examples debug=0 reloadable=true Kind Regards Schalk Neethling Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za :: -Original Message- :: From: Atreya Basu [mailto:[EMAIL PROTECTED] :: Sent: Tuesday, August 26, 2003 7:13 AM :: To: Tomcat Users List; Atreya Basu :: Subject: Servlet re-load question :: :: I'm having trouble reloading servlets on Tomcat 4.1.27. :: :: The log files indicate that Tomcat notices that the servlet has :: changed. First time, after updating the servlet, I hit up the servlet I :: get a 500 error and a stack trace. Every time after that I get a :: resource not available error. :: My context looks something like this: :: Context docBase= docRoot= reloadable=true :: :: Can anyone please tell me what I can do? This is pretty serious because :: I have to re-start Tomcat each time somone changes a servlet. :: :: Thanks in advance. :: :: :: Atreya :: :: :: - :: 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: OutofMemory Error
set JAVA_OPTS environment variable to your preferred max and min heap sizes Example : JAVA_OPTS=-server -Xincgc -Xms128m -Xmx256m Looking for Help : java -X At 05:55 PM 8/25/2003 +0800, you wrote: Hi , I am running a simple servlet/jsp on Tomcat 4.1.18 (on Solaris machine with 4GB mem). The application suppose to extract some data from database but I encountered this error: java.lang.OutOfMemoryError . I don't have any traffic on the tomcat server. Is this a java or tomcat error ?. How can I solve this problem ?. Appreciate your advice. Thanks Regards, Thana - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Best Regards, Venkata Srinivasa Rao, Yerra, Jadason Technology Limited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with web.xml
Hello friends, I have a problem with web.xml, in specifying the welcome-file-list tag. In the web.xml file i have specified in the following way. welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.jsp/welcome-file welcome-fileindex.htm/welcome-file /welcome-file-list But my problem is, eventhough i have specified to pickup index.html as the welcome file my tomcat server is showing index.jsp file always. I tried other combination but no use. I am using tmcat-3.2.1. Other than conf/web.xml file, any other file i have to change or what? any installation problem? Please let me know. Thanks, Madhu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with web.xml
hello, in web.xml, is there any statement like this: init-param param-namelistings/param-name param-valuetrue/param-value /init-param if exists,try this: init-param param-namelistings/param-name param-valuefalse/param-value /init-param .So you only change value of listings parameter with false. From: Madhu Vadlapudi [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Problem with web.xml Date: Mon, 25 Aug 2003 15:46:17 +0530 Hello friends, I have a problem with web.xml, in specifying the welcome-file-list tag. In the web.xml file i have specified in the following way. welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.jsp/welcome-file welcome-fileindex.htm/welcome-file /welcome-file-list But my problem is, eventhough i have specified to pickup index.html as the welcome file my tomcat server is showing index.jsp file always. I tried other combination but no use. I am using tmcat-3.2.1. Other than conf/web.xml file, any other file i have to change or what? any installation problem? Please let me know. Thanks, Madhu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: trying to use manager/html app with o.a.catalina.realm.JAASRealm
You can place a Realm inside a Context declaration. As for the non-working of JAASRealm - I know nothing about it and have not used it. -Tim Adam Hardy wrote: I'm using org.apache.catalina.realm.JAASRealm for my authentication for my webapps, and I have got to the point where I want to use tomcat's manager and admin app. Unfortunately when I try to use JAASRealm for the manager, JAASCallBackHandler throws an exception because it hasn't been given the username and password. It is in fact throwing the exception before the user (i.e. me) has even hit the login button on the basic auth. login form. It looks like JAASRealm has just not been developed that far yet. Is this so? Secondly, how can I configure two realms so that manager can use the MemoryRealm and my apps can carry on using the JAASRealm? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with web.xml
Madhu If this is just for the first (homepage) you have two options, if you are working with Tomcat via Apache create a standard .html page that you place in your .htdocs of Apache, in this have a meta-refresh tag that directly forwards to the .html you want to go to alternatively, strip all the welcome-files from the list except index.html. Hope this helps. I would also like to see if there are alternative/better ways to accomplish this posted by someone else. welcome-file-list welcome-fileindex.html/welcome-file /welcome-file-list Kind Regards Schalk Neethling Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za :: -Original Message- :: From: Madhu Vadlapudi [mailto:[EMAIL PROTECTED] :: Sent: Monday, August 25, 2003 12:16 PM :: To: [EMAIL PROTECTED] :: Subject: Problem with web.xml :: :: Hello friends, :: :: I have a problem with web.xml, in specifying the welcome-file-list tag. In the :: web.xml file i have specified in the following way. :: :: welcome-file-list :: welcome-fileindex.html/welcome-file :: welcome-fileindex.jsp/welcome-file :: welcome-fileindex.htm/welcome-file :: /welcome-file-list :: :: But my problem is, eventhough i have specified to pickup index.html as the :: welcome file my tomcat server is showing index.jsp file always. I tried other :: combination but no use. I am using tmcat-3.2.1. Other than conf/web.xml file, :: any other file i have to change or what? any installation problem? Please let :: me know. :: :: Thanks, :: :: Madhu :: :: :: - :: 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: Servlet re-load question
Hi, Thanks for the suggestion. This context is my root context. So I don't want to reach it via a sub-directory, I want to access it from the root url. _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Schalk [mailto:[EMAIL PROTECTED] Sent: August 25, 2003 6:13 AM To: 'Tomcat Users List' Subject: RE: Servlet re-load question Atreya Your code looks fine but it may be that you are ommiting the path paramater that is causing the problem: Context path=/examples docBase=examples debug=0 reloadable=true Kind Regards Schalk Neethling Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za :: -Original Message- :: From: Atreya Basu [mailto:[EMAIL PROTECTED] :: Sent: Tuesday, August 26, 2003 7:13 AM :: To: Tomcat Users List; Atreya Basu :: Subject: Servlet re-load question :: :: I'm having trouble reloading servlets on Tomcat 4.1.27. :: :: The log files indicate that Tomcat notices that the servlet has :: changed. First time, after updating the servlet, I hit up the servlet I :: get a 500 error and a stack trace. Every time after that I get a :: resource not available error. :: My context looks something like this: :: Context docBase= docRoot= reloadable=true :: :: Can anyone please tell me what I can do? This is pretty serious because :: I have to re-start Tomcat each time somone changes a servlet. :: :: Thanks in advance. :: :: :: Atreya :: :: :: - :: 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: Tomcat Using Log4J ?
Bottom line is that, if you want Log4j logging to work properly, make sure log4j.jar is in WEB-INF/lib. I had unwanted Debugging-Output from org.apache.commons.Digester and org.apache.commons.Digester.sax that made it impossible to continue to work. Everytime i started Tomcat i had to wait 10 minutes for the initialization of a tag library, because of that crap debug output. This was the solution indeed. Thanks. Hayo Jacob Kjome schrieb: Quoting Lukas Bradley [EMAIL PROTECTED]: Does Tomcat 4.1.24 initialize a Log4J instance? It seems as if something is stepping on my Log4J properties, and I don't know where it is. The first thing my application does is start the plugin, but here is my log: It's actually Commons Digester. When I set it to a DEBUG level, it goes CRAZY on the log. Is there any way to ensure that my log properties get set before Digester starts? That Depends. Where do you have Log4j; in common/lib, WEB-INF/lib, or both? Is digester in your WEB-INF/lib or is it Tomcat's copy of digester which reads the server.xml and other xml config files? Note that the trouble is usually the fault of commons-logging which messes things up significantly. Do you have commons-logging in your WEB-INF/lib? Bottom line is that, if you want Log4j logging to work properly, make sure log4j.jar is in WEB-INF/lib. Then, nothing else will step on your configuration except for, possibly, other 3rd party libraries in WEB-INF/lib that perform Log4j configuration (which is a big no, no...general libraries shouldn't be performing Log4j configuration, they should leave that to your application). Put your config file in WEB-INF/classes for default log4j configuration or put it wherever and load it yourself. I suggest using a servlet context listener to load configuration upon startup. Anway, until you detail the setup of your application, I can't tell you much more. BTW, you really should remove Xerces from WEB-INF/lib. This should be loaded from common/lib. The explanation has been detailed on the list many times before so I won't go into it. Jake Lukas - 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: mysql connection pooling problem
Hi James, I tried inserting the context-param into web-app, no effect. But thanks for catching the typo in my JSP code in the lookup() line. Unfortunately, this had no effect either. I still get the infamous Cannot load JDBC driver class 'null' error... hurmmm... Any suggestions from others are appreciated too! Anyone? On Sat, Aug 23, 2003 at 11:09:36AM -0600, James Harman wrote: : Eugene Lee wrote: : On Sat, Aug 23, 2003 at 08:59:05AM -0600, James Harman wrote: : : : : I noticed that in the web.xml you have the jbdc resource in a : : resource-ref. In my stuff I have it as a context-param like this : : : : context-param : :param-name : : javax.servlet.jsp.jstl.sql.dataSource : :/param-name : :param-value : :jdbc/testdev : :/param-value : : /context-param : : : : This comes right after the web-app element in the web.xml file. : : : : I am not experienced enough to know the difference between context-param : : and resource-ref, but this seems to work for me. : : Another thing you might look at is your jsp code. You have : : DataSource ds = (DataSource)ctx.lookup(java:/comp/env/jdbc/testdev); : : you probably want : : DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/testdev); : : notice that there is no / before comp. -- Eugene Lee http://www.coxar.pwp.blueyonder.co.uk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ Apache / Tomcat ]
Dan McCullough wrote: I have not ever had any problems doing Tomcat/Apache/JDBC/MySQL/SSL, except these last few times at it has been problems with corupt downloads and incompatible mod_jk, and its a pain trying to find any mod_jk. So if you find it make sure it is compatiable with your version of Apache, or it wont work. BTW has anyone seen the verison for Apache 2.0.40? You have to build it from source. The only binaries you will find on the Jakarta site are binaries built against standard Apache distributions. Red Hat's Apache says it is 2.0.40 but it is not...what it really means is that it is 2.0.40 with patches applied from later releases that RH feels are needed. RH does not update the version number, nor can you be really sure that they've applied the fixes (.41 through .47) correctly. Thus, Apache 2.0.40 in a Red Hat context equals Our version of Apache which we call 2.0.40 which may or may not be equal to any other standard Apache distribution. I think you'd have to install the httpd-source RPM and diff it against the Apache 2.0.47 source to really figure out what's different or if they are identical. I don't know of anyone who has done that...it's much easier to just download Apache and build it...takes about 90 seconds on a P3. So, the answer to your question: build it from source. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ Apache / Tomcat ]
Thanks, thats what I was thinking. I am now going around and building from source. --- John Turner [EMAIL PROTECTED] wrote: Dan McCullough wrote: I have not ever had any problems doing Tomcat/Apache/JDBC/MySQL/SSL, except these last few times at it has been problems with corupt downloads and incompatible mod_jk, and its a pain trying to find any mod_jk. So if you find it make sure it is compatiable with your version of Apache, or it wont work. BTW has anyone seen the verison for Apache 2.0.40? You have to build it from source. The only binaries you will find on the Jakarta site are binaries built against standard Apache distributions. Red Hat's Apache says it is 2.0.40 but it is not...what it really means is that it is 2.0.40 with patches applied from later releases that RH feels are needed. RH does not update the version number, nor can you be really sure that they've applied the fixes (.41 through .47) correctly. Thus, Apache 2.0.40 in a Red Hat context equals Our version of Apache which we call 2.0.40 which may or may not be equal to any other standard Apache distribution. I think you'd have to install the httpd-source RPM and diff it against the Apache 2.0.47 source to really figure out what's different or if they are identical. I don't know of anyone who has done that...it's much easier to just download Apache and build it...takes about 90 seconds on a P3. So, the answer to your question: build it from source. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Theres no such thing as a problem unless the servers are on fire! __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ Apache / Tomcat ]
The HOWTO will work for all versions of Red Hat (and probably any other Linux). The only gotcha is getting the correct mod_jk.so binary. Everything else is the same as far as I can tell. John Michele Neylon:: Blacknight Solutions wrote: Which version of Apache? Which OS? If it's RH with 1.3* have a look at John Turner's howto: http://www.johnturner.com/howto/apache-tomcat-howto.html M Mr. Michele Neylon Blacknight Solutions http://www.blacknightsolutions.com # This message (and any attachment) is intended only for the recipient and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete this message immediately. Disclosure, copying or other action taken in respect of this email or in reliance to it is prohibited. - 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: Problem with web.xml
hello, in web.xml, is there any statement like this: init-param param-namelistings/param-name param-valuetrue/param-value /init-param if exists,try this: init-param param-namelistings/param-name param-valuefalse/param-value /init-param actually, i did this also, but no use I am using stanalone tomcat. I am not using APache server. Any more suggestions ... Madhu .So you only change value of listings parameter with false. From: Madhu Vadlapudi [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Problem with web.xml Date: Mon, 25 Aug 2003 15:46:17 +0530 Hello friends, I have a problem with web.xml, in specifying the welcome-file-list tag. In the web.xml file i have specified in the following way. welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.jsp/welcome-file welcome-fileindex.htm/welcome-file /welcome-file-list But my problem is, eventhough i have specified to pickup index.html as the welcome file my tomcat server is showing index.jsp file always. I tried other combination but no use. I am using tmcat-3.2.1. Other than conf/web.xml file, any other file i have to change or what? any installation problem? Please let me know. Thanks, Madhu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : RE : Folder Permissions taken over by Tomcat 4
John, Your theory is wrong, and here is why : how would Tomcat be able to change your permissions, if you set an access-denied type of permission to Tomcat so that he -cannot- change your permissions ? This is obvious : you prevent Tomcat from accessing some of your JSP files : therefore he won't be able to access them neither change their permissions... Just logical. My problem here is different, and doesn't have anything to do with a Microsoft tool or the like (since like I said, Tomcat is installed on a Linux server, and besides, Microsoft users don't have such tools or knowledge to change permissions back to Tomcat4 users (why would they do that ?)). Have to check if it's Samba related, thanks for the suggestion. Definitely, what I say here is for true : restart Tomcat4 and all your permissions you might have set before in your web application folder are replaced, and I'm talking about Linux OS, didn't try it on Windows. And I want to prevent this from happening. Anyone has an idea ? Thank you -Message d'origine- De : John Turner [mailto:[EMAIL PROTECTED] Envoyé : vendredi, 22. août 2003 18:37 À : Tomcat Users List Objet : Re: RE : Folder Permissions taken over by Tomcat 4 I still don't believe it. The reason I don't believe it is simple: if I change the permissions in my Context or one of its subdirectories or files to something that prevents Tomcat from using the resources (JSP file or whatever), Tomcat does not change the permissions back to what it needs to work, instead my apps fail and throw errors like crazy. If Tomcat is doing what you say it is doing, I would never get errors, because Tomcat would just merrily go around and change permissions on resources so that it was happy, which is what you say it is doing. If anything, it isn't Tomcat that's doing it to you...if I had to guess, it would be samba or something on one of the Windows clients like some goofy tool Microsoft has like a fast indexer or some other munged up app (much more likely). John Hertenstein Alain wrote: Yes I do confirm it again (at least on Linux Red Hat 7.2, as long as the OS has anything to do with it). Ok I repeat : - have a web application configured on Tomcat 4.0.3, in a folder like webapps/myApps - share an application's sub-folder (f.ex. webapps/myApps/documents), and try to set permissions (read write) and ownership for specific user accounts which will access this sub-folder through SMB. - restart Tomcat 4 : all these permissions in the webapps/myApps/documents folder are gone. And furthermore, the folder's Ownership (maybe the problem lies here actually...) is set to user : tomcat4, and group : tomcat4 I can send screenshots if you don't believe this... Nobody heard of this before !? Alain -Message d'origine- De : John Turner [mailto:[EMAIL PROTECTED] Envoyé : vendredi, 22. août 2003 14:40 À : Tomcat Users List Objet : Re: Folder Permissions taken over by Tomcat 4 You're saying Tomcat runs around and changes the directory permissions? I find that really hard to believe...I'm running Tomcat 3.1, 4.1.12, 4.1.18, and 4.1.27 in various places and have never seen this behavior. John Hertenstein Alain wrote: Hello, We have a Red Hat Linux 7.2 Server with Tomcat v4.0.3 installed, and a web application configured, let's say myApps. In this webapps/myApps folder, there are folders which we have shared through SMB so that Windows users can access them, and we have also changed the folder's permissions, so that these users can modify their contents. Everything works fine. The problem here is when we have to restart Tomcat 4, all permissions under that webapps/myApps folder are restored this way - User : Tomcat 4, Group : Tomcat 4. So this means that all our permissions settings are cleared ! And we have to set them back again each time we restart Tomcat 4 (in case of a server reboot, or major application change, etc), which is quite annoying. Is there a way to avoid this ? Thank you very much Alain ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ** - 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]
Modjk2 error log
Hello, Tomcat 4.1.18/Apache 2.0.43/mod_jk2 3 virtual hosts in Apache, 3 virtual hosts in Tomcat Apache virtual host section NameVirtualHost * # # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # The first VirtualHost section is used for requests without a known # server name. # #VirtualHost * #ServerAdmin [EMAIL PROTECTED] #DocumentRoot /www/docs/dummy-host.example.com #ServerName dummy-host.example.com #ErrorLog logs/dummy-host.example.com-error_log #CustomLog logs/dummy-host.example.com-access_log common #/VirtualHost #-# VirtualHost * ServerAdmin [EMAIL PROTECTED] ServerName test1.com DocumentRoot C:/WebDocs/RootServer Directory C:/WebDocs/RootServer Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all deny from none /Directory CustomLog logs/test1.log common ErrorLog logs/test1.log /VirtualHost #-# VirtualHost * ServerAdmin [EMAIL PROTECTED] ServerName test2.com DocumentRoot C:/WebDocs/TrackingSys/Test Directory C:/WebDocs/TrackingSys/Test Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all deny from none /Directory CustomLog logs/test2.log common ErrorLog logs/error_test2.log Location /TruckEnqui/ JkUriSet worker ajp13:test2.com:8009 /Location /VirtualHost #-# VirtualHost * ServerAdmin [EMAIL PROTECTED] ServerName test3.com DocumentRoot C:/WebDocs/TrackingSys/Live Directory C:/WebDocs/TrackingSys/Live Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all deny from none /Directory CustomLog logs/test3.log common ErrorLog logs/error_test3.log Location /TruckEnqui/ JkUriSet worker ajp13:test3.com:8009 /Location /VirtualHost #-# VirtualHost * ServerAdmin [EMAIL PROTECTED] ServerName xi.com DocumentRoot c:/Webdocs/IT/xi Directory c:/Webdocs/IT/xi DirectoryIndex index.html index.html.var Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all /Directory CustomLog logs/xi-access.log common ErrorLog logs/xi-error.log Location /unicorn2xml JkUriSet worker ajp13:xi.com:8009 /Location Location /xml2unicorn JkUriSet worker ajp13:xi.com:8009 /Location Location /xi JkUriSet worker ajp13:xi.com:8009 /Location /VirtualHost workers2.properties file : [logger.apache2] level=DEBUG [shm] file=c:/shm.file size=1048576 # Example socket channel, override port and host. [channel.socket:test3.com:8009] port=8009 host=127.0.0.1 # Example socket channel, override port and host. [channel.socket:test2.com:8009] port=8009 host=127.0.0.1 # Example socket channel, override port and host. [channel.socket:xi.com:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:test3.com:8009] channel=channel.socket:test3.com:8009 # define the worker [ajp13:test2.com:8009] channel=channel.socket:test2.com:8009 # define the worker [ajp13:xi.com:8009] channel=channel.socket:xi.com:8009 Do we need worker for each virtual host? (I had the idea that those notions were linked.) Log file from apache [Mon Aug 25 11:22:05 2003] [notice] Parent: Created child process 884 [Mon Aug 25 11:22:06 2003] [notice] Child 884: Child process is running [Mon Aug 25 11:22:06 2003] [notice] jk2_init() Found child 884 in scoreboard slot 0 [Mon Aug 25 11:22:06 2003] [notice] workerEnv.init() ok C:/Apache2/conf/workers2.properties [Mon Aug 25 11:22:06 2003] [error] mod_jk child init 1 0 [Mon Aug 25 11:22:06 2003] [notice] Child 884: Acquired the start mutex. [Mon Aug 25 11:22:06 2003] [notice] Child 884: Starting 250 worker threads. [Mon Aug 25 11:23:58 2003] [warn] (720064)The specified network name is no longer available. : winnt_accept: Asynchronous AcceptEx failed. [Mon Aug 25 11:24:30 2003] [notice] shm.createSlot() Create 1 0x52 0x522000 [Mon Aug 25 11:24:30 2003] [notice] workerEnv.init() create slot epStat.0 [Mon Aug 25 11:24:56 2003] [error] channelSocket.receive(): Error receiving message body -1 53 [Mon Aug 25 11:24:56 2003] [error] workerEnv.processCallbacks() Error reading reply [Mon Aug 25 11:24:56 2003] [error] ajp13.service() ajpGetReply recoverable error 12 [Mon Aug 25 11:25:24 2003] [error] ajp13.service() Error sending initial post -1 0 0 [Mon Aug 25 11:26:45 2003] [error] channelSocket.receive(): Error receiving message body -1 53 [Mon Aug 25 11:26:45 2003] [error] workerEnv.processCallbacks() Error reading reply [Mon Aug 25 11:26:45 2003] [error] ajp13.service() ajpGetReply recoverable error 12 [Mon Aug 25 11:27:08 2003] [error] ajp13.service() Error sending initial post
RE: catalina-ant task on LE-JDK14 release versus standard release
Howdy, You probably have a more complete error in your logs. The -LE release is missing some libraries that play a roll in the authentication. Stick with the full release in your case. Yoav Shapira Millennium ChemInformatics -Original Message- From: Steve Wilkinson [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2003 2:58 PM To: [EMAIL PROTECTED] Subject: catalina-ant task on LE-JDK14 release versus standard release Hi, I've been using the catalina ant tasks on the standard release jakarta-tomcat-4.1.27 with hotfix 22096 and the catalina ant tasks work fine. Then I tried then on the jakarta-tomcat-4.1.27-LE-jdk14 release with the same hotfix and they did not work. For some reason it's not authenticating the user. Any ideas why? Is this a bug? Here is the message that I receive: BUILD FAILED file:c:/VirtuasEducation/Tomcat/jspservletdemo/build.xml:326: java.io.IOException: Server returned HTTP response code: 403 for URL: http://localhost:8080/manager/list - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RE : RE : Folder Permissions taken over by Tomcat 4
Howdy, Definitely, what I say here is for true : restart Tomcat4 and all your permissions you might have set before in your web application folder are replaced, and I'm talking about Linux OS, didn't try it on Windows. And I want to prevent this from happening. I can't reproduce this on linux (RH 9): no permissions are changed. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache 2.0.46 / Tomcat 5.0.3
Has anyone got Tomcat 5.0.3 working with Apache 2.0.46 (using mod_jk2)? Especialy concerning struts... I just cannot get the actions (*.do) to work whithout it giving me a 404 not found. It works file Tomcat standalone. All other *.jsp, images, etc. loads fine via Apache. If it's a Tomcat thing I'll probably have to go back a step to v4.x, but it just seems so much effort lost so far. Regards, Johan.
RE: JavaServer Faces
Howdy, Yes, and it's true for any servlet spec 2.3 compliant container. Yoav Shapira Millennium ChemInformatics -Original Message- From: Prince [mailto:[EMAIL PROTECTED] Sent: Thursday, August 01, 2002 6:53 AM To: Tomcat Users List Subject: JavaServer Faces hi, does tomcat support JavaServer Faces? - Original Message - From: Prince [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 4:18 PM Subject: Re: Auto-Confirmation - Stopping its easy for atleast this, just block mails with the particular subject and email id - Original Message - From: Kannan Sundararajan [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Saturday, August 23, 2003 12:10 AM Subject: RE: Auto-Confirmation Stop this.. -Original Message- From: Quest Software [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2003 11:53 AM To: Tomcat Users List Subject: Auto-Confirmation Thank you for submitting your request to Quest Software Technical Support. We are unable to process your request because our records indicate that you are not registered for Technical Support. To register, logon to our Supportlink web site http://www.quest.com/support , and self-register from the web. Or, you can phone Quest at one of the numbers below to register. Once you have registered, you can submit your request within Supportlink, by email at [EMAIL PROTECTED], by phone at one of the numbers below. Please do not reply to this email. If this is an URGENT matter please contact Quest Technical Support via telephone at one of the numbers listed below. Thank you, Quest Software Technical Support www.quest.com/support Quest Software Technical Support - Canada 902.442.5700 Quest Software Technical Support - United Kingdom 44.1628.601007 Quest Software Technical Support - United States 949.754.8000 Original Message From: John Turner [mailto:[EMAIL PROTECTED] Sent: Fri, 22 Aug 2003 10:51:29 -0400 To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: 2 VirtualHosts same IP address and port on Tomcat not working For grins, I decided to setup an example. Here it is. The server has multiple virtual hosts. There are currently 6 working, this configuration describes how I added a seventh by copying a config from one of the other 6 and changing values as needed. The scenario: One Tomcat instance (4.1.12, yes I know its old but its an internal play server so not that important) Multi-virtual hosts, each one has its own appBase ($CATALINA_HOME/hostname). Each virtual host has a root context ($CATALINA_HOME/hostname/hostname). Apache 2, mod_jk.so. The goal: http://hostname/test.jsp works http://hostname/test.html works To setup the new virtual host, I did the following: - in server.xml, added: Host name=www.DOMAIN.com debug=1 appBase=DOMAIN unpackWARs=true autoDeploy=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=DOMAIN_com. suffix=.log timestamp=true/ Context path= docBase=DOMAIN debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=DOMAIN. suffix=.log timestamp=true / Resource name=mail/Session auth=Container type=javax.mail.Session/ ResourceParams name=mail/Session parameter namemail.smtp.host/name valuelocalhost/value /parameter /ResourceParams /Context /Host - created $CATALINA_HOME/DOMAIN, $CATALINA_HOME/DOMAIN/DOMAIN, $CATALINA_HOME/DOMAIN/DOMAIN/WEB-INF, $CATALINA_HOME/DOMAIN/DOMAIN/WEB-INF/classes, $CATALINA_HOME/DOMAIN/DOMAIN/WEB-INF/lib, $CATALINA_HOME/DOMAIN/DOMAIN/WEB-INF/web.xml where $CATALINA_HOME = /usr/local/jakarta-tomcat-4.1.12 - chown -R tomcat:tomcat $CATALINA_HOME/DOMAIN - created $CATALINA_HOME/DOMAIN/DOMAIN/test.html and $CATALINA_HOME/DOMAIN/DOMAIN/test.jsp in Apache httpd.conf, added: VirtualHost * ServerName www.DOMAIN.com DocumentRoot /usr/local/jakarta-tomcat-4.1.12/DOMAIN/DOMAIN # Static files Alias / /usr/local/jakarta-tomcat-4.1.12/DOMAIN/DOMAIN Directory /usr/local/jakarta-tomcat-4.1.12/DOMAIN/DOMAIN Options Indexes FollowSymLinks DirectoryIndex index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /WEB-INF/* AllowOverride None deny from all /Location Location /META-INF/* AllowOverride None deny from all /Location
RE: Service-Engine-Host - which is superficial?
Howdy, First of all, the fact that you can have multiple engines/services/hosts doesn't mean they're necessary. It's just good coding practice on the part of tomcat developers knowing they can't predict all possible configurations and therefore not wanting to restrict users of tomcat by allowing only one server/engine/host/whatever. You might as well ask why one would want multiple loggers per context or separate access logs per contexts: some of these have obvious use-cases, some don't. But in what situation would I want to have more than one engine or more than one service? Typically, when connecting Apache to Tomcat, the tomcat standalone is one service and the apache engine/connector or in a separate service. You would have multiple engines for load-balancing. (Hence the jvmRoute parameter on engine). You can also define a Realm at the Engine level to share across all hosts for the engine. A Service right now only allows one engine. I haven't seen other/custom implementations yet. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Net Integrator Virus Alert
WARNING: a virus (probably I-Worm.Sobig.f) or suspicious attachment was detected and removed from the following message from [EMAIL PROTECTED] Some of the content may still be readable. ---BeginMessage--- All subparts of this MIME message are infected with a virus. ---End Message--- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
closing browser terminates servlet ?
Hello, I´d like having some help on a test I´m doing : I have a servlet that updates a record in a table in database, but it cannot do it immediately because I´m locking the table using another client. The browser progress bar will just go on and on while the servlet waits to perform the update. If I close the browser, does the servlet get killed ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: trying to use manager/html app with o.a.catalina.realm.JAASRealm
ah, ok. I put those 2 realms at engine level. So I can't have 2 realms in engine? Now thanks to your advice I've got the manager working with tomcat-users.xml by placing the realm tag in the manager.xml in the webapps dir. However I would like to keep the declaration in my server.xml Thanks, Adam On 08/25/2003 12:43 PM Tim Funk wrote: You can place a Realm inside a Context declaration. As for the non-working of JAASRealm - I know nothing about it and have not used it. -Tim Adam Hardy wrote: I'm using org.apache.catalina.realm.JAASRealm for my authentication for my webapps, and I have got to the point where I want to use tomcat's manager and admin app. Unfortunately when I try to use JAASRealm for the manager, JAASCallBackHandler throws an exception because it hasn't been given the username and password. It is in fact throwing the exception before the user (i.e. me) has even hit the login button on the basic auth. login form. It looks like JAASRealm has just not been developed that far yet. Is this so? Secondly, how can I configure two realms so that manager can use the MemoryRealm and my apps can carry on using the JAASRealm? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Quickly get Tomcat running with Apache on Solaris?
Glad you got it working. Incidentally, GNU tar handles all of the GNU software and is 100% compatible with any other archive, even those built using Solaris tar. So, you can avoid this in the future by making sure your path brings in GNU tar ahead of Solaris tar by default. You won't have any problems then and won't notice any difference. John Jim Chase wrote: Bingo. I must admint I doubted you John. But you were right. I untarred it with GNU tar and it worked immediately. Thanks! Jim --- John Turner [EMAIL PROTECTED] wrote: Don't use Solaris tar to unpack GNU software. GNU software requires GNU tar. GNU tar and Solaris tar are incompatible. Tomcat is a Java application. A binary Java application is a binary for ALL operating systems, there are no distinctions. Did you download and install the JDK? The easiest way to get Tomcat running on Solaris is: 1. download and install the JDK 2. set JAVA_HOME to the location of the JDK from step #1 3. download the Tomcat binary 4. unpack it to /usr/local 5. set CATALINA_HOME to location of Tomcat (something like /usr/local/jakarta-tomcat-4.1.27 or /usr/local/tomcat if you're clever and used ln to link /usr/local/tomcat to /usr/local/jakarta-tomcat-4.1.27) 6. execute $CATALINA_HOME/bin/startup.sh 7. view http://localhost:8080 John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 2 VirtualHosts working other stuff not
David Wynter wrote: So if I have a Context path= docBase=/usr/local/jakarata-tomcat-4.1.12/webapp2/se / DocumentRoot should be /usr/local/jakarata-tomcat-4.1.12/webapp2/se. If this case then what about the other webapp in /usr/local/jakarata-tomcat-4.1.12/webapp2/rwtransform how will I get to that? I wasn't aware that you wanted two separate webapps on the same Virtual Host. I'm honestly not sure how I can be more clear. My ultimate suggestion for you is to get AWAY from using absolute paths. My second suggestion for you is get it working with Tomcat first, no Apache. Then worry about Apache. In your configuration, as I understand it, the DocumentRoot in httpd.conf would be equal to your server.xml Host's appBase. Then, you would access your webapps like: http://my.host.com/webapp1 http://my.host.com/webapp2 and your homepage would be http://my.host.com/index.html John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: trying to use manager/html app with o.a.catalina.realm.JAASRealm
You can't have 2 Realms at the Engine level because there is no way to determine which Realm a webapp should use. -Tim Adam Hardy wrote: ah, ok. I put those 2 realms at engine level. So I can't have 2 realms in engine? Now thanks to your advice I've got the manager working with tomcat-users.xml by placing the realm tag in the manager.xml in the webapps dir. However I would like to keep the declaration in my server.xml Thanks, Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is the Jakarta site down?
Hi everyone, Is the http://jakarta.apache.org/ site down or it our network? Thanks, Tarek M. Nabil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is the Jakarta site down?
Howdy, I think it might be down. I can't get into my various apache.org accounts which is usually the giveaway that it's completely down. ;( Yoav Shapira Millennium ChemInformatics -Original Message- From: Tarek M. Nabil [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 10:32 AM To: 'Tomcat Users List' (E-mail) Subject: Is the Jakarta site down? Hi everyone, Is the http://jakarta.apache.org/ site down or it our network? Thanks, Tarek M. Nabil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : RE : RE : Folder Permissions taken over by Tomcat 4
Hi, I can't reproduce this on linux (RH 9): no permissions are changed. Did you try to change Ownership of the folder (change the User and the Group ownership of the folder) ? This is what Tomcat changes at first sight after restarting it. How did you set your permissions : did you use a Linux command (chmod, chowner or whatever) or did you use a kind of interface (I used Webmin f.ex.) ? Thanks Alain ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RE : RE : RE : Folder Permissions taken over by Tomcat 4
Howdy, Did you try to change Ownership of the folder (change the User and the Group ownership of the folder) ? This is what Tomcat changes at first sight after restarting it. I did, and tomcat did not change them back. I use chmod, not a graphical tool, and no Samba involved (Samba would be my guess for the culprit). Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HELP PLEASE- SQLException event whenever DBCP works
Hi guys, i am needing help with DBCP. Since it doesnt work as a singleton object, iam making something crazy like that. if ( ds == null ) { BeanPoolConn bp = new BeanPoolConn(); ds = bp.conexao(); } The BeanPoolConn instances DBCP component. The problem regards sometimes when my application throws an SQLException with the following content: no more data to read from socket. So, what does it mean? Help needed. Regards, Euclides. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: trying to use manager/html app with o.a.catalina.realm.JAASRealm
OK, but what's the resourceName for then, as in Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=99 resourceName=UserDatabase/ On 08/25/2003 04:28 PM Tim Funk wrote: You can't have 2 Realms at the Engine level because there is no way to determine which Realm a webapp should use. -Tim Adam Hardy wrote: ah, ok. I put those 2 realms at engine level. So I can't have 2 realms in engine? Now thanks to your advice I've got the manager working with tomcat-users.xml by placing the realm tag in the manager.xml in the webapps dir. However I would like to keep the declaration in my server.xml Thanks, Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Modjk2 error log
Hi, It looks like you have a little confusion between JK and JK2. Location /TruckEnqui/ JkUriSet worker ajp13:test2.com:8009 /Location Get rid of these in your httpd.conf. The URIs are defined in workers2.properties. workers2.properties file : [logger.apache2] level=DEBUG [shm] file=c:/shm.file size=1048576 # Example socket channel, override port and host. [channel.socket:test3.com:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:test3.com:8009] channel=channel.socket:test3.com:8009 In here you need to do the URI mapping. So as an example: # Uri Mapping [uri:/TruckEnqui/*] worker=ajp13:test3.com:8009 would map everything under /TruckEnqui/ to test3.com on port 8009. -e - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 3.2.4 behind a proxy
Hi there, I'm current using Tomcat 3.2.4 in a private network, and want to give access to external clients through an Apache server configured as proxy. The problem is that Tomcat is changing request addresses... I know how to solve this problem in Apache (simply turn UseCanonicalName off), but how can I do it in Tomcat? For example: if the proxy address to Tomcat is www.test.pt/tomcat, it seems that Tomcat changes it to www.othersidetest.pt:8080. Thanks in advance, Arménio Pinto - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maintain directory structure on download
Has anyone written a web app that downloads files within a directory structure and maintains the directory structure on the client machine? I'd like to do it without archiving the files in a zip file first. How do you identify a directory in a multipart download? Thanks, Derrick This electronic transmission is strictly confidential to Smith Nephew and intended solely for the addressee. It may contain information which is covered by legal, professional or other privilege. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message.
RE: Tools for benchmarking profiling Tomcat
Second half of this question is what is a good profiler to use with Tomcat ? I am currently using JProfiler ( http://www.ej-technologies.com/products/jprofiler/overview.html ) which plugs plays really easily with my current Tomcat install, BUT it's major problem is that it includes time that threads spend idly listening on sockets. So when trying to identify performance hotspots in a server app like tomcat, it becomes very difficult to get a good view of what percentage of time is spent where. I have seen JProf ( http://starship.python.net/crew/garyp/jProf.html ) but I am scared by the use of the terms C++ JFC on the intro page. Any other suggestions - especially for something that will work well with Tomcat understands how to treat time spent in the IO libs. Thanks, Steph -Original Message- From: Steph Richardson [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 4:10 PM To: Tomcat Users List Subject: Tools for benchmarking profiling Tomcat I guess this is more of a generic http server question than a tomcat one, but I'm looking for recommended toolset(s) to use in benchmarking the performace of our tomcat based webapps. I'm looking for something like Apache Benchmarking Tool that I could use on windows - preferably free, and preferably a java based thing that I could run elsewhere, and that I could wrap in Ant tasks, and that supports https. Suggestions appreciated. Steph Richardson Kvasar Technology LLC HQ: suite 106, 822 Boylston st., Chestnut Hill, MA 02467 smtp : [EMAIL PROTECTED] http : www.kvasar.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]
failure notice
Hi, This is an ORT (Ovh Redirect Technology) SMTP server. ORT did not find out any redirect email --- Below this line is a copy of the message. Received: by ORT (Ovh Redirect Technology) ver:0.99 [EMAIL PROTECTED] [EMAIL PROTECTED] NONE (no found) Received: from DG3B1Z11 (66-108-137-216.nyc.rr.com [66.108.137.216]) by redirect.ovh.net (Postfix) with ESMTP id 7A78024774 for [EMAIL PROTECTED]; Mon, 25 Aug 2003 18:07:18 +0200 (CEST) From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Thank you! Date: Mon, 25 Aug 2003 12:07:49 --0400 X-MailScanner: Found to be clean Importance: Normal X-Mailer: Microsoft Outlook Express 6.00.2600. X-MSMail-Priority: Normal X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=_NextPart_000_0021D531 Message-Id: [EMAIL PROTECTED] This is a multipart message in MIME format --_NextPart_000_0021D531 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Please see the attached file for details. --_NextPart_000_0021D531-- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tools for benchmarking profiling Tomcat
Howdy, Second half of this question is what is a good profiler to use with Tomcat I like OptimizeIt. with my current Tomcat install, BUT it's major problem is that it includes time that threads spend idly listening on sockets. So That's proper behavior. I'm not aware of a profiler that magically decided what is and isn't appropriate to profile for your webapp. Well-written tests don't have much idle time in general. I'm also not aware of any profilers that can take an operation ignore list (e.g. socket_read, socket_write) and ignore CPU time spent on those operations. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Setting up Eclipse to debug Struts classes in Tomcat?
I know I have read that you can use eclipse to remote debug tomcat, but is it possible to have eclipse debug struts action classes that are being executed by Tomcat? And is there anywhere that documents how that would work.. I'd love to know what the value of some variables are at runtime etc when I'm having problems with it.. thanks in advance! -D
Re: trying to use manager/html app with o.a.catalina.realm.JAASRealm
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/realm/UserDatabaseRealm.java?rev=1.8content-type=text/vnd.viewcvs-markup It looks like it is for JNDI lookups that is only specific to UserDatabase Realm. Probably using Google or the archives might provide more historical insight. (Which I am lacking on this component at the moment) -Tim Adam Hardy wrote: OK, but what's the resourceName for then, as in Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=99 resourceName=UserDatabase/ On 08/25/2003 04:28 PM Tim Funk wrote: You can't have 2 Realms at the Engine level because there is no way to determine which Realm a webapp should use. -Tim Adam Hardy wrote: ah, ok. I put those 2 realms at engine level. So I can't have 2 realms in engine? Now thanks to your advice I've got the manager working with tomcat-users.xml by placing the realm tag in the manager.xml in the webapps dir. However I would like to keep the declaration in my server.xml Thanks, Adam - 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: Can not load JNDI DataSource in Servlet.init()
How is your JNDI resource configured? In an explicitly defined Context or in the DefaultContext? ResourceLinked? I ask because there are a number of folks with similar problems that look to be something missing in how JNDI datasources are handled internally when using DefaultContext. See other topics: * ResourceLink and DefaultContext * Tomcat 4.1 DefaultContext Bug? * Question about Tomcat Documentation * Globally defined JNDI DataSource -Original Message- From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2003 10:55 PM To: Tomcat Users List Subject: Can not load JNDI DataSource in Servlet.init() Hi all, Why I can't load a JNDI resource on the init method of my servlet? there is no problem doing that in doGet() but on init() it doesn't work. the logs entry is: java.sql.SQLException: Cannot load JDBC driver class 'null' It's the same code! What I'm missing? this is my servlet code: package libreria; import java.io.PrintWriter; import java.io.IOException; import javax.servlet.*; import javax.servlet.http.*; import java.sql.*; import javax.sql.*; import javax.naming.*; public class MyServlet extends HttpServlet { public void init (ServletConfig config) throws ServletException{ super.init(config); try { Context ctx = new InitialContext(); if(ctx==null) { System.out.println(fallo InitialContext); return; } DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/ComercialDB); if(ds==null) { System.out.println(fallo lookup); return; } Connection conn = ds.getConnection(); Statement stm = conn.createStatement(); ResultSet rs = stm.executeQuery(select * from pruebas); while(rs.next()) { System.out.println(rs.getInt(id)+::+rs.getString(nombre)+::+rs.getSt ring(apellido)); } } catch(Exception e) { e.printStackTrace(); } } public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException,ServletException { response.setContentType(text/plain); PrintWriter out= response.getWriter(); out.println(holas muchas); try { Context ctx = new InitialContext(); if(ctx==null) { out.println(fallo InitialContext); return; } DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/ComercialDB); if(ds==null) { out.println(fallo lookup); return; } Connection conn = ds.getConnection(); Statement stm = conn.createStatement(); ResultSet rs = stm.executeQuery(select * from pruebas); while(rs.next()) { out.println(rs.getInt(id)+::+rs.getString(nombre)+rs.getString(apelli do)); } } catch(Exception e) { e.printStackTrace(out); } } } Regards. _ Manolo Ramirez T. - 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]
Using the Tomcat Administration Tool
I've been trying to use this to set up multiple Host entries. I started off with Tomat V5.09 but get the following response if I click on the existing host: HTTP Status 500 - Error retrieving attribute liveDeploy I get a similar message if I try to create a new host - just that it fails to set the attribute. I looked around for an answer but the best I can find is that this (and another) attribute were renamed a few revisions back and my guess is that the administration tool is lagging Tomcat right now. I then tried the latest V4.1 release (4.1.27) and had some limited the success. I could get different domains directed at different subdirectories of webapps by setting each host location to webapps and the contexts app1, app2 etc. However, every now and again the administrator would place all the default contexts (admin, examples etc) under each of my host entries... I have no idea about why this happens but it would let me delete all these contexts so I'd usually reinstall at this point. Any ideas about my host problems? My instinct at the moment is to stick with 5.09 and ignore administration tool, despite the temptation. Thanks Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can not load JNDI DataSource in Servlet.init()
It's in DefaultContext, I checked the related messages, it seems like the same problem. Thanks for the answer. _ Manolo Ramirez T. Madere, Colin wrote: How is your JNDI resource configured? In an explicitly defined Context or in the DefaultContext? ResourceLinked? I ask because there are a number of folks with similar problems that look to be something missing in how JNDI datasources are handled internally when using DefaultContext. See other topics: * ResourceLink and DefaultContext * Tomcat 4.1 DefaultContext Bug? * Question about Tomcat Documentation * Globally defined JNDI DataSource -Original Message- From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2003 10:55 PM To: Tomcat Users List Subject: Can not load JNDI DataSource in Servlet.init() Hi all, Why I can't load a JNDI resource on the init method of my servlet? there is no problem doing that in doGet() but on init() it doesn't work. the logs entry is: java.sql.SQLException: Cannot load JDBC driver class 'null' It's the same code! What I'm missing? this is my servlet code: package libreria; import java.io.PrintWriter; import java.io.IOException; import javax.servlet.*; import javax.servlet.http.*; import java.sql.*; import javax.sql.*; import javax.naming.*; public class MyServlet extends HttpServlet { public void init (ServletConfig config) throws ServletException{ super.init(config); try { Context ctx = new InitialContext(); if(ctx==null) { System.out.println(fallo InitialContext); return; } DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/ComercialDB); if(ds==null) { System.out.println(fallo lookup); return; } Connection conn = ds.getConnection(); Statement stm = conn.createStatement(); ResultSet rs = stm.executeQuery(select * from pruebas); while(rs.next()) { System.out.println(rs.getInt(id)+::+rs.getString(nombre)+::+rs.getSt ring(apellido)); } } catch(Exception e) { e.printStackTrace(); } } public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException,ServletException { response.setContentType(text/plain); PrintWriter out= response.getWriter(); out.println(holas muchas); try { Context ctx = new InitialContext(); if(ctx==null) { out.println(fallo InitialContext); return; } DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/ComercialDB); if(ds==null) { out.println(fallo lookup); return; } Connection conn = ds.getConnection(); Statement stm = conn.createStatement(); ResultSet rs = stm.executeQuery(select * from pruebas); while(rs.next()) { out.println(rs.getInt(id)+::+rs.getString(nombre)+rs.getString(apelli do)); } } catch(Exception e) { e.printStackTrace(out); } } } Regards. _ Manolo Ramirez T. - 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]
Message de l'administrateur réseau de la Régie du Rhône S.A.
Madame, Mademoiselle, Monsieur, Votre e-mail n'a pas atteint son destinataire. Pour des raisons de sécurité, le type de fichier attaché n'est pas autorisé. Nous vous prions de contacter le destinataire pour de plus amples renseignements. Administrateur Informatique Régie du Rhône S.A. Place du Molard 3 1211 Genève Dear, Madam, Miss, Sir, Your e-mail did not reach its destination. For security reasons the file that you have attached to your mail message was not authorized. For more information please contact the recipient. System Administrator Régie du Rhône S.A. Place du Molard 3 1211 Genève - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk and Tomcat Lose Touch
Hi all, On one of our servers, we were running Red Hat Linux 7.3 with Apache 1.3.X, mod_jk, Sun JDK 1.4.1, and many (~150) instances Tomcat of various flavors. Everything worked perfectly until we upgraded to Red Hat 9. Now, it seems like mod_jk and Tomcat are losing touch until the Tomcat JVM is restarted. This happens after maybe a day or so using both Apache 1.3.X and Apache 2.0.X. From what we've observed, it seems to a problem specific to mod_jk. This is because running Apache 1.3.X or 2.0.X under Red Hat 9 with the old-skool mod_jserv and ~100 Tomcat instances does not cause a problem at all. Also, running either Apache 2 or 1.3 on RH 9 with just a couple JVM's does not cause a problem either. I've already tried re-compiling mod_jk on RH9, the same server that's having the trouble to account for any library change issues. No dice I'm afraid. Any ideas? Thanks! -Fred - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is the Jakarta site down?
Is the http://jakarta.apache.org/ site down or it our network? The site was up, but the server was unaccessible due to a network problem unrelated to our server. Everything should be fine as of 11:15 EDT. --- Noel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat-user.xml re-writing - bug?
Hi, I'm using the new UserDatabase (org.apache.catalina.UserDatabase / org.apache.catalina.users.MemoryUserDatabaseFactory) as configured by default with Tomcat 4.1.27. Our System admin made a basic XML error, and in tomcat-users.xml put and entry in like... user username=tomcat password=tomcat roles=tomcat / Obviously the '' makes this invalid XML, and tomcat doesn't start... We changed the to amp; the XML was then valid, the user account worked, life was good A few days later, after he restarted the server, it was broke again... Seems that when Tomcat re-wrote out the tomcat-users.xml file, instead of escaping the and writing it back out as amp; it just put it out a , so we were back to square one! Question: 1) Is this a bug? 2) Can I stop the 're-writing' part of this as a work around? 3) Are XML entities not allowed in tomcat-users.xml? Thanx PaulE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is the Jakarta site down?
Thanks :) -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 5:51 PM To: Tomcat Users List Subject: RE: Is the Jakarta site down? Howdy, I think it might be down. I can't get into my various apache.org accounts which is usually the giveaway that it's completely down. ;( Yoav Shapira Millennium ChemInformatics -Original Message- From: Tarek M. Nabil [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 10:32 AM To: 'Tomcat Users List' (E-mail) Subject: Is the Jakarta site down? Hi everyone, Is the http://jakarta.apache.org/ site down or it our network? Thanks, Tarek M. Nabil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat-user.xml re-writing - bug?
Howdy, It looks like a bug -- file it in Bugzilla. You can't stop the file being re-written, and if you have any comments in the file they'll be removed. I'm not sure if XML entities are allowed or not. It's really intended to be a simple, get started quickly mechanism. Not a complete enterprise user database solution ;) BTW, what makes you think UserDatabase is new? ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Extance, Paul [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 1:20 PM To: 'Tomcat Users List' Subject: tomcat-user.xml re-writing - bug? Hi, I'm using the new UserDatabase (org.apache.catalina.UserDatabase / org.apache.catalina.users.MemoryUserDatabaseFactory) as configured by default with Tomcat 4.1.27. Our System admin made a basic XML error, and in tomcat-users.xml put and entry in like... user username=tomcat password=tomcat roles=tomcat / Obviously the '' makes this invalid XML, and tomcat doesn't start... We changed the to amp; the XML was then valid, the user account worked, life was good A few days later, after he restarted the server, it was broke again... Seems that when Tomcat re-wrote out the tomcat-users.xml file, instead of escaping the and writing it back out as amp; it just put it out a , so we were back to square one! Question: 1) Is this a bug? 2) Can I stop the 're-writing' part of this as a work around? 3) Are XML entities not allowed in tomcat-users.xml? Thanx PaulE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can not load JNDI DataSource in Servlet.init()
So you are using a resource link in the DefaultContext either in server.xml or your web.xml? -Original Message- From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 1:27 PM To: Tomcat Users List Subject: Re: Can not load JNDI DataSource in Servlet.init() It's in DefaultContext, I checked the related messages, it seems like the same problem. Thanks for the answer. _ Manolo Ramirez T. Madere, Colin wrote: How is your JNDI resource configured? In an explicitly defined Context or in the DefaultContext? ResourceLinked? I ask because there are a number of folks with similar problems that look to be something missing in how JNDI datasources are handled internally when using DefaultContext. See other topics: * ResourceLink and DefaultContext * Tomcat 4.1 DefaultContext Bug? * Question about Tomcat Documentation * Globally defined JNDI DataSource -Original Message- From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2003 10:55 PM To: Tomcat Users List Subject: Can not load JNDI DataSource in Servlet.init() Hi all, Why I can't load a JNDI resource on the init method of my servlet? there is no problem doing that in doGet() but on init() it doesn't work. the logs entry is: java.sql.SQLException: Cannot load JDBC driver class 'null' It's the same code! What I'm missing? this is my servlet code: package libreria; import java.io.PrintWriter; import java.io.IOException; import javax.servlet.*; import javax.servlet.http.*; import java.sql.*; import javax.sql.*; import javax.naming.*; public class MyServlet extends HttpServlet { public void init (ServletConfig config) throws ServletException{ super.init(config); try { Context ctx = new InitialContext(); if(ctx==null) { System.out.println(fallo InitialContext); return; } DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/ComercialDB); if(ds==null) { System.out.println(fallo lookup); return; } Connection conn = ds.getConnection(); Statement stm = conn.createStatement(); ResultSet rs = stm.executeQuery(select * from pruebas); while(rs.next()) { System.out.println(rs.getInt(id)+::+rs.getString(nombre)+::+rs .getSt ring(apellido)); } } catch(Exception e) { e.printStackTrace(); } } public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException,ServletException { response.setContentType(text/plain); PrintWriter out= response.getWriter(); out.println(holas muchas); try { Context ctx = new InitialContext(); if(ctx==null) { out.println(fallo InitialContext); return; } DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/ComercialDB); if(ds==null) { out.println(fallo lookup); return; } Connection conn = ds.getConnection(); Statement stm = conn.createStatement(); ResultSet rs = stm.executeQuery(select * from pruebas); while(rs.next()) { out.println(rs.getInt(id)+::+rs.getString(nombre)+rs.getString( apelli do)); } } catch(Exception e) { e.printStackTrace(out); } } } Regards. _ Manolo Ramirez T. - 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: mod_jk and Tomcat Lose Touch
What kind of error are you getting that makes you thing they are losing touch. Check the mod_jk log and see what kind of errors it is throwing and post an example. Ben Ricker Wellinx, Inc. On Mon, 2003-08-25 at 10:54, Fred Whipple wrote: Hi all, On one of our servers, we were running Red Hat Linux 7.3 with Apache 1.3.X, mod_jk, Sun JDK 1.4.1, and many (~150) instances Tomcat of various flavors. Everything worked perfectly until we upgraded to Red Hat 9. Now, it seems like mod_jk and Tomcat are losing touch until the Tomcat JVM is restarted. This happens after maybe a day or so using both Apache 1.3.X and Apache 2.0.X. From what we've observed, it seems to a problem specific to mod_jk. This is because running Apache 1.3.X or 2.0.X under Red Hat 9 with the old-skool mod_jserv and ~100 Tomcat instances does not cause a problem at all. Also, running either Apache 2 or 1.3 on RH 9 with just a couple JVM's does not cause a problem either. I've already tried re-compiling mod_jk on RH9, the same server that's having the trouble to account for any library change issues. No dice I'm afraid. Any ideas? Thanks! -Fred - 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: Modjk2 error log
Thanx for this. I thought it was the other way around. When looking to jk2 Source (mod_jk2.c), it does not matter. See comments below : /** * Set a property associated with a URI, using native Location * directives. * * This is used if you want to use the native mapping and * integrate better into apache. * * Same behavior can be achieved by using uri.properties and/or JkSet. * * Example: * VirtualHost foo.com * Location /examples * JkUriSet worker ajp13 * /Location * /VirtualHost * * This is the best way to define a webapplication in apache. It is * scalable ( using apache native optimizations, you can have hundreds * of hosts and thousands of webapplications ), 'natural' to any * apache user. * * XXX This is a special configuration, for most users just use * the properties files. */ But I will try your tip? By the way, could someone teach me something on the worker logic? Thanx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Combination Virtual Hosts
Hi everyone! apache 2.0.45 tomcat 4.18 mod_jk2 I'm having a problem with Virtual host. I thought I had it working but it seemed to stop working. Here is what I would like to do. I would like to have several static sites served from the standard apache/htdocs directory, and jsp sites served from the tomcat/webapps directory. Everything works fine until I add my jsp virtual host see below. When I do that, www.nnmall2.com is served when I enter www.menkeworld.com and not www.menkeworld.com (the first one in the virtual hosts list). I've tried a bunch of different things with the tomcat server.xml file, but to no avail. Any ideas? The only examples I have found show all the sites living in the tomcat/webapps directory or the apache/htdocs directory, but not both. NameVirtualHost * VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot c:/Apache2/htdocs/menkeworld ServerName www.menkeworld.com DirectoryIndex index.htm /VirtualHost VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot c:/Apache2/htdocs/angelamenke ServerName www.angelamenke.com DirectoryIndex index.htm /VirtualHost VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot c:/tomcat/webapps/nnmall2 ServerName www.nnmall2.com Location /* JkUriSet worker ajp13:localhost:8009 /Location DirectoryIndex main.jsp /VirtualHost Thanks in advance for your help. -Brian Menke - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk and Tomcat Lose Touch
Ah, the symptoms, of course ;-) There actually aren't any errors AFAIK. Perhaps there's a more verbose logging level? I couldn't find any obvious info on this in the manual. What actually happens is if I make a request to a JSP, for example, that should normally be forwarded onto Tomcat, the request simply hangs forever. Apache logs the request nothing in the Tomcat logs suggest to me it's receiving the request. Thanks, -Fred -Original Message- From: Ben Ricker [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 1:09 PM To: [EMAIL PROTECTED] Subject: Re: mod_jk and Tomcat Lose Touch What kind of error are you getting that makes you thing they are losing touch. Check the mod_jk log and see what kind of errors it is throwing and post an example. Ben Ricker Wellinx, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Having globally defined DataSource issues?
The following list topics seem to all be related: * Can not load JNDI DataSource in Servlet.init() * Globally defined JNDI DataSource (was: JNDI DataSource Realm) * Question about Tomcat Documentation * Tomcat 4.1 DefaultContext Bug? * ResourceLink and DefaultContext and all others I've seen regarding the Name jdbc is not bound in this Context error and _some_ of those with the cannot load driver class: 'null' error (although definitely not all of those). The related bugs (at least) can be found here that date back as far as v4.1.9: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11662 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16116 Please register/login to bugzilla and vote for these bugs. This seems like a significant issue, but does not seem to be addressed by the developers so far (both are still marked NEW, although entered January of this year and August of _last_ year). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JK2, JNI, Apache2, Tomcat4.1, JDK1.4 setup problem
I've run into a problem with my setup of Apache 2.0.47, Tomcat 4.1.27 LE, JDK1.4, and JK2 connected using JNI. If I stop the Apache service, and then restart it, I get a 505 Server Error unless I either reload the page a few times, or load a page that isn't passed to Tomcat first, once that's done everything works fine. This problem only occurs if the Apache service is stopped, if I reboot the machine, everything works fine. Has anybody else encountered this problem, if so does anybody know what is causing it, or is this just something I shouldn't worry about as it's only a minor inconvenience? JS
RE: Is the Jakarta site down?
Sobig... Solow! Sobig finally away, Jeez, 700 messages from Compuserve to my account (and it isn't even my provider) -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: maandag 25 augustus 2003 16:51 To: Tomcat Users List Subject: RE: Is the Jakarta site down? Howdy, I think it might be down. I can't get into my various apache.org accounts which is usually the giveaway that it's completely down. ;( Yoav Shapira Millennium ChemInformatics -Original Message- From: Tarek M. Nabil [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 10:32 AM To: 'Tomcat Users List' (E-mail) Subject: Is the Jakarta site down? Hi everyone, Is the http://jakarta.apache.org/ site down or it our network? Thanks, Tarek M. Nabil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: Can not load JNDI DataSource in Servlet.init()
No, I'm not using a ResourceLink. _ Manolo Ramirez T. Madere, Colin wrote: So you are using a resource link in the DefaultContext either in server.xml or your web.xml? -Original Message- From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 1:27 PM To: Tomcat Users List Subject: Re: Can not load JNDI DataSource in Servlet.init() It's in DefaultContext, I checked the related messages, it seems like the same problem. Thanks for the answer. _ Manolo Ramirez T. Madere, Colin wrote: How is your JNDI resource configured? In an explicitly defined Context or in the DefaultContext? ResourceLinked? I ask because there are a number of folks with similar problems that look to be something missing in how JNDI datasources are handled internally when using DefaultContext. See other topics: * ResourceLink and DefaultContext * Tomcat 4.1 DefaultContext Bug? * Question about Tomcat Documentation * Globally defined JNDI DataSource -Original Message- From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2003 10:55 PM To: Tomcat Users List Subject: Can not load JNDI DataSource in Servlet.init() Hi all, Why I can't load a JNDI resource on the init method of my servlet? there is no problem doing that in doGet() but on init() it doesn't work. the logs entry is: java.sql.SQLException: Cannot load JDBC driver class 'null' It's the same code! What I'm missing? this is my servlet code: package libreria; import java.io.PrintWriter; import java.io.IOException; import javax.servlet.*; import javax.servlet.http.*; import java.sql.*; import javax.sql.*; import javax.naming.*; public class MyServlet extends HttpServlet { public void init (ServletConfig config) throws ServletException{ super.init(config); try { Context ctx = new InitialContext(); if(ctx==null) { System.out.println(fallo InitialContext); return; } DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/ComercialDB); if(ds==null) { System.out.println(fallo lookup); return; } Connection conn = ds.getConnection(); Statement stm = conn.createStatement(); ResultSet rs = stm.executeQuery(select * from pruebas); while(rs.next()) { System.out.println(rs.getInt(id)+::+rs.getString(nombre)+::+rs .getSt ring(apellido)); } } catch(Exception e) { e.printStackTrace(); } } public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException,ServletException { response.setContentType(text/plain); PrintWriter out= response.getWriter(); out.println(holas muchas); try { Context ctx = new InitialContext(); if(ctx==null) { out.println(fallo InitialContext); return; } DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/ComercialDB); if(ds==null) { out.println(fallo lookup); return; } Connection conn = ds.getConnection(); Statement stm = conn.createStatement(); ResultSet rs = stm.executeQuery(select * from pruebas); while(rs.next()) { out.println(rs.getInt(id)+::+rs.getString(nombre)+rs.getString( apelli do)); } } catch(Exception e) { e.printStackTrace(out); } } } Regards. _ Manolo Ramirez T. - 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: JK2, JNI, Apache2, Tomcat4.1, JDK1.4 setup problem
Hi, I have the exact problem. I'm not sure what's going on. _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Jason Symons [mailto:[EMAIL PROTECTED] Sent: August 25, 2003 3:24 PM To: [EMAIL PROTECTED] Subject: JK2, JNI, Apache2, Tomcat4.1, JDK1.4 setup problem I've run into a problem with my setup of Apache 2.0.47, Tomcat 4.1.27 LE, JDK1.4, and JK2 connected using JNI. If I stop the Apache service, and then restart it, I get a 505 Server Error unless I either reload the page a few times, or load a page that isn't passed to Tomcat first, once that's done everything works fine. This problem only occurs if the Apache service is stopped, if I reboot the machine, everything works fine. Has anybody else encountered this problem, if so does anybody know what is causing it, or is this just something I shouldn't worry about as it's only a minor inconvenience? JS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
failure notice
Hi, This is an ORT (Ovh Redirect Technology) SMTP server. ORT did not find out any redirect email --- Below this line is a copy of the message. Received: by ORT (Ovh Redirect Technology) ver:0.99 [EMAIL PROTECTED] [EMAIL PROTECTED] NONE (no found) Received: from DG3B1Z11 (66-108-137-216.nyc.rr.com [66.108.137.216]) by redirect.ovh.net (Postfix) with ESMTP id 06CF724727 for [EMAIL PROTECTED]; Mon, 25 Aug 2003 18:03:31 +0200 (CEST) From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Your application Date: Mon, 25 Aug 2003 12:03:56 --0400 X-MailScanner: Found to be clean Importance: Normal X-Mailer: Microsoft Outlook Express 6.00.2600. X-MSMail-Priority: Normal X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=_NextPart_000_001E48DE Message-Id: [EMAIL PROTECTED] This is a multipart message in MIME format --_NextPart_000_001E48DE Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Please see the attached file for details. --_NextPart_000_001E48DE-- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reg: Connector or Apache and Tomcat
Tomcat is perfectly capable of serving HTML documents. Set up a Host in server.xml, and in that Host set up a Context to handle your static content. If you're not using Apache now, there's no reason to use it in the future just for serving static files. John [EMAIL PROTECTED] wrote: Hi I am running a few struts-based webapp using tomcat. I access them using www.xyz.org/webappA, www.xyz.org/webappB, www.xyz.org/webappC. We have an old website consisting of static html. we want to merge this old website to the tomcat. The old webiste had stuff something in this format www.old.org/ModA, www.old.org/ModB, www.old.ModC etc..I would like it to be so that i can all the entire content from one IP like www.xyz.org/webappA,www.xyz,org/webappB, www/xyz.org/modA(static HTML module), www.xyz.org/modB(static HTML module. Plz. let me know how i can do this. I dont even know if i should use connectors for this. I am not getting any resources on this plz. help me Thank you Mohan - 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]
crypto problem
hello, I attempt to use openpgp in my web application For that i use an external provider. I put jar files in WEB-INF/lib and in a 'load-on-startup' servlet, i call Security.addProvider() and i read a public key from a file for futur encryptions. I start tomcat manually (with startup.sh) and it works, i encrypt but my problem is : when application restart not manually, by class modified or by manager application stop start request, my 'load-on-startup' servlet is re-executed, and freeze when public key is reading ... and in my catalina.out i find this : java.security.NoSuchAlgorithmException: Algorithm ElGamal not available at javax.crypto.SunJCE_b.a(DashoA6275) at javax.crypto.Cipher.getInstance(DashoA6275) at cryptix.openpgp.algorithm.PGPElGamal.init(PGPElGamal.java:91) 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 cryptix.openpgp.algorithm.PGPAlgorithmFactory.getPublicKeyAlgorithm(PGPAlgorithmFactory.java:445) at cryptix.openpgp.packet.PGPKeyPacket.decodePublicData(PGPKeyPacket.java:228) at cryptix.openpgp.packet.PGPPublicSubKeyPacket.decodeBody(PGPPublicSubKeyPacket.java:92) at cryptix.openpgp.packet.PGPPacketFactory.readPacket(PGPPacketFactory.java:253) at cryptix.openpgp.provider.PGPKeyBundleFactory.helper(PGPKeyBundleFactory.java:84) at cryptix.openpgp.provider.PGPMessageFactory.generateBinary(PGPMessageFactory.java:224) at cryptix.openpgp.provider.PGPMessageFactory.generateAscii(PGPMessageFactory.java:157) at cryptix.openpgp.provider.PGPMessageFactory.engineGenerateMessages(PGPMessageFactory.java:77) at cryptix.message.MessageFactory.generateMessages(MessageFactory.java:142) at pkg.SetupServlet.init(SetupServlet.java:54) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420) at org.apache.catalina.core.StandardContext.reload(StandardContext.java:2567) at org.apache.catalina.loader.WebappLoader$WebappContextNotifier.run(WebappLoader.java:1369) at java.lang.Thread.run(Thread.java:536) so initialisation failed and i have to restart tomcat manually (so all other web applications in the container) someone can help me ? thks ! M - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Question about Tomcat serving HTML pages
If I want to use Tomcat to serve all of my HTML pages, can I still use things such as .htaccess where I can set up protected directories etc.? _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca
mod_ssl+mod_jk do not forward the https scheme in right manner
I am using mod_jk together with apache 1.3 an mod_ssl to forward the HTTPS request from apache 1.3.27 to tomcat 4.1.24. Instead of getting the URL that a am entering in the browser https://foo.bar/servletXY?param=abc I get following URL-request in tomcat: http://foo.bar:443/servletXY?param=abc Thus it works almoust, but the scheme I get is wrong. I am not sure where the problem lies. I am newbee in httpd but I still tried to follow the mod_jk documentation. Can anybody point me how to get the right scheme (https)? Any help appreciated. thx. Rudolf S. my httpd.conf file contains following - ... IfModule !mod_jk.c LoadModule jk_module /etc/httpd/modules/mod_jk.so /IfModule JkWorkersFile /opt/jakarta/catalina-base-moaid/conf/jk/workers.properties JkLogFile /opt/jakarta/catalina-base-moaid/logs/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T VirtualHost *:443 ServerName foo.bar DocumentRoot /home/www/ RewriteEngine off #SSLEngine on # turning on here does not work - so it is done outside of VH. ErrorLog/var/log/httpd/error_log JkMount /moa-id-auth/* moaworker JkMount /* moaworker /VirtualHost ... - my workers.properties file contains: - worker.list=moaworker worker.moaworker.type=ajp13 worker.moaworker.host=localhost worker.moaworker.port=8009 - my server.xml file contains: ... Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=10 connectionTimeout=0 useURIValidationHack=false scheme=https secure=true protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question about Tomcat serving HTML pages
Howdy, .htaccess files are an Apache feature, not tomcat, so you can't use them. Instead, you would use the security and access control mechanisms defined in the servlet specification. Yoav Shapira Millennium ChemInformatics -Original Message- From: Atreya Basu [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 4:57 PM To: [EMAIL PROTECTED] Subject: Question about Tomcat serving HTML pages If I want to use Tomcat to serve all of my HTML pages, can I still use things such as .htaccess where I can set up protected directories etc.? _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Realm XDB User Login
Hello - I'm having some problems with Tomcat on one of my servers.. Whenever I try to go to http://localhost:8080/admin it will bring up the login script - with the Realm as XDB and none of the preconfigured Tomcat usernames and passwords seem to work.. I tried creating a new user under the admin and manager role - but still now luck.. Here is what the server is running... each time I try to login in it will say Authorization Failure.. Anybody got any ideas? Tomcat 4.1.18 Sun Java SDK 1.4.1_01 ColdFusion MX Oracle Database 9.2 Symantec AntiVirus 4.1.0.15 PC Anywhere 11 Windows 2000 Service Pack 4 IIS 5.0
RE: Can not load JNDI DataSource in Servlet.init()
Well then it may be something else. I'm essentially doing what you are with a JNDI datasource defined in the DefaultContext with nothing in the web.xml (except to pass along the JNDI name so it's not hard-coded). It breaks for me (and a bunch of other people posting recently using 4.1.x) when I try to move that to GlobalNamingResources and use a ResourceLink. Post your server.xml and web.xml (or just relevant parts), maybe it's something else. -Original Message- From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 3:50 PM To: Tomcat Users List Subject: Re: Can not load JNDI DataSource in Servlet.init() No, I'm not using a ResourceLink. _ Manolo Ramirez T. Madere, Colin wrote: So you are using a resource link in the DefaultContext either in server.xml or your web.xml? -Original Message- From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 1:27 PM To: Tomcat Users List Subject: Re: Can not load JNDI DataSource in Servlet.init() It's in DefaultContext, I checked the related messages, it seems like the same problem. Thanks for the answer. _ Manolo Ramirez T. Madere, Colin wrote: How is your JNDI resource configured? In an explicitly defined Context or in the DefaultContext? ResourceLinked? I ask because there are a number of folks with similar problems that look to be something missing in how JNDI datasources are handled internally when using DefaultContext. See other topics: * ResourceLink and DefaultContext * Tomcat 4.1 DefaultContext Bug? * Question about Tomcat Documentation * Globally defined JNDI DataSource -Original Message- From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2003 10:55 PM To: Tomcat Users List Subject: Can not load JNDI DataSource in Servlet.init() Hi all, Why I can't load a JNDI resource on the init method of my servlet? there is no problem doing that in doGet() but on init() it doesn't work. the logs entry is: java.sql.SQLException: Cannot load JDBC driver class 'null' It's the same code! What I'm missing? this is my servlet code: package libreria; import java.io.PrintWriter; import java.io.IOException; import javax.servlet.*; import javax.servlet.http.*; import java.sql.*; import javax.sql.*; import javax.naming.*; public class MyServlet extends HttpServlet { public void init (ServletConfig config) throws ServletException{ super.init(config); try { Context ctx = new InitialContext(); if(ctx==null) { System.out.println(fallo InitialContext); return; } DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/ComercialDB); if(ds==null) { System.out.println(fallo lookup); return; } Connection conn = ds.getConnection(); Statement stm = conn.createStatement(); ResultSet rs = stm.executeQuery(select * from pruebas); while(rs.next()) { System.out.println(rs.getInt(id)+::+rs.getString(nombre)+::+rs .getSt ring(apellido)); } } catch(Exception e) { e.printStackTrace(); } } public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException,ServletException { response.setContentType(text/plain); PrintWriter out= response.getWriter(); out.println(holas muchas); try { Context ctx = new InitialContext(); if(ctx==null) { out.println(fallo InitialContext); return; } DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/ComercialDB); if(ds==null) { out.println(fallo lookup); return; } Connection conn = ds.getConnection(); Statement stm = conn.createStatement(); ResultSet rs = stm.executeQuery(select * from pruebas); while(rs.next()) { out.println(rs.getInt(id)+::+rs.getString(nombre)+rs.getString( apelli do)); } } catch(Exception e) { e.printStackTrace(out); } } } Regards. _ Manolo Ramirez T. - 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: tomcat-user.xml re-writing - bug?
Bug 22715 posted BTW, what makes you think UserDatabase is new? ;) As opposed to the old MemoryRealm from Tomcat 4.0.x, which is now commented out by default in server.xml :-) !-- Comment out the old realm but leave here for now in case we need to go back quickly -- !-- Realm className=org.apache.catalina.realm.MemoryRealm / -- PaulE -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 10:44 AM To: Tomcat Users List Subject: RE: tomcat-user.xml re-writing - bug? Howdy, It looks like a bug -- file it in Bugzilla. You can't stop the file being re-written, and if you have any comments in the file they'll be removed. I'm not sure if XML entities are allowed or not. It's really intended to be a simple, get started quickly mechanism. Not a complete enterprise user database solution ;) BTW, what makes you think UserDatabase is new? ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Extance, Paul [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 1:20 PM To: 'Tomcat Users List' Subject: tomcat-user.xml re-writing - bug? Hi, I'm using the new UserDatabase (org.apache.catalina.UserDatabase / org.apache.catalina.users.MemoryUserDatabaseFactory) as configured by default with Tomcat 4.1.27. Our System admin made a basic XML error, and in tomcat-users.xml put and entry in like... user username=tomcat password=tomcat roles=tomcat / Obviously the '' makes this invalid XML, and tomcat doesn't start... We changed the to amp; the XML was then valid, the user account worked, life was good A few days later, after he restarted the server, it was broke again... Seems that when Tomcat re-wrote out the tomcat-users.xml file, instead of escaping the and writing it back out as amp; it just put it out a , so we were back to square one! Question: 1) Is this a bug? 2) Can I stop the 're-writing' part of this as a work around? 3) Are XML entities not allowed in tomcat-users.xml? Thanx PaulE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: Question about Tomcat serving HTML pages
The only Tomcat built-in protection is Realms: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html -Original Message- From: Atreya Basu [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 4:57 PM To: [EMAIL PROTECTED] Subject: Question about Tomcat serving HTML pages If I want to use Tomcat to serve all of my HTML pages, can I still use things such as .htaccess where I can set up protected directories etc.? _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re:crypto problem
Maxime Colas des Francs wrote: I attempt to use openpgp in my web application For that i use an external provider. I put jar files in WEB-INF/lib and in a 'load-on-startup' servlet, i call Security.addProvider() and i read a public key from a file for futur encryptions. I start tomcat manually (with startup.sh) and it works, i encrypt but my problem is : when application restart not manually, by class modified or by manager application stop start request, my 'load-on-startup' servlet is re-executed, and freeze when public key is reading ... and in my catalina.out i find this : java.security.NoSuchAlgorithmException: Algorithm ElGamal not available at javax.crypto.SunJCE_b.a(DashoA6275) at javax.crypto.Cipher.getInstance(DashoA6275) at cryptix.openpgp.algorithm.PGPElGamal.init(PGPElGamal.java:91) 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 cryptix.openpgp.algorithm.PGPAlgorithmFactory.getPublicKeyAlgorithm(PGPAlgorithmFactory.java:445) at cryptix.openpgp.packet.PGPKeyPacket.decodePublicData(PGPKeyPacket.java:228) at cryptix.openpgp.packet.PGPPublicSubKeyPacket.decodeBody(PGPPublicSubKeyPacket.java:92) at cryptix.openpgp.packet.PGPPacketFactory.readPacket(PGPPacketFactory.java:253) at cryptix.openpgp.provider.PGPKeyBundleFactory.helper(PGPKeyBundleFactory.java:84) at cryptix.openpgp.provider.PGPMessageFactory.generateBinary(PGPMessageFactory.java:224) at cryptix.openpgp.provider.PGPMessageFactory.generateAscii(PGPMessageFactory.java:157) at cryptix.openpgp.provider.PGPMessageFactory.engineGenerateMessages(PGPMessageFactory.java:77) at cryptix.message.MessageFactory.generateMessages(MessageFactory.java:142) at pkg.SetupServlet.init(SetupServlet.java:54) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420) at org.apache.catalina.core.StandardContext.reload(StandardContext.java:2567) at org.apache.catalina.loader.WebappLoader$WebappContextNotifier.run(WebappLoader.java:1369) at java.lang.Thread.run(Thread.java:536) so initialisation failed and i have to restart tomcat manually (so all other web applications in the container) someone can help me ? I hope I can... What JDK version are you using, 1.3 or 1.4? 1.4 didn't like it when I had a Security.addProvider() line in my code. You might check out the cryptography forum at http://forums.java.com - that was VERY helpful to me. -- Lynn Hollerman. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat + Sun One AS7 JNDI lookup of JMS not working
I am trying to use Tomcat to perform a JNDI look up of a JMS queue (JMS server is Sun One MQ that is bundled with Sun One AS 7). However, it doesn't seem like JMS resources are bound to the Tomcat JNDI namespace. For my app, I am using com.sun.jndi.cosnaming.CNCtxFactory as the initial context factory. When I perform the lookup, I get the following error: javax.naming.NameNotFoundException. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound I have tried setting the initial context factory both at the command line and within code, but get the same error either way. If I use com.sun.enterprise.naming.SerialInitContextFactory as the initial contect factory, the lookup does work, but I'm not exactly sure why. Has anyone been able to use JNDI to lookup JMS resources within Tomcat, and with com.sun.jndi.cosnaming.CNCtxFactory as the context factory? Thanks, Bo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Java/JSP vs C#/.NET
Hi, I am a pure java supporter. I don't like C# or .Net because of Microsoft's monopolization (sorry, kind of prejudice). However, I notice that more and more people pick up C#/.NET due to their new advantages. I also heard that C# is much faster than Java. My concern is, can Java/JSP still be competitive to Microsoft's products? I don't like to see java be beaten by Microsoft since it borrowed so many ideas from java to make up the so-called C#. ok, feel free to talk about this topic. Lance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using the Tomcat Administration Tool
I got up and running with V5.09. I found a few things out: 1. Each v. host needs its own web apps directory or else Tomcat gets confused. 2. If you don't set a default v.host then unrecognised v.host names result in an empty (0-length) response. If you do then you get the result for the default v.host. I'm not sure what is better - I'd rather just give out an error page. 3. The manager only appears to list applications on the its v.host, though the status includes info for all v. hosts. 4. The administration tool has the wrong attribute names for v.hosts (as mentioned below). 5. Despite what I thought I read in the docs, the context filename (catalina/host/xyz.xml) does have to match the webapp folder name in the webapps directory - at least I couldn't get it to work unless it did! Chris Chris Trobridge wrote: I've been trying to use this to set up multiple Host entries. I started off with Tomat V5.09 but get the following response if I click on the existing host: HTTP Status 500 - Error retrieving attribute liveDeploy I get a similar message if I try to create a new host - just that it fails to set the attribute. I looked around for an answer but the best I can find is that this (and another) attribute were renamed a few revisions back and my guess is that the administration tool is lagging Tomcat right now. I then tried the latest V4.1 release (4.1.27) and had some limited the success. I could get different domains directed at different subdirectories of webapps by setting each host location to webapps and the contexts app1, app2 etc. However, every now and again the administrator would place all the default contexts (admin, examples etc) under each of my host entries... I have no idea about why this happens but it would let me delete all these contexts so I'd usually reinstall at this point. Any ideas about my host problems? My instinct at the moment is to stick with 5.09 and ignore administration tool, despite the temptation. Thanks Chris - 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: Can not load JNDI DataSource in Servlet.init()
I was making more test with this, I find that if I define the resource in a normal context it works, but I want to use defaultcontext to work with ant InstallTask, or is there another way to do this? I attached my web.xml, this is the relevant entry in server.xml: DefaultContext debug=0 reloadable=true crossContext=true Resource name=jdbc/ComercialDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/ComercialDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value100/value /parameter parameter namemaxIdle/name value30/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameusername/name value***/value /parameter parameter namepassword/name value***/value /parameter parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://localhost:3306/comercial?autoReconnect=true/value /parameter /ResourceParams /DefaultContext Thanks for the help Colin. _ Manolo Ramirez T. Madere, Colin wrote: Well then it may be something else. I'm essentially doing what you are with a JNDI datasource defined in the DefaultContext with nothing in the web.xml (except to pass along the JNDI name so it's not hard-coded). It breaks for me (and a bunch of other people posting recently using 4.1.x) when I try to move that to GlobalNamingResources and use a ResourceLink. Post your server.xml and web.xml (or just relevant parts), maybe it's something else. -Original Message- From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 3:50 PM To: Tomcat Users List Subject: Re: Can not load JNDI DataSource in Servlet.init() No, I'm not using a ResourceLink. _ Manolo Ramirez T. Madere, Colin wrote: So you are using a resource link in the DefaultContext either in server.xml or your web.xml? -Original Message- From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 1:27 PM To: Tomcat Users List Subject: Re: Can not load JNDI DataSource in Servlet.init() It's in DefaultContext, I checked the related messages, it seems like the same problem. Thanks for the answer. _ Manolo Ramirez T. Madere, Colin wrote: How is your JNDI resource configured? In an explicitly defined Context or in the DefaultContext? ResourceLinked? I ask because there are a number of folks with similar problems that look to be something missing in how JNDI datasources are handled internally when using DefaultContext. See other topics: * ResourceLink and DefaultContext * Tomcat 4.1 DefaultContext Bug? * Question about Tomcat Documentation * Globally defined JNDI DataSource -Original Message- From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2003 10:55 PM To: Tomcat Users List Subject: Can not load JNDI DataSource in Servlet.init() Hi all, Why I can't load a JNDI resource on the init method of my servlet? there is no problem doing that in doGet() but on init() it doesn't work. the logs entry is: java.sql.SQLException: Cannot load JDBC driver class 'null' It's the same code! What I'm missing? this is my servlet code: package libreria; import java.io.PrintWriter; import java.io.IOException; import javax.servlet.*; import javax.servlet.http.*; import java.sql.*; import javax.sql.*; import javax.naming.*; public class MyServlet extends HttpServlet { public void init (ServletConfig config) throws ServletException{ super.init(config); try { Context ctx = new InitialContext(); if(ctx==null) { System.out.println(fallo InitialContext); return; } DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/ComercialDB); if(ds==null) { System.out.println(fallo lookup); return; } Connection conn = ds.getConnection(); Statement stm = conn.createStatement(); ResultSet rs = stm.executeQuery(select * from pruebas); while(rs.next()) { System.out.println(rs.getInt(id)+::+rs.getString(nombre)+::+rs .getSt ring(apellido)); } } catch(Exception e) { e.printStackTrace(); } } public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException,ServletException { response.setContentType(text/plain); PrintWriter out= response.getWriter(); out.println(holas muchas); try { Context ctx = new InitialContext(); if(ctx==null) { out.println(fallo InitialContext); return; } DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/ComercialDB); if(ds==null) {
The tag handler pooling issue in the current 4.1.27
To my knowledge, up to the 4.1.24 version of TC 4.1 has a tag handler pooling issue which leads to malfunctioning of tags. Does anyone know what is the situation in the 4.1.27 right now (fixed or not)? Whether it is still advisable to disable the option in the system configuration? Thanks for your input. Vernon Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail! http://login.mail.lycos.com/r/referral?aid=27005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]