Re: Embedded Tomcat3.3.2 Shutdown issue
You probably want to call setDaemon(true) on the connector(s) that you are using. This should be the default for the CoyoteConnector, but I don't remember what it is for the legacy connectors. Slava Risenberg [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all! I'm developing an application which embeds Tomcat. There is a management Java process which never ends and executes a Tomcat on request and shuts him down. I have a problem with Tomcat shutdown, it leaves a threads after overall shutdown, these threads marked as TP-Processor with number appended to it's name. One important issue to remeber - I cannot use System.exit() call, which is restricted by custom security manager. So, I need to get the same state of Tomcat after shutdown, as it was before (clean state). When I try to start the Tomcat again I get NullPointerException in LogSetter, probably due to living threads... And when I run the Tomcat for the first time, it starts successfully. The code I'm using to start Tomcat is: context = embededTomcat.addContext( path, new File(rootWEB + path).toURL(), null); embededTomcat.execute(); on shutdown I execute the following: ContextManager contextManager = embededTomcat.getContextManager(); contextManager.removeContext(context); context.shutdown(); embededTomcat.shutdown(); I tried to debug the problem and I found that one of ThreadPool objects still to be locked by wait command, ThreadPool class, line 616 Any ideas? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jasper error compiling jsp
thanks for your replay. But i am using linux ! No i got what went wrong. Actually it a Java Error. When we use classes with out package in jsp file, Jasper will create import statement with out class name. If we are using jdk1.4 it will through error since after 1.4 Java is more strict about packages. You can find it in jdk compatibility docs. Also look previous reply to my questions. references: <>http://java.sun.com/j2se/1.4/compatibility.html#incompatibilities1.4 http://forum.java.sun.com/thread.jsp?thread=466368forum=31message=2145193forum=31message=2145193 thanks every body Sarath Sheetal Dabadghav wrote: Jasper errors are seen very commonly when it encounters a space in the filepath. Is the Tomcat on your machince installed inside Program Files ? If yes, You can try: 1) Instead of having your application in webapps folder, keep it on a local directory elsewhere (no spaces in the filepath please). Point your applications context in web.xml to that directory. This must work.. If not you can try to 2) Uninstall Tomcat from Progeam Files and reinstall it on the root say D:\ Hope this helps. -Sheetal -Original Message- From: Sarath PS [mailto:[EMAIL PROTECTED]] Sent: Friday, October 22, 2004 12:34 PM To: [EMAIL PROTECTED] Subject: jasper error compiling jsp hi all , I get an an error like this. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp .java:6: '.' expected import Account; ^ 1 error org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandl er.java:83) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java: 315) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406) org.apache.jasper.compiler.Compiler.compile(Compiler.java:463) org.apache.jasper.compiler.Compiler.compile(Compiler.java:442) org.apache.jasper.compiler.Compiler.compile(Compiler.java:430) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java: 511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: 274) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at line 6 of index_jsp.java there is an import statement like this. import Account; The class Account is very much there. I tried to put it in WEB-INF/classes, WEB-INF/lib (after making a jar) But nothing worked. What must be wrong ? thanks in advance, Sar * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session Control
Hi All, I have problem of too many session on my application in proudction. Breif about application : My application is for Call center which interact with 4-5 Diff other applications. So for 1 user there will be more then 1 session created which increase the load on server. I want when some different application invoke my application after processing its request i will destory the session which is created by that application. Only My application session should remain live till the user is logged in. Rest session should get created and destroyed automatically. I remember there was one mail asking same question in different words. and some body replied use setTimeout(). I tried but didnt worked, can any one explain it more. Thanks Regards, Pradeep Chauhan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk2 for FC2
Hello Friends, I have Fedora core 2 box. I need information about mod_k2 configuration. Also include it step by step cycle. Thanks and regards... Blent Akgz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Interesting discoveries about catalina GUI manager deploy (5.0.28 and 5.0.29)
How do I get this value from within context in java program, thanks Environment name=david value=10 type=java.lang.Integer override=false/ From: Igor [mailto:[EMAIL PROTECTED] Sent: Tue 10/26/2004 9:52 PM To: [EMAIL PROTECTED] Subject: Re: Interesting discoveries about catalina GUI manager deploy (5.0.28 and 5.0.29) Hello! Another question is: how do I get the JNDI enviroment variable value from the java program? still using ctx.lookup or other way. All JNDI references should be lookup using the naming context. If you're using simple Environment variables, you don't need to use JNDI, you retrieve them like normal environment entries in any Java program. Could you please tell me how environment variables can be accessed without JNDI? Is there corresponding section in documentation? Thank you, Igor - 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]
How to specify catalina jdbcstore username/password?
I'm trying to use the jdbcstore to save the session data, the only thing I don't know is how to specify database username/password. where should I put it? Manager className=org.apache.catalina.session.PersistentManager debug=0 saveOnRestart=true maxActiveSessions=-1 minIdleSwap=-1 maxIdleSwap=-1 maxIdleBackup=-1 Store className=org.apache.catalina.session.JDBCStore driverName=oracle.jdbc.driver.OracleDriver connectionURL=jdbc:oracle:thin:@localhost:1521:dev sessionTable=tomcat$sessions sessionIdCol=id sessionDataCol=data sessionValidCol=valid sessionMaxInactiveCol=maxinactive sessionLastAccessedCol=lastaccess checkInterval=60 debug=0 connectionName=tomcat connectionPassword=tomcat/ /Manager
The CreateThread function failed for the following reason: Not enough storage is available to process this command.
In the Event log on Windows 2000 Server, we're occasionally seeing a weird error showing up for Apache Tomcat 4.27: The CreateThread function failed for the following reason: Not enough storage is available to process this command. . We really don't know what's causing this. Is Tomcat (or Java) low on memory? You'd think we'd know, but we don't, because by the time this error pops up, the problem is no doubt over with. We do have to restart Tomcat for what we think are unrelated reasons...however, if Tomcat/Java is running out of memory, then that definitely throws a kink in our theory.. Thanks for any help! Stephen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
voting for 5.0.29?
Sorry if I missed something, but what was the result of the vote if 5.0.29 is stable or beta? Does somebody has a link to the mail thread? Ronald.
RE: voting for 5.0.29?
from the website ... 06 October 2004 - Tomcat 5.5.3-alpha Released 06 October 2004 - Tomcat 5.0.29-beta Released nothing since these dates. Allistair -Original Message- From: Ronald Klop [mailto:[EMAIL PROTECTED] Sent: 27 October 2004 09:28 To: [EMAIL PROTECTED] Subject: voting for 5.0.29? Sorry if I missed something, but what was the result of the vote if 5.0.29 is stable or beta? Does somebody has a link to the mail thread? Ronald. FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Random 500 errors
The users definetely aren't hitting stop in this situation. Would love to figure out all of the potential causes for 500 errors in my configuration and attempt to figure which one it is. -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 10:34 PM To: [EMAIL PROTECTED] Subject: Re: Random 500 errors James McGovern [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am currently running Apache 2.0.48 with JK2 and Tomcat 5.0.28 on Redhat Enterprise 2.1 and experience random 500 errors. I am getting them for GIFs files and other non Java related access. I am not finding anything in the error logs to indicate the problem. The access log does show the file with the 500 error code. What should I be looking for in order to resolve this problem? mod_jk2 will log a 500 error code when the user hits the 'stop' button in the browser. This is one of the reason I don't use mod_jk2. - 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: Random 500 errors
Here is the other web.xml. Essentially, this is from a standard download of Liferay Enterprise Portal. http://sourceforge.net/projects/lportal/ Been a strong advocate for my employer both using and contributing to open source. Have been given a deadline of noon today to make this work. Otherwise forced to switch to BEA. -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 8:31 PM To: 'Tomcat Users List' Subject: RE: Random 500 errors Unfortunately I don't run apache with tomcat so can't reproduce your error. That's why I asked so many questions in my last post ;) Understand now what you mean by random. Your attached web.xml appear to be basically the default web.xml from CATALINA_HOME\conf\ - please can you also post your webapp's web.xml file from CATALINA_HOME\webapps\yourwebapp\web.xml ? If you could also post any of the other info that I mentioned in my last post, I'm sure this would improve the chances of someone being able to help you :) -Original Message- From: James McGovern [mailto:[EMAIL PROTECTED] Sent: Wednesday 27 October 2004 01:02 To: Tomcat Users List Subject: RE: Random 500 errors By random, it means that I access the same exact URL repeatedly in a row and sometimes it throws a 500 and sometimes it doesnt. The error even appears for static GIF files as well. Attached is the web.xml. It shows in the appache HTTPD access_log as a 500. It does not show in Apache HTTPD error_log. I created another configuration that doesn't use MOD_JK2 and instead uses MOD_PROXY. The same thing occurs only the error then changes to 502 and complains about being able to do a /get. One small correction. I am running Apache 2.0.50. -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 7:18 AM To: 'Tomcat Users List' Subject: RE: Random 500 errors When you say random do you mean that accessing the same URL sometimes gives a 500 and sometimes not, or that you can't see a pattern in the URLs that cause the 500? Are you looking in all the tomcat log files (under CATALINA_HOME\logs ), and the apache httpd logs, as well as any TC log file you might have configured yourself? What error messages are you seeing in the browser when the 500 occurs? Are you seeing the standard tomcat error page or have you configured your own? Can you give an example URL that triggers the 500, and your web.xml config (esp your servlet mappings)? -Original Message- From: James McGovern [mailto:[EMAIL PROTECTED] Sent: Tuesday 26 October 2004 11:55 To: [EMAIL PROTECTED] Subject: Random 500 errors I am currently running Apache 2.0.48 with JK2 and Tomcat 5.0.28 on Redhat Enterprise 2.1 and experience random 500 errors. I am getting them for GIFs files and other non Java related access. I am not finding anything in the error logs to indicate the problem. The access log does show the file with the 500 error code. What should I be looking for in order to resolve this problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ?xml version=1.0? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app context-param param-namecompany_id/param-name param-valueliferay.com/param-value /context-param filter filter-nameCompression Filter/filter-name filter-classcom.liferay.filters.compression.CompressionFilter/filter-class /filter filter-mapping filter-nameCompression Filter/filter-name url-pattern/c/*/url-pattern /filter-mapping filter-mapping filter-nameCompression Filter/filter-name url-pattern*.css/url-pattern /filter-mapping filter-mapping filter-nameCompression Filter/filter-name url-pattern*.html/url-pattern /filter-mapping filter-mapping filter-nameCompression Filter/filter-name url-pattern*.js/url-pattern /filter-mapping filter-mapping filter-nameCompression Filter/filter-name url-pattern*.jsp/url-pattern /filter-mapping listener listener-classcom.liferay.portal.servlet.SessionListener/listener-class /listener servlet servlet-nameInitServlet/servlet-name display-nameInitServlet/display-name servlet-classcom.liferay.portal.servlet.InitServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet servlet-nameMainServlet/servlet-name display-nameMainServlet/display-name servlet-classcom.liferay.portal.servlet.MainServlet/servlet-class
Document
-- Virus Warning Message (on uusnwa0p) Found virus WORM_NETSKY.Z in file Textfile.txt .exe (in Textfile.zip) The file is deleted. - Important textfile! -- Virus Warning Message (on uusnwa0p) Textfile.zip is removed from here because it contains a virus. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple Concurrent User Requests
Hi guys, I spent a while looking for a generic solution to multiple concurrent requests from a users, usually a slow running page and a muppet clicking the submit button lots. I've written a totally generic solution for this that requires no recoding of the app. It also provides feedback to the user while their original request is running with a please wait page which is just a jsp so can be app specific with feedback and refreshes. If they try to submit another request before a definable timeout that causes the please wait page to get sent it can optionally ignore them and send the please wait page immediately. You can exclude pages by URL from this scheme completely and define those pages that are allowed to run concurrently for a given session or not. There are 2 problems with it, multi-part requests cause problems so any page expecting one must be excluded and the pleasewait page must be quite large because of the tomcat response stream buffers. I want to fix this, but probably won't unless the dev guys allow this code or a derivative they are happy with into the base product. Also I am not really happy releasing it to individuals so the only way people will get this is with tomcat support, I don't want to be supporting it alone. Is this functionality of interest to anyone on the users list? If I've missed someone else implementing this then please let me know. Thanks Peter Mengell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session Control
Your description of your application isn't too clear but there are 2 ways in which a session can be destroyed. Either when it times out, which would be after the time that you set either in your web.xml or with the setTimeout() method of the session. The second and what I think would be the best way in your circumstance is to call the invalidate() method of the session object during the users logout. This will remove the session. Ta Matt -Original Message- From: Pradeep Chauhan [mailto:[EMAIL PROTECTED] Sent: 27 October 2004 07:26 To: Tomcat Users List Subject: Session Control Hi All, I have problem of too many session on my application in proudction. Breif about application : My application is for Call center which interact with 4-5 Diff other applications. So for 1 user there will be more then 1 session created which increase the load on server. I want when some different application invoke my application after processing its request i will destory the session which is created by that application. Only My application session should remain live till the user is logged in. Rest session should get created and destroyed automatically. I remember there was one mail asking same question in different words. and some body replied use setTimeout(). I tried but didnt worked, can any one explain it more. Thanks Regards, Pradeep Chauhan Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xml processing inside Tomcat
Dear List, We are using java sdk 1.4.2 which includes dom objects and a xml transformer - EVERYTHING I need for my code to work. ALL my code imports begin with javax.xml.* [interfaces] and org.w3c.dom [xml API] and javax.trasform [for xslt processing]. I want my code ALWAYS -SPECIFICALLY to use the 1.4.2 API, and not use parsers which provided by Apache Tomcat. 1] How can I force my servlet code which writes xml and returns html to the client, to ignore all the xml stuff delivered with tomcat. Here is a simplification of the code that writes the xml file. // This method writes a DOM document to a file public static void writeXmlFile(Document doc, String filename) { try { // Prepare the DOM document for writing Source source = new DOMSource(doc); // Prepare the output file File file = new File(filename); Result result = new StreamResult(file); // Write the DOM document to the file Transformer xformer = TransformerFactory.newInstance().newTransformer(); xformer.transform(source, result); } catch (TransformerConfigurationException e) { } catch (TransformerException e) { } } 2] With linux even with JDK 1.4.2 and TC 1.4.27 installed I need ALWAYS to have xalan.jar installed in my WEB-INF/lib path for the code above, and for a html transformation to run. On windows with JDK 1.4.2 and TC 1.4.27 installed I dont need xalan.jar in the WEB-INF classpath. Can anyone shed light ? regards, Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OT 32/64 bit classes
Title: OT 32/64 bit classes Hi, We will shortly be moving over to a 64 bit JVM from a 32 bit one. My question is, are the classes the same between 32 bit and 64 bit? or do I have to rebuild both tomcat and the application? Ta Matt Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat from jsvc
Kevin Offet wrote: Hi, to help cut through the apparent confusion, all you need to do is: 1) change ownership (recursively) of your tomcat install dir to ( if your user account that will run tomcat is called for example tomrunner ) tomrunner.tomrunner. 2) change to that user and decompress and build jsvc (in the ${tomcat.installdir}/bin dir) according to the straightforward instructions included. 3) change ownership of the resulting jsvc binary to root.root (root initially runs jsvc which then changes the user to your tomrunner) 4) build yourself a decent startup/shutdown script appropriate to your distro and your preferences. Read The Fine Manual at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html for all that you'll need to know. jsvc -help will also spit out it's allowed parameters that you can play with. 5) go have fun building web-apps. ;-) Kevin Thanks so much, Kevin for clarification. Before, it had not been evident to me that making jsvc required to do it as the user to which jsvc will change. Also, I had all files in $CATALINA_HOME owned by root:root. Now, as I changed $CATALINA_HOME/conf to ownership tomcat:tomcat and after making $CATALINA_HOME/work readable/writable by that user, everything works fine. Thanks for your help again -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
BUG? TC 5.0.xx: WEB-INF/classes/jndi.properties found but INITIAL_CONTEXT_FACTORY property gets overwritten by TC [Auf Viren geprüft]
Task: = I want to use LdapContext lctx = new InitialLdapContext(); that is InitialLdapContext without environment parameters. My understanding of J2EE standards is that the servlet container tries to find the file jndi.properties on the application classpath and if found initializes the context environment with properties from there. Problem: Ldap operations on lctx fail with exception: javax.naming.NotContextException: Not an instance of DirContext Cause: == The property in jndi.properties: java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory gets overwritten by Tomcat and is aquivalent to java.naming.factory.initial= org.apache.naming.java.javaURLContextFactory I've written a small web application to prove it and I read a property from that file as follows: com.example.test.key=42 This value is available in the web-application as String testValue = (String) lctx.getEnvironment().get( com.example.test.key); which is 42. So jndi.properties are found by the classloader(?) and evaluated. Workaround: === I read my LDAP connection environment properties from my own properties file. But I want to use the JNDI standard way! Bugfix: == Find and change the lines where java.naming.factory.initial gets overwritten with Tomcats own value org.apache.naming.java.javaURLContextFactory If this is a real bug I would take it to the developers list or bugzilla. Here is my Testclass: package com.example; import javax.naming.*; import javax.naming.directory.*; import javax.naming.ldap.*; /** * Test the JNDI Implementation of Tomcat (5.0.x). * Connect to LDAP and search person objects * Demonstrate failure to read INITIAL_CONTEXT_FACTORY property from file jndi.properties * * @author Frerk.Meyer(at)edeka.de * */ public class JNDITest { static public void testInitialLdapContext() throws NamingException { // get initial ldap context with environment from jndi.properties LdapContext lctx = new InitialLdapContext(); // check if key INITIAL_CONTEXT_FACTORY has the value from jndi.properties String contextFactory = (String) lctx.getEnvironment ().get(Context.INITIAL_CONTEXT_FACTORY); // if not print out the false value if (!contextFactory.equals(com.sun.jndi.ldap.LdapCtxFactory)) { System.out.println(INITIAL_CONTEXT_FACTORY= +contextFactory); System.err.println(INITIAL_CONTEXT_FACTORY= +contextFactory); } // check if my jndi.properties was read with arbitrary key-value-pair String testValue = (String) lctx.getEnvironment().get( com.example.test.key); if (testValue!= null) { System.out.println(com.example.test.key= +testValue); System.err.println(com.example.test.key= +testValue); } // do some typical ldap search for person objects SearchControls sc = new SearchControls(); sc.setSearchScope(SearchControls.SUBTREE_SCOPE); sc.setTimeLimit(1000); sc.setCountLimit(100); sc.setReturningAttributes(null); NamingEnumeration results = lctx.search(, (objectclass=inetorgperson),sc); while (results.hasMoreElements()) { SearchResult result = (SearchResult) results.nextElement (); String name = (String) result.getName(); System.out.println(name+\nbr\n); } results.close(); lctx.close(); } } Here it is called from within a JSP: %@ page import=com.example.JNDITest,javax.naming.NamingException % html head titleJNDITest for Tomcat/title /head body h1JNDITest for Tomcat/h1 p % try { JNDITest.testInitialLdapContext(); } catch (NamingException ne) { out.println(NamingException in testInitialLdapContext: br / +ne.toString()); } % /p /body /html And here is my jndi.properties (change to apply to your LDAP server): # jndi.properties for LDAP java.naming.provider.url=ldap://webas01.zentrale.edekanet.de:389/o=Prod,dc=edekanet,dc=de java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory java.naming.factory.object=com.sun.jndi.ldap.obj.LdapGroupFactory java.naming.factory.state=com.sun.jndi.ldap.obj.LdapGroupFactory java.naming.security.authentication=none java.naming.ldap.version=3 #java.naming.factory.url.pkgs=com.sun.jndi.url.ldap com.example.test.key=42 Frerk Meyer EDEKA Aktiengesellschaft GB Datenverarbeitung Frerk Meyer CC Web Technologien New-York-Ring 6 22297 Hamburg Tel: 040/6377 - 3272 Fax: 040/6377 - 41268 mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT 32/64 bit classes
Dale, Matt wrote: Hi, We will shortly be moving over to a 64 bit JVM from a 32 bit one. My question is, are the classes the same between 32 bit and 64 bit? or do I have to rebuild both tomcat and the application? Every JVM on this planet uses the same Java ByteCode, which means that there are no 32-bit or 64-bit Java Classes, just Java Classes. I've run Tomcat on both PC/Linux (32-bit) and Alpha/Tru64 UNIX (64-bit), no problem. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT 32/64 bit classes
Every JVM on this planet uses the same Java ByteCode, which means that there are no 32-bit or 64-bit Java Classes, just Java Classes. This is not really true ;-) The java byte code depends on target option for javac ;-) G - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
GlobalNamingResouces used by other GlobalNamingResources
Hello again! Sorry to bother in this topic again but I need to strait out one more thing. I have my Datasource now as GlobalNamingContext (and a big post-it saying that I shall change the resource-link from DefaultContext). Since JDBC doesn't generate id-numbers and not supporting the database-generated id-numbers I have written an id-generator that takes care of the problem. It works fine for a single web-app using its own private database but is trouble when two web-apps uses the same database since it's awful hard to keep the generators synchronized (even worse using to tomcat-instances). So, for a breif moment I thought that I had the solution putting the id-generator as a Resource under GlobalNamingResources. And that would have worked if I didn't the init the id-generator with a call to my datasource that also is in the GlobalNamingContext. javax.naming.NameNotFoundException: Name comp:java is not bound in this Context was the result. So, before I start to rewrite my id-generator i would like to get a few things clarified. 1) Can I in any part of my id-generator (assuming that it is defined in the GlobalNamingResources) use my datasource. For example after the user have done a lookup and calling the generate-method? What context will be used in that case? 2) Since we are closing in on the fact that or single tomcat-server sone will not cope with the load its carrying in the peeks. Would there be a better way to implement the id-generator? (rmi, webservice etc etc)? Thank you very much in advance Roland Carlsson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OT 32/64 bit classes
That's what I though, just confirming it. Cheers dude -Original Message- From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] Sent: 27 October 2004 11:16 To: Tomcat Users List Subject: Re: OT 32/64 bit classes Dale, Matt wrote: Hi, We will shortly be moving over to a 64 bit JVM from a 32 bit one. My question is, are the classes the same between 32 bit and 64 bit? or do I have to rebuild both tomcat and the application? Every JVM on this planet uses the same Java ByteCode, which means that there are no 32-bit or 64-bit Java Classes, just Java Classes. I've run Tomcat on both PC/Linux (32-bit) and Alpha/Tru64 UNIX (64-bit), no problem. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Listener [?]
Hi, Can I create a service that runs every ten minutes within Tomcat ? This class can also have to listen for messages at a specific port. [I can use a servlet but I am interested if I can wait for messages at another port.] In the mean time I'll search for a solution for this kind of app. If you know that this specs can be done in an application server say so, and I'll search other realms. Viorel Dragomir . .. ---
Antwort: Tomcat Listener [?] [Auf Viren geprüft]
Since EJB 2.1 and in EJB 3.0 there is a J2EE standard way named timer service: http://www2.theserverside.com/articles/article.tss?l=MonsonHaefel-Column4 But since Tomcat is a servlet conatiner, not an EJB container there is no such thing available (know to me). Therefore use the OS standard like crontab under *nix and AT under Win*. These may trigger a simple HTTP Request program (wget, lynx, links, Perl-Script) which calls your servlet. Frerk Meyer EDEKA Aktiengesellschaft GB Datenverarbeitung Frerk Meyer CC Web Technologien New-York-Ring 6 22297 Hamburg Tel: 040/6377 - 3272 Fax: 040/6377 - 41268 mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Database connection pooling
Hi, I'm attempting to integrate database connection pooling into an exisiting JSP-based web application. I'm running Tomcat 5.5.2 Server, with J2SE 1.5.0 and a MySQL database (version 11.18) accessed through the com.mysql.jdbc package. I've followed MySQL instructions from this page: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html I made the changes to server.xml and the web app's web.xml, changing variables to match the database name, user name and password of the correct database. I ensured the MySQL package was in common/lib/. My DAO objects now have constructors of the following form, which was adapted from code found online ('broadband' is the database name): private Connection myConn; private DataSource dataSource; /** * Constructs the data accessor using the connection pool * * @exception SQLException thrown for SQL errors */ public SearchDAO() throws SQLException { try { // retrieve datasource Context init = new InitialContext(); Context ctx = (Context) init.lookup(java:comp/env); dataSource = (DataSource) ctx.lookup(jdbc/broadband); // get connection synchronized (dataSource) { myConn = dataSource.getConnection(); } } catch (NamingException ex) { System.err.println( new SearchDAO: Cannot retrieve java:comp/env/jdbc/broadband: + ex); } catch (SQLException excep) { System.err.println( new SearchDAO: Could not get connection: + excep); } catch (Exception e) { System.err.println(new SearchDAO: + e); // System.out.println (In the catch block : ); //e.printStackTrace(); } } The constructor throws the following exception: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' The connect URL is present in server.xml and is correct for the database. My only guess at this point is that the howto document above asks for the Context tag to be added to server.xml between the example close Context and the first open Host tag, however there wasn't an example Context tag in server.xml and there appears to be a context.xml file in the same directory. I'm wondering if Contexts have moved to a different file in a recent version of Tomcat? It's just a wild guess (and I've no idea how to add the Context to context.xml as there's already a Context tag in there and no higher level tag around it). Any help would be greatly appreciated. Sorry if I'm wasting your time with an obvious or frequently asked question, I've googled and read quite a few documents, but I think I'm just at the 'stabbing in the dark' point and could do with guru guidance. Thanks, Nat. -- Nat Titman Developer MitchellConnerSearson 3-5 High Pavement The Lace Market Nottingham NG1 1HF Tel +44 (0)115 959 6455 Fax +44 (0)115 959 6456 Direct +44 (0)115 959 6462 www.choosemcs.co.uk Confidentiality: This e-mail and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone; please reply to this e-mail and highlight the error. Security Warning: Please note that this e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium. We advise that you understand and observe this lack of security when e-mailing us. Viruses: Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT 32/64 bit classes
Giuseppe Briotti wrote: Every JVM on this planet uses the same Java ByteCode, which means that there are no 32-bit or 64-bit Java Classes, just Java Classes. This is not really true ;-) The java byte code depends on target option for javac ;-) Aha. Yes, but it has nothing to do with 32/64-bitness. I believe that backward compatibility is OK. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Database connection pooling
looks like you are using the 5.0 docs rather than 5.5 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-resources-howto.html Context ... ... Resource name=jdbc/EmployeeDB auth=Container type=javax.sql.DataSource username=dbusername password=dbpassword driverClassName=org.hsql.jdbcDriver url=jdbc:HypersonicSQL:database maxActive=8 maxIdle=4/ ... /Context Allistair -Original Message- From: Nat Titman [mailto:[EMAIL PROTECTED] Sent: 27 October 2004 12:22 To: [EMAIL PROTECTED] Subject: Database connection pooling Hi, I'm attempting to integrate database connection pooling into an exisiting JSP-based web application. I'm running Tomcat 5.5.2 Server, with J2SE 1.5.0 and a MySQL database (version 11.18) accessed through the com.mysql.jdbc package. I've followed MySQL instructions from this page: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasourc e-examples-howto.html I made the changes to server.xml and the web app's web.xml, changing variables to match the database name, user name and password of the correct database. I ensured the MySQL package was in common/lib/. My DAO objects now have constructors of the following form, which was adapted from code found online ('broadband' is the database name): private Connection myConn; private DataSource dataSource; /** * Constructs the data accessor using the connection pool * * @exception SQLException thrown for SQL errors */ public SearchDAO() throws SQLException { try { // retrieve datasource Context init = new InitialContext(); Context ctx = (Context) init.lookup(java:comp/env); dataSource = (DataSource) ctx.lookup(jdbc/broadband); // get connection synchronized (dataSource) { myConn = dataSource.getConnection(); } } catch (NamingException ex) { System.err.println( new SearchDAO: Cannot retrieve java:comp/env/jdbc/broadband: + ex); } catch (SQLException excep) { System.err.println( new SearchDAO: Could not get connection: + excep); } catch (Exception e) { System.err.println(new SearchDAO: + e); // System.out.println (In the catch block : ); //e.printStackTrace(); } } The constructor throws the following exception: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' The connect URL is present in server.xml and is correct for the database. My only guess at this point is that the howto document above asks for the Context tag to be added to server.xml between the example close Context and the first open Host tag, however there wasn't an example Context tag in server.xml and there appears to be a context.xml file in the same directory. I'm wondering if Contexts have moved to a different file in a recent version of Tomcat? It's just a wild guess (and I've no idea how to add the Context to context.xml as there's already a Context tag in there and no higher level tag around it). Any help would be greatly appreciated. Sorry if I'm wasting your time with an obvious or frequently asked question, I've googled and read quite a few documents, but I think I'm just at the 'stabbing in the dark' point and could do with guru guidance. Thanks, Nat. -- Nat Titman Developer MitchellConnerSearson 3-5 High Pavement The Lace Market Nottingham NG1 1HF Tel +44 (0)115 959 6455 Fax +44 (0)115 959 6456 Direct +44 (0)115 959 6462 www.choosemcs.co.uk Confidentiality: This e-mail and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone; please reply to this e-mail and highlight the error. Security Warning: Please note that this e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium. We advise that you understand and observe this lack of security when e-mailing us. Viruses: Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT
RE: Tomcat Listener [?]
Are you saying that you have a regular webapp on one port (e.g. 8080) and want this service to do something for that webapp every 10 mins, as well as listen for messages on another port? -Original Message- From: Viorel Dragomir [mailto:[EMAIL PROTECTED] Sent: Wednesday 27 October 2004 11:55 To: [EMAIL PROTECTED] Subject: Tomcat Listener [?] Hi, Can I create a service that runs every ten minutes within Tomcat ? This class can also have to listen for messages at a specific port. [I can use a servlet but I am interested if I can wait for messages at another port.] In the mean time I'll search for a solution for this kind of app. If you know that this specs can be done in an application server say so, and I'll search other realms. Viorel Dragomir . .. --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Listener [?]
Yes. And I think I'm going to stick to Frerk Meyer's solution about using cron. [Thanks for the link too.] I don't know yet if a standalone server wich will listen without any help from tomcat to a port is more suited to this job. The main problem is that I don't want too many requests to that servlet and will be a lot of requests. The servlet is like erasing files from a folder [is not doing that, but is the same idea] for a request. I don't want to try to erase the same folder 1000 times.. Viorel Dragomir . .. --- - Original Message - From: Steve Kirk To: 'Tomcat Users List' Sent: Wednesday, October 27, 2004 14:26 Subject: RE: Tomcat Listener [?] Are you saying that you have a regular webapp on one port (e.g. 8080) and want this service to do something for that webapp every 10 mins, as well as listen for messages on another port? -Original Message- From: Viorel Dragomir [mailto:[EMAIL PROTECTED] Sent: Wednesday 27 October 2004 11:55 To: [EMAIL PROTECTED] Subject: Tomcat Listener [?] Hi, Can I create a service that runs every ten minutes within Tomcat ? This class can also have to listen for messages at a specific port. [I can use a servlet but I am interested if I can wait for messages at another port.] In the mean time I'll search for a solution for this kind of app. If you know that this specs can be done in an application server say so, and I'll search other realms. Viorel Dragomir . .. --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Random 500 errors
web.xml doesn't flag anything specific to me. see if you can increase the verbosity of apache or tomcat logging, this might give you more clues. Not familiar with Liferay. Is it possible to run it all on TC and eliminate apache? It might be a connector problem. I seem to remember a thread about unreliability on RedHat in the last few days, although I didn't pay much attention to it. Search the archive for that here: http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED] pache.org can you post the other info I mentioned in earlier post. This _might_ help someone help you. Sorry to be vague, but can't be more precise without more info I'm afraid :) -Original Message- From: James McGovern [mailto:[EMAIL PROTECTED] Sent: Wednesday 27 October 2004 09:54 To: Tomcat Users List Subject: RE: Random 500 errors Here is the other web.xml. Essentially, this is from a standard download of Liferay Enterprise Portal. http://sourceforge.net/projects/lportal/ Been a strong advocate for my employer both using and contributing to open source. Have been given a deadline of noon today to make this work. Otherwise forced to switch to BEA. -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 8:31 PM To: 'Tomcat Users List' Subject: RE: Random 500 errors Unfortunately I don't run apache with tomcat so can't reproduce your error. That's why I asked so many questions in my last post ;) Understand now what you mean by random. Your attached web.xml appear to be basically the default web.xml from CATALINA_HOME\conf\ - please can you also post your webapp's web.xml file from CATALINA_HOME\webapps\yourwebapp\web.xml ? If you could also post any of the other info that I mentioned in my last post, I'm sure this would improve the chances of someone being able to help you :) -Original Message- From: James McGovern [mailto:[EMAIL PROTECTED] Sent: Wednesday 27 October 2004 01:02 To: Tomcat Users List Subject: RE: Random 500 errors By random, it means that I access the same exact URL repeatedly in a row and sometimes it throws a 500 and sometimes it doesnt. The error even appears for static GIF files as well. Attached is the web.xml. It shows in the appache HTTPD access_log as a 500. It does not show in Apache HTTPD error_log. I created another configuration that doesn't use MOD_JK2 and instead uses MOD_PROXY. The same thing occurs only the error then changes to 502 and complains about being able to do a /get. One small correction. I am running Apache 2.0.50. -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 7:18 AM To: 'Tomcat Users List' Subject: RE: Random 500 errors When you say random do you mean that accessing the same URL sometimes gives a 500 and sometimes not, or that you can't see a pattern in the URLs that cause the 500? Are you looking in all the tomcat log files (under CATALINA_HOME\logs ), and the apache httpd logs, as well as any TC log file you might have configured yourself? What error messages are you seeing in the browser when the 500 occurs? Are you seeing the standard tomcat error page or have you configured your own? Can you give an example URL that triggers the 500, and your web.xml config (esp your servlet mappings)? -Original Message- From: James McGovern [mailto:[EMAIL PROTECTED] Sent: Tuesday 26 October 2004 11:55 To: [EMAIL PROTECTED] Subject: Random 500 errors I am currently running Apache 2.0.48 with JK2 and Tomcat 5.0.28 on Redhat Enterprise 2.1 and experience random 500 errors. I am getting them for GIFs files and other non Java related access. I am not finding anything in the error logs to indicate the problem. The access log does show the file with the 500 error code. What should I be looking for in order to resolve this problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: GlobalNamingResouces used by other GlobalNamingResources
sorry, can't answer specific Q on whether you can access datasource from generator. but it sounds like you are trying to uniquely ID rows in a database? if so then the simplest way seems to be to use auto_increment fields and let the database handle it. or are you saying that that isn'y working - is this what you mean by not supporting the database-generated id-numbers? if so please say more about why its not working. what database? code sample? -Original Message- From: Roland Carlsson [mailto:[EMAIL PROTECTED] Sent: Wednesday 27 October 2004 11:49 To: TomcatUsers Subject: GlobalNamingResouces used by other GlobalNamingResources Hello again! Sorry to bother in this topic again but I need to strait out one more thing. I have my Datasource now as GlobalNamingContext (and a big post-it saying that I shall change the resource-link from DefaultContext). Since JDBC doesn't generate id-numbers and not supporting the database-generated id-numbers I have written an id-generator that takes care of the problem. It works fine for a single web-app using its own private database but is trouble when two web-apps uses the same database since it's awful hard to keep the generators synchronized (even worse using to tomcat-instances). So, for a breif moment I thought that I had the solution putting the id-generator as a Resource under GlobalNamingResources. And that would have worked if I didn't the init the id-generator with a call to my datasource that also is in the GlobalNamingContext. javax.naming.NameNotFoundException: Name comp:java is not bound in this Context was the result. So, before I start to rewrite my id-generator i would like to get a few things clarified. 1) Can I in any part of my id-generator (assuming that it is defined in the GlobalNamingResources) use my datasource. For example after the user have done a lookup and calling the generate-method? What context will be used in that case? 2) Since we are closing in on the fact that or single tomcat-server sone will not cope with the load its carrying in the peeks. Would there be a better way to implement the id-generator? (rmi, webservice etc etc)? Thank you very much in advance Roland Carlsson - 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]
Sv: GlobalNamingResouces used by other GlobalNamingResources
Hi Steve and thanks for you answer. Try the following scenario. The problem is to get back the primary key when doing an insert. Say that you have a master/slave relation between two tables. You insert a row into master. Then you are going to insert a few rows connected to the master into slave. How do you know the id-number of your master? I know that mysql has a non-jdbc soloution for this but since one of our general design goals are portable code.. So, we have desided to take the same apporach as Object-Relational Bridge. We created our own id-generator to handle the problem. But its has created a new set of problems now when we are going to use multiple web-apps and (in a not so distant future) mutiple servers. Regards Roland Carlsson Den 04-10-27 13.48, skrev Steve Kirk [EMAIL PROTECTED]: sorry, can't answer specific Q on whether you can access datasource from generator. but it sounds like you are trying to uniquely ID rows in a database? if so then the simplest way seems to be to use auto_increment fields and let the database handle it. or are you saying that that isn'y working - is this what you mean by not supporting the database-generated id-numbers? if so please say more about why its not working. what database? code sample? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0.27 hangs in windows 2000
Hi, We are running our application in tomcat 5.0.27 in windows 2000 and the server does not respond after one or two days unless we restart the server.We have checked the errorlog both in the logs folder as well as the custom log file that we create and there are no errors in the log files.Did anyone of you experience similar problems.If the tomcat server is not responding where do we check what the error is.When the server was not responding I checked the task manager and the memory usage for java was around 16MB in a server with 512 MB Ram so there does not seem to be any problem with memory. We are running tomcat from the command line as when run as service the tomcat server crashed very frequently every 30 minutes or so and then we had to restart the service. The JVM version we are using is Sun's JDK 1.4.1_01-b01 and service pack 4 of windows 2000 is installed. Regards Karthik Scape Velocity, Inc -- Global Software Development at the speed of 'e' Disclaimer: *** Information contained in this E-MAIL being proprietary to Scape Velocity Inc, is 'privileged', 'confidential' and intended for use only by the individual or entity to which it is addressed. Any use or dissemination of any information contained in the E-MAIL beyond that necessary to conduct business with Scape Velocity Inc is strictly prohibited, except as may be agreed to in writing between Scape Velocity and you or your organization. If the reader of this message is not the intended recipient or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is prohibited. If you have received this communication in error, please notify us immediately and delete this email. *
RE: Database connection pooling
see my post from yesterday RE: JNDI DataSource GlobalResources problem :) This exception means that TC cannot find your Resource. Your only guess is correct! Put your Context in either webapps/yourwebapp/META_INF/context.xml (if you are deploying in a war) or conf/Catalina/localhost/yourwebapp.xml (if you are deploying unpacked) or for v5.5 maybe that should be conf/context.xml (if you are deploying unpacked) I think it'll then work as long as your ResourceParams are all correct. It's OK for Context to be the top level tag in the file. If the context tag already in context.xml is for your webapp, then just add the ResourceParams tag inside that Context. You can add Resource too but it's not required as long as you have a matching resource-ref in your web.xml file. If the existing Context is for a different webapp, I think I'm right in saying that you can add another whole Context to the same file. Alternatively I think I'm right in saying that you can add your Context tag inside the default Host tag in server.xml corresponding to the default localhost. You're right there is no examples context tag there - this is a correction that I plan to submit to the howto. Having said that, as of v5.5, placing Contexts inside server.xml is not recommended. -Original Message- From: Nat Titman [mailto:[EMAIL PROTECTED] Sent: Wednesday 27 October 2004 12:22 To: [EMAIL PROTECTED] Subject: Database connection pooling Hi, I'm attempting to integrate database connection pooling into an exisiting JSP-based web application. I'm running Tomcat 5.5.2 Server, with J2SE 1.5.0 and a MySQL database (version 11.18) accessed through the com.mysql.jdbc package. I've followed MySQL instructions from this page: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasourc e-examples-howto.html I made the changes to server.xml and the web app's web.xml, changing variables to match the database name, user name and password of the correct database. I ensured the MySQL package was in common/lib/. My DAO objects now have constructors of the following form, which was adapted from code found online ('broadband' is the database name): private Connection myConn; private DataSource dataSource; /** * Constructs the data accessor using the connection pool * * @exception SQLException thrown for SQL errors */ public SearchDAO() throws SQLException { try { // retrieve datasource Context init = new InitialContext(); Context ctx = (Context) init.lookup(java:comp/env); dataSource = (DataSource) ctx.lookup(jdbc/broadband); // get connection synchronized (dataSource) { myConn = dataSource.getConnection(); } } catch (NamingException ex) { System.err.println( new SearchDAO: Cannot retrieve java:comp/env/jdbc/broadband: + ex); } catch (SQLException excep) { System.err.println( new SearchDAO: Could not get connection: + excep); } catch (Exception e) { System.err.println(new SearchDAO: + e); // System.out.println (In the catch block : ); //e.printStackTrace(); } } The constructor throws the following exception: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' The connect URL is present in server.xml and is correct for the database. My only guess at this point is that the howto document above asks for the Context tag to be added to server.xml between the example close Context and the first open Host tag, however there wasn't an example Context tag in server.xml and there appears to be a context.xml file in the same directory. I'm wondering if Contexts have moved to a different file in a recent version of Tomcat? It's just a wild guess (and I've no idea how to add the Context to context.xml as there's already a Context tag in there and no higher level tag around it). Any help would be greatly appreciated. Sorry if I'm wasting your time with an obvious or frequently asked question, I've googled and read quite a few documents, but I think I'm just at the 'stabbing in the dark' point and could do with guru guidance. Thanks, Nat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Random 500 errors
Which version/release of RedHat? On Wed, 2004-10-27 at 07:42, Steve Kirk wrote: web.xml doesn't flag anything specific to me. see if you can increase the verbosity of apache or tomcat logging, this might give you more clues. Not familiar with Liferay. Is it possible to run it all on TC and eliminate apache? It might be a connector problem. I seem to remember a thread about unreliability on RedHat in the last few days, although I didn't pay much attention to it. Search the archive for that here: http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED] pache.org can you post the other info I mentioned in earlier post. This _might_ help someone help you. Sorry to be vague, but can't be more precise without more info I'm afraid :) -Original Message- From: James McGovern [mailto:[EMAIL PROTECTED] Sent: Wednesday 27 October 2004 09:54 To: Tomcat Users List Subject: RE: Random 500 errors Here is the other web.xml. Essentially, this is from a standard download of Liferay Enterprise Portal. http://sourceforge.net/projects/lportal/ Been a strong advocate for my employer both using and contributing to open source. Have been given a deadline of noon today to make this work. Otherwise forced to switch to BEA. -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 8:31 PM To: 'Tomcat Users List' Subject: RE: Random 500 errors Unfortunately I don't run apache with tomcat so can't reproduce your error. That's why I asked so many questions in my last post ;) Understand now what you mean by random. Your attached web.xml appear to be basically the default web.xml from CATALINA_HOME\conf\ - please can you also post your webapp's web.xml file from CATALINA_HOME\webapps\yourwebapp\web.xml ? If you could also post any of the other info that I mentioned in my last post, I'm sure this would improve the chances of someone being able to help you :) -Original Message- From: James McGovern [mailto:[EMAIL PROTECTED] Sent: Wednesday 27 October 2004 01:02 To: Tomcat Users List Subject: RE: Random 500 errors By random, it means that I access the same exact URL repeatedly in a row and sometimes it throws a 500 and sometimes it doesnt. The error even appears for static GIF files as well. Attached is the web.xml. It shows in the appache HTTPD access_log as a 500. It does not show in Apache HTTPD error_log. I created another configuration that doesn't use MOD_JK2 and instead uses MOD_PROXY. The same thing occurs only the error then changes to 502 and complains about being able to do a /get. One small correction. I am running Apache 2.0.50. -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 7:18 AM To: 'Tomcat Users List' Subject: RE: Random 500 errors When you say random do you mean that accessing the same URL sometimes gives a 500 and sometimes not, or that you can't see a pattern in the URLs that cause the 500? Are you looking in all the tomcat log files (under CATALINA_HOME\logs ), and the apache httpd logs, as well as any TC log file you might have configured yourself? What error messages are you seeing in the browser when the 500 occurs? Are you seeing the standard tomcat error page or have you configured your own? Can you give an example URL that triggers the 500, and your web.xml config (esp your servlet mappings)? -Original Message- From: James McGovern [mailto:[EMAIL PROTECTED] Sent: Tuesday 26 October 2004 11:55 To: [EMAIL PROTECTED] Subject: Random 500 errors I am currently running Apache 2.0.48 with JK2 and Tomcat 5.0.28 on Redhat Enterprise 2.1 and experience random 500 errors. I am getting them for GIFs files and other non Java related access. I am not finding anything in the error logs to indicate the problem. The access log does show the file with the 500 error code. What should I be looking for in order to resolve this problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0.27 hangs in windows 2000
How are you accessing the Win2k machine? Terminal Services? On Wed, 2004-10-27 at 08:12, Karthik wrote: Hi, We are running our application in tomcat 5.0.27 in windows 2000 and the server does not respond after one or two days unless we restart the server.We have checked the errorlog both in the logs folder as well as the custom log file that we create and there are no errors in the log files.Did anyone of you experience similar problems.If the tomcat server is not responding where do we check what the error is.When the server was not responding I checked the task manager and the memory usage for java was around 16MB in a server with 512 MB Ram so there does not seem to be any problem with memory. We are running tomcat from the command line as when run as service the tomcat server crashed very frequently every 30 minutes or so and then we had to restart the service. The JVM version we are using is Sun's JDK 1.4.1_01-b01 and service pack 4 of windows 2000 is installed. Regards Karthik Scape Velocity, Inc -- Global Software Development at the speed of 'e' Disclaimer: *** Information contained in this E-MAIL being proprietary to Scape Velocity Inc, is 'privileged', 'confidential' and intended for use only by the individual or entity to which it is addressed. Any use or dissemination of any information contained in the E-MAIL beyond that necessary to conduct business with Scape Velocity Inc is strictly prohibited, except as may be agreed to in writing between Scape Velocity and you or your organization. If the reader of this message is not the intended recipient or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is prohibited. If you have received this communication in error, please notify us immediately and delete this email. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Application Deployment on Tomcat 5.1
Hi, There's no such thing as Tomcat 5.1. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Suryaanil Lingamallu [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 6:54 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Application Deployment on Tomcat 5.1 Hi, I need some help on deploying applications on Tomcat 5.1. I installed tomcat 5.1 on Windows 2003 Server in C:\Tomcat5.1\ I could create applications under CATALINA_HOME/webapps directory. I need to create a custom deployment directory which is not under CATALINA_HOME/webapps directory. Let's say that I need to create under C:\WebDir\. My questions are 1. Will it possible to do this deployment? 2. If it is possible, what is the procedure? Please share with me your thoughts. Thanks, Surya 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: GlobalNamingResouces used by other GlobalNamingResources
OK now I see your problem. I have the same issue. I've worked around it with a bit of a hack I'm afraid, and just used the MySQL non-jdbc solution. As you say I will pay the price for this sin later, if I ever need to swap database. However I've taken a view that for my specific situation, this is unlikely in the medium term. So instead of investing time in making the code completely portable to another database, I've invested time in mitigating the impact by genericising my code so that there is only one place I will need to make changes. (Essentially, I've beanified all my database tables so that I have a single method that creates rows in any table in the database and returns the ID). I think portability and re-use are worth investing time and effort in, but there is a limit to that, and sometimes, you need to make compromises and move on, otherwise you can spend days trying to work around a problem that might never happen. -Original Message- From: Roland Carlsson [mailto:[EMAIL PROTECTED] Sent: Wednesday 27 October 2004 13:03 To: TomcatUsers Subject: Sv: GlobalNamingResouces used by other GlobalNamingResources Hi Steve and thanks for you answer. Try the following scenario. The problem is to get back the primary key when doing an insert. Say that you have a master/slave relation between two tables. You insert a row into master. Then you are going to insert a few rows connected to the master into slave. How do you know the id-number of your master? I know that mysql has a non-jdbc soloution for this but since one of our general design goals are portable code.. So, we have desided to take the same apporach as Object-Relational Bridge. We created our own id-generator to handle the problem. But its has created a new set of problems now when we are going to use multiple web-apps and (in a not so distant future) mutiple servers. Regards Roland Carlsson Den 04-10-27 13.48, skrev Steve Kirk [EMAIL PROTECTED]: sorry, can't answer specific Q on whether you can access datasource from generator. but it sounds like you are trying to uniquely ID rows in a database? if so then the simplest way seems to be to use auto_increment fields and let the database handle it. or are you saying that that isn'y working - is this what you mean by not supporting the database-generated id-numbers? if so please say more about why its not working. what database? code sample? - 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: BUG? TC 5.0.xx: WEB-INF/classes/jndi.properties found but INITIAL_CONTEXT_FACTORY property gets overwritten by TC [Auf Viren geprüft]
Hi, My understanding of J2EE standards is that the servlet container tries to find the file jndi.properties on the application classpath and if found initializes the context environment with properties from there. I don't think this understanding is correct for containers and J2EE servers. IIRC you have to use the InitialContext construct with the env argument which has the initial context factory class name. Yoav 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: Interesting discoveries about catalina GUI manager deploy (5.0.28 and 5.0.29)
Hi, How do I get this value from within context in java program, thanks Environment name=david value=10 type=java.lang.Integer override=false/ Context c = new InitialContext(); Integer david = (Integer) c.lookup(java:comp/env/david); Could you please tell me how environment variables can be accessed without JNDI? Is there corresponding section in documentation? I meant system properties (which are accessed using System.getProperty). The Environment stuff posted by David above is in fact JNDI-based. Yoav 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: Server busy page
Hi, How do I setup a server busy page? Is this Tomcat related or it has to do with my app? It's your app, Tomcat provides no such feature out of the box. Yoav 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 5.0.27 hangs in windows 2000
Hi, The JVM version we are using is Sun's JDK 1.4.1_01-b01 and service pack 4 of windows 2000 is installed. That's a pretty awful JDK. Change to the latest 1.4.2 if you can. And a stable Tomcat version like 5.0.28 would be better as well. Yoav 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: voting for 5.0.29?
Hi, 5.5.4 is beta, 5.0.29 will not get a stable vote and will therefore never get out of beta. The former I posted to this list as an FYI in its own [ANN] messages, but not to the website. The latter I posted as an aside and has been discussed on the tomcat-dev mailing list. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 4:33 AM To: Tomcat Users List Subject: RE: voting for 5.0.29? from the website ... 06 October 2004 - Tomcat 5.5.3-alpha Released 06 October 2004 - Tomcat 5.0.29-beta Released nothing since these dates. Allistair -Original Message- From: Ronald Klop [mailto:[EMAIL PROTECTED] Sent: 27 October 2004 09:28 To: [EMAIL PROTECTED] Subject: voting for 5.0.29? Sorry if I missed something, but what was the result of the vote if 5.0.29 is stable or beta? Does somebody has a link to the mail thread? Ronald. FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - 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: xml processing inside Tomcat
Hi, Remove the jars from $CATALINA_HOME/common/endorsed, at your own risk of course. (Your requirement is not that good, the classes shipping with JDK 1.4.2 are older and more buggy). Yoav Shapira http://www.yoavshapira.com -Original Message- From: Ben Bookey [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 5:36 AM To: Tomcat User List Subject: xml processing inside Tomcat Dear List, We are using java sdk 1.4.2 which includes dom objects and a xml transformer - EVERYTHING I need for my code to work. ALL my code imports begin with javax.xml.* [interfaces] and org.w3c.dom [xml API] and javax.trasform [for xslt processing]. I want my code ALWAYS -SPECIFICALLY to use the 1.4.2 API, and not use parsers which provided by Apache Tomcat. 1] How can I force my servlet code which writes xml and returns html to the client, to ignore all the xml stuff delivered with tomcat. Here is a simplification of the code that writes the xml file. // This method writes a DOM document to a file public static void writeXmlFile(Document doc, String filename) { try { // Prepare the DOM document for writing Source source = new DOMSource(doc); // Prepare the output file File file = new File(filename); Result result = new StreamResult(file); // Write the DOM document to the file Transformer xformer = TransformerFactory.newInstance().newTransformer(); xformer.transform(source, result); } catch (TransformerConfigurationException e) { } catch (TransformerException e) { } } 2] With linux even with JDK 1.4.2 and TC 1.4.27 installed I need ALWAYS to have xalan.jar installed in my WEB-INF/lib path for the code above, and for a html transformation to run. On windows with JDK 1.4.2 and TC 1.4.27 installed I dont need xalan.jar in the WEB-INF classpath. Can anyone shed light ? regards, Ben - 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]
Sv: GlobalNamingResouces used by other GlobalNamingResources
Hello Steve! I have done some trial and error and come to the following (if not somewhat shaky) conclusion. If I make the call to the datasource in the consturctor of my object it will fail, since the caller is the server itself and it has no context. If I make the call to the datasource as a method after have looked up my object and retrived as a user it will run in the context of the user (web-app) and therefore work. Perhaps Yoav can confirm this? So, I manage to get my object...but get a strange class cast error This code: System.out.println(o); se.alfamoving.file.db.FileIdGenerator fg = (se.alfamoving.file.db.FileIdGenerator) o; Gives this output: [EMAIL PROTECTED] java.lang.ClassCastException snip/ But I'll guess that I spelled badly somewhere :-/ The happy moments never seems to last :-) Thank you very much for your time and effort! Regards Roland Carlsson Den 04-10-27 14.28, skrev Steve Kirk [EMAIL PROTECTED]: OK now I see your problem. I have the same issue. I've worked around it with a bit of a hack I'm afraid, and just used the MySQL non-jdbc solution. As you say I will pay the price for this sin later, if I ever need to swap database. However I've taken a view that for my specific situation, this is unlikely in the medium term. So instead of investing time in making the code completely portable to another database, I've invested time in mitigating the impact by genericising my code so that there is only one place I will need to make changes. (Essentially, I've beanified all my database tables so that I have a single method that creates rows in any table in the database and returns the ID). I think portability and re-use are worth investing time and effort in, but there is a limit to that, and sometimes, you need to make compromises and move on, otherwise you can spend days trying to work around a problem that might never happen. -Original Message- From: Roland Carlsson [mailto:[EMAIL PROTECTED] Sent: Wednesday 27 October 2004 13:03 To: TomcatUsers Subject: Sv: GlobalNamingResouces used by other GlobalNamingResources Hi Steve and thanks for you answer. Try the following scenario. The problem is to get back the primary key when doing an insert. Say that you have a master/slave relation between two tables. You insert a row into master. Then you are going to insert a few rows connected to the master into slave. How do you know the id-number of your master? I know that mysql has a non-jdbc soloution for this but since one of our general design goals are portable code.. So, we have desided to take the same apporach as Object-Relational Bridge. We created our own id-generator to handle the problem. But its has created a new set of problems now when we are going to use multiple web-apps and (in a not so distant future) mutiple servers. Regards Roland Carlsson Den 04-10-27 13.48, skrev Steve Kirk [EMAIL PROTECTED]: sorry, can't answer specific Q on whether you can access datasource from generator. but it sounds like you are trying to uniquely ID rows in a database? if so then the simplest way seems to be to use auto_increment fields and let the database handle it. or are you saying that that isn'y working - is this what you mean by not supporting the database-generated id-numbers? if so please say more about why its not working. what database? code sample? - 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: GlobalNamingResouces used by other GlobalNamingResources
Sorry - can't answer that one for sure. Does look a bit strange. I could only guess that it might be to do with classloading? I seem to remember that a class abc.def.MyClass loaded by classloader A is deemed to be different to the same class abc.def.MyClass loaded by classloader B, so I would guess that this might lead to casting problems. I haven't used JNDI much apart from in the context of DBCP, so I'm not sure exactly how it works - could it maybe be using a different classloader to the one loading your servlet classes? Then again that could be complete rubbish :) -Original Message- From: Roland Carlsson [mailto:[EMAIL PROTECTED] Sent: Wednesday 27 October 2004 13:41 To: TomcatUsers Subject: Sv: GlobalNamingResouces used by other GlobalNamingResources Hello Steve! I have done some trial and error and come to the following (if not somewhat shaky) conclusion. If I make the call to the datasource in the consturctor of my object it will fail, since the caller is the server itself and it has no context. If I make the call to the datasource as a method after have looked up my object and retrived as a user it will run in the context of the user (web-app) and therefore work. Perhaps Yoav can confirm this? So, I manage to get my object...but get a strange class cast error This code: System.out.println(o); se.alfamoving.file.db.FileIdGenerator fg = (se.alfamoving.file.db.FileIdGenerator) o; Gives this output: [EMAIL PROTECTED] java.lang.ClassCastException snip/ But I'll guess that I spelled badly somewhere :-/ The happy moments never seems to last :-) Thank you very much for your time and effort! Regards Roland Carlsson Den 04-10-27 14.28, skrev Steve Kirk [EMAIL PROTECTED]: OK now I see your problem. I have the same issue. I've worked around it with a bit of a hack I'm afraid, and just used the MySQL non-jdbc solution. As you say I will pay the price for this sin later, if I ever need to swap database. However I've taken a view that for my specific situation, this is unlikely in the medium term. So instead of investing time in making the code completely portable to another database, I've invested time in mitigating the impact by genericising my code so that there is only one place I will need to make changes. (Essentially, I've beanified all my database tables so that I have a single method that creates rows in any table in the database and returns the ID). I think portability and re-use are worth investing time and effort in, but there is a limit to that, and sometimes, you need to make compromises and move on, otherwise you can spend days trying to work around a problem that might never happen. -Original Message- From: Roland Carlsson [mailto:[EMAIL PROTECTED] Sent: Wednesday 27 October 2004 13:03 To: TomcatUsers Subject: Sv: GlobalNamingResouces used by other GlobalNamingResources Hi Steve and thanks for you answer. Try the following scenario. The problem is to get back the primary key when doing an insert. Say that you have a master/slave relation between two tables. You insert a row into master. Then you are going to insert a few rows connected to the master into slave. How do you know the id-number of your master? I know that mysql has a non-jdbc soloution for this but since one of our general design goals are portable code.. So, we have desided to take the same apporach as Object-Relational Bridge. We created our own id-generator to handle the problem. But its has created a new set of problems now when we are going to use multiple web-apps and (in a not so distant future) mutiple servers. Regards Roland Carlsson Den 04-10-27 13.48, skrev Steve Kirk [EMAIL PROTECTED]: sorry, can't answer specific Q on whether you can access datasource from generator. but it sounds like you are trying to uniquely ID rows in a database? if so then the simplest way seems to be to use auto_increment fields and let the database handle it. or are you saying that that isn'y working - is this what you mean by not supporting the database-generated id-numbers? if so please say more about why its not working. what database? code sample? - 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: Apache, Tomcat and mod_jk2 - question about layout
Second request: Would you post what you did to integrate the two? I've followed all the clues on both apache and tomcat websites, which is exactly what it says in three books I've got, and I still get a File Not Found error from apache when I go to the dynamic content. Is there some reference and description of the parameters and values for the workers.properties, jk2.properties, and httpd.conf files? Although the Jakarta website has some of this, the examples showing the parameters being used are pretty sparse. What does JkMount do? I can't find this documented anywhere. I assure you, I've spent DAYS on the websites, in the books, and looking for documentation whereever I can find it. Thanks, Allen -Original Message- From: footh [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 10:08 PM To: Tomcat Users List Subject: Re: Apache, Tomcat and mod_jk2 - question about layout Thanks for the tips. I believe the site will be using SSL at some point so that may be a reason to use Apache. But for the time being, I suppose I might as well use Tomcat standalone knowing that I can just flip a switch (well, a couple switches) to get Apache back in there. --- Peter Johnson [EMAIL PROTECTED] wrote: I am using Apache2, jk2 and Tomcat5 but I do so because I want to offload the SSL and compression onto a first tier leaving the second just to generate the content. I also use the first tier for uri rewriting using mod_rewrite. If you don't need uri rewriting I would consider using Tomcat standalone as the performance is likely to be comparable but the reduced admin by removing Apache and jk would be a big benefit. Why have more steps that can go wrong? More to debug when it does? To answer the questions from your first email. The images will be being returned from Apache, remember that an image is a separate request. I will qualify this by stating that any dynamically generated images will be returned by Tomcat. Regarding the directory setup ... it is whatever works best for you. I personally do the following: Apache Content - /sites/static/site name/... Tomcat Content - /sites/webapps/site name/ This means that all of the Tomcat content is outside the realm of Apache and thus security concerns are reduced. my 2c, PJ footh wrote: I've read the FAQ on the topic of whether to go through Apache or just use Tomcat stand-alone and frankly, it seemed inconclusive. Then I did a search and it seemed the general consensus was to use Tomcat stand-alone for development enviroments and Apache for production. Really, that's all I went by. I figured using Apache, Tomcat and mod_jk was the more robust solution and better suited for the long haul. More and more features will likely be added to this site so I need to be forward thinking. --- Parsons Technical Services [EMAIL PROTECTED] wrote: Unless you have a reason, why not let Tomcat do it all? Doug - Original Message - From: footh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 5:13 PM Subject: Apache, Tomcat and mod_jk2 - question about layout After going through all the documentation, I have gotten mod_jk2 to forward jsp requests to Tomcat. However, I have a question about the layout... Essentially, my site will be .html pages with some occasional .jsp pages (it will likely change in the future to all .jsp/servlets, but for now that's the way it is). Right now, I have the Apache DocumentRoot pointing to the directory containing the site and also I have a Tomcat Context with a blank path property and docBase property pointing to the same site directory. So, basically, I can browse the site by going to http://localhost:8080 using Tomcat in addition to the standard http://localhost address (through Apache). And, with mod_jk2 working, I can also hit http://localhost/xyz.jsp and have a .jsp page execute correctly. So, my question is, is this the correct way to configure this kind of web site? When .jsp pages are hit, are the images actually being loaded by Apache or by Tomcat? A problem I've discovered is that if I need to use a web.xml file in the WEB-INF directory, I can actually browse to the WEB-INF directory when hitting the site through port 80 (Apache). Obviously, this is not a good idea so I am thinking there is probably a better way to set this site up. Any ideas? Thanks, JF === message truncated === __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best
RE: GlobalNamingResouces used by other GlobalNamingResources
Hi, Yeah, Steve's advice on classloading is right on the mark... I don't have time to check this out in depth, but I'd be surprised if he's wrong. com.foo loaded from common/lib is not the same as com.foo loaded from WEB-INF/lib. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 8:58 AM To: 'Tomcat Users List' Subject: RE: GlobalNamingResouces used by other GlobalNamingResources Sorry - can't answer that one for sure. Does look a bit strange. I could only guess that it might be to do with classloading? I seem to remember that a class abc.def.MyClass loaded by classloader A is deemed to be different to the same class abc.def.MyClass loaded by classloader B, so I would guess that this might lead to casting problems. I haven't used JNDI much apart from in the context of DBCP, so I'm not sure exactly how it works - could it maybe be using a different classloader to the one loading your servlet classes? Then again that could be complete rubbish :) -Original Message- From: Roland Carlsson [mailto:[EMAIL PROTECTED] Sent: Wednesday 27 October 2004 13:41 To: TomcatUsers Subject: Sv: GlobalNamingResouces used by other GlobalNamingResources Hello Steve! I have done some trial and error and come to the following (if not somewhat shaky) conclusion. If I make the call to the datasource in the consturctor of my object it will fail, since the caller is the server itself and it has no context. If I make the call to the datasource as a method after have looked up my object and retrived as a user it will run in the context of the user (web-app) and therefore work. Perhaps Yoav can confirm this? So, I manage to get my object...but get a strange class cast error This code: System.out.println(o); se.alfamoving.file.db.FileIdGenerator fg = (se.alfamoving.file.db.FileIdGenerator) o; Gives this output: [EMAIL PROTECTED] java.lang.ClassCastException snip/ But I'll guess that I spelled badly somewhere :-/ The happy moments never seems to last :-) Thank you very much for your time and effort! Regards Roland Carlsson Den 04-10-27 14.28, skrev Steve Kirk [EMAIL PROTECTED]: OK now I see your problem. I have the same issue. I've worked around it with a bit of a hack I'm afraid, and just used the MySQL non-jdbc solution. As you say I will pay the price for this sin later, if I ever need to swap database. However I've taken a view that for my specific situation, this is unlikely in the medium term. So instead of investing time in making the code completely portable to another database, I've invested time in mitigating the impact by genericising my code so that there is only one place I will need to make changes. (Essentially, I've beanified all my database tables so that I have a single method that creates rows in any table in the database and returns the ID). I think portability and re-use are worth investing time and effort in, but there is a limit to that, and sometimes, you need to make compromises and move on, otherwise you can spend days trying to work around a problem that might never happen. -Original Message- From: Roland Carlsson [mailto:[EMAIL PROTECTED] Sent: Wednesday 27 October 2004 13:03 To: TomcatUsers Subject: Sv: GlobalNamingResouces used by other GlobalNamingResources Hi Steve and thanks for you answer. Try the following scenario. The problem is to get back the primary key when doing an insert. Say that you have a master/slave relation between two tables. You insert a row into master. Then you are going to insert a few rows connected to the master into slave. How do you know the id-number of your master? I know that mysql has a non-jdbc soloution for this but since one of our general design goals are portable code.. So, we have desided to take the same apporach as Object-Relational Bridge. We created our own id-generator to handle the problem. But its has created a new set of problems now when we are going to use multiple web-apps and (in a not so distant future) mutiple servers. Regards Roland Carlsson Den 04-10-27 13.48, skrev Steve Kirk [EMAIL PROTECTED]: sorry, can't answer specific Q on whether you can access datasource from generator. but it sounds like you are trying to uniquely ID rows in a database? if so then the simplest way seems to be to use auto_increment fields and let the database handle it. or are you saying that that isn'y working - is this what you mean by not supporting the database-generated id-numbers? if so please say more about why its not working. what database? code sample? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0.27 hangs in windows 2000
The reason I ask is, we've had the exact same problem. In our case, we were accessing a Win 2k machine via Terminal Services (TS). It should be noted that I was using rdesktop from a Redhat box as the TS client. When we started TC from the command line it would work for a while and then hang, just as you described it. This wasn't particular to TC. I've also seen it happen while running some Ant builds. We were able to reproduce the problem with another win2k box in our office. The problem only happened when accessing vi TS. If we went to the server and started from the command line while at the console, it ran just fine. The problem doesn't exist when starting TC as a service from the Services Window. Hope that helps. -Ben On Wed, 2004-10-27 at 08:24, Ben Souther wrote: How are you accessing the Win2k machine? Terminal Services? On Wed, 2004-10-27 at 08:12, Karthik wrote: Hi, We are running our application in tomcat 5.0.27 in windows 2000 and the server does not respond after one or two days unless we restart the server.We have checked the errorlog both in the logs folder as well as the custom log file that we create and there are no errors in the log files.Did anyone of you experience similar problems.If the tomcat server is not responding where do we check what the error is.When the server was not responding I checked the task manager and the memory usage for java was around 16MB in a server with 512 MB Ram so there does not seem to be any problem with memory. We are running tomcat from the command line as when run as service the tomcat server crashed very frequently every 30 minutes or so and then we had to restart the service. The JVM version we are using is Sun's JDK 1.4.1_01-b01 and service pack 4 of windows 2000 is installed. Regards Karthik Scape Velocity, Inc -- Global Software Development at the speed of 'e' Disclaimer: *** Information contained in this E-MAIL being proprietary to Scape Velocity Inc, is 'privileged', 'confidential' and intended for use only by the individual or entity to which it is addressed. Any use or dissemination of any information contained in the E-MAIL beyond that necessary to conduct business with Scape Velocity Inc is strictly prohibited, except as may be agreed to in writing between Scape Velocity and you or your organization. If the reader of this message is not the intended recipient or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is prohibited. If you have received this communication in error, please notify us immediately and delete this email. * - 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]
Sv: GlobalNamingResouces used by other GlobalNamingResources
Thank you very much both Steve and Yoav! The general advice from that last few messages are, don't have your classes in two places, it will cause problem. And postpone JNDI-calls from the constructor if you are going to put them in the GlobalNamingContext (atleast if they are going to stay in the same server). Regards Roland Carlsson Den 04-10-27 15.02, skrev Shapira, Yoav [EMAIL PROTECTED]: Hi, Yeah, Steve's advice on classloading is right on the mark... I don't have time to check this out in depth, but I'd be surprised if he's wrong. com.foo loaded from common/lib is not the same as com.foo loaded from WEB-INF/lib. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 8:58 AM To: 'Tomcat Users List' Subject: RE: GlobalNamingResouces used by other GlobalNamingResources Sorry - can't answer that one for sure. Does look a bit strange. I could only guess that it might be to do with classloading? I seem to remember that a class abc.def.MyClass loaded by classloader A is deemed to be different to the same class abc.def.MyClass loaded by classloader B, so I would guess that this might lead to casting problems. I haven't used JNDI much apart from in the context of DBCP, so I'm not sure exactly how it works - could it maybe be using a different classloader to the one loading your servlet classes? Then again that could be complete rubbish :) -Original Message- From: Roland Carlsson [mailto:[EMAIL PROTECTED] Sent: Wednesday 27 October 2004 13:41 To: TomcatUsers Subject: Sv: GlobalNamingResouces used by other GlobalNamingResources Hello Steve! I have done some trial and error and come to the following (if not somewhat shaky) conclusion. If I make the call to the datasource in the consturctor of my object it will fail, since the caller is the server itself and it has no context. If I make the call to the datasource as a method after have looked up my object and retrived as a user it will run in the context of the user (web-app) and therefore work. Perhaps Yoav can confirm this? So, I manage to get my object...but get a strange class cast error This code: System.out.println(o); se.alfamoving.file.db.FileIdGenerator fg = (se.alfamoving.file.db.FileIdGenerator) o; Gives this output: [EMAIL PROTECTED] java.lang.ClassCastException snip/ But I'll guess that I spelled badly somewhere :-/ The happy moments never seems to last :-) Thank you very much for your time and effort! Regards Roland Carlsson Den 04-10-27 14.28, skrev Steve Kirk [EMAIL PROTECTED]: OK now I see your problem. I have the same issue. I've worked around it with a bit of a hack I'm afraid, and just used the MySQL non-jdbc solution. As you say I will pay the price for this sin later, if I ever need to swap database. However I've taken a view that for my specific situation, this is unlikely in the medium term. So instead of investing time in making the code completely portable to another database, I've invested time in mitigating the impact by genericising my code so that there is only one place I will need to make changes. (Essentially, I've beanified all my database tables so that I have a single method that creates rows in any table in the database and returns the ID). I think portability and re-use are worth investing time and effort in, but there is a limit to that, and sometimes, you need to make compromises and move on, otherwise you can spend days trying to work around a problem that might never happen. -Original Message- From: Roland Carlsson [mailto:[EMAIL PROTECTED] Sent: Wednesday 27 October 2004 13:03 To: TomcatUsers Subject: Sv: GlobalNamingResouces used by other GlobalNamingResources Hi Steve and thanks for you answer. Try the following scenario. The problem is to get back the primary key when doing an insert. Say that you have a master/slave relation between two tables. You insert a row into master. Then you are going to insert a few rows connected to the master into slave. How do you know the id-number of your master? I know that mysql has a non-jdbc soloution for this but since one of our general design goals are portable code.. So, we have desided to take the same apporach as Object-Relational Bridge. We created our own id-generator to handle the problem. But its has created a new set of problems now when we are going to use multiple web-apps and (in a not so distant future) mutiple servers. Regards Roland Carlsson Den 04-10-27 13.48, skrev Steve Kirk [EMAIL PROTECTED]: sorry, can't answer specific Q on whether you can access datasource from generator. but it sounds like you are trying to uniquely ID rows in a database? if so then the simplest way seems to be to use auto_increment fields and let the database
swallowOutput and catalina.out
All: Sorry if I've missed a thread regarding this. I have multiple web applications on a single instance of Tomcat. I want to get all of the logging that goes to catalina.out to go to the individual web app logs. I'm trying to use swallowOutput, but I'm not sure if I have it in the right spot. Something is obviously not configured properly because I still see output going to catalina.out. What I have is something like this: Host name=blah.blah.com appBase=path/to/webapp unpackWARs=false autoDeploy=false Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=0 resourceName=users01/ DefaultContext wrapperClass=org.apache.catalina.core.DefaultContext swallowOutput=true/ /Host Is this anything close to what I should be doing? Does swallotOutput go somewhere else? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
extending Ojc
Hello folks, i trying to make ojc from JDeveloper to create a xml file like Jasper does with all JSP mappings, can someone show me some hints or tell me if JDeveloper can do that for grant? Regards, Edson
RE: GlobalNamingResouces used by other GlobalNamingResources
I'm not sure if this will solve it or is even accurate - but probably worth you checking out. Specifically, look at msterjev's post re use of URLClassLoader near the bottom of the thread: http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_207 10542.html -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday 27 October 2004 14:03 To: Tomcat Users List Subject: RE: GlobalNamingResouces used by other GlobalNamingResources Hi, Yeah, Steve's advice on classloading is right on the mark... I don't have time to check this out in depth, but I'd be surprised if he's wrong. com.foo loaded from common/lib is not the same as com.foo loaded from WEB-INF/lib. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 8:58 AM To: 'Tomcat Users List' Subject: RE: GlobalNamingResouces used by other GlobalNamingResources Sorry - can't answer that one for sure. Does look a bit strange. I could only guess that it might be to do with classloading? I seem to remember that a class abc.def.MyClass loaded by classloader A is deemed to be different to the same class abc.def.MyClass loaded by classloader B, so I would guess that this might lead to casting problems. I haven't used JNDI much apart from in the context of DBCP, so I'm not sure exactly how it works - could it maybe be using a different classloader to the one loading your servlet classes? Then again that could be complete rubbish :) -Original Message- From: Roland Carlsson [mailto:[EMAIL PROTECTED] Sent: Wednesday 27 October 2004 13:41 To: TomcatUsers Subject: Sv: GlobalNamingResouces used by other GlobalNamingResources Hello Steve! I have done some trial and error and come to the following (if not somewhat shaky) conclusion. If I make the call to the datasource in the consturctor of my object it will fail, since the caller is the server itself and it has no context. If I make the call to the datasource as a method after have looked up my object and retrived as a user it will run in the context of the user (web-app) and therefore work. Perhaps Yoav can confirm this? So, I manage to get my object...but get a strange class cast error This code: System.out.println(o); se.alfamoving.file.db.FileIdGenerator fg = (se.alfamoving.file.db.FileIdGenerator) o; Gives this output: [EMAIL PROTECTED] java.lang.ClassCastException snip/ But I'll guess that I spelled badly somewhere :-/ The happy moments never seems to last :-) Thank you very much for your time and effort! Regards Roland Carlsson Den 04-10-27 14.28, skrev Steve Kirk [EMAIL PROTECTED]: OK now I see your problem. I have the same issue. I've worked around it with a bit of a hack I'm afraid, and just used the MySQL non-jdbc solution. As you say I will pay the price for this sin later, if I ever need to swap database. However I've taken a view that for my specific situation, this is unlikely in the medium term. So instead of investing time in making the code completely portable to another database, I've invested time in mitigating the impact by genericising my code so that there is only one place I will need to make changes. (Essentially, I've beanified all my database tables so that I have a single method that creates rows in any table in the database and returns the ID). I think portability and re-use are worth investing time and effort in, but there is a limit to that, and sometimes, you need to make compromises and move on, otherwise you can spend days trying to work around a problem that might never happen. -Original Message- From: Roland Carlsson [mailto:[EMAIL PROTECTED] Sent: Wednesday 27 October 2004 13:03 To: TomcatUsers Subject: Sv: GlobalNamingResouces used by other GlobalNamingResources Hi Steve and thanks for you answer. Try the following scenario. The problem is to get back the primary key when doing an insert. Say that you have a master/slave relation between two tables. You insert a row into master. Then you are going to insert a few rows connected to the master into slave. How do you know the id-number of your master? I know that mysql has a non-jdbc soloution for this but since one of our general design goals are portable code.. So, we have desided to take the same apporach as Object-Relational Bridge. We created our own id-generator to handle the problem. But its has created a new set of problems now when we are going to use multiple web-apps and (in a not so distant future) mutiple servers. Regards Roland Carlsson Den 04-10-27 13.48, skrev Steve Kirk [EMAIL PROTECTED]: sorry,
Re: Tomcat 5.0.27 hangs in windows 2000
Hi Ben, We are accessing the application from a browser and the server is in our local network only. Regards karthik - Original Message - From: Ben Souther [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 6:39 PM Subject: Re: Tomcat 5.0.27 hangs in windows 2000 The reason I ask is, we've had the exact same problem. In our case, we were accessing a Win 2k machine via Terminal Services (TS). It should be noted that I was using rdesktop from a Redhat box as the TS client. When we started TC from the command line it would work for a while and then hang, just as you described it. This wasn't particular to TC. I've also seen it happen while running some Ant builds. We were able to reproduce the problem with another win2k box in our office. The problem only happened when accessing vi TS. If we went to the server and started from the command line while at the console, it ran just fine. The problem doesn't exist when starting TC as a service from the Services Window. Hope that helps. -Ben On Wed, 2004-10-27 at 08:24, Ben Souther wrote: How are you accessing the Win2k machine? Terminal Services? On Wed, 2004-10-27 at 08:12, Karthik wrote: Hi, We are running our application in tomcat 5.0.27 in windows 2000 and the server does not respond after one or two days unless we restart the server.We have checked the errorlog both in the logs folder as well as the custom log file that we create and there are no errors in the log files.Did anyone of you experience similar problems.If the tomcat server is not responding where do we check what the error is.When the server was not responding I checked the task manager and the memory usage for java was around 16MB in a server with 512 MB Ram so there does not seem to be any problem with memory. We are running tomcat from the command line as when run as service the tomcat server crashed very frequently every 30 minutes or so and then we had to restart the service. The JVM version we are using is Sun's JDK 1.4.1_01-b01 and service pack 4 of windows 2000 is installed. Regards Karthik Scape Velocity, Inc -- Global Software Development at the speed of 'e' Disclaimer: *** Information contained in this E-MAIL being proprietary to Scape Velocity Inc, is 'privileged', 'confidential' and intended for use only by the individual or entity to which it is addressed. Any use or dissemination of any information contained in the E-MAIL beyond that necessary to conduct business with Scape Velocity Inc is strictly prohibited, except as may be agreed to in writing between Scape Velocity and you or your organization. If the reader of this message is not the intended recipient or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is prohibited. If you have received this communication in error, please notify us immediately and delete this email. * - 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: swallowOutput and catalina.out
Hi, Hmm, I'm not sure if swallowOutput on the DefaultContext works. I've only used it on a proper Context declaration. What Tomcat version are you using? Yoav Shapira http://www.yoavshapira.com -Original Message- From: Ryan Daly [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 9:17 AM To: Tomcat Users List Subject: swallowOutput and catalina.out All: Sorry if I've missed a thread regarding this. I have multiple web applications on a single instance of Tomcat. I want to get all of the logging that goes to catalina.out to go to the individual web app logs. I'm trying to use swallowOutput, but I'm not sure if I have it in the right spot. Something is obviously not configured properly because I still see output going to catalina.out. What I have is something like this: Host name=blah.blah.com appBase=path/to/webapp unpackWARs=false autoDeploy=false Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=0 resourceName=users01/ DefaultContext wrapperClass=org.apache.catalina.core.DefaultContext swallowOutput=true/ /Host Is this anything close to what I should be doing? Does swallotOutput go somewhere else? Thanks. - 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 5.0.27 hangs in windows 2000
I meant, we were accessing the command window to start TC from terminal services. On Wed, 2004-10-27 at 09:25, Karthik wrote: Hi Ben, We are accessing the application from a browser and the server is in our local network only. Regards karthik - Original Message - From: Ben Souther [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 6:39 PM Subject: Re: Tomcat 5.0.27 hangs in windows 2000 The reason I ask is, we've had the exact same problem. In our case, we were accessing a Win 2k machine via Terminal Services (TS). It should be noted that I was using rdesktop from a Redhat box as the TS client. When we started TC from the command line it would work for a while and then hang, just as you described it. This wasn't particular to TC. I've also seen it happen while running some Ant builds. We were able to reproduce the problem with another win2k box in our office. The problem only happened when accessing vi TS. If we went to the server and started from the command line while at the console, it ran just fine. The problem doesn't exist when starting TC as a service from the Services Window. Hope that helps. -Ben On Wed, 2004-10-27 at 08:24, Ben Souther wrote: How are you accessing the Win2k machine? Terminal Services? On Wed, 2004-10-27 at 08:12, Karthik wrote: Hi, We are running our application in tomcat 5.0.27 in windows 2000 and the server does not respond after one or two days unless we restart the server.We have checked the errorlog both in the logs folder as well as the custom log file that we create and there are no errors in the log files.Did anyone of you experience similar problems.If the tomcat server is not responding where do we check what the error is.When the server was not responding I checked the task manager and the memory usage for java was around 16MB in a server with 512 MB Ram so there does not seem to be any problem with memory. We are running tomcat from the command line as when run as service the tomcat server crashed very frequently every 30 minutes or so and then we had to restart the service. The JVM version we are using is Sun's JDK 1.4.1_01-b01 and service pack 4 of windows 2000 is installed. Regards Karthik Scape Velocity, Inc -- Global Software Development at the speed of 'e' Disclaimer: *** Information contained in this E-MAIL being proprietary to Scape Velocity Inc, is 'privileged', 'confidential' and intended for use only by the individual or entity to which it is addressed. Any use or dissemination of any information contained in the E-MAIL beyond that necessary to conduct business with Scape Velocity Inc is strictly prohibited, except as may be agreed to in writing between Scape Velocity and you or your organization. If the reader of this message is not the intended recipient or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is prohibited. If you have received this communication in error, please notify us immediately and delete this email. * - 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]
extending ojc
Hay folks, i trying to make ojc from JDeveloper to create a xml file like Jasper does with all JSP mappings, can someone show me some hints or tell me if JDeveloper can do that for grant? Regards, Edson
RE: swallowOutput and catalina.out
Yoav answered this yesterday. Search for RE: Server.xml configuration question at http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED] pache.org -Original Message- From: Ryan Daly [mailto:[EMAIL PROTECTED] Sent: Wednesday 27 October 2004 14:17 To: Tomcat Users List Subject: swallowOutput and catalina.out All: Sorry if I've missed a thread regarding this. I have multiple web applications on a single instance of Tomcat. I want to get all of the logging that goes to catalina.out to go to the individual web app logs. I'm trying to use swallowOutput, but I'm not sure if I have it in the right spot. Something is obviously not configured properly because I still see output going to catalina.out. What I have is something like this: Host name=blah.blah.com appBase=path/to/webapp unpackWARs=false autoDeploy=false Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=0 resourceName=users01/ DefaultContext wrapperClass=org.apache.catalina.core.DefaultContext swallowOutput=true/ /Host Is this anything close to what I should be doing? Does swallotOutput go somewhere else? Thanks. - 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: Database connection pooling
small correction: putting Context inside server.xml is not recommended since v5.0, not 5.5 -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Wednesday 27 October 2004 13:14 To: 'Tomcat Users List' Subject: RE: Database connection pooling see my post from yesterday RE: JNDI DataSource GlobalResources problem :) This exception means that TC cannot find your Resource. Your only guess is correct! Put your Context in either webapps/yourwebapp/META_INF/context.xml (if you are deploying in a war) or conf/Catalina/localhost/yourwebapp.xml (if you are deploying unpacked) or for v5.5 maybe that should be conf/context.xml (if you are deploying unpacked) I think it'll then work as long as your ResourceParams are all correct. It's OK for Context to be the top level tag in the file. If the context tag already in context.xml is for your webapp, then just add the ResourceParams tag inside that Context. You can add Resource too but it's not required as long as you have a matching resource-ref in your web.xml file. If the existing Context is for a different webapp, I think I'm right in saying that you can add another whole Context to the same file. Alternatively I think I'm right in saying that you can add your Context tag inside the default Host tag in server.xml corresponding to the default localhost. You're right there is no examples context tag there - this is a correction that I plan to submit to the howto. Having said that, as of v5.5, placing Contexts inside server.xml is not recommended. -Original Message- From: Nat Titman [mailto:[EMAIL PROTECTED] Sent: Wednesday 27 October 2004 12:22 To: [EMAIL PROTECTED] Subject: Database connection pooling Hi, I'm attempting to integrate database connection pooling into an exisiting JSP-based web application. I'm running Tomcat 5.5.2 Server, with J2SE 1.5.0 and a MySQL database (version 11.18) accessed through the com.mysql.jdbc package. I've followed MySQL instructions from this page: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasourc e-examples-howto.html I made the changes to server.xml and the web app's web.xml, changing variables to match the database name, user name and password of the correct database. I ensured the MySQL package was in common/lib/. My DAO objects now have constructors of the following form, which was adapted from code found online ('broadband' is the database name): private Connection myConn; private DataSource dataSource; /** * Constructs the data accessor using the connection pool * * @exception SQLException thrown for SQL errors */ public SearchDAO() throws SQLException { try { // retrieve datasource Context init = new InitialContext(); Context ctx = (Context) init.lookup(java:comp/env); dataSource = (DataSource) ctx.lookup(jdbc/broadband); // get connection synchronized (dataSource) { myConn = dataSource.getConnection(); } } catch (NamingException ex) { System.err.println( new SearchDAO: Cannot retrieve java:comp/env/jdbc/broadband: + ex); } catch (SQLException excep) { System.err.println( new SearchDAO: Could not get connection: + excep); } catch (Exception e) { System.err.println(new SearchDAO: + e); // System.out.println (In the catch block : ); //e.printStackTrace(); } } The constructor throws the following exception: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' The connect URL is present in server.xml and is correct for the database. My only guess at this point is that the howto document above asks for the Context tag to be added to server.xml between the example close Context and the first open Host tag, however there wasn't an example Context tag in server.xml and there appears to be a context.xml file in the same directory. I'm wondering if Contexts have moved to a different file in a recent version of Tomcat? It's just a wild guess (and I've no idea how to add the Context to context.xml as there's already a Context tag in there and no higher level tag around it). Any help would be greatly appreciated. Sorry if I'm wasting your time with an obvious or frequently asked question, I've googled and read quite a few documents, but I think I'm just at the 'stabbing in the dark' point and could do with guru guidance. Thanks, Nat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
Re: Tomcat 5.0.27 hangs in windows 2000
Hi Ben, I understand that.We start Tomcat only from the commandline in the Server and not using Terminal Services. Regards karthik - Original Message - From: Ben Souther [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 6:59 PM Subject: Re: Tomcat 5.0.27 hangs in windows 2000 I meant, we were accessing the command window to start TC from terminal services. On Wed, 2004-10-27 at 09:25, Karthik wrote: Hi Ben, We are accessing the application from a browser and the server is in our local network only. Regards karthik - Original Message - From: Ben Souther [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 6:39 PM Subject: Re: Tomcat 5.0.27 hangs in windows 2000 The reason I ask is, we've had the exact same problem. In our case, we were accessing a Win 2k machine via Terminal Services (TS). It should be noted that I was using rdesktop from a Redhat box as the TS client. When we started TC from the command line it would work for a while and then hang, just as you described it. This wasn't particular to TC. I've also seen it happen while running some Ant builds. We were able to reproduce the problem with another win2k box in our office. The problem only happened when accessing vi TS. If we went to the server and started from the command line while at the console, it ran just fine. The problem doesn't exist when starting TC as a service from the Services Window. Hope that helps. -Ben On Wed, 2004-10-27 at 08:24, Ben Souther wrote: How are you accessing the Win2k machine? Terminal Services? On Wed, 2004-10-27 at 08:12, Karthik wrote: Hi, We are running our application in tomcat 5.0.27 in windows 2000 and the server does not respond after one or two days unless we restart the server.We have checked the errorlog both in the logs folder as well as the custom log file that we create and there are no errors in the log files.Did anyone of you experience similar problems.If the tomcat server is not responding where do we check what the error is.When the server was not responding I checked the task manager and the memory usage for java was around 16MB in a server with 512 MB Ram so there does not seem to be any problem with memory. We are running tomcat from the command line as when run as service the tomcat server crashed very frequently every 30 minutes or so and then we had to restart the service. The JVM version we are using is Sun's JDK 1.4.1_01-b01 and service pack 4 of windows 2000 is installed. Regards Karthik Scape Velocity, Inc -- Global Software Development at the speed of 'e' Disclaimer: *** Information contained in this E-MAIL being proprietary to Scape Velocity Inc, is 'privileged', 'confidential' and intended for use only by the individual or entity to which it is addressed. Any use or dissemination of any information contained in the E-MAIL beyond that necessary to conduct business with Scape Velocity Inc is strictly prohibited, except as may be agreed to in writing between Scape Velocity and you or your organization. If the reader of this message is not the intended recipient or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is prohibited. If you have received this communication in error, please notify us immediately and delete this email. * - 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]
ENC: extending ojc
-Mensagem original- De: Edson Alves Pereira Enviada em: quarta-feira, 27 de outubro de 2004 10:28 Para: Tomcat-User List (E-mail) Assunto: extending ojc [Edson Alves Pereira] I trying to make ojc from JDeveloper to create a xml file like Jasper does with all JSP mappings, can someone show me some hints or tell me if JDeveloper can do that for grant? Regards, Edson
Re: swallowOutput and catalina.out
This is how I did it before implementing log4j. Remember, the TC logger is going away in 5.5x Context path=/myapp docBase=c:\\apps\\myapp debug=0 crossContext=false reloadable=false privileged=false swallowOutput=true Logger className=org.apache.catalina.logger.FileLogger directory=c:\\tomcat\\logs prefix=myapp_log. suffix=.txt timestamp=true/ /Context On Wed, 2004-10-27 at 09:16, Ryan Daly wrote: All: Sorry if I've missed a thread regarding this. I have multiple web applications on a single instance of Tomcat. I want to get all of the logging that goes to catalina.out to go to the individual web app logs. I'm trying to use swallowOutput, but I'm not sure if I have it in the right spot. Something is obviously not configured properly because I still see output going to catalina.out. What I have is something like this: Host name=blah.blah.com appBase=path/to/webapp unpackWARs=false autoDeploy=false Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=0 resourceName=users01/ DefaultContext wrapperClass=org.apache.catalina.core.DefaultContext swallowOutput=true/ /Host Is this anything close to what I should be doing? Does swallotOutput go somewhere else? Thanks. - 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: swallowOutput and catalina.out
On Wed, 2004-10-27 at 09:27, Shapira, Yoav wrote: Hi, Hmm, I'm not sure if swallowOutput on the DefaultContext works. I've only used it on a proper Context declaration. What Tomcat version are you using? Sorry. That would've helped. It's Tomcat v5.0.28. If you're saying it should go in the Context, you're talking about conf/Catalina/hostname/webapp.xml, right? I do have it in there, as well. I have a few of one of my webapp's context config below: Context path=/foo docBase=/apache/vhosts/webapp/foo debug=4 reloadable=false crossContext=false swallowOutput=true Logger className=org.apache.catalina.logger.FileLogger prefix=foo suffix=.txt timestamp=true/ -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: xml processing inside Tomcat
Hi Yoav, Why are the classes in the lib/endorsed path better ? Surely the sun sdk is better to use !! I tried removing. But it uses crimson instead of xalan (as it should see below), and it doesnt work. I would like it to use the xalan api provided also inside of the JDK1.4.2 package. Based on the methods below to set the parser via the system properties;how would you do this in TC env ? - The value of the javax.xml.parsers.DocumentBuilderFactory Java system property - The value of the javax.xml.parsers.DocumentBuilderFactory property specified in the lib/jaxp.properties properties file in the JRE directory - The first value found in a META-INF/services/javax.xml.parsers.DocumentBuilderFactory file in the JAR files available to the runtime - The platform default (org.apache.crimson.jaxp.DocumentBuilderFactoryImpl in Suns JDK 1.4). regards Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: swallowOutput and catalina.out
You implemented log4j to log what usually goes into catalina.out? -- On Wed, 2004-10-27 at 09:34, Ben Souther wrote: This is how I did it before implementing log4j. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: xml processing inside Tomcat
Hi, Why are the classes in the lib/endorsed path better ? Surely the sun sdk is better to use !! I hope you don't work on such blind assertions often ;) The XML APIs and Implementations that ship with Tomcat are better than the ones that ship with Sun JDK 1.4.2 for the reason I said in my previous post in this thread: they're newer and contain not only numerous bug fixes, but also updated/later revision APIs and performance enhancements. Nonetheless, we believe in flexibility so we allow you to not use the ones shipped with Tomcat: as I said, it's as simple as deleting them from common/endorsed. It's not like the ones we ship with Tomcat are proprietary in any way. The above are the same reasons Sun itself used to modify their XML packaging for J2SE 5.0. Everything in this email has been clear as day for a couple of years now, so you're really wasting your time. But hey, it's *your* time ;) Me, I'm just debating which sports bar to visit tonight... Yoav 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: swallowOutput and catalina.out
Hi, Yeah. System.out is for novices and small apps. Real apps need a real logging toolkit. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Ryan Daly [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 9:54 AM To: Tomcat Users List Subject: Re: swallowOutput and catalina.out You implemented log4j to log what usually goes into catalina.out? -- On Wed, 2004-10-27 at 09:34, Ben Souther wrote: This is how I did it before implementing log4j. - 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: Taglib loading classes of web application
Oh, that works great! Thanks Yoav and Dov! -Mikee [EMAIL PROTECTED] 10/22/2004 9:54:57 AM Hi, Yeah, using instanceof or isAssignableFrom are much better approaches for this. You cannot simply trim the [L from an array class name and get a valid class name: that's not guaranteed by the JLS and it's cruising for a bruising, as you've already found out. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Dov Rosenberg [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 9:52 AM To: Tomcat Users List Subject: Re: Taglib loading classes of web application Instead of checking the type of class by doing getClass().getName() I would recommend using If (myclass instanceof com.name.webapp.entities.MetaDataEntity){ ... } else { ... } This is better because you can check the presence of a class at compile time instead of runtime when you do things like Class.forName(className) -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com On 10/21/04 7:49 PM, Michael Wille [EMAIL PROTECTED] wrote: Hello all, I have a strange question. I need to load a class that is inside a packkage of a web application from within a taglib that the web application is using within its context. Let me try and explain this: I have a bunch of entities in the package: com.name.webapp.entities.. In this package, there are two base classes: Entity and MetaDataEntity. There are quite a few entity classes that are derived from these two clases. I've setup a taglib to take an array of either Entity or MetaDataEntity from the request's attribute map and loop through the array do some processing. The problem I have is that different processing needs to be done if the array is of a type derived from Entity or derived from MetaDataEntity. To do this, I get the first element in the array and get that object's superclass. So the code I have in the taglib to discover the super class is: Object entities[] = (Object []) pageContext.getRequest().getAttribute(list); Object entity = entities[0]; className = entity.getClass().getSuperclass().getName(); if(className.startsWith(com.name.webapp.entities.Entity)) // do one thing... else if(className.startsWith(com.name.webapp.entities.MetaDataEntity)) // do another... else // throw exception. (realizing that this will only work with direct descendants of the 2 base classes) Which works fine if the array is not empty. However, when entities.length == 0, I have to use a different method: Object entities[] = (Object []) pageContext.getRequest().getAttribute(list); // class name from the array is [Lcom.name.webapp.entities.entityname, get rid of the [L... className = entities.getClass().getName().substring(2); className = Class.forName(className).getSuperclass().getName(); However, I get a ClassNotFoundException. I believe that is because the taglib is using a different class loader than my webapp, which makes sense.. But is there any other way (short of creating my own class loader for the webapp and accessing that loader from the taglib) to do this? I'd rather avoid a custom classloader at all costs. Thanks for any advice. -Mike - 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: swallowOutput and catalina.out
On Wed, 2004-10-27 at 09:55, Shapira, Yoav wrote: Hi, Yeah. System.out is for novices and small apps. Real apps need a real logging toolkit. Is there a link you can point me toward to get log4j going instead of catalina.out? If I implement that now, then I'll be good to go to move to Tomcat 5.5? -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: swallowOutput and catalina.out
Hi, Is there a link you can point me toward to get log4j going instead of catalina.out? If I implement that now, then I'll be good to go to move to Tomcat 5.5? Link: http://logging.apache.org/log4j. Steps: 1. Download log4j 1.2.8 .zip file 2. Extract file wherever, take log4j-1.2.8.jar and put in WEB-INF/lib of your webapp 3. Write a log4j.properties file defining a file appender which writes to logs/myapplog.txt (an example is provided in the log4j docs, both in the short manual and in the PropertyConfigurator class JavaDoc). Put this file in WEB-INF/classes. That's it. Yoav 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]
Forma based login german umlaut
Hi together, I din't find any reading on this topic, so it seems time to ask here. Sorry if I missed something obvious. When our user types a password with german umlaut like , we just get crap in the tomcats JDBCRealm like j_username=Umlautj_password=?? called The HTML encoding is set to UTF-8. So what are we missing ??? Help is highly appreciated. Regards Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk2/tomcat 5.0.28 performance
Is there a way to tune mod_jk2 and/or tomcat 5.0.* to handle large files better. I have no performance issues when serving up smaller files, but when I serve up a larger file (~150K+) - there seems to be a bottleneck with the mod_jk2. I hope I explained that well. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Logging stout to seperate file for each webapp
I have some old webapps running that i dont wanna dig into (they are really old), and they do a lot of stout logging to catalina.out Can I on Tomcat 4.1.X somehow get the different webapps to log in a seperate file, and how is this done? Ive searches the docs and google, but i cant seem to find a solution. Med venlig hilsen/Best regards Søren Neigaard System Architect Mobilethink A/S Arosgaarden Åboulevarden 23, 4.sal DK - 8000 Århus C Telefon: +45 86207800 Direct: +45 86207810 Fax: +45 86207801 Email: [EMAIL PROTECTED] Web: www.mobilethink.dk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Logging stout to seperate file for each webapp
Hi, Check out the swallowOutput attribute on the Context element, and the SystemOut and SystemErr Logger elements: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html and http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Søren Neigaard [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 10:15 AM To: [EMAIL PROTECTED] Subject: Logging stout to seperate file for each webapp I have some old webapps running that i dont wanna dig into (they are really old), and they do a lot of stout logging to catalina.out Can I on Tomcat 4.1.X somehow get the different webapps to log in a seperate file, and how is this done? Ive searches the docs and google, but i cant seem to find a solution. Med venlig hilsen/Best regards Søren Neigaard System Architect Mobilethink A/S Arosgaarden Åboulevarden 23, 4.sal DK - 8000 Århus C Telefon: +45 86207800 Direct: +45 86207810 Fax: +45 86207801 Email: [EMAIL PROTECTED] Web: www.mobilethink.dk - 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: Apache, Tomcat and mod_jk2 - question about layout
This is my workers2.properties (not workers.properties). You don't need to touch jk2.properties or httpd.conf. # shared memory handling. [shm] file=C:\Program Files\Apache Group\Tomcat 4.1\work\jk2.shm size=1048576 # Defines a load balancer named lb. Use even if you only have one machine. #[lb:lb] # example socket channel, explicitly set port and host [channel.socket:localhost:8009] #tomcatId=localhost:8009 port=8009 host=127.0.0.1 tomcatId=jvm1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 #group=lb # uri mapping #[uri:/examples/*] #group=lb [uri:investments.localhost/lciponline/*] #group=lb [uri:test.localhost/onlinestore/*] #group=lb #[uri:/investments/*] #group=lb # ROOT [uri:investments.localhost/*] [uri:test.localhost/*] [uri:investments.localhost/manager/*] #group=lb [uri:test.localhost/manager/*] [uri:investments.localhost/admin/*] [uri:test.localhost/admin/*] [status:] info=Status worker, displays runtime information [uri:investments.localhost/jkstatus/*] #worker=status:status group=status: [uri:test.localhost/jkstatus/*] #worker=status:status group=status: -Original Message- From: Allen Williams [mailto:[EMAIL PROTECTED] Sent: October 27, 2004 9:03 AM To: Tomcat Users List Subject: RE: Apache, Tomcat and mod_jk2 - question about layout Second request: Would you post what you did to integrate the two? I've followed all the clues on both apache and tomcat websites, which is exactly what it says in three books I've got, and I still get a File Not Found error from apache when I go to the dynamic content. Is there some reference and description of the parameters and values for the workers.properties, jk2.properties, and httpd.conf files? Although the Jakarta website has some of this, the examples showing the parameters being used are pretty sparse. What does JkMount do? I can't find this documented anywhere. I assure you, I've spent DAYS on the websites, in the books, and looking for documentation whereever I can find it. Thanks, Allen -Original Message- From: footh [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 10:08 PM To: Tomcat Users List Subject: Re: Apache, Tomcat and mod_jk2 - question about layout Thanks for the tips. I believe the site will be using SSL at some point so that may be a reason to use Apache. But for the time being, I suppose I might as well use Tomcat standalone knowing that I can just flip a switch (well, a couple switches) to get Apache back in there. --- Peter Johnson [EMAIL PROTECTED] wrote: I am using Apache2, jk2 and Tomcat5 but I do so because I want to offload the SSL and compression onto a first tier leaving the second just to generate the content. I also use the first tier for uri rewriting using mod_rewrite. If you don't need uri rewriting I would consider using Tomcat standalone as the performance is likely to be comparable but the reduced admin by removing Apache and jk would be a big benefit. Why have more steps that can go wrong? More to debug when it does? To answer the questions from your first email. The images will be being returned from Apache, remember that an image is a separate request. I will qualify this by stating that any dynamically generated images will be returned by Tomcat. Regarding the directory setup ... it is whatever works best for you. I personally do the following: Apache Content - /sites/static/site name/... Tomcat Content - /sites/webapps/site name/ This means that all of the Tomcat content is outside the realm of Apache and thus security concerns are reduced. my 2c, PJ footh wrote: I've read the FAQ on the topic of whether to go through Apache or just use Tomcat stand-alone and frankly, it seemed inconclusive. Then I did a search and it seemed the general consensus was to use Tomcat stand-alone for development enviroments and Apache for production. Really, that's all I went by. I figured using Apache, Tomcat and mod_jk was the more robust solution and better suited for the long haul. More and more features will likely be added to this site so I need to be forward thinking. --- Parsons Technical Services [EMAIL PROTECTED] wrote: Unless you have a reason, why not let Tomcat do it all? Doug - Original Message - From: footh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 5:13 PM Subject: Apache, Tomcat and mod_jk2 - question about layout After going through all the documentation, I have gotten mod_jk2 to forward jsp requests to Tomcat. However, I have a question about the layout... Essentially, my site will be .html pages with some occasional .jsp pages (it will likely change in the future to all .jsp/servlets, but for now that's the way it is). Right now, I have the Apache
RE: Interesting discoveries about catalina GUI manager deploy (5. 0.28 and 5.0.29)
System.getProperty? -Original Message- From: Igor [mailto:[EMAIL PROTECTED] Sent: October 27, 2004 12:52 AM To: [EMAIL PROTECTED] Subject: Re: Interesting discoveries about catalina GUI manager deploy (5.0.28 and 5.0.29) Hello! Another question is: how do I get the JNDI enviroment variable value from the java program? still using ctx.lookup or other way. All JNDI references should be lookup using the naming context. If you're using simple Environment variables, you don't need to use JNDI, you retrieve them like normal environment entries in any Java program. Could you please tell me how environment variables can be accessed without JNDI? Is there corresponding section in documentation? Thank you, Igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:417f297c102764124516016!
RE: voting for 5.0.29?
Yoav, was that the JSP pre-compile/JDK1.5 thing? I tried looking for something on marc.tag, but I've probably missed the message with the subject Why 5.0.29 won't get out of beta ;) -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 7:40 AM To: Tomcat Users List Subject: RE: voting for 5.0.29? Hi, 5.5.4 is beta, 5.0.29 will not get a stable vote and will therefore never get out of beta. The former I posted to this list as an FYI in its own [ANN] messages, but not to the website. The latter I posted as an aside and has been discussed on the tomcat-dev mailing list. Yoav Shapira http://www.yoavshapira.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forma based login german umlaut
Hi, forgot to mention: In all our user code there are no problems with german umlauts. Mark Mark Doppelfeld wrote: Hi together, I din't find any reading on this topic, so it seems time to ask here. Sorry if I missed something obvious. When our user types a password with german umlaut like , we just get crap in the tomcats JDBCRealm like j_username=Umlautj_password=?? called The HTML encoding is set to UTF-8. So what are we missing ??? Help is highly appreciated. Regards Mark - 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: voting for 5.0.29?
Hi, was that the JSP pre-compile/JDK1.5 thing? I tried looking for something on marc.tag, but I've probably missed the message with the subject Why 5.0.29 won't get out of beta ;) Yeah, that's the issue. As I said, I didn't send out a separate message for 5.0.29, I just said it anecdotally: http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED] apache.orgmsgId=1937347. Yoav 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]
Tomcat 4.1.30 not shutting down correctly
Hi All, I'm looking into an issue we have where Tomcat fails to complete the shutdown procedure gracefully. I've had a good look through the documentation and been on the web all day, but any resolutions I have found for the error didn't seem to work when i tried to implement them. ( They didn't cause other errors but failed to fix this one ) Log file shown below Any help or pointers would be appreciated, Cheers Slim Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -Brian W. Kernighan *** INFO listing from Tomcat window *** [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080 [INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009 [INFO] JkMain - -Jk running ID=0 time=0/0 config=C:\Tomcat\jakarta-tomcat-4.1.30\bin\..\conf\jk2.properties Stopping service Tomcat-Standalone [INFO] Http11Protocol - -Stoping http11 protocol on 8080 Catalina:type=ThreadPool,name=http8080 [INFO] ChannelSocket - -Error shutting down the channel 8009 java.net.BindException: Cannot assign requested address: connect *** *** ## This email from Talgentra is intended only for the personal use of the recipient(s) named above. The email and any files transmitted with it are confidential to the intended recipient(s) and may be legally privileged or contain proprietary and private information. If you are not an intended recipient, you may not review, copy or distribute this message. If received in error, please notify the sender and delete the message from your system. Any views or opinions expressed in this email and any files transmitted with it are those of the author only and may not necessarily reflect the views of Talgentra and it does not create any legally binding rights or obligations whatsoever. Unless otherwise pre-agreed by exchange of hard copy documents signed by duly authorised representatives, contracts may not be concluded on behalf of Talgentra by email. Please note that neither Talgentra nor the sender accepts any responsibility for any viruses and it is your responsibility to scan the email and the attachments (if any). All email received and sent by Talgentra may be monitored to protect the business interests of Talgentra. ## - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.30 not shutting down correctly
Hi, First question: does shutdown work on Tomcat standalone? The message seems to indicate 8080 goes down fine, but 8009 doesn't. Second question: do you webapps (or libraries used by them) spawn non-daemon threads that they don't interrupt/shutdown on webapp shutdown? Yoav Shapira http://www.yoavshapira.com -Original Message- From: Simon Kelly [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 10:50 AM To: [EMAIL PROTECTED] Subject: Tomcat 4.1.30 not shutting down correctly Hi All, I'm looking into an issue we have where Tomcat fails to complete the shutdown procedure gracefully. I've had a good look through the documentation and been on the web all day, but any resolutions I have found for the error didn't seem to work when i tried to implement them. ( They didn't cause other errors but failed to fix this one ) Log file shown below Any help or pointers would be appreciated, Cheers Slim Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -Brian W. Kernighan *** INFO listing from Tomcat window *** [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080 [INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009 [INFO] JkMain - -Jk running ID=0 time=0/0 config=C:\Tomcat\jakarta-tomcat-4.1.30\bin\..\conf\jk2.properties Stopping service Tomcat-Standalone [INFO] Http11Protocol - -Stoping http11 protocol on 8080 Catalina:type=ThreadPool,name=http8080 [INFO] ChannelSocket - -Error shutting down the channel 8009 java.net.BindException: Cannot assign requested address: connect *** *** ### ### This email from Talgentra is intended only for the personal use of the recipient(s) named above. The email and any files transmitted with it are confidential to the intended recipient(s) and may be legally privileged or contain proprietary and private information. If you are not an intended recipient, you may not review, copy or distribute this message. If received in error, please notify the sender and delete the message from your system. Any views or opinions expressed in this email and any files transmitted with it are those of the author only and may not necessarily reflect the views of Talgentra and it does not create any legally binding rights or obligations whatsoever. Unless otherwise pre-agreed by exchange of hard copy documents signed by duly authorised representatives, contracts may not be concluded on behalf of Talgentra by email. Please note that neither Talgentra nor the sender accepts any responsibility for any viruses and it is your responsibility to scan the email and the attachments (if any). All email received and sent by Talgentra may be monitored to protect the business interests of Talgentra. ### ### - 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 4.1.30 not shutting down correctly
Hi Yoav, It's standalone that I am seeing the problem. I don't use tomcat anything but. Good question. There are multiple threads in operation in the webapp, but I don't get this problem with tc 1.3. Cheers Slim -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 27 October 2004 15:50 To: Tomcat Users List Subject: RE: Tomcat 4.1.30 not shutting down correctly Hi, First question: does shutdown work on Tomcat standalone? The message seems to indicate 8080 goes down fine, but 8009 doesn't. Second question: do you webapps (or libraries used by them) spawn non-daemon threads that they don't interrupt/shutdown on webapp shutdown? Yoav Shapira http://www.yoavshapira.com -Original Message- From: Simon Kelly [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 10:50 AM To: [EMAIL PROTECTED] Subject: Tomcat 4.1.30 not shutting down correctly Hi All, I'm looking into an issue we have where Tomcat fails to complete the shutdown procedure gracefully. I've had a good look through the documentation and been on the web all day, but any resolutions I have found for the error didn't seem to work when i tried to implement them. ( They didn't cause other errors but failed to fix this one ) Log file shown below Any help or pointers would be appreciated, Cheers Slim Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -Brian W. Kernighan *** INFO listing from Tomcat window *** [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080 [INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009 [INFO] JkMain - -Jk running ID=0 time=0/0 config=C:\Tomcat\jakarta-tomcat-4.1.30\bin\..\conf\jk2.properties Stopping service Tomcat-Standalone [INFO] Http11Protocol - -Stoping http11 protocol on 8080 Catalina:type=ThreadPool,name=http8080 [INFO] ChannelSocket - -Error shutting down the channel 8009 java.net.BindException: Cannot assign requested address: connect *** *** ### ### This email from Talgentra is intended only for the personal use of the recipient(s) named above. The email and any files transmitted with it are confidential to the intended recipient(s) and may be legally privileged or contain proprietary and private information. If you are not an intended recipient, you may not review, copy or distribute this message. If received in error, please notify the sender and delete the message from your system. Any views or opinions expressed in this email and any files transmitted with it are those of the author only and may not necessarily reflect the views of Talgentra and it does not create any legally binding rights or obligations whatsoever. Unless otherwise pre-agreed by exchange of hard copy documents signed by duly authorised representatives, contracts may not be concluded on behalf of Talgentra by email. Please note that neither Talgentra nor the sender accepts any responsibility for any viruses and it is your responsibility to scan the email and the attachments (if any). All email received and sent by Talgentra may be monitored to protect the business interests of Talgentra. ### ### - 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] ## This email from Talgentra is intended only for the personal use of the recipient(s) named above. The email and any files transmitted with it are confidential to the intended recipient(s) and may be legally privileged or contain proprietary and private information. If you are not an intended recipient, you may not review, copy or distribute this message. If received in error, please notify the sender and delete the message from your system. Any views or opinions expressed in this email and any files transmitted with it are those of the author only and may not necessarily reflect the views of Talgentra and it does not create any legally binding rights or obligations whatsoever. Unless otherwise
Re: Forma based login german umlaut
Hi, I would like to be able to limit the access in Tomcat manager. I would like to be able to setup a user account that is able to start, stop and remove the examples application, but only the example application. The problem is that when I give a user the role manager they have access to shutdown and start all the other application. How would I set it up so that they can only use the commands for the app they are responsible for? Thanks Robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.30 not shutting down correctly
Hi, It's standalone that I am seeing the problem. I don't use tomcat anything but. OK, then disable (comment out) the connector on port 8009 and retry. Make sure to kill the JVM process between retries so that each test is accurate. Good question. There are multiple threads in operation in the webapp, but I don't get this problem with tc 1.3. I'm not sure what TC 1.3 is. However, to get a list of threads in the webapp, send the JVM process a SIGQUIT. Yoav 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: Forma based login german umlaut
Hi, Don't hijack threads. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Robert Humble [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 10:55 AM To: Tomcat Users List Subject: Re: Forma based login german umlaut Hi, I would like to be able to limit the access in Tomcat manager. I would like to be able to setup a user account that is able to start, stop and remove the examples application, but only the example application. The problem is that when I give a user the role manager they have access to shutdown and start all the other application. How would I set it up so that they can only use the commands for the app they are responsible for? Thanks Robert - 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: Form based login german umlaut
Hi, Robert I'm not sure if this thread is the place where to put your question. I've got a problem with my web apps form based / JDBCRelam authentication. It' nothing related to the manager app of tomcat. Regards Mark Robert Humble wrote: Hi, I would like to be able to limit the access in Tomcat manager. I would like to be able to setup a user account that is able to start, stop and remove the examples application, but only the example application. The problem is that when I give a user the role manager they have access to shutdown and start all the other application. How would I set it up so that they can only use the commands for the app they are responsible for? Thanks Robert - 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]
Tomcat Manager roles
Hi, I would like to be able to limit the access in Tomcat manager. I would like to be able to setup a user account that is able to start, stop and remove the examples application, but only the example application. The problem is that when I give a user the role manager they have access to shutdown and start all the other application. How would I set it up so that they can only use the commands for the app they are responsible for? Thanks Robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: BUG? TC 5.0.xx: WEB-INF/classes/jndi.properties found but INITIAL_CONTEXT_FACTORY property gets overwritten by TC [Auf Viren geprüft]
Dear Yoav, My understanding of J2EE standards is that the servlet container tries to find the file jndi.properties on the application classpath and if found initializes the context environment with properties from there. I don't think this understanding is correct for containers and J2EE servers. IIRC you have to use the InitialContext construct with the env argument which has the initial context factory class name. 1. Tomcat (5.0.28,5.0.29beta) does search the jndi.properties on the application classpath and finds it, since: 2. It reads my com.example.test.key=42 property 3. It reads my java.naming.factory.object=com.sun.jndi.ldap.obj.LdapGroupFactory property which does not get overwritten 4. Therefore I guess it reads my java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory property too, but replaces it with org.apache.naming.java.javaURLContextFactory, I presume for internal use and doesn't set it back to original. 5. If it finds two or more factories, specs say that they are to be concatenated by colons (':'), and not - in contrast to the other properties - just take the first one. http://java.sun.com/j2se/1.4.2/docs/api/javax/naming/InitialContext.html 6. It does not throw a NoInitialContextException, even thought InitialLdapContext(); is implemented as InitialLdapContext(null,null); so it gets some Context from somewhere: (ctx instanceof DirContext) even equals true! So it tries to behave like I think it should behave, but fails due to what I call a bug. If it was illegal, it should give me an exception like NoInitialContextException, when I call InitialLdapContext(). I would like to have a reference to a standards document where it says that there is an exception for containers and J2EE servers. I've searched this topic up and down the web and haven't found an exception. Instead Sun's Tutorial says: http://java.sun.com/products/jndi/tutorial/beyond/env/context.html So the environment, effectively, is the union of the environment parameter and all application resource files, with the additional rule that some standard properties could be gotten from applet parameters or system properties. This topic was already discussed in 2001 for Tomcat 3.x on [EMAIL PROTECTED] but coming not to a solution, only a workaround: http://archives.java.sun.com/cgi-bin/wa?A2=ind0107L=jndi-interestF=S =P=2069 Since Tomcat is the reference implementation (of the spec) I would like to have a behavior according to the spec or a clarificaton of it. And I want to specify my basic LDAP connection properties only in one place with inheritance for many webapps and overriding some properties if needed in application specific jndi.properties. Application specific property files cannot do that. Many thanks for thinking about this one. Frerk Meyer EDEKA Aktiengesellschaft GB Datenverarbeitung Frerk Meyer CC Web Technologien New-York-Ring 6 22297 Hamburg Tel: 040/6377 - 3272 Fax: 040/6377 - 41268 mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Form based login german umlaut
I am sorry I hit reply and pressed the send button before I changed the subject. You know it is like when you let the car door go just as you realize that you have left the keys in the car. Sorry Robert On Wed, 2004-10-27 at 11:06, Mark Doppelfeld wrote: Hi, Robert I'm not sure if this thread is the place where to put your question. I've got a problem with my web apps form based / JDBCRelam authentication. It' nothing related to the manager app of tomcat. Regards Mark Robert Humble wrote: Hi, I would like to be able to limit the access in Tomcat manager. I would like to be able to setup a user account that is able to start, stop and remove the examples application, but only the example application. The problem is that when I give a user the role manager they have access to shutdown and start all the other application. How would I set it up so that they can only use the commands for the app they are responsible for? Thanks Robert - 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: Forma based login german umlaut
Hi Yoav, it seems you know a lot of tomcat and the authentication stuff... :-) No ideas Mark Shapira, Yoav wrote: Hi, Don't hijack threads. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Robert Humble [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 10:55 AM To: Tomcat Users List Subject: Re: Forma based login german umlaut Hi, I would like to be able to limit the access in Tomcat manager. I would like to be able to setup a user account that is able to start, stop and remove the examples application, but only the example application. The problem is that when I give a user the role manager they have access to shutdown and start all the other application. How would I set it up so that they can only use the commands for the app they are responsible for? Thanks Robert - 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]
Problem with logging in Eclipse
Hi, I'm new to this list so if my question has been answered previously, please give me a URL to look at---I have tried one without a hit. I am trying to use Tomcat 5.5 in my Eclipse 3.0 development environment. I have a Tomcat plugin which starts Tomcat from a simple icon. In following the limited instructions I've been able to find for installing log4j for Tomcat 5.5, I put commons-logging.jar and log4j.jar in the common/lib directory. As soon as I do that, Tomcat fails during startup with the following stack trace. The messages indicate that Catalog.class is not in the jar files, but I've confirmed that it is in log4j.jar in the correct package. I have brought in the source code, and tried to step through it, but I'm not getting anywhere with that. This AM I tried Tomcat 5.0 and got the same problem. Am not seeing any problem starting Tomcat directly from a DOS prompt. If anyone can help me, I'd surely appreciate it! Let me know if you have any questions about how I configure Tomcat, although I've tried server.xml without editing it. java.lang.ExceptionInInitializerError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:208) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:402) Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@958bb8 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@958bb8 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category)) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) at org.apache.catalina.core.StandardService.clinit(StandardService.java:53) ... 8 more Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@958bb8 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:413) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) ... 12 more Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.getConstructor(Unknown Source) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:410) ... 13 more _ Express yourself instantly with MSN Messenger! Download today - it's FREE! hthttp://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: BUG? TC 5.0.xx: WEB-INF/classes/jndi.properties found but INITIAL_CONTEXT_FACTORY property gets overwritten by TC [Auf Viren geprüft]
Hi, OK. Feel free to file a Bugzilla issue if you'd like. If you have a .diff patch you'd like to send along, that'd be great, and it will also improve the chances of someone looking at this. Yoav Shapira http://www.yoavshapira.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 11:04 AM To: Tomcat Users List Subject: RE: BUG? TC 5.0.xx: WEB-INF/classes/jndi.properties found but INITIAL_CONTEXT_FACTORY property gets overwritten by TC [Auf Viren geprüft] Dear Yoav, My understanding of J2EE standards is that the servlet container tries to find the file jndi.properties on the application classpath and if found initializes the context environment with properties from there. I don't think this understanding is correct for containers and J2EE servers. IIRC you have to use the InitialContext construct with the env argument which has the initial context factory class name. 1. Tomcat (5.0.28,5.0.29beta) does search the jndi.properties on the application classpath and finds it, since: 2. It reads my com.example.test.key=42 property 3. It reads my java.naming.factory.object=com.sun.jndi.ldap.obj.LdapGroupFactory property which does not get overwritten 4. Therefore I guess it reads my java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory property too, but replaces it with org.apache.naming.java.javaURLContextFactory, I presume for internal use and doesn't set it back to original. 5. If it finds two or more factories, specs say that they are to be concatenated by colons (':'), and not - in contrast to the other properties - just take the first one. http://java.sun.com/j2se/1.4.2/docs/api/javax/naming/InitialContext.html 6. It does not throw a NoInitialContextException, even thought InitialLdapContext(); is implemented as InitialLdapContext(null,null); so it gets some Context from somewhere: (ctx instanceof DirContext) even equals true! So it tries to behave like I think it should behave, but fails due to what I call a bug. If it was illegal, it should give me an exception like NoInitialContextException, when I call InitialLdapContext(). I would like to have a reference to a standards document where it says that there is an exception for containers and J2EE servers. I've searched this topic up and down the web and haven't found an exception. Instead Sun's Tutorial says: http://java.sun.com/products/jndi/tutorial/beyond/env/context.html So the environment, effectively, is the union of the environment parameter and all application resource files, with the additional rule that some standard properties could be gotten from applet parameters or system properties. This topic was already discussed in 2001 for Tomcat 3.x on [EMAIL PROTECTED] but coming not to a solution, only a workaround: http://archives.java.sun.com/cgi-bin/wa?A2=ind0107L=jndi-interestF=S =P=2069 Since Tomcat is the reference implementation (of the spec) I would like to have a behavior according to the spec or a clarificaton of it. And I want to specify my basic LDAP connection properties only in one place with inheritance for many webapps and overriding some properties if needed in application specific jndi.properties. Application specific property files cannot do that. Many thanks for thinking about this one. Frerk Meyer EDEKA Aktiengesellschaft GB Datenverarbeitung Frerk Meyer CC Web Technologien New-York-Ring 6 22297 Hamburg Tel: 040/6377 - 3272 Fax: 040/6377 - 41268 mailto:[EMAIL PROTECTED] - 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]
[OT] Re: Form based login german umlaut
Replying to an unrelated message, even with a different subject, may not be the best idea either. People using a threaded mail reader will most likely see your message threaded under the topic you replied to instead of as a new thread. If somebody is ignoring the thread you replied to, this will wind up making your message get ignored as well. It is best to add the tomcat user list to your address book and start a new message using that when you have a new topic. Matt Robert Humble wrote: I am sorry I hit reply and pressed the send button before I changed the subject. You know it is like when you let the car door go just as you realize that you have left the keys in the car. Sorry Robert On Wed, 2004-10-27 at 11:06, Mark Doppelfeld wrote: Hi, Robert I'm not sure if this thread is the place where to put your question. I've got a problem with my web apps form based / JDBCRelam authentication. It' nothing related to the manager app of tomcat. Regards Mark Robert Humble wrote: Hi, I would like to be able to limit the access in Tomcat manager. I would like to be able to setup a user account that is able to start, stop and remove the examples application, but only the example application. The problem is that when I give a user the role manager they have access to shutdown and start all the other application. How would I set it up so that they can only use the commands for the app they are responsible for? Thanks Robert - 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: voting for 5.0.29? [Auf Viren geprüft]
5.0.29 beta never going stable? This is very disappointing news to me. 5.0.29beta was the *first* Tomcat release, that did JAAS right. I lost weeks in searching the bug in my JAAS code. 5.0.29beta does return my own Principal implemention class - declared in the JAASRealm - with request.getPrincipal() instead of returning Tomcats own GenericPrincipal class. I need this badly. But I don't get it in our Datacenter when it's beta. As I understood it 5.0.x was for JDK 1.4 and 5.5.x for JDK 1.5. Why should 5.0.x be 'punished' for showing a bug under JDSK 1.5? And if the bug is fixed why not voting? Please help me understand, yours sincerely Frerk Meyer EDEKA Aktiengesellschaft GB Datenverarbeitung Frerk Meyer CC Web Technologien New-York-Ring 6 D-22297 Hamburg Tel: 040/6377 - 3272 Fax: 040/6377 - 41268 mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Manager roles
Hi, Hi, I would like to be able to limit the access in Tomcat manager. I would like to be able to setup a user account that is able to start, stop and remove the examples application, but only the example application. The problem is that when I give a user the role manager they have access to shutdown and start all the other application. How would I set it up so that they can only use the commands for the app they are responsible for? Here's one idea. The Manager webapp is designed to manage all apps in one Host, for better or worse. So if you want to have it manage only one app, put that app AND the Manager webapp (or a copy of it) in that Host. That means defining multiple Hosts in server.xml, each with its own appBase, and moving your webapps around as needed. It's not a big deal, doesn't require any coding. Yoav 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: Random 500 errors
Is the 500 generated by Apache or Tomcat? Have you cranked your logs all the way up on both? (LogLevel debug in httpd.conf). On Wed, 2004-10-27 at 01:54, James McGovern wrote: Here is the other web.xml. Essentially, this is from a standard download of Liferay Enterprise Portal. http://sourceforge.net/projects/lportal/ Been a strong advocate for my employer both using and contributing to open source. Have been given a deadline of noon today to make this work. Otherwise forced to switch to BEA. -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 8:31 PM To: 'Tomcat Users List' Subject: RE: Random 500 errors Unfortunately I don't run apache with tomcat so can't reproduce your error. That's why I asked so many questions in my last post ;) Understand now what you mean by random. Your attached web.xml appear to be basically the default web.xml from CATALINA_HOME\conf\ - please can you also post your webapp's web.xml file from CATALINA_HOME\webapps\yourwebapp\web.xml ? If you could also post any of the other info that I mentioned in my last post, I'm sure this would improve the chances of someone being able to help you :) -Original Message- From: James McGovern [mailto:[EMAIL PROTECTED] Sent: Wednesday 27 October 2004 01:02 To: Tomcat Users List Subject: RE: Random 500 errors By random, it means that I access the same exact URL repeatedly in a row and sometimes it throws a 500 and sometimes it doesnt. The error even appears for static GIF files as well. Attached is the web.xml. It shows in the appache HTTPD access_log as a 500. It does not show in Apache HTTPD error_log. I created another configuration that doesn't use MOD_JK2 and instead uses MOD_PROXY. The same thing occurs only the error then changes to 502 and complains about being able to do a /get. One small correction. I am running Apache 2.0.50. -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 7:18 AM To: 'Tomcat Users List' Subject: RE: Random 500 errors When you say random do you mean that accessing the same URL sometimes gives a 500 and sometimes not, or that you can't see a pattern in the URLs that cause the 500? Are you looking in all the tomcat log files (under CATALINA_HOME\logs ), and the apache httpd logs, as well as any TC log file you might have configured yourself? What error messages are you seeing in the browser when the 500 occurs? Are you seeing the standard tomcat error page or have you configured your own? Can you give an example URL that triggers the 500, and your web.xml config (esp your servlet mappings)? -Original Message- From: James McGovern [mailto:[EMAIL PROTECTED] Sent: Tuesday 26 October 2004 11:55 To: [EMAIL PROTECTED] Subject: Random 500 errors I am currently running Apache 2.0.48 with JK2 and Tomcat 5.0.28 on Redhat Enterprise 2.1 and experience random 500 errors. I am getting them for GIFs files and other non Java related access. I am not finding anything in the error logs to indicate the problem. The access log does show the file with the 500 error code. What should I be looking for in order to resolve this problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: voting for 5.0.29? [Auf Viren geprüft]
Hi, 5.0.29 beta never going stable? This is very disappointing news to me. Sorry to disappoint you ;) However, 5.0.30 is not far down the pipe, and hopefully it will be declared as stable. 5.0.29beta was the *first* Tomcat release, that did JAAS right. Thanks for the vote of confidence ;) GenericPrincipal class. I need this badly. Then go build your own custom Tomcat from CVS: it already has the JSP bug fix. Or use 5.0.29. As I understood it 5.0.x was for JDK 1.4 and 5.5.x for JDK 1.5. The above is incomplete and inaccurate. Why should 5.0.x be 'punished' for showing a bug under JDSK 1.5? Because a basic feature (JSP compilation0 is broken out of the box under what is rapidly becoming a common execution environment. That's a fundamental obstacle to declaring it stable. And if the bug is fixed why not voting? The bug is fixed in CVS, not in 5.0.29. The fix will show up in 5.0.30. Please help me understand, yours sincerely You might want to read up a little on open-source development practices. The processes followed by the ASF are fairly standard (in fact, some of them are standard because they've worked so well here). We give serious consideration to what we certify as stable, we release fairly often (at least products I'm involved with do), and we make building your own version fairly easy (considering the complexity of the product) for those who can't wait for our next official release. Yoav 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 4.1.30 not shutting down correctly
Hi Yoav, I have tried disabling the connector, which has stopped the error showing up. However the Tomcat window is staying up after shutdown has finished. tc 1.3 was ment to read tomcat 3.3.2. The problem of the screen not diapearing still persists. i am about to test it with Tomcat 5.0.28 to see if this is just a quirk with 4.1.30. But if you know what would cause to Tomcat window to persist after shutdown, I'd be interested in knowing your views. Cheers Slim -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 27 October 2004 15:57 To: Tomcat Users List Subject: RE: Tomcat 4.1.30 not shutting down correctly Hi, It's standalone that I am seeing the problem. I don't use tomcat anything but. OK, then disable (comment out) the connector on port 8009 and retry. Make sure to kill the JVM process between retries so that each test is accurate. Good question. There are multiple threads in operation in the webapp, but I don't get this problem with tc 1.3. I'm not sure what TC 1.3 is. However, to get a list of threads in the webapp, send the JVM process a SIGQUIT. Yoav 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] ## This email from Talgentra is intended only for the personal use of the recipient(s) named above. The email and any files transmitted with it are confidential to the intended recipient(s) and may be legally privileged or contain proprietary and private information. If you are not an intended recipient, you may not review, copy or distribute this message. If received in error, please notify the sender and delete the message from your system. Any views or opinions expressed in this email and any files transmitted with it are those of the author only and may not necessarily reflect the views of Talgentra and it does not create any legally binding rights or obligations whatsoever. Unless otherwise pre-agreed by exchange of hard copy documents signed by duly authorised representatives, contracts may not be concluded on behalf of Talgentra by email. Please note that neither Talgentra nor the sender accepts any responsibility for any viruses and it is your responsibility to scan the email and the attachments (if any). All email received and sent by Talgentra may be monitored to protect the business interests of Talgentra. ## - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: BUG? TC 5.0.xx: WEB-INF/classes/jndi.p roperties found but INITIAL_CONTEXT_FACTORY property g ets overwritten by TC [Auf Viren geprüft]
On Wed, 27 Oct 2004 11:14:27 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, OK. Feel free to file a Bugzilla issue if you'd like. If you have a .diff patch you'd like to send along, that'd be great, and it will also improve the chances of someone looking at this. Please don't file any bug: the issue is obviously invalid. It is quite surprising that people expect to be able to interact with system properties in a container environment, especially naming related. You obviously have to pass the initial context factory in the environment which is passed in the new InitialContext call. -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Manager App and .war META-INF context.xml problem
Hi together, at least I found my problem... Cocoon was configured to log into WEB-INF directory and held a lock on this log files. So the undeploy command couldn't remove the WEB-INF directory and the manager app got screwed up... Probably the code base shouldn't check for the existance of this sub dir??? Just a guess. Regards Mark Mark Doppelfeld wrote: Hi, I've done some reading on this subject, but still face a problem: I've set autodeploy to false in server.xml When I initially install the war via the manager app, everything is fine. Then I stop and unload my web-app and upload a new war file. On installing the new war I get the following excpetion: (adding the log4j jars to Tomcat won't bring up this exception, but manager app will say my web-app isn't available...) Any ideas??? Thanks in advance Mark java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1058) at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1567) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:585) at org.apache.catalina.core.StandardHost.install(StandardHost.java:897) at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:850) at org.apache.catalina.manager.HTMLManagerServlet.deployInternal(HTMLManagerServlet.java:271) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:95) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at