Re: Require a secure connection
According to http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Security5.html another way would be to specify it in web.xml. ... If you specify CONFIDENTIAL or INTEGRAL as a security constraint, that type of security constraint applies to all requests that match the URL patterns in the Web resource collection, not just to the login dialog. Specify CONFIDENTIAL when the application requires that data be transmitted so as to prevent other entities from observing the contents of the transmission. Specify INTEGRAL when the application requires that the data be sent between client and server in such a way that it cannot be changed in transit. The following example code from a web.xml file shows this setting in context: !-- SECURITY CONSTRAINT -- security-constraint web-resource-collection web-resource-nameWRCollection/web-resource-name url-pattern/index.jsp/url-pattern http-methodGET/http-method /web-resource-collection auth-constraint role-nameuser/role-name /auth-constraint user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint Shawn On Fri, 2003-01-17 at 07:09, neal wrote: Does anyone know how to *require* that a page be accessed only via a secure connection? For instance, I *can* request a secure connection to a page by going to https://; and the url ... but how do I prevent a user from going to http://; to request that same page? Would this be a proxy thing or is something I can set in Tomcat? Is there something that wouldn't require the overhead of reflecting upon every single request at the Java level? Thanks. neal -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- shawn [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Difficulties with Virtual Host in the Apache + Tomcat
There are some days installed a servant web with Apache 1.3.27 and Tomcat 4.1.18 under Suse Linux Professional 7.2, however I am facing problems in the configuration and integration of the virtual hosts of the Apache for the tomcat. In the end of this e-mail it is some fragments of the configuration files that I am using, as for instance http.conf, workers.properties and server.xml When I try to access the address http://www.ged.ufu.br that has the file index.jsp, that I put soon lower, I receive the following text % out.println ();% in the screen of the browser, what shows that the things are not working how they would owe. What am missing? Another question would be: I will have four virtual hosts in the Apache, logically I will have to have the same ones four configured in Tomcat. Is it possible? I thank the help in advance. File index.jsp root@ged2:/web/ged cat index.jsp %out.println();% //* Fragment of the file httpd.conf (Apache 1.3.27) IfModule !mod_jk.c LoadModule jk_module libexec/mod_jk.so /IfModule Include /usr/local/jakarta-tomcat-4.1.18/conf/auto/mod_jk.conf AddModule mod_jk.c ServerName ged2.ufu.br DocumentRoot /web Directory /web . . . /Directory IfModule mod_dir.c DirectoryIndex index.html index.htm index.jsp /IfModule NameVirtualHost 200.131.195.5 VirtualHost 200.131.195.5:80 ServerAdmin [EMAIL PROTECTED] DocumentRoot /web/ged/ ServerName ged2.ufu.br ServerAlias www.ged.ufu.br ErrorLog /web/ged/logs/apache_error_log CustomLog /web/ged/logs/apache_access_log common JkMount /web/ged/*.jsp ajp13 /VirtualHost IfModule mod_jk.c JkWorkersFile /usr/local/jakarta-tomcat-4.1.18/conf/jk/workers.properties JkLogFile /usr/local/jakarta-tomcat-4.1.18/logs/mod_jk.log JkLogLevel debug JkMount /examples ajp13 JkMount /examples/* ajp13 /IfModule // File workers.properties workers.CATALINA_HOME=/usr/local/jakarta-tomcat-4.1.18 workers.java_home=$(JAVA_HOME) ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13 worker.inprocess.type=jni worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)server$(ps)libjvm.so worker.inprocess.stdout=$(workers.CATALINA_HOME)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.CATALINA_HOME)$(ps)logs$(ps)inprocess.stderr // Fragment of the file server.xml (Tomcat 4.1.18) Host name=ged2.ufu.br debug=0 appBase=/web/ged unpackWARs=true autoDeploy=true Aliaswww.ged.ufu.br/Alias Logger className=org.apache.catalina.logger.FileLogger directory=/web/ged/logs prefix=tomcat_ged. suffix=.log timestamp=true/ Context path=/web/ged docBase=ged debug=0 reloadable=true crossContext=true/ /Host // Directories of the application Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda8 3261056 32896 3228160 2% /web root@ged2:/web/servidor tree /web/ged/ /web/ged/ |-- index.jsp |-- logs | |-- apache_access_log | |-- apache_error_log | `-- tomcat_ged.2003-01-17.log `-- test `-- index.jsp 2 directories, 5 files Sebastião Carlos Santos Oracle Database Administrator Universidade Federal de Uberlândia - UFU Gratificação de Estímulo à Docência - GED
RE: Tomcat 4.0.x JDBC connection pooling
Yes - We used 4.1.12 and have just migrated to 4.1.18 on a mission critical 24 x 7 app and we have had no problems - once we got it working in the first place!! -Original Message- From: Luca Cremonini [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 16. Jänner 2003 18:00 To: Tomcat Users List Subject: RE: Tomcat 4.0.x JDBC connection pooling Thanks Eric! But with Tomcat 4.0.x I don't have things like MaxActive, MinIdle and other parameters... 4.0 documentation doesn't tell anything about this. It seems to me that I have to migrate to 4.1.x to use the pool and such parameters. Am I right? L.C. Roberts, EricPer:Tomcat Users List [EMAIL PROTECTED] Eric.Roberts@ Cc: one.at Oggetto: RE: Tomcat 4.0.x JDBC connection pooling 16/01/2003 17.33 Per favore, rispondere a Tomcat Users List Hi Luca, The pool is established in the definition of the resource jdbc/EmployeeDB - where things like MaxActive, MinIdle and other parameters determine how the pool behaves. At startup the pool will connect the MinIdle connections to the DB - a new connection will then only be established if that number are already in use. It is good practice to always close connections, as otherwise you become dependent on parameters like RemoveAbandoned and RemoveAbandoned timeout. All of this is discussed in the JNDI Datasource HOWTO in the documention : -) -Original Message- From: Luca Cremonini [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 16. Jänner 2003 17:17 To: [EMAIL PROTECTED] Subject: Tomcat 4.0.x JDBC connection pooling I'm using JDBC connection with Tomcat 4.0 as shown in Tomcat4.0 online documentation (http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html ): --- // Obtain our environment naming context Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); // Look up our data source DataSource ds = (DataSource) envCtx.lookup(jdbc/EmployeeDB); // Allocate and use a connection from the pool Connection conn = ds.getConnection(); ... use this connection to access the database ... conn.close(); --- I searched the mailing list and the web, but coudn't find answer to these questions: - When I call ds.getConnection(); am I getting a connection from a pool or opening a NEW connection every time? - If there's a pool why do I have to close the connection with conn.close(); instead of releasing it to the pool? - What are the improvement in Tomcat 1.1.x about JDBC connection pooling? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.1.18 and symbolic links
Hi, I am currently using TC 4.1.18. But I'd like to use symlink inside my webapp. I works with TC 4.0.3, but no more with the last version 4.1.18. Why? For exemple, I have the webapp 'test', which contains a subdirectory docs. This docs directory contains a symlink to /usr/webapps/pdf. So my webapp structure is: webapp/test |_docs/pdf - /usr/webapps/pdf If I try to access any pdf document in the directory /webapp/test/docs/pdf with an url like http://myhost/test/docs/pdf/test.pdf, it doesn't work. I get the error message: HTTP Status 404 The requested resource is not available the symlink has been created with the following command: ln -s /usr/webapps/pdf Can someone help me? Thanks
WebAppClassLoader / ProxyDirContext.java Problem - Upgrade from Tomcat 4.1.12 to 4.1.17
A few weeks back I noticed this problem when I upgraded from 4.1.12 to 4.1.17. I wanted to track it down a little bit before reporting it, and now I think I know where the problem is. I have isolated the problem to changes made between CVS versions 1.12 and 1.14 of org.apache.naming.resources.ProxyDirContext.java. These changes were made between releases 4.1.12 and 4.1.14 of Tomcat by Remy. My app dynamically generates java code (in a work dir), compiles it (to WEB-INF/classes), and then loads it using Class.forName(). This has been working smoothly and has been very stable for over a year now, way back from when we were using early versions of tomcat 4 (possibly even in tomcat 3). The basic algorithm is Class c; public Class getClass() throws Exception{ try{ c = Class.forName(generated.ClassName); }catch(ClassNotFoundException cnfe1){ try{ generateJavaCodeAndCompile(); //compiles to WEB-INF/classes c = Class.forName(generated.ClassName); return c; }catch(ClassNotFoundException cnfe2){ ERROR class could not be loaded throw cnfe2; } } } Note that when a lot of code has to be regenerated, it would take some time, but it always worked without any trouble. Classes would generate and load in the order requested by the application. After upgrading to 4.1.17 I found that when many classes needed to be generated and loaded, I would get tons of ClassNotFoundExceptions. Even though my code was being compiled properly and the class was in the webapp classes dir, the second call to Class.forName was sometimes throwing ClassNotFoundExceptions. After trying various combinations of Tomcat jars, I was able to Isolate the problem to /common/lib/naming-resources.jar. Where the version from 4.1.12 works fine, but 4.1.14 fails. The only file that is different in that particular jar was ProxyDirContext.java, so I am assuming the problem stems from those changes. Anybody have any idea about why this change causes this problem and what a fix for this would be? Thanks very much Matt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Require a secure connection
Hi Neal, security-constraint display-nameWeb Booking/display-name web-resource-collection web-resource-nameWeb Booking /web-resource-name url-pattern/web/*/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection user-data-constraint transport-guarantee CONFIDENTIAL /transport-guarantee /user-data-constraint /security-constraint Will do what you want. This will switch the transport to HTTPS. You can also check programatically using request.isSecure() in the servlet to make sure the administrator has installed your application and SSL correctly. neal wrote: Does anyone know how to *require* that a page be accessed only via a secure connection? For instance, I *can* request a secure connection to a page by going to https://; and the url ... but how do I prevent a user from going to http://; to request that same page? Would this be a proxy thing or is something I can set in Tomcat? Is there something that wouldn't require the overhead of reflecting upon every single request at the Java level? Thanks. neal -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Jon Eaves [EMAIL PROTECTED] http://www.eaves.org/jon/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: org.apache.naming.factory.BeanFactory bugs (and fixes)
On Thu, 16 Jan 2003, Hansen, Richard wrote: Date: Thu, 16 Jan 2003 08:34:37 -0600 From: Hansen, Richard [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List (E-mail) [EMAIL PROTECTED] Subject: org.apache.naming.factory.BeanFactory bugs (and fixes) In trying to define my own JNDI resources using BeanFactory I came across a number of bugs. Rick, Thanks for doing the investigation and patches for these problems! Could you do me a favor, and post this as a bug report: http://nagoya.apache.org/bugzilla/ and add the patches as attachments? That way, it will stay in front of the developers until it is dealt with. Things in mailing lists sometimes get lost in the volume. Thanks! Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Jasper vs Jasper2
On Thu, 16 Jan 2003, Will Hartung wrote: Date: Thu, 16 Jan 2003 09:11:05 -0800 From: Will Hartung [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Jasper vs Jasper2 Hi all, Just for clarity, if you will. I hear references to jasper and jasper2 vis-a-vis the JSP compiler/subsystem within Tomcat. Jasper2 was a complete rewrite of the JSP page compiler. It was architected by someone who has built compilers for many years, and affords the opportunity to generate *much* better code for a JSP page than the original jasper compiler. I see commits against a jasper2 section when browsing tomcat-dev. My question is which jasper is in the current 4.1.x release? Current 4.1.x releases (such as 4.1.18) include Jasper2. Tomcat 5 does as well, but it's a pretty different codebase to support all the new JSP 2.0 features. How are they different? Is it worth the pain to move to jasper2 for a production server (assuming that it's not already in 4.1.x)? The performance improvements, especially on pages with lots of custom tags, is so large that it's almost unbelievable. If you're not using scriptlets, Jasper2 also takes measures to get around the 64kb limit on a method size that often bedeviled old jasper users. If it is worth the pain, how do I get it? It's in 4.1.18. Thanx! Regards, Will Hartung ([EMAIL PROTECTED]) Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: vulnerabilites in 3.2.3
On Thu, 16 Jan 2003, Anil Garg wrote: I am looking if tomacat 3.2.3 has any known vulnerablites? Can someone tell me what are those or tell me some hyper link which tells this. There is a 3.2.4 release available (http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.4/bin/), and the only reason that would have happened would be a security bug -- see the release notes in that release for more info. You should also be aware that 3.2 is pretty ancient (3.2.4 is over two years old), and is not being maintained any longer. thanx and regards anil Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Log Error
Hi, I am using Tomcat4.1.10 and JDK1.4.0 and I have started to get the following error message after which Tomcat crashes. org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja va:530) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja va:285) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:401) at org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandler.java:97) at org.apache.tomcat.util.log.Log.log(Log.java:198) at org.apache.tomcat.util.log.Log.log(Log.java:192) at org.apache.tomcat.util.log.Log.log(Log.java:174) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:536) at java.lang.Thread.run(Thread.java:536) Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI mpl.java:415) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja va:523) ... 8 more Caused by: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI mpl.java:411) ... 9 more I have not changed anything to the configuration and it was working fine in the past I have just started to notice this in the last week or so. If anyone has any ideas what I can do to resolve this I would appreciate it. Thanks Jim. PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
What about the Context tag?
Hello there, newbie finds himself in some need of help with using the Context tag!! I happen to have a server-side Java programming book that tells the reader to edit this tag in the server.xml file with the specific context path for the servlet to be seen in the browser, HOWEVER I have noticed that some in this group have said that this whole file should just be left alone, that Tomcat could somehow magically find the correct path for the servlet! Who is right about this anyway?! __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Require a secure connection
This should be it ... http://marc.theaimsgroup.com/?l=tomcat-userm=99616711404780w=2 -Tim neal wrote: Does anyone know how to *require* that a page be accessed only via a secure connection? For instance, I *can* request a secure connection to a page by going to https://; and the url ... but how do I prevent a user from going to http://; to request that same page? Would this be a proxy thing or is something I can set in Tomcat? Is there something that wouldn't require the overhead of reflecting upon every single request at the Java level? Thanks. neal -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Log Error
I have upgraded the JDK to 1.4.1 and it is still happening. -Original Message- From: Collins, Jim Sent: 17 January 2003 10:04 To: 'Tomcat Users List' Subject: Log Error Hi, I am using Tomcat4.1.10 and JDK1.4.0 and I have started to get the following error message after which Tomcat crashes. org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log FactoryImpl.java:530) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Log FactoryImpl.java:285) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:401) at org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandl er.java:97) at org.apache.tomcat.util.log.Log.log(Log.java:198) at org.apache.tomcat.util.log.Log.log(Log.java:192) at org.apache.tomcat.util.log.Log.log(Log.java:174) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:536) at java.lang.Thread.run(Thread.java:536) Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct or(LogFactoryImpl.java:415) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log FactoryImpl.java:523) ... 8 more Caused by: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct or(LogFactoryImpl.java:411) ... 9 more I have not changed anything to the configuration and it was working fine in the past I have just started to notice this in the last week or so. If anyone has any ideas what I can do to resolve this I would appreciate it. Thanks Jim. PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Require a secure connection
There's also a transport-guarantee element for web.xml that's supposed to be handy for doing this declaratively. Mike. - Original Message - From: Andy Eastham [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 10:29 PM Subject: RE: Require a secure connection try: if (!request.isSecure()) { // abort code here } You can put this in a superclass of all your secure servlets if you like. Andy -Original Message- From: neal [mailto:[EMAIL PROTECTED]] Sent: 16 January 2003 22:09 To: Tomcat Users List Subject: Require a secure connection Does anyone know how to *require* that a page be accessed only via a secure connection? For instance, I *can* request a secure connection to a page by going to https://; and the url ... but how do I prevent a user from going to http://; to request that same page? Would this be a proxy thing or is something I can set in Tomcat? Is there something that wouldn't require the overhead of reflecting upon every single request at the Java level? Thanks. neal -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Mod_jk apache
Hi, I just upgraded my connector from webapp to jk since almost everyone is telling that webapp will die soon. But after I installed all the components for mod_jk, my apache seems not talking to tomcat anymore. Every time I browse to a jsp page, it will said 404 error , and I also found that the jsp was served under port 16080, but I remember I didn't configure apache to do that. If I run tomcat from port 8080, it will function well, same goes to apache, so I guess they are ok by their own, but not together. Anyway, I attached all the logs that I can find in my machine, the mod_jk.log was empty so I guess the connector was never been triggered at all. Hope somebody can give me a big me on this. Thanks in advance. Wai I running on :- OS X 10.1.4 Apache 1.3.26 Tomcat 4.0.6 with mod_jk catalina_log :- == = 2003-01-17 09:12:30 HttpProcessor[8080][4] Starting background thread 2003-01-17 09:41:12 HttpConnector Opening server socket on all host IP addresses 2003-01-17 09:41:19 HttpConnector[8080] Starting background thread 2003-01-17 09:41:20 HttpProcessor[8080][0] Starting background thread 2003-01-17 09:41:20 HttpProcessor[8080][1] Starting background thread 2003-01-17 09:41:20 HttpProcessor[8080][2] Starting background thread 2003-01-17 09:41:20 HttpProcessor[8080][3] Starting background thread 2003-01-17 09:41:20 HttpProcessor[8080][4] Starting background thread 2003-01-17 09:41:20 Ajp13Connector[8009] Opening server socket on all host IP addresses 2003-01-17 09:41:20 Ajp13Connector[8009] Starting background thread 2003-01-17 09:41:20 Ajp13Connector[8009] accepting socket... 2003-01-17 09:41:20 Ajp13Processor[8009][0] Starting background thread 2003-01-17 09:41:20 Ajp13Processor[8009][0] Background thread has been started 2003-01-17 09:41:20 Ajp13Connector[8009] added processor to available processors, available=0 2003-01-17 09:41:20 Ajp13Processor[8009][1] Starting background thread 2003-01-17 09:41:20 Ajp13Processor[8009][0] waiting for next socket to be assigned... 2003-01-17 09:41:20 Ajp13Processor[8009][1] Background thread has been started 2003-01-17 09:41:20 Ajp13Connector[8009] added processor to available processors, available=1 2003-01-17 09:41:20 Ajp13Processor[8009][2] Starting background thread 2003-01-17 09:41:20 Ajp13Processor[8009][1] waiting for next socket to be assigned... 2003-01-17 09:41:20 Ajp13Processor[8009][2] Background thread has been started 2003-01-17 09:41:20 Ajp13Connector[8009] added processor to available processors, available=2 2003-01-17 09:41:20 Ajp13Processor[8009][2] waiting for next socket to be assigned... 2003-01-17 09:41:20 Ajp13Processor[8009][3] Starting background thread 2003-01-17 09:41:20 Ajp13Processor[8009][3] Background thread has been started 2003-01-17 09:41:20 Ajp13Connector[8009] added processor to available processors, available=3 2003-01-17 09:41:20 Ajp13Processor[8009][4] Starting background thread 2003-01-17 09:41:20 Ajp13Processor[8009][3] waiting for next socket to be assigned... 2003-01-17 09:41:20 Ajp13Processor[8009][4] Background thread has been started 2003-01-17 09:41:20 Ajp13Connector[8009] added processor to available processors, available=4 2003-01-17 09:41:20 Ajp13Processor[8009][4] waiting for next socket to be assigned... 2003-01-17 09:42:20 Ajp13Connector[8009] active threads=6 2003-01-17 09:43:20 Ajp13Connector[8009] active threads=6 2003-01-17 09:44:20 Ajp13Connector[8009] active threads=6 2003-01-17 09:45:20 Ajp13Connector[8009] active threads=6 2003-01-17 09:46:20 Ajp13Connector[8009] active threads=6 2003-01-17 09:47:20 Ajp13Connector[8009] active threads=6 error_log :- [Fri Jan 17 09:38:28 2003] [notice] Apache/1.3.26 (Darwin) configured -- resuming normal operations [Fri Jan 17 09:38:28 2003] [notice] Accept mutex: flock (Default: flock) [Fri Jan 17 09:41:53 2003] [notice] SIGHUP received. Attempting to restart [Fri Jan 17 09:41:53 2003] [warn] module mod_hfs_apple.c is already added, skipping [Fri Jan 17 09:41:53 2003] [warn] module mod_redirectacgi_apple.c is already added, skipping [Fri Jan 17 09:41:54 2003] [error] (2)No such file or directory: Error while opening the workers, jk will not work [Fri Jan 17 09:41:54 2003] [notice] Apache/1.3.26 (Darwin) configured -- resuming normal operations [Fri Jan 17 09:41:54 2003] [notice] Accept mutex: flock (Default: flock) [Fri Jan 17 09:42:15 2003] [error] [client 192.168.1.9] File does not exist: /Library/WebServer/Documents/wai/hello.jsp [Fri Jan 17 09:42:25 2003] [error] [client 192.168.1.9] File does not exist: /Library/WebServer/Documents/manager [Fri Jan 17 09:43:18 2003] [error] [client 192.168.1.9] File does not exist: /Library/WebServer/Documents/examples/jsp/index.html catalina.out :- == = Starting service Tomcat-Standalone Apache Tomcat/4.0.6 Starting service Tomcat-Apache
RE: Cannot run JSPs with Tomcat 4.0.6
Check in the lib directory... is there a jar file jasper-runtime.jar? If so, try putting this in your classpath as well as the jasper-compiler.jar file. HTH Denise -Original Message- From: Al Cam To: [EMAIL PROTECTED] Sent: 1/16/2003 10:33 AM Subject: RE: Cannot run JSPs with Tomcat 4.0.6 I did so, but it's the same. Now, I've been looking inside the jasper-compiler.jar, and cannot find the JspRuntimeContext.class Is there some other version of jasper? or the problem is other stuff? From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: Cannot run JSPs with Tomcat 4.0.6 Date: Thu, 16 Jan 2003 09:54:33 -0500 Try putting the JAR in $CATALINA_HOME/common/lib, it might even be there already. Tomcat doesn't do much with CLASSPATH. John -Original Message- From: Al Cam [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 9:41 AM To: [EMAIL PROTECTED] Subject: Cannot run JSPs with Tomcat 4.0.6 Hi everyone! I installed the Tomcat 4.0.6 on my Unix Server, with J2SE 1.3.0. My servlets works fine (with JDBC connection). But with JSPs the server sends me the error shown lines below. I have the jasper_compiler.jar on my CLASSPATH, but that doesn't work. Any ideas? == javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardW rapper.java, Compiled Code) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrap per.java, Compiled Code) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java, Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, Compiled Code) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java, Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, Compiled Code) at org.apache.catalina.core.StandardContext.invoke(StandardContex t.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java, Compiled Code) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java, Compiled Code) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java, Compiled Code) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java, Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, Compiled Code) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEn gineValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java, Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, Compiled Code) at org.apache.catalina.connector.http.HttpProcessor.process(HttpP rocessor.java, Compiled Code) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProce ssor.java:1125) at java.lang.Thread.run(Thread.java:484) root cause java.lang.NoClassDefFoundError: org/apache/jasper/compiler/JspRuntimeContext at org.apache.jasper.servlet.JspServlet.init(JspServlet.java, Compiled Code) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardW rapper.java, Compiled Code) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrap per.java, Compiled Code) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java, Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, Compiled
RE: Servlet channing
Raynir, You might want to look at the Cocoon pipeline, based upon what you just described. ref: http://xml.apache.org/cocoon --- Noel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Jk2 application questions
sorry, Kemp Randy-W18971 [EMAIL PROTECTED] 01/16/2003 05:52 AM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Jk2 application questions Do you mean in the Tomcat docs (concerning the Redhat configuration)? If now, then which website? -Original Message- From: Robert L Sowders [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 5:27 PM To: Tomcat Users List Subject: Re: Jk2 application questions Try this from Umberto. Pay particular attention to the Tomcat and JK2 and Apache2 configs. Even though it was written for RedHat it works for windows too. The concepts are the same. rls Kemp Randy-W18971 [EMAIL PROTECTED] 01/15/2003 05:59 AM Please respond to Tomcat Users List To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] cc: Subject:Jk2 application questions OK. I have the 2x and 4x versions of Apache and Tomcat, along with the mod_jk2 connector, set up on Solaris and Windows 2000. Here is what I am having problems with. 1. Context path. If I set up an application context path for pdlens in Tomcat, I can go http://localhost:8080/examples and http:/localhost:8080/pdlens. Now I can also get http://localhost/examples but not http://localhost/pdlens. What could be missing? 2. Virtual hosts. If I have a virtual host called www.test.com, I can get www.test.com from Apache, but not www.test.com/pdlens talking to Tomcat. What could be missing here? In both cases, it can't find the desired websites. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] - Apache 2.0.43 - Tomcat 4.1.12 - jk2 - virtual host HOWTO - Tue 22 Oct 2002 11:58:28 AM GMT-5 Umberto Nicoletti [unicoletti at prometeo.it] DISCLAIMER Insert usual disclaimer here. unusual disclaimer Please forget: 1) my English 2) typos 3) names of hosts and installation directories Also be warned that this is a beta version I just wrote as a reminder. if you encounter errors or discrepancies between what it is written here and what happens to you following this howto (or just want to point out something more clearly) please email me a corrected version of this HOWTO. /unusual disclaimer SCENARIO RedHat Linux 7.2 Latest 1.4.x Sun JDK: #java -version java version 1.4.1_01 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01) Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode) Tomcat 4.1.12 binary Apache 2.0.43 built from source [./configure -prefix=/usr/local/apache2.0.43 --sysconfdir=/etc/apache --localstatedir=/var --disable-dav --enable-so --enable-proxy --enable-proxy-connect --enable-proxy-http] jk2 connector binary from jakarta.apache.org REQUIREMENTS Deploy three (in my case) web applications under three different virtual hosts, making the default vhost respond to any name and to the bare IP address. GETTING STARTED Download all the packages listed above, get a mug of hot coffee (or beer if you're German), do what I say here and you'll be just fine. INSTALLING JDK Note: download the jdk, not just the jre! Uncompress the jdk somewhere in the filesystem: I chose /usr/local/: [root@ARLIN72AGE279 apache]# ll /usr/local/ total 48 lrwxrwxrwx1 root root 13 Oct 18 17:20 apache - apache2.0.43/ drwxr-xr-x 15 root root 4096 Oct 21 16:40 apache2.0.43 drwxr-xr-x2 root root 4096 Feb 6 1996 bin drwxr-xr-x2 root root 4096 Feb 6 1996 doc drwxr-xr-x2 root root 4096 Feb 6 1996 etc drwxr-xr-x2 root root 4096 Feb 6 1996 games drwxr-xr-x2 root root 4096 Jun 22 2001 include drwxr-xr-x9 root root 4096 Oct 18 16:37 j2sdk1.4.1_01 lrwxrwxrwx1 root root 14 Oct 18 16:38 java - j2sdk1.4.1_01/ drwxr-xr-x2 root root 4096 Feb 6 1996 lib drwxr-xr-x2 root root 4096 Jun 22 2001 libexec drwxr-xr-x2 root root 4096 Feb 6 1996 sbin drwxr-xr-x4 root root 4096 Oct 18 13:07 share drwxr-xr-x2 root root 4096 Feb 6 1996 src make a symlink named java to j2sdk1.4.1_01/ so that you can easily switch back and forth between different jvms. We will use the same trick for apache and tomcat afterwards. Now tell your bash shell where to find java binaries: create a file named java.sh in /etc/profile.d with the following content: [root@ARLIN72AGE279 apache]# cat /etc/profile.d/java.sh # set java environment export
RE: Servlet channing
There is even some talk of switching struts over from a servlet to a filter in a later release. Intersting ... that could be very interesting ... --- Noel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.1.18
I'm currently having a small problem with Tomcat 4.1.18, which didn't exist in Tomcat 4.0.4. The problem can be illustrated with a one liner JSP: %@ page contentType=text/html % This one line spits out an HTTP header of Content-Type: text/html on Tomcat 4.0.4 However, under 4.1.18, the following is spit out: Content-Type: text/html;charset=ISO-8859-1 I need the former behaviour because these pages need to handle both GB2312-80 and ISO-8859-1. As such, I cannot have the character set explicitly set, and it also cannot be dynamically generated. The locale information is determined when the head/head information is output, using a taglib. By that time, the page directive has already been issued. Also, the contentType field in the page directive cannot be dynamic from what I've been able to determine. (Tomcat 3.xx) Has this behaviour changed in 4.0.x/4.1.x? Thanks. Daniel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Good directions here...
ESRI never has stayed very up to date. That's what I get for buying into their ArcIMS schemes. Robert Keddie [EMAIL PROTECTED] 01/16/2003 07:26 AM Please respond to Tomcat Users List To: [EMAIL PROTECTED] cc: Subject:Good directions here... http://support.esri.com/search/KbDocument.asp?dbid=22586 For installing 4.0.5 on IIS 5.0 Robert Keddie web development Marion County, FL -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: new web application - inconsistent resource not found
Thank you very much for your suggestions and help. I created a simple test servlet and added: servlet-mapping servlet-nameinvoker/servlet-name url-pattern/servlet/*/url-pattern /servlet-mapping to the web.xml and was able to call the servlet with localhost:8080/directoryname/servlet/servletname I've been following a book which suggesting that I just add the following to the web.xml for the servlet: (assume directory structure: webapps\directoryname\WEB-INF\classes\Something webapps\directoryname\WEB-INF\web.xml ) servlet servlet-nameSomething/servlet-name servlet-classSomething/servlet-class /servlet and then suggested that I could access the class through the following: http://localhost:8080/directoryname/servlet/Something but this didn't work for me until I added the servlet mapping above. so is the book wrong and I should always add a mapping or am I missing something else? thanks again. --- Wendy Smoak [EMAIL PROTECTED] wrote: Steven wrote: What I have is a couple of jsp files and a couple of servlets. I put them in the examples directory, the jsp in the top level, and the servlets in the web-inf/classes directory. I do not edit the web.xml in this directory, and the application works. WEB-INF should be capitalized. Might not matter on Windows, though... web.xml goes directly in WEB-INF, not in WEB-INF/classes. What is the URL you are using to access your servlet when it works? When it doesn't? The examples webapp has the invoker servlet enabled, so you can get to servlets with the .../examples/servlet/MyServlet URL without changing web.xml. That may not be true elsewhere. servlet servlet-nameAddToSC/servlet-name servlet-classcart.AddToSCServlet/servlet-class /servlet Is this servlet in the /WEB-INF/classes/cart directory, and does it have package cart; in the code? If not, save yourself some future trouble and start packaging your code now, even if you just dump everything in package mystuff; for now. Where's the servlet-mapping tag? The fact that things do work in examples probably means you're just missing a few details. If you're still having trouble, post a directory listing of what's where, and your web.xml file. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: mod_jk apache2 tomcat4.1.8
Sounds like a problem with DNS. How long does it take to da a nslookup from the server? rls Bill [EMAIL PROTECTED] 01/16/2003 03:01 AM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: mod_jk apache2 tomcat4.1.8 Well I seem to have gotten this to work...I think. Now the page renders but takes FOREVER to do soit took the same webapp 330.98s to render using a lan connection while it takes less than 2s to render the live version over the Internet. I knew using mod_jk would be slower, but is it really that slow? (I do understand there are other factors involved but the boxes are running almost identical configurations and the slower box has twice the memory of the other. The difference is just too staggering.) I thought I saw someone mention a performance tuning guide for tomcat being available but a web search didnt find it. If someone could point me to that resource or if you have an idea why this app has suddenly become ridiculously slow, I'd appreciate the help. thx -b -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: error starting tomcat
Have you an XML error in your web.xml ? a Tag chistophe CLN Hi, I just installed Tomcat 4.1.18 on my Window 2000. When I start to run the Tomcat, I got the following error: Jan 16, 2003 5:13:09 PM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 233 column 45: Element type TR must be declared. org.xml.sax.SAXParseException: Element type TR must be declared. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Er rorHandlerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper. java:173) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter. java:371) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter. java:305) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDV alidator.java:1833) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidat or.java:724) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen t(XMLDocumentFragmentScannerImpl.java:759) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM LDocumentFragmentScannerImpl.java:329) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav a:525) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav a:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j ava:1175) at org.apache.commons.digester.Digester.parse(Digester.java:1514) at org.apache.catalina.startup.ContextConfig.tldScanStream(ContextConfig .java:977) at org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig.ja va:1006) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java: 870) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:64 7) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi g.java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3 567) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80 7) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep loyer.java:257) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j ava:569) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411 ) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java :368) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347 ) at org.apache.catalina.core.StandardService.start(StandardService.java:4 97) at org.apache.catalina.core.StandardServer.start(StandardServer.java:218 9) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Jan 16, 2003 5:13:09 PM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 234 column 16: The content of element type info mu st match null. org.xml.sax.SAXParseException: The content of element type info must match nu ll. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Er
Stream closed
I'm getting these kind of error messages : java.io.IOException: Stream closed at org.apache.jasper.runtime.BodyContentImpl.ensureOpen(BodyContentImpl.java:95) at org.apache.jasper.runtime.BodyContentImpl.write(BodyContentImpl.java:182) at org.apache.jasper.runtime.BodyContentImpl.write(BodyContentImpl.java:195) Does that mean tomcat cannot write to the HttpResponse ? My setup is tomcat 4.1.18 on a winXP system (no apache/IIS). What should I be looking at fixing ? Thanx -reynir -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help With Tomcat Database Connection Configuration
Hi, Your server.xml looks fine. If you specify the resource in server.xml there is no need to put it in web.xml (in fact this will more than likely cause problems). You should reference the datasource in your app as follows: ctx = new InitialContext(); Context envCtx = (Context) ctx.lookup(java:/comp/env/); DataSource ds = (DataSource) envCtx.lookup(/juddidb); The class.forName() is used when you are not using DBCP but directly connecting. Make sure that the Oracle classes12.zip is renamed to classes12.jar and in CATALINA_HOME/common/lib HTH Eric -Original Message- From: Ravi Rangaswamy [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 16. Jänner 2003 21:38 To: TomcatUserList Subject: Help With Tomcat Database Connection Configuration Hi, I am running a UDDI registry (CATALINA_HOME/web-apps/juddi) from inside Tomcat. Now I want to run the registry with Oracle. So, I created a JDBC datasource in Tomcat. To do this, I followed these steps. 1. I added the segment in CATALINA_HOME/conf/server.xml inside the context element. !-- Orcale JDBC datasource for jUDDI -- Resource name=jdbc/juddidb auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/juddidb parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@localhost:1521:orcl/value /parameter parameter nameusername/name valuejuddiUser/value /parameter parameter namepassword/name valuejuddiUser/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value5000/value /parameter /ResourceParams !-- End of Orcale JDBC datasource for jUDDI -- 2. I added this segment in CATALINA_HOME/web-apps/juddi/WEB_INF/web.xml inside the web-app element. !-- Orcale JDBC datasource for jUDDI -- resource-ref descriptionOracle Datasource/description res-ref-namejdbc/juddidb/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref When I start Tomcat and invoke a action on jUDDI, I get the exception Cannot load JDBC driver class 'null' java.lang.NullPointerException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:523) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:312) So, to further debug, I added the segment from Step 2 to CATALINA_HOME/web-apps/examples/WEB_INF/web.xml and created a jsp (shown at the end of the mail) to see if it was picking up the configuration parameters. When this jsp is executed, I get the following displayed with the parameters as specified in server.xml. DriverClassName: oracle.jdbc.driver.OracleDriver Url: jdbc:oracle:thin:@localhost:1521:orcl Username: juddiUser Password: juddiUser MaxActive: 20 MaxWait: 5000 NumActive: 3 numIdle: 0 If I place the same jsp under CATALINA_HOME/web-apps/juddi/jsp/. and run the jsp, I get nulls for each param DriverClassName: null Url: null Username: null Password: null MaxActive: 8 MaxWait: -1 NumActive: 0 numIdle: 0 Can anyone tell me what I am doing wrong and why these two applications (examples and the uddi registry) behave differently. Thanks, Ravi. Test jsp %@ page language=java import=java.sql.*,javax.naming.InitialContext,javax.naming.Context,javax.sql.DataSource,org.apache.commons.dbcp.BasicDataSource % body bgcolor=white font color=red % Connection conn = null; try { InitialContext initialContext = new InitialContext(); Context context = (Context)initialContext.lookup(java:comp/env); DataSource ds = (DataSource)context.lookup(jdbc/juddidb); out.print( DriverClassName: + ((BasicDataSource) ds).getDriverClassName()); out.print( Url: + ((BasicDataSource) ds).getUrl()); out.print( Username: + ((BasicDataSource) ds).getUsername()); out.print( Password: + ((BasicDataSource) ds).getPassword()); out.print( MaxActive: + ((BasicDataSource) ds).getMaxActive()); out.print( MaxWait: + ((BasicDataSource) ds).getMaxWait()); out.print( NumActive: + ((BasicDataSource) ds).getNumActive()); out.print( numIdle: + ((BasicDataSource) ds).getNumIdle()); } catch (Exception e) { e.printStackTrace(); } % - Do you Yahoo!? Yahoo! Mail
RE: error starting tomcat
What file did you edit when you did the install? If you didn't edit any files, one of your files is probably corrupt: SEVERE: Parse Error at line 233 column 45: Element type TR must be declared. SEVERE: Parse Error at line 234 column 16: Probably server.xml or web.xml has a syntax error in it. It almost looks like someone tried to put HTML into one of the XML files. John -Original Message- From: Dongmei Zuo [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 5:15 PM To: [EMAIL PROTECTED] Subject: error starting tomcat Hi, I just installed Tomcat 4.1.18 on my Window 2000. When I start to run the Tomcat, I got the following error: Jan 16, 2003 5:13:09 PM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 233 column 45: Element type TR must be declared. org.xml.sax.SAXParseException: Element type TR must be declared. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Er rorHandlerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper. java:173) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter. java:371) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter. java:305) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDV alidator.java:1833) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidat or.java:724) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen t(XMLDocumentFragmentScannerImpl.java:759) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM LDocumentFragmentScannerImpl.java:329) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav a:525) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav a:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j ava:1175) at org.apache.commons.digester.Digester.parse(Digester.java:1514) at org.apache.catalina.startup.ContextConfig.tldScanStream(ContextConfig .java:977) at org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig.ja va:1006) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java: 870) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:64 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) I would really appreciate it if you could give me some help. Thanks very much! Dongmei Zuo -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.1.18 and symbolic links
Check the release notes. Symlinks are disabled by default in 4.1.12 and up for security reasons. You will need to specify a Resource in server.xml that calls FileDirContext with allowLinking set to true: Resources className=org.apache.naming.resources.FileDirContext allowLinking=true docBase= / Search the archives for more info, this comes up frequently. John -Original Message- From: guykaisin [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 7:00 AM To: [EMAIL PROTECTED] Subject: Tomcat 4.1.18 and symbolic links Hi, I am currently using TC 4.1.18. But I'd like to use symlink inside my webapp. I works with TC 4.0.3, but no more with the last version 4.1.18. Why? For exemple, I have the webapp 'test', which contains a subdirectory docs. This docs directory contains a symlink to /usr/webapps/pdf. So my webapp structure is: webapp/test |_docs/pdf - /usr/webapps/pdf If I try to access any pdf document in the directory /webapp/test/docs/pdf with an url like http://myhost/test/docs/pdf/test.pdf, it doesn't work. I get the error message: HTTP Status 404 The requested resource is not available the symlink has been created with the following command: ln -s /usr/webapps/pdf Can someone help me? Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
trouble with bean returning boolean
Hello all, I have trouble getting a very simple bean (o'reilly book example) to return boolean values. I call it with: c: choose c:when test=${foo.valid} ... and the validation code in the bean looks like: public boolean isValid(){ return true; } This generates the following error message: org.apache.jasper.JasperException: javax.servlet.jsp.JspException: An error occurred while evaluating custom action attribute test with value ${foo.valid}: Unable to find a value for valid in object of class foobar.FooBarBean using operator . (null) Everything works fine with method getName which returns a String that I can output with c:out. anyone? thanks /Petter Karlström -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Difficulties with Virtual Host in the Apache + Tomcat
Try JkMount /*.jsp ajp13 instead of JkMount /web/ged/*.jsp ajp13 for www.ged.ufu.br. Also, you can 4 (or more) virtual hosts in Tomcat, just setup four Host elements, each with the appropriate name and/or alias. John -Original Message- From: Sebastião Carlos Santos [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 7:59 AM To: [EMAIL PROTECTED] Subject: Difficulties with Virtual Host in the Apache + Tomcat There are some days installed a servant web with Apache 1.3.27 and Tomcat 4.1.18 under Suse Linux Professional 7.2, however I am facing problems in the configuration and integration of the virtual hosts of the Apache for the tomcat. In the end of this e-mail it is some fragments of the configuration files that I am using, as for instance http.conf, workers.properties and server.xml When I try to access the address http://www.ged.ufu.br that has the file index.jsp, that I put soon lower, I receive the following text % out.println ();% in the screen of the browser, what shows that the things are not working how they would owe. What am missing? Another question would be: I will have four virtual hosts in the Apache, logically I will have to have the same ones four configured in Tomcat. Is it possible? I thank the help in advance. File index.jsp root@ged2:/web/ged cat index.jsp %out.println();% // * Fragment of the file httpd.conf (Apache 1.3.27) IfModule !mod_jk.c LoadModule jk_module libexec/mod_jk.so /IfModule Include /usr/local/jakarta-tomcat-4.1.18/conf/auto/mod_jk.conf AddModule mod_jk.c ServerName ged2.ufu.br DocumentRoot /web Directory /web . . . /Directory IfModule mod_dir.c DirectoryIndex index.html index.htm index.jsp /IfModule NameVirtualHost 200.131.195.5 VirtualHost 200.131.195.5:80 ServerAdmin [EMAIL PROTECTED] DocumentRoot /web/ged/ ServerName ged2.ufu.br ServerAlias www.ged.ufu.br ErrorLog /web/ged/logs/apache_error_log CustomLog /web/ged/logs/apache_access_log common JkMount /web/ged/*.jsp ajp13 /VirtualHost IfModule mod_jk.c JkWorkersFile /usr/local/jakarta-tomcat-4.1.18/conf/jk/workers.properties JkLogFile /usr/local/jakarta-tomcat-4.1.18/logs/mod_jk.log JkLogLevel debug JkMount /examples ajp13 JkMount /examples/* ajp13 /IfModule // File workers.properties workers.CATALINA_HOME=/usr/local/jakarta-tomcat-4.1.18 workers.java_home=$(JAVA_HOME) ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13 worker.inprocess.type=jni worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$ (ps)i386$(ps)server$(ps)libjvm.so worker.inprocess.stdout=$(workers.CATALINA_HOME)$(ps)logs$(ps) inprocess.stdout worker.inprocess.stderr=$(workers.CATALINA_HOME)$(ps)logs$(ps) inprocess.stderr // Fragment of the file server.xml (Tomcat 4.1.18) Host name=ged2.ufu.br debug=0 appBase=/web/ged unpackWARs=true autoDeploy=true Aliaswww.ged.ufu.br/Alias Logger className=org.apache.catalina.logger.FileLogger directory=/web/ged/logs prefix=tomcat_ged. suffix=.log timestamp=true/ Context path=/web/ged docBase=ged debug=0 reloadable=true crossContext=true/ /Host // Directories of the application Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda8 3261056 32896 3228160 2% /web root@ged2:/web/servidor tree /web/ged/ /web/ged/ |-- index.jsp |-- logs | |-- apache_access_log | |-- apache_error_log | `-- tomcat_ged.2003-01-17.log `-- test `-- index.jsp 2 directories, 5 files Sebastião Carlos Santos Oracle Database Administrator Universidade Federal de Uberlândia - UFU Gratificação de Estímulo à Docência - GED -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: org.apache.naming.factory.BeanFactory bugs (and fixes)
Will do. Rick, Thanks for doing the investigation and patches for these problems! Could you do me a favor, and post this as a bug report: http://nagoya.apache.org/bugzilla/ and add the patches as attachments? That way, it will stay in front of the developers until it is dealt with. Things in mailing lists sometimes get lost in the volume. Thanks! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Difficulties with Virtual Host in the Apache + Tomcat
Sebastiao - A couple of points: - you only need the same four hosts configured in Tomcat is you want to have different docBase's or different explicitly defined contexts (or other components) - I would certainly try to make index.jsp produce valid HTML for your tests. You also might want to have a WEB-INF folder w/ a web.xml in /web/ged. - I'm confused by your httpd.conf - first, you don't need the Include directive if you have all the Jk directives manually defined in httpd.conf. Second, your IfModule mod_jk.c block should come before the virtual host block. However, I can't say that either of these two issues are the root cause of your problem - everything else looks good. - Finally, can you point directly to Tomcat and get index.jsp to work right? Lajos Sebastião Carlos Santos wrote: There are some days installed a servant web with Apache 1.3.27 and Tomcat 4.1.18 under Suse Linux Professional 7.2, however I am facing problems in the configuration and integration of the virtual hosts of the Apache for the tomcat. In the end of this e-mail it is some fragments of the configuration files that I am using, as for instance http.conf, workers.properties and server.xml When I try to access the address http://www.ged.ufu.br that has the file index.jsp, that I put soon lower, I receive the following text % out.println ();% in the screen of the browser, what shows that the things are not working how they would owe. What am missing? Another question would be: I will have four virtual hosts in the Apache, logically I will have to have the same ones four configured in Tomcat. Is it possible? I thank the help in advance. File index.jsp root@ged2:/web/ged cat index.jsp %out.println();% //* Fragment of the file httpd.conf (Apache 1.3.27) IfModule !mod_jk.c LoadModule jk_module libexec/mod_jk.so /IfModule Include /usr/local/jakarta-tomcat-4.1.18/conf/auto/mod_jk.conf AddModule mod_jk.c ServerName ged2.ufu.br DocumentRoot /web Directory /web . . . /Directory IfModule mod_dir.c DirectoryIndex index.html index.htm index.jsp /IfModule NameVirtualHost 200.131.195.5 VirtualHost 200.131.195.5:80 ServerAdmin [EMAIL PROTECTED] DocumentRoot /web/ged/ ServerName ged2.ufu.br ServerAlias www.ged.ufu.br ErrorLog /web/ged/logs/apache_error_log CustomLog /web/ged/logs/apache_access_log common JkMount /web/ged/*.jsp ajp13 /VirtualHost IfModule mod_jk.c JkWorkersFile /usr/local/jakarta-tomcat-4.1.18/conf/jk/workers.properties JkLogFile /usr/local/jakarta-tomcat-4.1.18/logs/mod_jk.log JkLogLevel debug JkMount /examples ajp13 JkMount /examples/* ajp13 /IfModule // File workers.properties workers.CATALINA_HOME=/usr/local/jakarta-tomcat-4.1.18 workers.java_home=$(JAVA_HOME) ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13 worker.inprocess.type=jni worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)server$(ps)libjvm.so worker.inprocess.stdout=$(workers.CATALINA_HOME)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.CATALINA_HOME)$(ps)logs$(ps)inprocess.stderr // Fragment of the file server.xml (Tomcat 4.1.18) Host name=ged2.ufu.br debug=0 appBase=/web/ged unpackWARs=true autoDeploy=true Aliaswww.ged.ufu.br/Alias Logger className=org.apache.catalina.logger.FileLogger directory=/web/ged/logs prefix=tomcat_ged. suffix=.log timestamp=true/ Context path=/web/ged docBase=ged debug=0 reloadable=true crossContext=true/ /Host // Directories of the application Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda8 3261056 32896 3228160 2% /web root@ged2:/web/servidor tree /web/ged/ /web/ged/ |-- index.jsp |-- logs | |-- apache_access_log | |-- apache_error_log | `-- tomcat_ged.2003-01-17.log `-- test `-- index.jsp 2 directories, 5 files Sebastião Carlos Santos Oracle Database Administrator Universidade Federal de Uberlândia - UFU Gratificação de Estímulo à Docência - GED -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL -- To unsubscribe, e-mail:
SSL problem
Hi All, I tried to create a keystore using the instructions for Tomcat in a UNIX environment: keytool -genkey -alias tomcat -keyalg RSA I changed the password from changeit. I updated the SSL connector in server.xml adding: keystorePass=mynewpassword After restarting the server catalina.out contained exceptions stating that the keystore password was incorrect or that the keystore file was tampered with. After adding the keystoreFile attribute to the SSL connector and trying other combinations I eventually gave up and deleted the keystore file intending to redo the entire keytool process. I've been unable to redo the keytool command: keytool -genkey -alias tomcat -keyalg RSA The original password changeit doesn't work, and neither does the new one I used. I keep receiving the following error: keytool error: KeyPairGenerator not available What can I do to solve this problem? Any help is appreciated. Thanks, Michael -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Repost: Stream closed
For somereason the first time I sent this email it did not seem to get into the mailinglist. I'm getting these kind of error messages : java.io.IOException: Stream closed at org.apache.jasper.runtime.BodyContentImpl.ensureOpen(BodyContentImpl.java:95) at org.apache.jasper.runtime.BodyContentImpl.write(BodyContentImpl.java:182) at org.apache.jasper.runtime.BodyContentImpl.write(BodyContentImpl.java:195) Does that mean tomcat cannot write to the HttpResponse ? My setup is tomcat 4.1.18 on a winXP system (no apache/IIS). What should I be looking at fixing ? Thanx -reynir -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tool for HTTP Request Stress Test
Jmeter is one from jakarta, (jakarta.apache.org/jmeter) Microsoft has a WebApplication stresstool that is quite good too (one of the best apps I've seen from M$). Hope it helps -reynir -Original Message- From: randie ursal [mailto:[EMAIL PROTECTED]] Sent: 17. janúar 2003 02:37 To: A mailing list about TOMCAT; A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. Subject: Tool for HTTP Request Stress Test Hi, can anyone suggest an HTTP Stress Test tool. coz i wanna stress test my web application which is deployed on Tomcat. thanks. -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problem with JSTL on W2k
Holger wrote: For this issue tomcat needs a temporary folder. This seems to be c:\winnt in the case of a service. The temp dir is defined by the java property java.io.tmpdir. Holger, here's post that might be of use: On January 15, 2003, Jake wrote: Use what the servlet spec provides for you... String tempdir = +context.getAttribute(javax.servlet.context.tempdir); That will give you the path to the temp directory provide for your application which, if the server claims to support the servlet spec, *will* exist. This will make it so you can read and write files on any system without worrying about any platform specifics (theoretically). HTH, -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management
Re: Tool for HTTP Request Stress Test
randie ursal wrote: Hi, can anyone suggest an HTTP Stress Test tool. coz i wanna stress test my web application which is deployed on Tomcat. thanks. Try jmeter -- http://jakarta.apache.org/jmeter/index.html and look at http://jakarta.apache.org/jmeter/usermanual/boss.html for references to other tools. -Phil -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Newbie cookie question
All, Is there any way to code a cookie so that all the webapps on the same Tomcat server can receive it? I also need it to disappear when the browser is shut. Thanks, Joel This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[ot] Re: Tool for HTTP Request Stress Test
3 free ways ... Apache ab (http://httpd.apache.org/docs/programs/ab.html) Jakarta JMeter (http://jakarta.apache.org/jmeter/index.html) Seige (http://www.joedog.org/siege/index.shtml) -Tim randie ursal wrote: Hi, can anyone suggest an HTTP Stress Test tool. coz i wanna stress test my web application which is deployed on Tomcat. thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: What about the Context tag?
Howdy, As always, there's no right or wrong. There are multiple options depending on what you're trying to do. Unless you want some non-default context property that must be put in server.xml, don't touch server.xml. I like the KISS (Keep It Simple..) principle, so this usually works for me. That means you don't need an explicit context tag for your webapp in server.xml. For more details, see http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html If you do need non-default things for your context, such as JNDI reference declarations, then you'll need a context tag in server.xml most likely. BTW: be careful trusting these books, as they tend to be out of date ;( Yoav Shapira Millennium ChemInformatics -Original Message- From: Steve R Burrus [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 1:49 AM To: [EMAIL PROTECTED] Subject: What about the Context tag? Hello there, newbie finds himself in some need of help with using the Context tag!! I happen to have a server-side Java programming book that tells the reader to edit this tag in the server.xml file with the specific context path for the servlet to be seen in the browser, HOWEVER I have noticed that some in this group have said that this whole file should just be left alone, that Tomcat could somehow magically find the correct path for the servlet! Who is right about this anyway?! __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tool for HTTP Request Stress Test
Howdy, Search the list archives. Yoav Shapira Millennium ChemInformatics -Original Message- From: randie ursal [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 9:37 PM To: A mailing list about TOMCAT; A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. Subject: Tool for HTTP Request Stress Test Hi, can anyone suggest an HTTP Stress Test tool. coz i wanna stress test my web application which is deployed on Tomcat. thanks. -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Stream closed
Howdy, Whoa, very strange. Can you reproduce this reliably? Does it happen when the user clicks on a web page (a JSP it appears) and closes the browser before the JSP is done outputting? Yoav Shapira Millennium ChemInformatics -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 4:41 AM To: Tomcat Users List Subject: Stream closed I'm getting these kind of error messages : java.io.IOException: Stream closed at org.apache.jasper.runtime.BodyContentImpl.ensureOpen(BodyContentImpl.java:9 5) at org.apache.jasper.runtime.BodyContentImpl.write(BodyContentImpl.java:182) at org.apache.jasper.runtime.BodyContentImpl.write(BodyContentImpl.java:195) Does that mean tomcat cannot write to the HttpResponse ? My setup is tomcat 4.1.18 on a winXP system (no apache/IIS). What should I be looking at fixing ? Thanx -reynir -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.1.18
Howdy, Perhaps this will shed some light. See Issue 1 at http://www.jcp.org/aboutJava/communityprocess/maintenance/jsr053/errata_ 1_2_a_20020321.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Daniel Bruce Lynes [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 11:38 PM To: Tomcat Users List Subject: Tomcat 4.1.18 I'm currently having a small problem with Tomcat 4.1.18, which didn't exist in Tomcat 4.0.4. The problem can be illustrated with a one liner JSP: %@ page contentType=text/html % This one line spits out an HTTP header of Content-Type: text/html on Tomcat 4.0.4 However, under 4.1.18, the following is spit out: Content-Type: text/html;charset=ISO-8859-1 I need the former behaviour because these pages need to handle both GB2312- 80 and ISO-8859-1. As such, I cannot have the character set explicitly set, and it also cannot be dynamically generated. The locale information is determined when the head/head information is output, using a taglib. By that time, the page directive has already been issued. Also, the contentType field in the page directive cannot be dynamic from what I've been able to determine. (Tomcat 3.xx) Has this behaviour changed in 4.0.x/4.1.x? Thanks. Daniel -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.1.18 and symbolic links
Turner, John writes: Check the release notes. Symlinks are disabled by default in 4.1.12 and up for security reasons. You will need to specify a Resource in server.xml that calls FileDirContext with allowLinking set to true: Resources className=org.apache.naming.resources.FileDirContext allowLinking=true docBase= / Search the archives for more info, this comes up frequently. I had to add caseSensitive=false to get it working on our linux servers. ..Nick -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Mod_jk apache
Where's httpd.conf? workers.properties? What JkMount statements are you using? My HOWTOs may help: http://www.johnturner.com/howto John -Original Message- From: Leong Hong Wai [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 10:46 PM To: [EMAIL PROTECTED] Subject: Mod_jk apache Hi, I just upgraded my connector from webapp to jk since almost everyone is telling that webapp will die soon. But after I installed all the components for mod_jk, my apache seems not talking to tomcat anymore. Every time I browse to a jsp page, it will said 404 error , and I also found that the jsp was served under port 16080, but I remember I didn't configure apache to do that. If I run tomcat from port 8080, it will function well, same goes to apache, so I guess they are ok by their own, but not together. Anyway, I attached all the logs that I can find in my machine, the mod_jk.log was empty so I guess the connector was never been triggered at all. Hope somebody can give me a big me on this. Thanks in advance. Wai I running on :- OS X 10.1.4 Apache 1.3.26 Tomcat 4.0.6 with mod_jk catalina_log :- == = 2003-01-17 09:12:30 HttpProcessor[8080][4] Starting background thread 2003-01-17 09:41:12 HttpConnector Opening server socket on all host IP addresses 2003-01-17 09:41:19 HttpConnector[8080] Starting background thread 2003-01-17 09:41:20 HttpProcessor[8080][0] Starting background thread 2003-01-17 09:41:20 HttpProcessor[8080][1] Starting background thread 2003-01-17 09:41:20 HttpProcessor[8080][2] Starting background thread 2003-01-17 09:41:20 HttpProcessor[8080][3] Starting background thread 2003-01-17 09:41:20 HttpProcessor[8080][4] Starting background thread 2003-01-17 09:41:20 Ajp13Connector[8009] Opening server socket on all host IP addresses 2003-01-17 09:41:20 Ajp13Connector[8009] Starting background thread 2003-01-17 09:41:20 Ajp13Connector[8009] accepting socket... 2003-01-17 09:41:20 Ajp13Processor[8009][0] Starting background thread 2003-01-17 09:41:20 Ajp13Processor[8009][0] Background thread has been started 2003-01-17 09:41:20 Ajp13Connector[8009] added processor to available processors, available=0 2003-01-17 09:41:20 Ajp13Processor[8009][1] Starting background thread 2003-01-17 09:41:20 Ajp13Processor[8009][0] waiting for next socket to be assigned... 2003-01-17 09:41:20 Ajp13Processor[8009][1] Background thread has been started 2003-01-17 09:41:20 Ajp13Connector[8009] added processor to available processors, available=1 2003-01-17 09:41:20 Ajp13Processor[8009][2] Starting background thread 2003-01-17 09:41:20 Ajp13Processor[8009][1] waiting for next socket to be assigned... 2003-01-17 09:41:20 Ajp13Processor[8009][2] Background thread has been started 2003-01-17 09:41:20 Ajp13Connector[8009] added processor to available processors, available=2 2003-01-17 09:41:20 Ajp13Processor[8009][2] waiting for next socket to be assigned... 2003-01-17 09:41:20 Ajp13Processor[8009][3] Starting background thread 2003-01-17 09:41:20 Ajp13Processor[8009][3] Background thread has been started 2003-01-17 09:41:20 Ajp13Connector[8009] added processor to available processors, available=3 2003-01-17 09:41:20 Ajp13Processor[8009][4] Starting background thread 2003-01-17 09:41:20 Ajp13Processor[8009][3] waiting for next socket to be assigned... 2003-01-17 09:41:20 Ajp13Processor[8009][4] Background thread has been started 2003-01-17 09:41:20 Ajp13Connector[8009] added processor to available processors, available=4 2003-01-17 09:41:20 Ajp13Processor[8009][4] waiting for next socket to be assigned... 2003-01-17 09:42:20 Ajp13Connector[8009] active threads=6 2003-01-17 09:43:20 Ajp13Connector[8009] active threads=6 2003-01-17 09:44:20 Ajp13Connector[8009] active threads=6 2003-01-17 09:45:20 Ajp13Connector[8009] active threads=6 2003-01-17 09:46:20 Ajp13Connector[8009] active threads=6 2003-01-17 09:47:20 Ajp13Connector[8009] active threads=6 error_log :- [Fri Jan 17 09:38:28 2003] [notice] Apache/1.3.26 (Darwin) configured -- resuming normal operations [Fri Jan 17 09:38:28 2003] [notice] Accept mutex: flock (Default: flock) [Fri Jan 17 09:41:53 2003] [notice] SIGHUP received. Attempting to restart [Fri Jan 17 09:41:53 2003] [warn] module mod_hfs_apple.c is already added, skipping [Fri Jan 17 09:41:53 2003] [warn] module mod_redirectacgi_apple.c is already added, skipping [Fri Jan 17 09:41:54 2003] [error] (2)No such file or directory: Error while opening the workers, jk will not work [Fri Jan 17 09:41:54 2003] [notice] Apache/1.3.26 (Darwin) configured -- resuming normal operations [Fri Jan 17 09:41:54 2003] [notice] Accept mutex: flock (Default: flock) [Fri Jan 17 09:42:15 2003] [error] [client 192.168.1.9] File does not exist:
RE: Tool for HTTP Request Stress Test
I have successfully used JMeter (http://jakarta.apache.org/jmeter/index.html). It takes a little while to get a test plan set up, but works pretty well. A couple of suggestions: 1. Run it from a machine with 'lots' of horsepower (memory, processor, bandwidth) as it does tend to drag the workstation down. 2. The swing component is (as usual) a hog. I would suggest creating your test plan using the GUI, then bump up the threads/iterations, save the test plan, and run the final JMeter test from the command line. I recently used JMeter to do some load testing between two Tomcat servers (one on Linux, one on W2K). I found I got better results when I ran them from a high horsepower box instead of my workstation, as my PC couldn't keep up with the threads. Just my two cents. John -Original Message- From: randie ursal [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 9:37 PM To: A mailing list about TOMCAT; A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. Subject: Tool for HTTP Request Stress Test Hi, can anyone suggest an HTTP Stress Test tool. coz i wanna stress test my web application which is deployed on Tomcat. thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tool for HTTP Request Stress Test
http://grinder.sourceforge.net http://jakarta.apache.org/jmeter/index.html John -Original Message- From: randie ursal [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 9:37 PM To: A mailing list about TOMCAT; A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. Subject: Tool for HTTP Request Stress Test Hi, can anyone suggest an HTTP Stress Test tool. coz i wanna stress test my web application which is deployed on Tomcat. thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Log Error
A quick update. I have now copied the log4J jar file to commons/lib and restarted the server so that is now uses log4J instead of the JDK1.4 logger. After a couple of hours I got this error: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja va:530) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja va:285) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:401) at org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandler.java:97) at org.apache.tomcat.util.log.Log.log(Log.java:198) at org.apache.tomcat.util.log.Log.log(Log.java:192) at org.apache.tomcat.util.log.Log.log(Log.java:174) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:536) at java.lang.Thread.run(Thread.java:536) Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI mpl.java:415) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja va:523) ... 8 more Caused by: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI mpl.java:411) ... 9 more Could anyone please give me some clue as to what I can do. I have not changed anything for some time now and prior to these errors that have just started happening I have not had to restart the server for weeks. Now I am having to start it more than once every day. Thanks Jim. -Original Message- From: Collins, Jim [mailto:[EMAIL PROTECTED]] Sent: 17 January 2003 12:31 To: 'Tomcat Users List' Subject: RE: Log Error I have upgraded the JDK to 1.4.1 and it is still happening. -Original Message- From: Collins, Jim Sent: 17 January 2003 10:04 To: 'Tomcat Users List' Subject: Log Error Hi, I am using Tomcat4.1.10 and JDK1.4.0 and I have started to get the following error message after which Tomcat crashes. org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log FactoryImpl.java:530) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Log FactoryImpl.java:285) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:401) at org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandl er.java:97) at org.apache.tomcat.util.log.Log.log(Log.java:198) at org.apache.tomcat.util.log.Log.log(Log.java:192) at org.apache.tomcat.util.log.Log.log(Log.java:174) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:536) at java.lang.Thread.run(Thread.java:536) Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct or(LogFactoryImpl.java:415) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log FactoryImpl.java:523) ... 8 more Caused by: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct or(LogFactoryImpl.java:411) ... 9 more I have not changed anything to the configuration and it was working fine in the past I have just started to notice this in the last week or so. If anyone has any ideas what I can do to resolve this I would appreciate it. Thanks Jim. PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please
RE: trouble with bean returning boolean
Why not use foo.isValid() or is the format foo.valid something special with respect to taglibs? -Original Message- From: Petter Karlström [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 7:30 AM To: [EMAIL PROTECTED] Subject: trouble with bean returning boolean Hello all, I have trouble getting a very simple bean (o'reilly book example) to return boolean values. I call it with: c: choose c:when test=${foo.valid} ... and the validation code in the bean looks like: public boolean isValid(){ return true; } This generates the following error message: org.apache.jasper.JasperException: javax.servlet.jsp.JspException: An error occurred while evaluating custom action attribute test with value ${foo.valid}: Unable to find a value for valid in object of class foobar.FooBarBean using operator . (null) Everything works fine with method getName which returns a String that I can output with c:out. anyone? thanks /Petter Karlström -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problem with Tomcat Manager
Hello everybody, When I use the manager GUI for installing a context, it does not work, maybe cos of the encoding of the URL, but when I do it manually (writing directly the URL), following the guidelines of the manual, it works. if the problem is coming from symbols like ':' or '/' (file:/...) and so on, how to disable the conversion ? Thanks. -- Jean-Philippe LEBOEUF NMI - Nouvelles Méthodes pour l'Interaction Université Paris-Sud XI, centre d'Orsay / LIMSI Université de Technologie de Troyes / Tech-CICO -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tool for HTTP Request Stress Test
The last time we tried it in mid 2001, we had some obscure results. Sometimes it looked like results from a previous run where added to the current run. (At least most of the problems went away, when we removed the results from the previous run before starting a new run) -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 3:46 PM To: Tomcat Users List Subject: RE: Tool for HTTP Request Stress Test Microsoft has a WebApplication stresstool that is quite good too (one of the best apps I've seen from M$). -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Sevlets not seen
Greetings! This has got to be so easy I'm missing something. :-(( I just installed the latest releases of Apache and Tomcat. All of the examples in Tomcat work great. I copied the HelloWorldExample to /webapps/apress/WEB-INF/classes/ I put this in the server.xml file: Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true Context path=/apress docBase=apress debug=9 reloadable=true / I put this in the web.xml file in WEB-INF web-app servlet servlet-namelogin/servlet-name servlet-classchapter2.login/servlet-class load-on-startup1/load-on-startup /servlet servlet servlet-nameHelloWorldExample/servlet-name servlet-classHelloWorldExample/servlet-class load-on-startup1/load-on-startup /servlet /web-app Yet when I http://localhost:8080/apress/servlet/HelloWorldExample I get HTTP Status 404 What's the easy part I'm missing? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Sevlets not seen
Servlet mappings are missing. You need something like: servlet-mapping servlet-namelogin/servlet-name url-pattern/login/url-pattern /servlet-mapping servlet-mapping servlet-nameHelloWorldServlet/servlet-name url-pattern/HelloWorldServlet/url-pattern /servlet-mapping after your servlet tags in web.xml Regards, Lajos eric wrote: Greetings! This has got to be so easy I'm missing something. :-(( I just installed the latest releases of Apache and Tomcat. All of the examples in Tomcat work great. I copied the HelloWorldExample to /webapps/apress/WEB-INF/classes/ I put this in the server.xml file: Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true Context path=/apress docBase=apress debug=9 reloadable=true / I put this in the web.xml file in WEB-INF web-app servlet servlet-namelogin/servlet-name servlet-classchapter2.login/servlet-class load-on-startup1/load-on-startup /servlet servlet servlet-nameHelloWorldExample/servlet-name servlet-classHelloWorldExample/servlet-class load-on-startup1/load-on-startup /servlet /web-app Yet when I http://localhost:8080/apress/servlet/HelloWorldExample I get HTTP Status 404 What's the easy part I'm missing? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Difficulties with Virtual Host in the Apache + Tomcat
John, I accomplished the change suggested by you in httpd.conf and however when I open http://www.ged.ufu.br receive the following error message: HTTP Status 500 - No Context configured to process this request type Status report message No Context configured to process this request description The server encountered an internal error (No Context configured to process this request) that prevented it from fulfilling this request. Apache Tomcat/4.1.18 What can be happening? In case you want to try to open URL, be the will for such an action. Respectfully, *** REPLY SEPARATOR *** On 17/01/2003 at 09:31 Turner, John wrote: E-mail Premium BOL Antivírus, anti-spam e até 100 MB de espaço. Assine já! http://email.bol.com.br/ Try JkMount /*.jsp ajp13 instead of JkMount /web/ged/*.jsp ajp13 for www.ged.ufu.br. Also, you can 4 (or more) virtual hosts in Tomcat, just setup four Host elements, each with the appropriate name and/or alias. John -Original Message- From: Sebastião Carlos Santos [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 7:59 AM To: [EMAIL PROTECTED] Subject: Difficulties with Virtual Host in the Apache + Tomcat There are some days installed a servant web with Apache 1.3.27 and Tomcat 4.1.18 under Suse Linux Professional 7.2, however I am facing problems in the configuration and integration of the virtual hosts of the Apache for the tomcat. In the end of this e-mail it is some fragments of the configuration files that I am using, as for instance http.conf, workers.properties and server.xml When I try to access the address http://www.ged.ufu.br that has the file index.jsp, that I put soon lower, I receive the following text % out.println ();% in the screen of the browser, what shows that the things are not working how they would owe. What am missing? Another question would be: I will have four virtual hosts in the Apache, logically I will have to have the same ones four configured in Tomcat. Is it possible? I thank the help in advance. File index.jsp root@ged2:/web/ged cat index.jsp %out.println();% // * Fragment of the file httpd.conf (Apache 1.3.27) IfModule !mod_jk.c LoadModule jk_module libexec/mod_jk.so /IfModule Include /usr/local/jakarta-tomcat-4.1.18/conf/auto/mod_jk.conf AddModule mod_jk.c ServerName ged2.ufu.br DocumentRoot /web Directory /web . . . /Directory IfModule mod_dir.c DirectoryIndex index.html index.htm index.jsp /IfModule NameVirtualHost 200.131.195.5 VirtualHost 200.131.195.5:80 ServerAdmin [EMAIL PROTECTED] DocumentRoot /web/ged/ ServerName ged2.ufu.br ServerAlias www.ged.ufu.br ErrorLog /web/ged/logs/apache_error_log CustomLog /web/ged/logs/apache_access_log common JkMount /web/ged/*.jsp ajp13 /VirtualHost IfModule mod_jk.c JkWorkersFile /usr/local/jakarta-tomcat-4.1.18/conf/jk/workers.properties JkLogFile /usr/local/jakarta-tomcat-4.1.18/logs/mod_jk.log JkLogLevel debug JkMount /examples ajp13 JkMount /examples/* ajp13 /IfModule // File workers.properties workers.CATALINA_HOME=/usr/local/jakarta-tomcat-4.1.18 workers.java_home=$(JAVA_HOME) ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13 worker.inprocess.type=jni worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$ (ps)i386$(ps)server$(ps)libjvm.so worker.inprocess.stdout=$(workers.CATALINA_HOME)$(ps)logs$(ps) inprocess.stdout worker.inprocess.stderr=$(workers.CATALINA_HOME)$(ps)logs$(ps) inprocess.stderr // Fragment of the file server.xml (Tomcat 4.1.18) Host name=ged2.ufu.br debug=0 appBase=/web/ged unpackWARs=true autoDeploy=true Aliaswww.ged.ufu.br/Alias Logger className=org.apache.catalina.logger.FileLogger directory=/web/ged/logs prefix=tomcat_ged. suffix=.log timestamp=true/ Context path=/web/ged docBase=ged debug=0 reloadable=true crossContext=true/ /Host // Directories of the application Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda8 3261056 32896 3228160 2% /web root@ged2:/web/servidor tree /web/ged/ /web/ged/ |-- index.jsp |-- logs | |-- apache_access_log | |-- apache_error_log | `-- tomcat_ged.2003-01-17.log `-- test `--
Re: Difficulties with Virtual Host in the Apache + Tomcat
That's 'cause your Host docBase is set to /web/ged while your Context docBase is set do ged. So Tomcat is looking for your app at /web/ged/ged. Try setting the Host docBase to /web. Lajos Sebastião Carlos Santos wrote: John, I accomplished the change suggested by you in httpd.conf and however when I open http://www.ged.ufu.br receive the following error message: HTTP Status 500 - No Context configured to process this request type Status report message No Context configured to process this request description The server encountered an internal error (No Context configured to process this request) that prevented it from fulfilling this request. Apache Tomcat/4.1.18 What can be happening? In case you want to try to open URL, be the will for such an action. Respectfully, *** REPLY SEPARATOR *** On 17/01/2003 at 09:31 Turner, John wrote: E-mail Premium BOL Antivírus, anti-spam e até 100 MB de espaço. Assine já! http://email.bol.com.br/ Try JkMount /*.jsp ajp13 instead of JkMount /web/ged/*.jsp ajp13 for www.ged.ufu.br. Also, you can 4 (or more) virtual hosts in Tomcat, just setup four Host elements, each with the appropriate name and/or alias. John -Original Message- From: Sebastião Carlos Santos [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 7:59 AM To: [EMAIL PROTECTED] Subject: Difficulties with Virtual Host in the Apache + Tomcat There are some days installed a servant web with Apache 1.3.27 and Tomcat 4.1.18 under Suse Linux Professional 7.2, however I am facing problems in the configuration and integration of the virtual hosts of the Apache for the tomcat. In the end of this e-mail it is some fragments of the configuration files that I am using, as for instance http.conf, workers.properties and server.xml When I try to access the address http://www.ged.ufu.br that has the file index.jsp, that I put soon lower, I receive the following text % out.println ();% in the screen of the browser, what shows that the things are not working how they would owe. What am missing? Another question would be: I will have four virtual hosts in the Apache, logically I will have to have the same ones four configured in Tomcat. Is it possible? I thank the help in advance. File index.jsp root@ged2:/web/ged cat index.jsp %out.println();% // * Fragment of the file httpd.conf (Apache 1.3.27) IfModule !mod_jk.c LoadModule jk_module libexec/mod_jk.so /IfModule Include /usr/local/jakarta-tomcat-4.1.18/conf/auto/mod_jk.conf AddModule mod_jk.c ServerName ged2.ufu.br DocumentRoot /web Directory /web . . . /Directory IfModule mod_dir.c DirectoryIndex index.html index.htm index.jsp /IfModule NameVirtualHost 200.131.195.5 VirtualHost 200.131.195.5:80 ServerAdmin [EMAIL PROTECTED] DocumentRoot /web/ged/ ServerName ged2.ufu.br ServerAlias www.ged.ufu.br ErrorLog /web/ged/logs/apache_error_log CustomLog /web/ged/logs/apache_access_log common JkMount /web/ged/*.jsp ajp13 /VirtualHost IfModule mod_jk.c JkWorkersFile /usr/local/jakarta-tomcat-4.1.18/conf/jk/workers.properties JkLogFile /usr/local/jakarta-tomcat-4.1.18/logs/mod_jk.log JkLogLevel debug JkMount /examples ajp13 JkMount /examples/* ajp13 /IfModule // File workers.properties workers.CATALINA_HOME=/usr/local/jakarta-tomcat-4.1.18 workers.java_home=$(JAVA_HOME) ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13 worker.inprocess.type=jni worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$ (ps)i386$(ps)server$(ps)libjvm.so worker.inprocess.stdout=$(workers.CATALINA_HOME)$(ps)logs$(ps) inprocess.stdout worker.inprocess.stderr=$(workers.CATALINA_HOME)$(ps)logs$(ps) inprocess.stderr // Fragment of the file server.xml (Tomcat 4.1.18) Host name=ged2.ufu.br debug=0 appBase=/web/ged unpackWARs=true autoDeploy=true Aliaswww.ged.ufu.br/Alias Logger className=org.apache.catalina.logger.FileLogger directory=/web/ged/logs prefix=tomcat_ged. suffix=.log timestamp=true/ Context path=/web/ged docBase=ged debug=0 reloadable=true crossContext=true/ /Host // Directories of the application Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda8 3261056 32896 3228160 2% /web root@ged2:/web/servidor tree /web/ged/ /web/ged/ |-- index.jsp |--
Re: What about the Context tag?
Hello Steve, It is fine to edit server.xml, but it might be easier to use a Context Configuration File. See the current webapps directory in any recent Tomcat release such as 4.1.8. Notice the admin.xml and manager.xml files? Just make a [myapp].xml file and add your Context ... tag with all nested tags needed to it. Write the path as whatever context path you want to access your app (eg... path=/myapp). Then, for the docBase, use the directory or .war file that your app is being deployed from. For instance docBase=myapp or docBase=myapp.war. The latter case will force the app to be served directly from the .war file where the former case forces it to be served from the directory. Stop Tomcat, put both your [myapp].xml file and the .war or directory structure of your app in webapps, and start Tomcat. Everything should work fine. Jake Friday, January 17, 2003, 12:49:00 AM, you wrote: SRB Hello there, newbie finds himself in some need of help with using the Context SRB tag!! I happen to have a server-side Java programming book that tells the reader SRB to edit this tag in the server.xml file with the specific context path for the SRB servlet to be seen in the browser, HOWEVER I have noticed that some in this group SRB have said that this whole file should just be left alone, that Tomcat could SRB somehow magically find the correct path for the servlet! Who is right about this SRB anyway?! SRB __ SRB Do you Yahoo!? SRB Yahoo! Mail Plus - Powerful. Affordable. Sign up now. SRB http://mailplus.yahoo.com SRB -- SRB To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] SRB For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Difficulties with Virtual Host in the Apache + Tomcat
The Context path is going to be wrong, too. Shouldn't it be empty? John -Original Message- From: Lajos Moczar [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 11:21 AM To: Tomcat Users List Subject: Re: Difficulties with Virtual Host in the Apache + Tomcat That's 'cause your Host docBase is set to /web/ged while your Context docBase is set do ged. So Tomcat is looking for your app at /web/ged/ged. Try setting the Host docBase to /web. Lajos Sebastião Carlos Santos wrote: John, I accomplished the change suggested by you in httpd.conf and however when I open http://www.ged.ufu.br receive the following error message: HTTP Status 500 - No Context configured to process this request -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Any Tomcat OS390 USS Installations?
Has anyone out there successfully installed Tomcat on IBM OS390 Unix System Services?
ConnectionPool with Oracle - connection timeout
I am using Tomcat's JDBCRealm as well as a DBCP Connection pool. I am connecting to Oracle 9, and everything works fine - for about 24 hours. I've experienced this with MySQL and adding autoReconnect=true to the connectionURL fixed the problem. However, adding this to Oracle's connectionURL causes a Cannot load JDBC driver class 'null'. My connectionURL is: jdbc:oracle:thin:username/password@host:1521:sid Thanks, Matt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Newbie cookie question
Hello joel, Look into how the cookie path is set. I think, by default, it is set to the current context of your app, not the whole server. You will need to override this behavior. See the servlet api for details. As far as the cookie disappearing upon browser close, this should happen unless you specifically set an expiration date for the cookie of sometime in the future. Note that *all* open browsers need to be shutdown in order for the cookie to go away. If you have 2 browser windows open and only shut one down, the cookie will still exist. Jake Friday, January 17, 2003, 8:52:22 AM, you wrote: jdjc All, jdjc Is there any way to code a cookie so that all the webapps jdjc on the same Tomcat server can receive it? jdjc I also need it to disappear when the browser is shut. jdjc Thanks, jdjc Joel jdjc This communication is for informational purposes only. It is not intended as jdjc an offer or solicitation for the purchase or sale of any financial instrument jdjc or as an official confirmation of any transaction. All market prices, data jdjc and other information are not warranted as to completeness or accuracy and jdjc are subject to change without notice. Any comments or statements made herein jdjc do not necessarily reflect those of J.P. Morgan Chase Co., its jdjc subsidiaries and affiliates. jdjc -- jdjc To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] jdjc For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Difficulties with Virtual Host in the Apache + Tomcat
Oh, well if his JkMount is /*.jsp like you suggested, then yeah, his Context path should be . But if he leaves it at /web/ged/*.jsp, then it is ok. However, the docBase will still get him, I think. Lajos Turner, John wrote: The Context path is going to be wrong, too. Shouldn't it be empty? John -Original Message- From: Lajos Moczar [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 11:21 AM To: Tomcat Users List Subject: Re: Difficulties with Virtual Host in the Apache + Tomcat That's 'cause your Host docBase is set to /web/ged while your Context docBase is set do ged. So Tomcat is looking for your app at /web/ged/ged. Try setting the Host docBase to /web. Lajos Sebastião Carlos Santos wrote: John, I accomplished the change suggested by you in httpd.conf and however when I open http://www.ged.ufu.br receive the following error message: HTTP Status 500 - No Context configured to process this request -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ConnectionPool with Oracle - connection timeout
jdbc:oracle:thin:username/password@host:1521:sid is an invalid URL. password doesn't belong in the url at least I don't think so :) Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect www.filip.net -Original Message- From: Raible, Matt [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 8:31 AM To: 'Tomcat Users List' Subject: ConnectionPool with Oracle - connection timeout I am using Tomcat's JDBCRealm as well as a DBCP Connection pool. I am connecting to Oracle 9, and everything works fine - for about 24 hours. I've experienced this with MySQL and adding autoReconnect=true to the connectionURL fixed the problem. However, adding this to Oracle's connectionURL causes a Cannot load JDBC driver class 'null'. My connectionURL is: jdbc:oracle:thin:username/password@host:1521:sid Thanks, Matt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Unable to connect to Sybase 11.9.2 server -Help please
Hello Everyone, I am trying to connect to sybase 11.9.2 database server. Has anyone encountered this error. Your help on this will be greatly appreciated. I have created a datasource in Tomcat 4.1.18. I have the jconn2.jar file in webapps/ROOT/WEB_INF/classes/jconn2.jar I have the jconn2.jar file in c:/tomcat4/commons/lib/jconn2.jar However I get this error. java.sql.SQLException: Cannot load JDBC driver class 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:529) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:312) at SecurityCheckServlet.getConnection(SecurityCheckServlet.java:83) at SecurityCheckServlet.doGet(SecurityCheckServlet.java:37) I have the following entries in the server.xml GlobalNamingResources Environment name=simpleValue override=true type=java.lang.Integer value=30/ Resource auth=Container description=User database that can be updated and saved name=UserDatabase scope=Shareable type=org.apache.catalina.UserDatabase/ ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams Resource name=jdbc/MBSDB scope=Shareable type=javax.sql.DataSource/ ResourceParams name=jdbc/MBSDB parameter nameusername/name valuejgf/value /parameter parameter namepassword/name valuemypassword/value /parameter !-- parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter -- parameter namedriverClassName/name valuecom.sybase.jdbc2.jdbc.SybDriver/value /parameter parameter nameurl/name valuejdbc:sybase:Tds:192.168.7.42:4100/mydatabase/value /parameter parameter namemaxActive/name value6/value /parameter parameter namemaxWait/name value5000/value /parameter parameter namemaxIdle/name value2/value /parameter /ResourceParams /GlobalNamingResources I have the following entries in the web.xml file resource-ref descriptionDB Connection/description res-ref-namejdbc/MBSDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref
RE: ConnectionPool with Oracle - connection timeout
This works though! ;-) I got this syntax off this list for configuring an Oracle JDBCRealm. -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 9:42 AM To: Tomcat Users List Subject: RE: ConnectionPool with Oracle - connection timeout jdbc:oracle:thin:username/password@host:1521:sid is an invalid URL. password doesn't belong in the url at least I don't think so :) Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect www.filip.net -Original Message- From: Raible, Matt [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 8:31 AM To: 'Tomcat Users List' Subject: ConnectionPool with Oracle - connection timeout I am using Tomcat's JDBCRealm as well as a DBCP Connection pool. I am connecting to Oracle 9, and everything works fine - for about 24 hours. I've experienced this with MySQL and adding autoReconnect=true to the connectionURL fixed the problem. However, adding this to Oracle's connectionURL causes a Cannot load JDBC driver class 'null'. My connectionURL is: jdbc:oracle:thin:username/password@host:1521:sid Thanks, Matt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Sevlets not seen
Lajos, Thank you, thank you, thank you. I should have asked 4 hours ago. :-)) I have three books, followed them to the 'T' and no mention of this. I guess it's hard to stay up-to-date when the Tomcat is changing so fast! :-)) Thanks for the quick reply. On Friday 17 January 2003 17:14, Lajos Moczar wrote: Servlet mappings are missing. You need something like: servlet-mapping servlet-namelogin/servlet-name url-pattern/login/url-pattern /servlet-mapping servlet-mapping servlet-nameHelloWorldServlet/servlet-name url-pattern/HelloWorldServlet/url-pattern /servlet-mapping after your servlet tags in web.xml Regards, Lajos eric wrote: Greetings! This has got to be so easy I'm missing something. :-(( I just installed the latest releases of Apache and Tomcat. All of the examples in Tomcat work great. I copied the HelloWorldExample to /webapps/apress/WEB-INF/classes/ I put this in the server.xml file: Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true Context path=/apress docBase=apress debug=9 reloadable=true / I put this in the web.xml file in WEB-INF web-app servlet servlet-namelogin/servlet-name servlet-classchapter2.login/servlet-class load-on-startup1/load-on-startup /servlet servlet servlet-nameHelloWorldExample/servlet-name servlet-classHelloWorldExample/servlet-class load-on-startup1/load-on-startup /servlet /web-app Yet when I http://localhost:8080/apress/servlet/HelloWorldExample I get HTTP Status 404 What's the easy part I'm missing? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
System.out logs
Hello All, Tomcat 4 logs all System.out or System.err messages to Catalina.out by default. How would I do this in a Tomcat 3.2.3 environment. As of now, it prints on to the window Tomcat was started. I would like to save the messages on a file. Please help. Sincerely, Vijay -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Object accessible to all servlets in the container.
Hello all, I was wondering how\where in Tomcat could I create an Objectthat gets loaded when the Tomcat Server startsup and is alive and accessible to all Servlets that are running. It could contain information about the server that a servlet may be interested in knowing, or could do things like retrieve a server license for a particular set of functionality for a servlet. For example, there would be like this ServerLicenseObject. if Servlet A runs a component that needs a per server license it contacts the ServerLicenseObject: ServerLicenseObject.getLicense() - if no license has been retrieved for the server, it gets it. Then if Servlet B, want to run the same component which requires the a server license it calls ServerLicenseObject.getLicense() - now, in this case, since server A has already retrieved a per server license, this call would just pass back that license to Servlet B so that it may run the requested component. Is it possible? Does anyone know what I would use to get this done (JavaBean, maybe? I'm guessing)? Any documentation on doing this type of thing? Any help is appreciated. Thanks in advance. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Classes not being found in app's WEB-INF directory.
Lior Shliechkorn wrote: I had a bunch of problems with that until I packaged the classes and then it had no problem finding the class files. Give that a try. I too made the mistake of putting all of my classes directly under WEB-INF/classes. Now I would like to put them into a proper package, but cannot -- CVS knows the directory structure that I have now, and if I move the classes into a new directory structure (the package directory structure com/ptc/appname) then CVS will get all gorked up. Does anyone have advice for this scenario? Surely I must not be the first person who needed to rearrange directories for a webapp using CVS... Erik -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Object accessible to all servlets in the container.
Howdy, 1. Read up on the ServletContext object and ServletContextListener implementations. This information is in the Servlet specification, v2.3. 2. Read up on the Singleton design pattern. Do a google search for this and you'll find lots of information. You could have a LicenseManager singleton do the things you describe below. Yoav Shapira Millennium ChemInformatics -Original Message- From: Robert Priest [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 11:50 AM To: 'Tomcat Users List' Subject: Object accessible to all servlets in the container. Hello all, I was wondering how\where in Tomcat could I create an Objectthat gets loaded when the Tomcat Server startsup and is alive and accessible to all Servlets that are running. It could contain information about the server that a servlet may be interested in knowing, or could do things like retrieve a server license for a particular set of functionality for a servlet. For example, there would be like this ServerLicenseObject. if Servlet A runs a component that needs a per server license it contacts the ServerLicenseObject: ServerLicenseObject.getLicense() - if no license has been retrieved for the server, it gets it. Then if Servlet B, want to run the same component which requires the a server license it calls ServerLicenseObject.getLicense() - now, in this case, since server A has already retrieved a per server license, this call would just pass back that license to Servlet B so that it may run the requested component. Is it possible? Does anyone know what I would use to get this done (JavaBean, maybe? I'm guessing)? Any documentation on doing this type of thing? Any help is appreciated. Thanks in advance. -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Classes not being found in app's WEB-INF directory.
Use Ant to build everything - and tell it where you want your compiled classes to end up. -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 10:07 AM To: Tomcat Users List Subject: Re: Classes not being found in app's WEB-INF directory. Lior Shliechkorn wrote: I had a bunch of problems with that until I packaged the classes and then it had no problem finding the class files. Give that a try. I too made the mistake of putting all of my classes directly under WEB-INF/classes. Now I would like to put them into a proper package, but cannot -- CVS knows the directory structure that I have now, and if I move the classes into a new directory structure (the package directory structure com/ptc/appname) then CVS will get all gorked up. Does anyone have advice for this scenario? Surely I must not be the first person who needed to rearrange directories for a webapp using CVS... Erik -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: System.out logs
On Unix, startup.sh tomcat.out 21. Windows something similar, I'm sure. Lajos Vijay Kandy wrote: Hello All, Tomcat 4 logs all System.out or System.err messages to Catalina.out by default. How would I do this in a Tomcat 3.2.3 environment. As of now, it prints on to the window Tomcat was started. I would like to save the messages on a file. Please help. Sincerely, Vijay -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: System.out logs
Hello All, Tomcat 4 logs all System.out or System.err messages to Catalina.out by default. How would I do this in a Tomcat 3.2.3 environment. As of now, it prints on to the window Tomcat was started. I would like to save the messages on a file. Please help. Sincerely, Vijay You don't say which OS you are running. On unix, the output is redirected using the shell redirection syntax just like you can do for any unix process. Look in catalina.sh to see how this done. You ought to be able to add the same thing to the tomcat.sh script for tomcat 3. - Dan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.1.18
On Friday 17 January 2003 07:03, Shapira, Yoav wrote: Howdy, Perhaps this will shed some light. See Issue 1 at http://www.jcp.org/aboutJava/communityprocess/maintenance/jsr053/errata_ 1_2_a_20020321.html Yoav Shapira Millennium ChemInformatics Thanks, Yoav. I will try this out today, and I'll let you know how I made out. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Newbie cookie question
The problem is that it works perfectly on WebSphere 4.x, but not Tomcat ** for the other webapps**. The worst case would be a bug in WebSphere, the production server, that gets fixed someday. This looks right, but am I missing something?--- Cookie aCookie = new Cookie( MY_COOKIE_KEY, cookieText.toString() ); aCookie.setPath( / ); // deliver to all directories not just issuer. aCookie.setSecure( false ); aCookie.setMaxAge( -1 ); // per-session cookie, not stored on disk theResponse.addCookie( aCookie ); Thanks, Joel Hello joel, Look into how the cookie path is set. I think, by default, it is set to the current context of your app, not the whole server. You will need to override this behavior. See the servlet api for details. As far as the cookie disappearing upon browser close, this should happen unless you specifically set an expiration date for the cookie of sometime in the future. Note that *all* open browsers need to be shutdown in order for the cookie to go away. If you have 2 browser windows open and only shut one down, the cookie will still exist. Jake Friday, January 17, 2003, 8:52:22 AM, you wrote: jdjc All, jdjc Is there any way to code a cookie so that all the webapps jdjc on the same Tomcat server can receive it? jdjc I also need it to disappear when the browser is shut. jdjc Thanks, jdjc Joel This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: multiple war applications - single sign on
On Thu, 16 Jan 2003, hans albers wrote: Date: Thu, 16 Jan 2003 14:40:45 + From: hans albers [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: multiple war applications - single sign on Hi there, I have 2 Web-Applications (war), which I have protected in my web.xml (url-pattern, roles...). Both need the same role. How can I achive that it's sufficent to sign on at the first application host/app1 and then access host/app2 without having to identify again?? (JBoss 3.x.x, Tomcat 4.1.x) For Tomcat 4.1 stand-alone, see: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html and scroll down to the Single Sign On section under Special Features. I have no idea whether this will work in Tomcat+JBoss, though. Thanks four your help!!! Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Jasper vs Jasper2
I'll chime in on this, since I've done quite a bit of benchmarking and testing with jasper jasper2. Kin-man, jan, remy and everyone else have made great strides in improving jasper2 performance. jasper1 had serious problems with tags, because it generated deeply nested try/catch blocks. That cause rapid degredation of performance and would limit the number of concurrent requests to somewhere around 8 for a 750mhz pentium system. the newer jasper2 performs 3-8x better depending on the tags you use and how you use it. Does this mean jasper2 is equal to servlet performance? Not quite, there's always room for improvement. If you want to help improve the performance, create pages using servlets, jsp+scriplet and jsp+tags. Profile the performance and post your findings. If you use jsp tags, use jasper2. Hope that helps. peter lin --- Craig R. McClanahan [EMAIL PROTECTED] wrote: On Thu, 16 Jan 2003, Will Hartung wrote: Date: Thu, 16 Jan 2003 09:11:05 -0800 From: Will Hartung [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Jasper vs Jasper2 Hi all, Just for clarity, if you will. I hear references to jasper and jasper2 vis-a-vis the JSP compiler/subsystem within Tomcat. Jasper2 was a complete rewrite of the JSP page compiler. It was architected by someone who has built compilers for many years, and affords the opportunity to generate *much* better code for a JSP page than the original jasper compiler. I see commits against a jasper2 section when browsing tomcat-dev. My question is which jasper is in the current 4.1.x release? Current 4.1.x releases (such as 4.1.18) include Jasper2. Tomcat 5 does as well, but it's a pretty different codebase to support all the new JSP 2.0 features. How are they different? Is it worth the pain to move to jasper2 for a production server (assuming that it's not already in 4.1.x)? The performance improvements, especially on pages with lots of custom tags, is so large that it's almost unbelievable. If you're not using scriptlets, Jasper2 also takes measures to get around the 64kb limit on a method size that often bedeviled old jasper users. If it is worth the pain, how do I get it? It's in 4.1.18. Thanx! Regards, Will Hartung ([EMAIL PROTECTED]) Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Sevlets not seen
Hello eric, You are attempting to use the invoker servlet of which the servlet-mapping is commented out, by default, in Tomcat's conf/web.xml. Uncomment that and it will work. Jake Friday, January 17, 2003, 10:25:41 AM, you wrote: e Greetings! e This has got to be so easy I'm missing something. :-(( e I just installed the latest releases of Apache and Tomcat. All of the e examples in Tomcat work great. e I copied the HelloWorldExample to /webapps/apress/WEB-INF/classes/ e I put this in the server.xml file: e Host name=localhost debug=0 appBase=webapps eunpackWARs=true autoDeploy=true e Context path=/apress docBase=apress debug=9 reloadable=true / e I put this in the web.xml file in WEB-INF e web-app e servlet e servlet-namelogin/servlet-name e servlet-classchapter2.login/servlet-class e load-on-startup1/load-on-startup e /servlet e servlet e servlet-nameHelloWorldExample/servlet-name e servlet-classHelloWorldExample/servlet-class e load-on-startup1/load-on-startup e /servlet e /web-app e Yet when I http://localhost:8080/apress/servlet/HelloWorldExample e I get HTTP Status 404 e What's the easy part I'm missing? e -- e To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] e For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Sevlets not seen
InvokerServlet is disabled by default in Tomcat 4.1.12 onwards for security reasons. So either you can uncomment the following lines from ${TOMCAT_HOME}/conf/web.xml or include these lines in ${TOMCAT_HOME}/webapps/your-context/WEB-INF/web.xml, servlet-mapping servlet-nameinvoker/servlet-name url-pattern/servlet/*/url-pattern /servlet-mapping Thanks, Ganesh. [EMAIL PROTECTED] 17-Jan-2003 11:25 Please respond to Tomcat Users List [EMAIL PROTECTED] To: tomcat-user cc: Subject:Sevlets not seen Greetings! This has got to be so easy I'm missing something. :-(( I just installed the latest releases of Apache and Tomcat. All of the examples in Tomcat work great. I copied the HelloWorldExample to /webapps/apress/WEB-INF/classes/ I put this in the server.xml file: Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true Context path=/apress docBase=apress debug=9 reloadable=true / I put this in the web.xml file in WEB-INF web-app servlet servlet-namelogin/servlet-name servlet-classchapter2.login/servlet-class load-on-startup1/load-on-startup /servlet servlet servlet-nameHelloWorldExample/servlet-name servlet-classHelloWorldExample/servlet-class load-on-startup1/load-on-startup /servlet /web-app Yet when I http://localhost:8080/apress/servlet/HelloWorldExample I get HTTP Status 404 What's the easy part I'm missing? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Classes not being found in app's WEB-INF directory.
Raible, Matt wrote: Use Ant to build everything - and tell it where you want your compiled classes to end up. That's a good idea. I am using Ant currently, but hadn't thought of doing this. The only problem is that I use NetBeans, which requires that the source code be stored in the proper package directory structures. But, now that I think of it, I can use Ant to rearrange the source files to the appropriate directory structure upon checkout, so that I can work with them. In other words, a target that builds the package directory structure and copies the files to their appropriate places. Can Ant read the package declarations of the source files to determine where they should be placed, or will I have to hard code the paths into the Copy tasks? Erik -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[2]: Newbie cookie question
Hello joel, hmmm I assume the problem with the cookie not disappearing upon browser shutdown is solved, but the issue with seeing this cookie across all webapps on the same server is not solved, right? Now that I think about it, I wonder if the path of / in servlets is relative to the context path. Hence, the path of / would actually mean /mycontext/. I'm not sure. You'll have to play around with things. Anyone else know the answer to this for sure? Jake Friday, January 17, 2003, 11:27:43 AM, you wrote: jdjc The problem is that it works perfectly on WebSphere 4.x, jdjc but not Tomcat ** for the other webapps**. jdjc The worst case would be a bug in WebSphere, the jdjc production server, that gets fixed someday. jdjc This looks right, but am I missing something?--- jdjc Cookie aCookie = new Cookie( MY_COOKIE_KEY, cookieText.toString() ); jdjc aCookie.setPath( / ); // deliver to jdjc all directories not just issuer. jdjc aCookie.setSecure( false ); jdjc aCookie.setMaxAge( -1 ); // per-session jdjc cookie, not stored on disk jdjc theResponse.addCookie( aCookie ); jdjc Thanks, jdjc Joel jdjc jdjc Hello joel, jdjc Look into how the cookie path is set. I think, by default, it is set jdjc to the current context of your app, not the whole server. You will jdjc need to override this behavior. See the servlet api for details. As jdjc far as the cookie disappearing upon browser close, this should happen jdjc unless you specifically set an expiration date for the cookie of jdjc sometime in the future. Note that *all* open browsers need to be jdjc shutdown in order for the cookie to go away. If you have 2 browser jdjc windows open and only shut one down, the cookie will still exist. jdjc Jake jdjc Friday, January 17, 2003, 8:52:22 AM, you wrote: jdjc All, jdjc Is there any way to code a cookie so that all the webapps jdjc on the same Tomcat server can receive it? jdjc I also need it to disappear when the browser is shut. jdjc Thanks, jdjc Joel jdjc This communication is for informational purposes only. It is not intended as jdjc an offer or solicitation for the purchase or sale of any financial instrument jdjc or as an official confirmation of any transaction. All market prices, data jdjc and other information are not warranted as to completeness or accuracy and jdjc are subject to change without notice. Any comments or statements made herein jdjc do not necessarily reflect those of J.P. Morgan Chase Co., its jdjc subsidiaries and affiliates. jdjc -- jdjc To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] jdjc For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
jk connection timeout reached
I'm seeing a lot of messages like this in my catalina.out with TC 4.1.18. Jan 16, 2003 3:20:40 PM org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached Jan 16, 2003 3:20:40 PM org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached Jan 16, 2003 3:20:40 PM org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection First off, do I need to worry about these? Second, if not, how can I disable them? I have debug=0 for everything in my server.xml. Nick Wesselman Digital Visions, Inc. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.1.18, JK2, IIS - Second try
Hi, I have my tomcat running W2K professional using NT service. I follow JK2 doc and other recommendations on this archive (word by word) to configure connector. So far no luck. The isapi_redirector2.dll load up in IIS management console looks good, but the NT EventViews shows the following message Error: [jk_shm.c (333)]: shm.init(): No file I think this prevents the connector from working. Any suggestions -D
RE: tomcat configuration with apache 1.3.27 ssl
I am trying to do the same thing -- getting SSL to work to Tomcat 4.06 from Apache 1.3 w/OpenSsl and mod_jk ajp13 1.2. I think I'm missing the missing 1-2-3 steps ... or approach. I have everything working except for the ssl communication to Tomcat. * What changes are needed to httpd.conf? * What changes to openssl? * How to configure the connector tag in servlet.xml? Thanks for any ideas in advance, Dan At 04:11 PM 1/16/2003 +0100, you wrote: We are trying to configure tomcat on : operating system : linux redhat 7.3 JDK : j2sdk1.4.1_01 OpenSSL : openssl-0.9.6g Apache : apache 1.3.27+SSL Tomcat : Tomcat 4.1.18 we have generate a certificate with openssl we have configure apache with a basic : ./configure, make, make install we have modified the httpsd.conf to include the certificate ssl we have modified the catalina.sh to include the java home when we use the connector no-ssl, tomcat is ok on the url http:// but when we use the connector ssl, there is no tomcat at the url ... Do you have an idea ??? Many thanks. A 08:06 16/01/2003 -0500, vous avez écrit : Please be more specific. What problems are you experiencing? What connector are you using? What is your configuration, operating system, JDK version, etc. etc.? John -Original Message- From: Helene Figueiredo [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 6:57 AM To: [EMAIL PROTECTED] Subject: tomcat configuration with apache 1.3.27 ssl Hi, Can someone give me an example of tomcat configuration with apache 1.3.27 ssl ? Our apache ssl configuration is ok. Our tomcat configuration without apache ssl is ok. But we're not able to integrate both. Thanks. ___ Helene FIGUEIREDO CRIP Universite Joseph Fourier - Grenoble 1 BP 53 38041 Grenoble cedex 9 Mail : [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Sevlets not seen
Ganesh, Thanks! I guess that explains the differences from the books. I wonder what's next :-)) Thanks again. On Friday 17 January 2003 17:23, [EMAIL PROTECTED] wrote: InvokerServlet is disabled by default in Tomcat 4.1.12 onwards for security reasons. So either you can uncomment the following lines from ${TOMCAT_HOME}/conf/web.xml or include these lines in ${TOMCAT_HOME}/webapps/your-context/WEB-INF/web.xml, servlet-mapping servlet-nameinvoker/servlet-name url-pattern/servlet/*/url-pattern /servlet-mapping Thanks, Ganesh. [EMAIL PROTECTED] 17-Jan-2003 11:25 Please respond to Tomcat Users List [EMAIL PROTECTED] To: tomcat-user cc: Subject:Sevlets not seen Greetings! This has got to be so easy I'm missing something. :-(( I just installed the latest releases of Apache and Tomcat. All of the examples in Tomcat work great. I copied the HelloWorldExample to /webapps/apress/WEB-INF/classes/ I put this in the server.xml file: Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true Context path=/apress docBase=apress debug=9 reloadable=true / I put this in the web.xml file in WEB-INF web-app servlet servlet-namelogin/servlet-name servlet-classchapter2.login/servlet-class load-on-startup1/load-on-startup /servlet servlet servlet-nameHelloWorldExample/servlet-name servlet-classHelloWorldExample/servlet-class load-on-startup1/load-on-startup /servlet /web-app Yet when I http://localhost:8080/apress/servlet/HelloWorldExample I get HTTP Status 404 What's the easy part I'm missing? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Classes not being found in app's WEB-INF directory.
-Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 1:07 PM To: Tomcat Users List Subject: Re: Classes not being found in app's WEB-INF directory. Raible, Matt wrote: Use Ant to build everything - and tell it where you want your compiled classes to end up. That's a good idea. I am using Ant currently, but hadn't thought of doing this. The only problem is that I use NetBeans, which requires that the source code be stored in the proper package directory structures. But, now that I think of it, I can use Ant to rearrange the source files to the appropriate directory structure upon checkout, so that I can work with them. In other words, a target that builds the package directory structure and copies the files to their appropriate places. Can Ant read the package declarations of the source files to determine where they should be placed, or will I have to hard code the paths into the Copy tasks? It wouldn't be hard to write a custom task to do that. Seems like it would be better to fix the source tree structure in CVS, though. It's kind of a PITA, but once it's done, it's done. -- Tim Moore / Blackboard Inc. / Software Engineer 1899 L Street, NW / 5th Floor / Washington, DC 20036 Phone 202-463-4860 ext. 258 / Fax 202-463-4863 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.1.18, JK2, IIS - Second try
Dan, In your workers2.properties file, do you have a section similar to the following? [shm] file=C:/Apache2/logs/shm.file size=1048576 /mde/ just my two cents . . . . __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: System.out logs
I am running Red Hat Linux. But is that an OS dependant property? I know we could pipe the output to a file but there should be something better. Like calling System.setout() or perhapsa Logger tag...?? Thank you, Vijay You don't say which OS you are running. On unix, the output is redirected using the shell redirection syntax just like you can do for any unix process. Look in catalina.sh to see how this done. You ought to be able to add the same thing to the tomcat.sh script for tomcat 3. - Dan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
OT: Re: Classes not being found in app's WEB-INF directory.
Tim Moore wrote: Can Ant read the package declarations of the source files to determine where they should be placed, or will I have to hard code the paths into the Copy tasks? It wouldn't be hard to write a custom task to do that. Seems like it would be better to fix the source tree structure in CVS, though. It's kind of a PITA, but once it's done, it's done. I agree -- it just doesn't seem right to have a flattened hierarchy in CVS. But I thought that in CVS you can't change the directory structure. You can add new files and dirs, but you can't remove old dirs and move files from old dirs. Erik -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: System.out logs
Howdy, I know we could pipe the output to a file but there should be something better. Like calling System.setout() or perhapsa Logger tag...?? Those things are available in tomcat 4.x. Upgrade to get them ;) For 3.x, you're stuck with OS-dependent, non-portable solutions to this requirement. ;( Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Help with VirtualHost and multiple webapps
Hi list, I'm trying to deploy multiple webapps inside one virtual host with the WARP connector (mod_webapp, Tomcat 4.06, Apache 1.3.27, OS X 10.2.3 Server). I have one directory (outside Tomcat's tree) with 3 apps: - ROOT - mobile - utilitaires The only app I can reach is ROOT, I get 404's (from Tomcat) for the two other apps. I don't see errors in the application's log, and catalina.out displays 'WarpEngine[Apache]: Mapping request' at every access I try. So it looks line a URL mapping problem but I don't see why. Apache's conf: --- IfModule mod_webapp.c WebAppConnection tomcat_warp warp localhost:8008 /IfModule WebAppDeploy mobile tomcat_warp /mobile WebAppDeploy ROOT tomcat_warp / WebAppDeploy utilitaires tomcat_warp /utilitaires Alias /mobile /path/to/webapps/mobile Alias /utilitaires /path/to/webapps/utilitaires --- Tomcat's conf/server.xml: --- Host name=jsp.acaiq.com debug=3 appBase=/path/to/webapps unpackWARs=true Context path= docBase=ROOT debug=0 / Context path=/mobile docBase=mobile debug=3 / Context path=/utilitaires docBase=utilitaires debug=0 / --- Filesystem: --- % ls -l /path/to/webapps total 0 drwxr-xr-x 3 root admin 102 Jan 17 08:59 ROOT drwxr-xr-x 4 root admin 136 Jan 17 07:46 mobile drwxr-xr-x 3 root admin 102 Jan 17 07:50 utilitaires --- Last lines of the log file: --- 2003-01-17 09:00:40 StandardContext[/mobile]: Posting standard context attributes 2003-01-17 09:00:40 StandardWrapper[/mobile:default]: Loading container servlet default 2003-01-17 09:00:40 StandardWrapper[/mobile:invoker]: Loading container servlet invoker 2003-01-17 09:00:40 StandardContext[/mobile]: Starting completed --- When I make a request for /mobile, this is the last line in catalina.out. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Parse error in application web.xml
Instead of depending on the invoker servlet, I have added our servlets to the web.xml file inside of the app's WEB-INF directory. However, now I am getting the following error when I try to start tomcat with the changed web.xml: 2003-01-17 13:07:51 ContextConfig[/esd] Parse error in application web.xml org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,filter*,fil ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca l-ref*). I have validated the web.xml file using IE. No errors are apparent. The file displays properly in the browser. Can somebody look at the web.xml, and see what I am missing? I know it has to be something really easy that I am overlooking. Thanks in advance for the Help web.xml file: ?xml version=1.0 encoding=ISO-8859-1? !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 welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file /welcome-file-list !-- Example servlet servlet-nameDateServlet/servlet-name servlet-classDateServlet/servlet-class /servlet servlet-mapping servlet-nameDateServlet/servlet-name url-pattern/servlet/DateServlet/url-pattern /servlet-mapping -- servlet servlet-nameDDSMenu/servlet-name servlet-classDDSMenu/servlet-class /servlet servlet-mapping servlet-nameDDSMenu/servlet-name url-pattern/DDSMenu/url-pattern /servlet-mapping servlet servlet-nameDDSHome/servlet-name servlet-classDDSHome/servlet-class /servlet servlet-mapping servlet-nameDDSHome/servlet-name url-pattern/DDSHome/url-pattern /servlet-mapping servlet servlet-nameDDSLogin/servlet-name servlet-classDDSLogin/servlet-class /servlet servlet-mapping servlet-nameDDSLogin/servlet-name url-pattern/DDSLogin/url-pattern /servlet-mapping servlet servlet-nameDDSLog/servlet-name servlet-classDDSLog/servlet-class /servlet servlet-mapping servlet-nameDDSLog/servlet-name url-pattern/DDSLog/url-pattern /servlet-mapping /web-app -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: System.out logs
Hmmm Guess I have to live with that for a while. Thanks for your replies all. Sincerely, Vijay Howdy, I know we could pipe the output to a file but there should be something better. Like calling System.setout() or perhapsa Logger tag...?? Those things are available in tomcat 4.x. Upgrade to get them ;) For 3.x, you're stuck with OS-dependent, non-portable solutions to this requirement. ;( Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: System.out logs
-Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 1:30 PM To: Tomcat Users List Subject: RE: System.out logs Howdy, I know we could pipe the output to a file but there should be something better. Like calling System.setout() or perhapsa Logger tag...?? Those things are available in tomcat 4.x. Upgrade to get them ;) For 3.x, you're stuck with OS-dependent, non-portable solutions to this requirement. ;( System.setOut is obviously part of the JDK and not Tomcat 4. Using a logger tag won't affect standard output. Tomcat 4 uses plain old shell redirection to log standard out to a file. If you think using Sysstem.setOut is a better solution, then go right ahead, but personally I feel that using shell redirection is both simpler, and more maintainable. -- Tim Moore / Blackboard Inc. / Software Engineer 1899 L Street, NW / 5th Floor / Washington, DC 20036 Phone 202-463-4860 ext. 258 / Fax 202-463-4863 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Parse error in application web.xml
Carey - Put all servlet tags together and then all servlet-mapping tags together AFTER the servlet tags. Regards, Lajos Lott, Carey wrote: Instead of depending on the invoker servlet, I have added our servlets to the web.xml file inside of the app's WEB-INF directory. However, now I am getting the following error when I try to start tomcat with the changed web.xml: 2003-01-17 13:07:51 ContextConfig[/esd] Parse error in application web.xml org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,filter*,fil ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca l-ref*). I have validated the web.xml file using IE. No errors are apparent. The file displays properly in the browser. Can somebody look at the web.xml, and see what I am missing? I know it has to be something really easy that I am overlooking. Thanks in advance for the Help web.xml file: ?xml version=1.0 encoding=ISO-8859-1? !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 welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file /welcome-file-list !-- Example servlet servlet-nameDateServlet/servlet-name servlet-classDateServlet/servlet-class /servlet servlet-mapping servlet-nameDateServlet/servlet-name url-pattern/servlet/DateServlet/url-pattern /servlet-mapping -- servlet servlet-nameDDSMenu/servlet-name servlet-classDDSMenu/servlet-class /servlet servlet-mapping servlet-nameDDSMenu/servlet-name url-pattern/DDSMenu/url-pattern /servlet-mapping servlet servlet-nameDDSHome/servlet-name servlet-classDDSHome/servlet-class /servlet servlet-mapping servlet-nameDDSHome/servlet-name url-pattern/DDSHome/url-pattern /servlet-mapping servlet servlet-nameDDSLogin/servlet-name servlet-classDDSLogin/servlet-class /servlet servlet-mapping servlet-nameDDSLogin/servlet-name url-pattern/DDSLogin/url-pattern /servlet-mapping servlet servlet-nameDDSLog/servlet-name servlet-classDDSLog/servlet-class /servlet servlet-mapping servlet-nameDDSLog/servlet-name url-pattern/DDSLog/url-pattern /servlet-mapping /web-app -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Only one tomcat process for Tomcat 3.3.1 using JDK 1.4.1 on RedHat 8
Hi, I have installed Tomcat 3.3.1, JDK 1.4.1 on RedHat 8 machine. When I start tomcat, I see only one Tomcat thread if I do ps -ef. Earlier I had been using tomcat 3.3.1 on Red Hat 7.3. With these configuration I use to see aroung 40 tomcat threads/processes on startup. I have exactly same configuration on both RedHat 7.3 and RedHat 8.0 (in fact I have copied the files from 7.3 to 8.0. Am I missing something ? Do I need to configuration things differently on RedHat 8.0. -Thanks, any insight is appreciated. Nikhil Daxini _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Parse error in application web.xml
Hi, Instead of depending on the invoker servlet, I have added our servlets to Good. 2003-01-17 13:07:51 ContextConfig[/esd] Parse error in application web.xml org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context- param*,filter*,fil ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime- mappin g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource- ref*,se curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb - loca l-ref*). I have validated the web.xml file using IE. No errors are apparent. The You may have viewed the file using IE, not validated it ;) ;) IE would not check against the scheme. The error reported suggests you have elements in the wrong order. It tells you what the right order is. For example, welcome-file-list cannot come before servlet. Reorganize your web.xml file according to the spec, i.e. in the order shown above, and the error will go away. Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Re: Classes not being found in app's WEB-INF directory.
-Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 1:29 PM To: Tomcat Users List Subject: OT: Re: Classes not being found in app's WEB-INF directory. Tim Moore wrote: Can Ant read the package declarations of the source files to determine where they should be placed, or will I have to hard code the paths into the Copy tasks? It wouldn't be hard to write a custom task to do that. Seems like it would be better to fix the source tree structure in CVS, though. It's kind of a PITA, but once it's done, it's done. I agree -- it just doesn't seem right to have a flattened hierarchy in CVS. But I thought that in CVS you can't change the directory structure. You can add new files and dirs, but you can't remove old dirs and move files from old dirs. It's possible, it just sucks. Check out the docs: http://www.cvshome.org/docs/manual/cvs_7.html -- Tim Moore / Blackboard Inc. / Software Engineer 1899 L Street, NW / 5th Floor / Washington, DC 20036 Phone 202-463-4860 ext. 258 / Fax 202-463-4863 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Parse error in application web.xml
That was it. Thanks I placed welcome-file-list element at the bottom and then grouped all of the servlet elements together and underneath it all of the servlet-mapping elements. It finally started up with out an error. Thanks Again. If anybody is interested below is my corrected version. web.xml file: ?xml version=1.0 encoding=ISO-8859-1? !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 servlet servlet-nameDDSMenu/servlet-name servlet-classDDSMenu/servlet-class /servlet servlet servlet-nameDDSHome/servlet-name servlet-classDDSHome/servlet-class /servlet servlet servlet-nameDDSLogin/servlet-name servlet-classDDSLogin/servlet-class /servlet servlet servlet-nameDDSLog/servlet-name servlet-classDDSLog/servlet-class /servlet servlet-mapping servlet-nameDDSMenu/servlet-name url-pattern/DDSMenu/url-pattern /servlet-mapping servlet-mapping servlet-nameDDSHome/servlet-name url-pattern/DDSHome/url-pattern /servlet-mapping servlet-mapping servlet-nameDDSLogin/servlet-name url-pattern/DDSLogin/url-pattern /servlet-mapping servlet-mapping servlet-nameDDSLog/servlet-name url-pattern/DDSLog/url-pattern /servlet-mapping welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file /welcome-file-list /web-app -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 1:37 PM To: Tomcat Users List Subject: RE: Parse error in application web.xml Hi, Instead of depending on the invoker servlet, I have added our servlets to Good. 2003-01-17 13:07:51 ContextConfig[/esd] Parse error in application web.xml org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context- param*,filter*,fil ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime- mappin g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource- ref*,se curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb - loca l-ref*). I have validated the web.xml file using IE. No errors are apparent. The You may have viewed the file using IE, not validated it ;) ;) IE would not check against the scheme. The error reported suggests you have elements in the wrong order. It tells you what the right order is. For example, welcome-file-list cannot come before servlet. Reorganize your web.xml file according to the spec, i.e. in the order shown above, and the error will go away. Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tool for HTTP Request Stress Test
What exactly does doing the HTTP Request Stress Test do? Thanks, Lior - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
Mod_JK - JkMount Invalid Command
I'm trying to setup ModJK for the first time between Apache 2.0 and TOmcat 4.0.4, on Windows 2000. I am stuck with an error I was hoping someone might recognize: It tells me invliad JKMount command. Perhaps mispelled or defined by a module not included in the server configuration. I presume this is because I have commented out these lines: #LoadModule jk_module modules/mod_jk.so #AddModule mod_jk.c But if I *DONT* comment these out, the test configuration window disappears almost as quickly as it appears and I can't see what the problem is. There is nothing being logged, and if I try to start from the Apache Service manager I simply get a message stating The requested operation failed.. Anyone know what's going on? :( Thanks. Neal -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]