WebappClassLoader :Lifecycle error:CL stopped
Hi I am getting following error when i am calling shutdown.sh .whats the reason for this error. shanta.B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to enforce URL-rewriting?
Hello, is there a way to enforce URL rewriting in tag libraries? (e.g. the common tag library and the struts tags) As far as I know, setting cookies=false in the context should disable all cookies and therefore force URL rewriting to be used. Unfortunately, some browsers fool Tomcat (4.1.24) and make it think that session cookies are sent back. This suppresses URL-rewriting and therefore breaks the application if the session cookies are actually suppressed. The strange thing is that 'cookies=false' does not seem to enforce the rewriting. Kind regards, Hans Uhrmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Stackoverflow after DB inactivity
I don't use dbcp but it sounds like your database connections are timing out. Do you have autoReconnect=true in your mysql jdbc connection url? Vikram Goyal wrote: Hello all, I am getting a Stackoverflow error in Tomcat 4.1+ after a period of database inactivity, typically (3+ hours). I am using Struts for the front end and while the non DB access pages work fine, as soon as access to a page is requested where data is to be fetched from the database, I get the StackOverflow. This is not random and I can replicate the error. The error goes away however, when I try to access the same page twice or thrice and everything works fine after that. This error is appearing on both windows and linux, i.e., Tomcat is on these machines, although the database, MySQL 4 is running on linux 9. The DB access is through a connection pool I set up in Struts config for my application using org.apache.commons.dbcp.BasicDataSource. The stack trace follows: 2003-09-16 11:39:56 StandardWrapperValve[action]: Servlet.service() for servlet action threw exception javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:619) at java.lang.Thread.run(Thread.java:534) - Root Cause - java.lang.StackOverflowError Any help, pointers appreciated. Regards, Vikram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Character Set Issues (windows vs. Unix)
Hi, I am yet again being haunted by character set problems and actually don't have a clue what is happening here. I have one web application and 2 servers. Linux Server: Red Hat Linux 2.4.18-14 JDK 1.4.2 Apache Tomcat/4.1.24-LE-jdk14 Postgres 7.2.2 Accessing the Database via JDBC, charSet=SQL_ASCII Windows 2000 JDK 1.4.2 Apache Tomcat/4.1.24-LE-jdk14 Accessing the same postgres database on the Linux server Accessing the Database via JDBC, charSet=SQL_ASCII The config for the application is exactly the same on both machines. But here is my problem I have a form in my web application that allows an admin user to paste content from MS Word which in turn gets saved into the postgres database. As we all know Word uses some strange characters for apostrophes, commas, spaces etc. Which I understand. I have another page that reads and displays the value from the database. When the application is installed on the windows server the particular character (which is some kind of spacing character in word) gets read out of the database as Ascii code 160, BUT on the Linux server the exact same routine reads it as ascii code 65533 Same database, same application config - only difference is OS The JVM's are both set up as default english installs. I really am battling with this one. Regards Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Character Set Issues (windows vs. Unix)
Hans, Make the database fields BLOBs as you're storing binary data. No attempt should then be made by your database to interpret character codes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cannot find jakarta-tomcat-connectors/webapp
I have downloaded and packages and am now trying to compile tomcat. But I get the following exception message: BUILD FAILED file:/hfx/opt/lenya/jakarta-tomcat-4.1.27-src/catalina/build.xml:902: Basedir /hfx/opt/lenya/jakarta-tomcat-connectors/webapp does not exist Total time: 1 minute 42 seconds I've looked at the jakarta-tomcat-connectors/ and can confirm that this does not exist! But I do not know how to correct the problem. Can somebody help. Regards Simon The following information shows the packages we downloaded and installed for the tomcat build. $ 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) (1) jakarta-ant-1.5.1-bin.zip $ ant -version Apache Ant version 1.5.1 compiled on October 2 2002 (2) This is optional with JDK 1.3 or later. (3) This is optional with JDK 1.3 or later (4) Xerces-J-bin.2.5.0.tar.gz (5) tomcat-4.1.27-src.tar.gz tomcat-connectors-1.1M1-src.tar.gz (6) jakarta-servletapi-4-20030914.tar.gz (7) commons-beanutils-1.6.1.tar.gz (8) collections-2.1.tar.gz ** documentation refers to commons-collections-X.Y.tar.gz (9) commons-digester-1.5.tar.gz (10) commons-logging-1.0.3.tar.gz (11) jakarta-regexp-1.3.tar.gz (12) full.dist NOT SET to on (13) Could not find the download (14) mx4j-1.1.1.tar.gz (15) jaf-1.0.2 (16) Not installed. (17) Not installed (18) Not installed although the jta jar is found in .. ./tyrex-1.0/jta_1.0.1.jar (19) jakarta-struts-1.1.tar.gz (20) tyrex-1.0.gz (21) junit3.7.zip (22) modeler-1.1.tar.gz (23) commons-dbcp-1.0.zip (24) pool-1.0.1.tar.gz ** documentation refers to commons-pool-1.0.tar.gz (25) could not find this (26) Extras: JavaService-bin-1.2.0.zip cocoon-latest-src.tar.gz cocoon-lenya-latest-src.tar.gz commons-fileupload-current.tar.gz nsis198.exe Simon Richardson Technology Tel: 020 7574 8838 E Mail: [EMAIL PROTECTED] HBOS Treasury Services plc 33 Old Broad Street London EC2N 1HZ -- -- For more information on HBOS Treasury Services, please visit http://www.HBOSTS.com Or for details of our online FX Deposit services, please go to http://www.HBOSdeal.com HBOS Treasury Services plc is part of the HBOS Group, which also includes Halifax plc and Bank of Scotland. Registered Office: 33 Old Broad Street, London EC2N 1HZ. Registered No. 2692890. Registered in England. Regulated by the Financial Services Authority. The information contained in this message is confidential and is intended for the addressee only. If you have received this message in error or there are any problems please notify the originator immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. This mail and any attachments have been scanned for viruses prior to leaving the HBOS Treasury Services plc network. HBOS Treasury Services plc will not be liable for direct, special, indirect or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. HBOS Treasury Services plc reserves the right to monitor and record e-mail messages sent to and from this address for the purposes of investigating or detecting any unauthorised use of its system and ensuring its effective operation. == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Memory Woes
Hi, I have a problem running applications under Tomcat 4.1.24 with jdk1.4.1_01 on Win2K. I have a couple of simple apps - some using struts, some not. I find that when I start my app and go through a number of pages the memory (in the java process on the windows task manager) goes up - no surprise there. After shutting down the browser it would appear that the memory is not being reclaimed as even hours later the task manager shows the same value. I don't think there's any references being held as the apps are dead simple. Any suggestions would be good as this is driving me crazy. Thanks, John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can access tomcat locally but not from another machine
New to Tomcat and have an initial problem: Can access tomcat locally but not from another machine Setup is : Two machines (Host and Client) connected to a corporate intranet Host (Win XP) is running Tomcat 4.1.27 installed from binary distribution Installation verified by accessing the tomcat default page using http://localhost:8080/index.jsp Using ping both ways I have verified that both machines are ping'able from each other When accessing tomcat on Host from the Client (Win 2000) http://xxx.yyy.zzz.www:8080/index.jsp (actual IP adress hidden in this mail) I get an TCP error message page : There was a communication problem. The system was unable to communicate with the server. I have no overview of the network components in use between the two machines Suppose it is either a network configuration problem (My company is very strict on security issues) or a tomcat configuration problem Any suggestions ? Geir :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Application Not Updated After Reload from TOMCAT Manager
Hi, The application is not updated to the latest changes after I recompile the code and update the jar file in the WEB-INF/lib directory. I stop/start the application from TOMCAT MANAGER. What could be the problem ?. Please advise. Thanks Regards, Thana -Original Message- From: Pountain, John (KAZ at Alcoa) [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 5:45 PM To: 'Tomcat Users List' Subject: Memory Woes Hi, I have a problem running applications under Tomcat 4.1.24 with jdk1.4.1_01 on Win2K. I have a couple of simple apps - some using struts, some not. I find that when I start my app and go through a number of pages the memory (in the java process on the windows task manager) goes up - no surprise there. After shutting down the browser it would appear that the memory is not being reclaimed as even hours later the task manager shows the same value. I don't think there's any references being held as the apps are dead simple. Any suggestions would be good as this is driving me crazy. Thanks, John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Memory Woes
Once memory has been grabbed by the JVM it is only handed back to the OS once the JVM process quits. You can find out the total and free memory the JVM has by using the Runtime class: Runtime.freeMemory() Runtime.totalMemory() Runtime.maxMemory() Pountain, John (KAZ at Alcoa) wrote: Hi, I have a problem running applications under Tomcat 4.1.24 with jdk1.4.1_01 on Win2K. I have a couple of simple apps - some using struts, some not. I find that when I start my app and go through a number of pages the memory (in the java process on the windows task manager) goes up - no surprise there. After shutting down the browser it would appear that the memory is not being reclaimed as even hours later the task manager shows the same value. I don't think there's any references being held as the apps are dead simple. Any suggestions would be good as this is driving me crazy. Thanks, John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can access tomcat locally but not from another machine
If your company is hot on security, the most likely cause is that port 8080 is blocked (possibly at the router). Ask your admin guys about freeing it for internal network access or try running Tomcat on port 80. Ping doesn't use TCP so you won't experience the same connectivity problems. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
help: can't unsubscibe from digest
To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] doesn't work - anyone know why? thanks, Scott -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JNI and Tomcat
Hi, I have exactly the same problem ! do you found a solution ? Thanks, David LAFAY -- Harald Wehr [EMAIL PROTECTED] a écrit dans le message news: [EMAIL PROTECTED] I use tomcat 4.0.1 on a SuSE Linux 7.3 and have the following problem: I try to use some functions of a c-shared library. This library works without problems within a jvm started from a console. To load this library in tomcat i made a little helper class with following code: ---snip public class version { static { try { System.loadLibrary(mapscript); System.out.println(Library loaded); } catch (UnsatisfiedLinkError e) { e.printStackTrace(); } ---snip This class is in $TOMCAT_HOME/classes. To be sure that the class is loaded for my servlet I explicit call this class in my servlet with: ---snip Class.forName(version); ---snip Everything works fine. Console shows that the library has been loaded. Nevertheless I get Unsatisfied.Link.Errors when i try to use some functions in my servlet in the same way i would use it in a normal java-program started from the console. Can anyone help me out of this? Thanks Harald -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Query on url-pattern element of web.xml file ??
Read chapter 11 of the servlet 2.3 specification. It's all there. The spec is available from here: http://www.jcp.org/aboutJava/communityprocess/final/jsr053/ Bikash Paul wrote: Hi all friends, If my web application's web.xml file contains this: filter-mapping filter-nameTest Filter/filter-name url-pattern/*.jsp/url-pattern /filter-mapping then the filter doesn't run when I invoke a JSP in the application's top-level directory. If I change the url-pattern to this: url-pattern*.jsp/url-pattern then the filter does run. Can any one please explain it why it is not working with /*.jsp.Iam little bit confused about url-pattern element of web.xml file.Can any one plz give me some tutorial link for this element so that I can clear my concept from there coz Iam also confused about url-pattern element in case of servlet-mapping.Any help will be highly appreciated. Regards Bikash __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Connection Pooling in Tomcat 4.0
Hi, Can anyone send me the process of using Connection pooling in Tomcat 4.0 I have gone through Tomcat documentation, it says it can be done using Tyrex.jar file. Can anyone send me the process. The second question is It is likely to put Database(SqL Server in our case) credential like DSN,USER,PASSWORD in either web.xml or server.xml, which we don;t want to hard code as it is already present in configuration file. So how i can avoid writing SQL Server credential in web.xml Thanks in advance Regards, Santosh Bhushan i-flex solutions ltd. Tel:2086013 Where there is will there is a way and everything is possible for a willing heart. DISCLAIMER: This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
Re: JNI and Tomcat
Hi Harald, Hi David, look at the fully classified name of your native functions in the DLL or in the .so and compare them to the ones you have in your jni.h headerfile (created using 'javah'). If you have a (windoze).DLL you can view at them using a tool like Depends.exe. Keep in mind that the functions in your shared lib contain the name of the (Java)library/Servlet calling ! If the library/Servlet calling the function does not find a function named _JAVA_name_of_the_calling_Javalib_name_of_native_function it will not work. Hope this helps grisi - Original Message - From: David LAFAY [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 1:05 PM Subject: Re: JNI and Tomcat Hi, I have exactly the same problem ! do you found a solution ? Thanks, David LAFAY -- -- -- Harald Wehr [EMAIL PROTECTED] a écrit dans le message news: [EMAIL PROTECTED] I use tomcat 4.0.1 on a SuSE Linux 7.3 and have the following problem: I try to use some functions of a c-shared library. This library works without problems within a jvm started from a console. To load this library in tomcat i made a little helper class with following code: ---snip public class version { static { try { System.loadLibrary(mapscript); System.out.println(Library loaded); } catch (UnsatisfiedLinkError e) { e.printStackTrace(); } ---snip This class is in $TOMCAT_HOME/classes. To be sure that the class is loaded for my servlet I explicit call this class in my servlet with: ---snip Class.forName(version); ---snip Everything works fine. Console shows that the library has been loaded. Nevertheless I get Unsatisfied.Link.Errors when i try to use some functions in my servlet in the same way i would use it in a normal java-program started from the console. Can anyone help me out of this? Thanks Harald -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error when starting tomcat
Hello. in my linux i start the tomcat and appears this error: can anybody helps me for solving it? thnaks Sep 16, 2003 1:07:14 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Sep 16, 2003 1:07:14 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Sep 16, 2003 1:07:15 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true Sep 16, 2003 1:07:18 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 Sep 16, 2003 1:07:18 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=4/38 config=/opt/jakarta/tomcat/conf/jk2.properties - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Extracting ROOT.war
Hi, When we run tomcat, the ROOT.war should be extracted automatically. With tomcat 4.1.24, when I run tomcat, its unable to extract ROOT.war We have set the unpackWARs=true in server.xml. Am I missing any other configuration ? Please help me on this. Thanks, Sarika The server.xml looks like : !-- DAS_WEB_INTERNAL_PORT --Server port=8007 shutdown=SHUTDOWN debug=0 Service name=Tomcat-Standalone !-- DAS_WEB_PORT --Connector className=org.apache.catalina.connector.http.Ht tpConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=tru e redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6/ !-- DAS_WEB_SECURE_PORT --Connector className=org.apache.catalina.connector. http.HttpConnector port=8443 minProcessors=5 maxProcessors=75 enableLooku ps=true acceptCount=10 debug=0 scheme=https secure=true Factory className=org.apache.catalina.net.SSLServerSocketFactory clientAuth=false protocol=TLS keystoreFile=conf/keystore/ /Connector Engine name=Standalone defaultHost=localhost debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Host name=localhost debug=0 appBase=webapps unpackWARs=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ Context path= docBase=ROOT debug=0 Manager className=org.apache.catalina.session.PersistentManager debug=0 saveOnRestart=false maxActiveSessions=-1 minIdleSwap=-1 maxIdleSwap=-1 maxIdleBackup=-1 Store className=org.apache.catalina.session.FileStore/ /Manager /Context /Host /Engine /Service /Server - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error during make JK2
I am trying to build a JK2 connector on a solaris 9 box. I do: ./configure --with-apxs2=/usr/local/apache/bin/apxs \ --with-tomcat41=/usr/local/jakarta-tomcat-4.1.27 \ --with-java-home=/usr/local/j2sdk1.4.1_05 \ --with-jni \ --with-pcre All is fine, after that i do make and then the problem starts I get the following: #make list=' server/apache2'; \ for i in $list; do \ echo Making $target in $i; \ if test $i !=.; then \ (cd $i make) || exit 1; \ fi; \ done; Making in server/apache2 make: Fatal error in eader: Makefile, lin19: Unexpected end of line seen Current working directory /export/home/suntac/jakarta-tomcat-connectros-jk2-2.0.2-src/jk/native2/serve r/apache2 *** error code 1 Make fatak errir: command failed for target 'jk2-build' # Anybody any clue what the problem is? Regards, Johan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TOMCAT 4.1.x AND JNI
Hi, Hi, I have a stand alone Java Application that access native library (C++ DLL) via JNI. The application works properly in stand alone mode. However, when I need to run it from a Servlet into Tomcat * System.loadLibrary(MYdll) works properly. Library is found in the java.library.path BUT * WHEN I try to call a method I catch an UnsatisfiedLinkError Exception !!! Anybody has any clue about what could be done to fix this? [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Connection Pooling in Tomcat 4.0
I have tried this and ended up using the DBCP package that comes with Tomcat 4.1. It is not part of Tomcat 4.1 thought so you can download it separately and use it with Tomcat 4.0.4 or later (I hope you have these). Tyrex is not the most useful of things and is major hassle to get working. You can download the DBCP package from here: http://jakarta.apache.org/commons/index.html You need to download DBCP, Collections Pool From there it's easy just put the necessary bits in your server.xml (yes I think this is unavoidable) and it works a treat. Hope that helps, Andoni. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 12:27 PM Subject: Connection Pooling in Tomcat 4.0 Hi, Can anyone send me the process of using Connection pooling in Tomcat 4.0 I have gone through Tomcat documentation, it says it can be done using Tyrex.jar file. Can anyone send me the process. The second question is It is likely to put Database(SqL Server in our case) credential like DSN,USER,PASSWORD in either web.xml or server.xml, which we don;t want to hard code as it is already present in configuration file. So how i can avoid writing SQL Server credential in web.xml Thanks in advance Regards, Santosh Bhushan i-flex solutions ltd. Tel:2086013 Where there is will there is a way and everything is possible for a willing heart. DISCLAIMER: This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
performing init operations in webapp
Hi I am developing an web application (essentially axis, the web service toolkit), which will be deployed in Tomcat. Now before any client make a request to this web application, I want to perform some *init* operations. How can I do this? thanks, Naresh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: error during make JK2
I find that using gmake instead allows the comile to complete. I think that gmake is GNU's make. I have seen this problem in other postings and found one that recommended using gmake instead. I hope that this helps you. Dean -Original Message- From: Johan Louwers [mailto:[EMAIL PROTECTED] Sent: Tue 9/16/2003 7:37 AM To: Tomcat Users List Cc: Subject: error during make JK2 I am trying to build a JK2 connector on a solaris 9 box. I do: ./configure --with-apxs2=/usr/local/apache/bin/apxs \ --with-tomcat41=/usr/local/jakarta-tomcat-4.1.27 \ --with-java-home=/usr/local/j2sdk1.4.1_05 \ --with-jni \ --with-pcre All is fine, after that i do make and then the problem starts I get the following: #make list=' server/apache2'; \ for i in $list; do \ echo Making $target in $i; \ if test $i !=.; then \ (cd $i make) || exit 1; \ fi; \ done; Making in server/apache2 make: Fatal error in eader: Makefile, lin19: Unexpected end of line seen Current working directory /export/home/suntac/jakarta-tomcat-connectros-jk2-2.0.2-src/jk/native2/serve r/apache2 *** error code 1 Make fatak errir: command failed for target 'jk2-build' # Anybody any clue what the problem is? Regards, Johan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Connection Pooling in Tomcat 4.0
Hi Andoni, Regards, Santosh Bhushan i-flex solutions ltd. Tel:2086013 Where there is will there is a way and everything is possible for a willing heart. Hi andoni, First of all thanks for reply. Because you have already done this configaration, Do we need to put Database user id and Password in the server.xml file. if yes what other thing we need to put in server.xml and what things we need to put in web.xml Thanks a lot.. Any other suggestion regarding using CONNECTION POOLING WITH TOMCAT 4.0 is highly welcome -Santosh -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 5:27 PM To: Tomcat Users List Subject: Re: Connection Pooling in Tomcat 4.0 I have tried this and ended up using the DBCP package that comes with Tomcat 4.1. It is not part of Tomcat 4.1 thought so you can download it separately and use it with Tomcat 4.0.4 or later (I hope you have these). Tyrex is not the most useful of things and is major hassle to get working. You can download the DBCP package from here: http://jakarta.apache.org/commons/index.html You need to download DBCP, Collections Pool From there it's easy just put the necessary bits in your server.xml (yes I think this is unavoidable) and it works a treat. Hope that helps, Andoni. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 12:27 PM Subject: Connection Pooling in Tomcat 4.0 Hi, Can anyone send me the process of using Connection pooling in Tomcat 4.0 I have gone through Tomcat documentation, it says it can be done using Tyrex.jar file. Can anyone send me the process. The second question is It is likely to put Database(SqL Server in our case) credential like DSN,USER,PASSWORD in either web.xml or server.xml, which we don;t want to hard code as it is already present in configuration file. So how i can avoid writing SQL Server credential in web.xml Thanks in advance Regards, Santosh Bhushan i-flex solutions ltd. Tel:2086013 Where there is will there is a way and everything is possible for a willing heart. DISCLAIMER: This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: performing init operations in webapp
2 ways: 1) init() of the Servlet 2) See ServletContextListener -Tim Agarwal, Naresh wrote: Hi I am developing an web application (essentially axis, the web service toolkit), which will be deployed in Tomcat. Now before any client make a request to this web application, I want to perform some *init* operations. How can I do this? thanks, Naresh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Connection Pooling in Tomcat 4.0
Hi andoni, First of all thanks for reply. Because you have already done this configaration, Do we need to put Database user id and Password in the server.xml file. if yes what other thing we need to put in server.xml and what things we need to put in web.xml Thanks a lot.. Any other suggestion regarding using CONNECTION POOLING WITH TOMCAT 4.0 is highly welcome -Santosh -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 5:27 PM To: Tomcat Users List Subject: Re: Connection Pooling in Tomcat 4.0 I have tried this and ended up using the DBCP package that comes with Tomcat 4.1. It is not part of Tomcat 4.1 thought so you can download it separately and use it with Tomcat 4.0.4 or later (I hope you have these). Tyrex is not the most useful of things and is major hassle to get working. You can download the DBCP package from here: http://jakarta.apache.org/commons/index.html You need to download DBCP, Collections Pool From there it's easy just put the necessary bits in your server.xml (yes I think this is unavoidable) and it works a treat. Hope that helps, Andoni. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 12:27 PM Subject: Connection Pooling in Tomcat 4.0 Hi, Can anyone send me the process of using Connection pooling in Tomcat 4.0 I have gone through Tomcat documentation, it says it can be done using Tyrex.jar file. Can anyone send me the process. The second question is It is likely to put Database(SqL Server in our case) credential like DSN,USER,PASSWORD in either web.xml or server.xml, which we don;t want to hard code as it is already present in configuration file. So how i can avoid writing SQL Server credential in web.xml Thanks in advance Regards, Santosh Bhushan i-flex solutions ltd. Tel:2086013 Where there is will there is a way and everything is possible for a willing heart. DISCLAIMER: This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: performing init operations in webapp
Create a servlet that gets initialised on the context start up (you set that up in web.xml), Stick your code in the servlet's init() method -Original Message- From: Agarwal, Naresh [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 2:28 AM To: [EMAIL PROTECTED] Subject: performing init operations in webapp Hi I am developing an web application (essentially axis, the web service toolkit), which will be deployed in Tomcat. Now before any client make a request to this web application, I want to perform some *init* operations. How can I do this? thanks, Naresh
Recall: Connection Pooling in Tomcat 4.0
Santosh Bhushan-OP would like to recall the message, Connection Pooling in Tomcat 4.0. DISCLAIMER: This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Vedr.: RE: Connection Pooling in Tomcat 4.0
Hi santosh. I have been using DBConnectionBroker from http://www.javaexchange.com/ with Tomcat 4.03 and am currently using it with Tomcat 4.1.27. I have no clue what so ever about its performance etc. vs. DBCP but found it very easy to configure and use as I had no experience with connection pooling. Best regards Thomas [EMAIL PROTECTED] 16-09-03 14:13 Besvar venligst til Tomcat Users List Til:[EMAIL PROTECTED] cc: [EMAIL PROTECTED] Vedr.: RE: Connection Pooling in Tomcat 4.0 Hi andoni, First of all thanks for reply. Because you have already done this configaration, Do we need to put Database user id and Password in the server.xml file. if yes what other thing we need to put in server.xml and what things we need to put in web.xml Thanks a lot.. Any other suggestion regarding using CONNECTION POOLING WITH TOMCAT 4.0 is highly welcome -Santosh -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 5:27 PM To: Tomcat Users List Subject: Re: Connection Pooling in Tomcat 4.0 I have tried this and ended up using the DBCP package that comes with Tomcat 4.1. It is not part of Tomcat 4.1 thought so you can download it separately and use it with Tomcat 4.0.4 or later (I hope you have these). Tyrex is not the most useful of things and is major hassle to get working. You can download the DBCP package from here: http://jakarta.apache.org/commons/index.html You need to download DBCP, Collections Pool From there it's easy just put the necessary bits in your server.xml (yes I think this is unavoidable) and it works a treat. Hope that helps, Andoni. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 12:27 PM Subject: Connection Pooling in Tomcat 4.0 Hi, Can anyone send me the process of using Connection pooling in Tomcat 4.0 I have gone through Tomcat documentation, it says it can be done using Tyrex.jar file. Can anyone send me the process. The second question is It is likely to put Database(SqL Server in our case) credential like DSN,USER,PASSWORD in either web.xml or server.xml, which we don;t want to hard code as it is already present in configuration file. So how i can avoid writing SQL Server credential in web.xml Thanks in advance Regards, Santosh Bhushan i-flex solutions ltd. Tel:2086013 Where there is will there is a way and everything is possible for a willing heart. DISCLAIMER: This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=Arial___ Vi goer opmaerksom paa, at denne e-mail kan indeholde fortrolig information. Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om fejlen ved at bruge svar-funktionen. Samtidig beder vi dig slette e-mailen i dit system uden at videresende eller kopiere den. Selv om e-mailen og ethvert vedhaeftet bilag efter vores overbevisning er fri for virus og andre fejl, som kan paavirke computeren eller it-systemet, hvori den modtages og laeses, aabnes den paa modtagerens eget ansvar. Vi paatager os ikke noget ansvar for tab og skade, som er
? catalina.out under Windows
Hi all, I would like to log everything under Windows (like under linux) to catalina.out. How should I configure this? ( A proper catalina.bat might help. ) Thanks: Csabi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Vedr.: RE: Connection Pooling in Tomcat 4.0
Hi Thomas, As you have used DBConnectionBroker, can you tell me what configuration is required,whatso ever and the second question i want to ask is if it is free. Regards, Santosh Bhushan i-flex solutions ltd. Tel:2086013 Where there is will there is a way and everything is possible for a willing heart. -Original Message- From: Thomas Nybro Bolding [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 5:47 PM To: Tomcat Users List Subject: Vedr.: RE: Connection Pooling in Tomcat 4.0 Hi santosh. I have been using DBConnectionBroker from http://www.javaexchange.com/ with Tomcat 4.03 and am currently using it with Tomcat 4.1.27. I have no clue what so ever about its performance etc. vs. DBCP but found it very easy to configure and use as I had no experience with connection pooling. Best regards Thomas [EMAIL PROTECTED] 16-09-03 14:13 Besvar venligst til Tomcat Users List Til:[EMAIL PROTECTED] cc: [EMAIL PROTECTED] Vedr.: RE: Connection Pooling in Tomcat 4.0 Hi andoni, First of all thanks for reply. Because you have already done this configaration, Do we need to put Database user id and Password in the server.xml file. if yes what other thing we need to put in server.xml and what things we need to put in web.xml Thanks a lot.. Any other suggestion regarding using CONNECTION POOLING WITH TOMCAT 4.0 is highly welcome -Santosh -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 5:27 PM To: Tomcat Users List Subject: Re: Connection Pooling in Tomcat 4.0 I have tried this and ended up using the DBCP package that comes with Tomcat 4.1. It is not part of Tomcat 4.1 thought so you can download it separately and use it with Tomcat 4.0.4 or later (I hope you have these). Tyrex is not the most useful of things and is major hassle to get working. You can download the DBCP package from here: http://jakarta.apache.org/commons/index.html You need to download DBCP, Collections Pool From there it's easy just put the necessary bits in your server.xml (yes I think this is unavoidable) and it works a treat. Hope that helps, Andoni. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 12:27 PM Subject: Connection Pooling in Tomcat 4.0 Hi, Can anyone send me the process of using Connection pooling in Tomcat 4.0 I have gone through Tomcat documentation, it says it can be done using Tyrex.jar file. Can anyone send me the process. The second question is It is likely to put Database(SqL Server in our case) credential like DSN,USER,PASSWORD in either web.xml or server.xml, which we don;t want to hard code as it is already present in configuration file. So how i can avoid writing SQL Server credential in web.xml Thanks in advance Regards, Santosh Bhushan i-flex solutions ltd. Tel:2086013 Where there is will there is a way and everything is possible for a willing heart. DISCLAIMER: This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=Arial___ Vi goer opmaerksom paa, at denne e-mail kan indeholde
Re: performing init operations in webapp
The easiest way is as follows: Say your web service is called MyWebService. Implement the class that does the real work as a singleton class (i.e. private constructor, public getInstance() method which returns the only instance of the singleton class, creating it if it doesn't exist). This class will be called something like MyWebServiceImpl. Your servant class will be a wrapper around the methods in MyWebServiceImpl. For example, say you expose a method called x, the code in the servant class will call MyWebServiceImpl().getInstance().x(). Create a servlet for lifecycle management. In your web.xml set the loadOnStartup value to 1. In your servlet's init() method call MyWebServiceImpl.getInstance() and do your necessary initializing in the getInstance() method. In your servlet's destroy() method, call something like MyWebServiceImpl.getInstance().shutdown() to clean up (assuming that you've defined a shutdown() method). Your lifecycle management servlet can do other stuff - for example acting as the destination for post operations from any admin pages that you might write. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Logging with tomcat
Howdy, Where are your commons-logging, commons-logging-api jars, and logging configuration file? Yoav Shapira Millennium ChemInformatics -Original Message- From: Francisco Vides Fernandez [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 5:37 PM To: [EMAIL PROTECTED] Subject: Logging with tomcat Hello I'm trying to do some loging using tomcat and commons-logging, but I don't know how to make it work properly. I'm using org.apache.commons.Log, and if I do something like log.error (something); It works properly, and I can see the output in tomcat log files, but if I do log.debug (something); or log.trace (something); can't see any output. I've RTFM from tomcat and commons-logging, and tried with values of debug in Context, Logger and such. Also search the mail archives, but couldn't find anything on how to configure this. Could someone help me or point me in the right direction? Thanks in advance -- +- | Francisco Vides Fernández [EMAIL PROTECTED] | Director técnico. | Teléfono fijo: 952 60 29 59 | Teléfono móvil: 661 67 32 73 | Fax: 952 60 29 59 | Dédalo Ingenieros http://www.dedaloingenieros.com/ | PGP: http://pgp.rediris.es:11371/pks/lookup?op=indexsearch=0x5AAE6285 +-- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Query on url-pattern element of web.xml file ??
Howdy, Senor Wingfield pointed you at the right (and definitive) resource on this already. I just wanted to mention this EXACT question (complete with the /*.jsp mapping) has been asked on the list before, so you can search the archives if you'd like. Yoav Shapira Millennium ChemInformatics -Original Message- From: Bikash Paul [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 7:05 AM To: [EMAIL PROTECTED] Subject: Query on url-pattern element of web.xml file ?? Hi all friends, If my web application's web.xml file contains this: filter-mapping filter-nameTest Filter/filter-name url-pattern/*.jsp/url-pattern /filter-mapping then the filter doesn't run when I invoke a JSP in the application's top-level directory. If I change the url-pattern to this: url-pattern*.jsp/url-pattern then the filter does run. Can any one please explain it why it is not working with /*.jsp.Iam little bit confused about url-pattern element of web.xml file.Can any one plz give me some tutorial link for this element so that I can clear my concept from there coz Iam also confused about url-pattern element in case of servlet-mapping.Any help will be highly appreciated. Regards Bikash __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Specifying startup port on the command line?
Howdy, I mean writing a little Java class to launch tomcat as an embedded service. Then this class could read whatever CLI arguments you'd like and setup tomcat accordingly. Yoav Shapira Millennium ChemInformatics -Original Message- From: Stefan Lasiewski [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 3:44 PM To: 'Tomcat Users List' Subject: RE: Specifying startup port on the command line? Do you mean the Embedded code block in catalina.sh ? This is a full-fledged web application, not an embedded application. I'm not sure if looking at the Embedded code would help. Thanks for your help everyone, -= Stefan -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 10:47 AM To: Tomcat Users List Subject: RE: Specifying startup port on the command line? Howdy, Or you could use EmbeddedTomcat... Yoav Shapira Millennium ChemInformatics -Original Message- From: Dana Bourgeois [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 1:42 PM To: 'Tomcat Users List' Subject: RE: Specifying startup port on the command line? I would rewrite catalina.sh to read arguments from the command line and use them otherwise use some defaults. The Oreilly book Learning the bash shell has a great example for this using getopt to do exactly this. Dana Bourgeois -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 9:28 AM To: Tomcat Users List Subject: RE: Specifying startup port on the command line? Howdy, Replace port=x with port=y via perl/sed/awk/whatever. I wouldn't count on 8080/8443 always being present/always being the default values. In fact, I wouldn't do what you're doing anyways, but I imagine you have good reason for it. Yoav Shapira Millennium ChemInformatics -Original Message- From: Stefan Lasiewski [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 12:28 PM To: Tomcat Users List (E-mail) Subject: Specifying startup port on the command line? Hey all, I am looking for a way to startup Tomcat and be able specify the HTTP, HTTPS other ports on the commandline. I think I will probably use a sed script inside of catalina.sh to search replace for strings like 8080 and 8443 in the server.xml file. However, this solution is a bit inflexible, and I was wondering what other ideas people have come up with. Thanks for your help, -= Stefan Stefan Lasiewski, Release Engineer Innovative Interfaces, Inc. - QA Department 510-450-6363 ext. 4209 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Starting EmbeddedTomcat
Howdy, After starting EmbeddedTomcat I run my application by entering a starting jsp page. Something that is not obvious to me is how to accomplish both in one fell swoop. What is the best way to do this? So you need a request to that JSP page in order to start your webapp? That's an interesting mechanism. Why not fire something from the a ServletContextListener's contextInitialized event instead? Anyways, if you need a real request, consider HTTPUnit. It's easy. http://httpunit.sourceforge.net/ Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Vedr.: RE: Vedr.: RE: Connection Pooling in Tomcat 4.0
The way I have done it (though this might not be the best...) is this: i) Copied the DBConnectionBroker.class file to Web-inf/classes/com/javaexchange/dbConnectionBroker ii) I have an initializing method being called from JspInit() such as this: package com.db.regnskab; import com.javaexchange.dbConnectionBroker.*; public class IRUtilities { public static DbConnectionBroker dbBroker; public static void init() { try { String driver = sun.jdbc.odbc.JdbcOdbcDriver; String url= jdbc:odbc:dmir; String logfile= D:\\DAT\\logfiles\\connections\\regnskab.log; dbBroker = new DbConnectionBroker(driver, url, foo, bar, 50, 100, logfile, 0.01); } catch(IOException e) { e.printStackTrace(); } } } The syntax can be seen in the documentation but essentially this gives me 5 initial connection using the specified odbc-driver. Please note userid and password are supplied within the class but may just as well be parsed. iii)When I need a connection I simply use it in my classes such as this: package com.db.regnskab; import com.javaexchange.dbConnectionBroker.*; public class Afstemning { public static void arkiverAfstemning() { DbConnectionBroker dbBroker = IRUtilities.dbBroker; Connection conn = dbBroker.getConnection(); try { /*some sql...*/ } catch(Exception e) { e.printStackTrace(); } finally { dbBroker.freeConnection(conn); } } The answer to your second answer is YES - it is written and distributed under Open Source License. /Thomas [EMAIL PROTECTED] 16-09-03 14:42 Til:[EMAIL PROTECTED] cc: Thomas Nybro Bolding/THBO/Intranet/[EMAIL PROTECTED] Vedr.: RE: Vedr.: RE: Connection Pooling in Tomcat 4.0 Hi Thomas, As you have used DBConnectionBroker, can you tell me what configuration is required,whatso ever and the second question i want to ask is if it is free. Regards, Santosh Bhushan i-flex solutions ltd. Tel:2086013 Where there is will there is a way and everything is possible for a willing heart. -Original Message- From: Thomas Nybro Bolding [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 5:47 PM To: Tomcat Users List Subject: Vedr.: RE: Connection Pooling in Tomcat 4.0 Hi santosh. I have been using DBConnectionBroker from http://www.javaexchange.com/ with Tomcat 4.03 and am currently using it with Tomcat 4.1.27. I have no clue what so ever about its performance etc. vs. DBCP but found it very easy to configure and use as I had no experience with connection pooling. Best regards Thomas [EMAIL PROTECTED] 16-09-03 14:13 Besvar venligst til Tomcat Users List Til:[EMAIL PROTECTED] cc: [EMAIL PROTECTED] Vedr.: RE: Connection Pooling in Tomcat 4.0 Hi andoni, First of all thanks for reply. Because you have already done this configaration, Do we need to put Database user id and Password in the server.xml file. if yes what other thing we need to put in server.xml and what things we need to put in web.xml Thanks a lot.. Any other suggestion regarding using CONNECTION POOLING WITH TOMCAT 4.0 is highly welcome -Santosh -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 5:27 PM To: Tomcat Users List Subject: Re: Connection Pooling in Tomcat 4.0 I have tried this and ended up using the DBCP package that comes with Tomcat 4.1. It is not part of Tomcat 4.1 thought so you can download it separately and use it with Tomcat 4.0.4 or later (I hope you have these). Tyrex is not the most useful of things and is major hassle to get working. You can download the DBCP package from here: http://jakarta.apache.org/commons/index.html You need to download DBCP, Collections Pool From there it's easy just put the necessary bits in your server.xml (yes I think this is unavoidable) and it works a treat. Hope that helps, Andoni. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 12:27 PM Subject: Connection Pooling in Tomcat 4.0 Hi, Can anyone send me the process of using Connection pooling in Tomcat 4.0 I have gone through Tomcat documentation, it says it can be done using Tyrex.jar file. Can anyone send me the process. The second question is It is likely to put Database(SqL Server in our case) credential like DSN,USER,PASSWORD in either web.xml or server.xml, which we don;t want to hard code as it is already present in configuration file. So how i can avoid writing SQL Server credential in web.xml Thanks in advance Regards, Santosh Bhushan i-flex solutions ltd. Tel:2086013 Where there is will there is a way and everything is possible for a willing heart. DISCLAIMER: This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should
RE: Vedr.: RE: Vedr.: RE: Connection Pooling in Tomcat 4.0
Hi Thomas, Thanks a lot for all your help, I will check it out and will revert back in case of problem. Thanks a lot once again. Regards, Santosh Bhushan i-flex solutions ltd. Tel:2086013 Where there is will there is a way and everything is possible for a willing heart. -Original Message- From: Thomas Nybro Bolding [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 6:33 PM To: Santosh Bhushan-OP Cc: [EMAIL PROTECTED] Subject: Vedr.: RE: Vedr.: RE: Connection Pooling in Tomcat 4.0 The way I have done it (though this might not be the best...) is this: i) Copied the DBConnectionBroker.class file to Web-inf/classes/com/javaexchange/dbConnectionBroker ii) I have an initializing method being called from JspInit() such as this: package com.db.regnskab; import com.javaexchange.dbConnectionBroker.*; public class IRUtilities { public static DbConnectionBroker dbBroker; public static void init() { try { String driver= sun.jdbc.odbc.JdbcOdbcDriver; String url= jdbc:odbc:dmir; String logfile= D:\\DAT\\logfiles\\connections\\regnskab.log; dbBroker = new DbConnectionBroker(driver, url, foo, bar, 50, 100, logfile, 0.01); } catch(IOException e) { e.printStackTrace(); } } } The syntax can be seen in the documentation but essentially this gives me 5 initial connection using the specified odbc-driver. Please note userid and password are supplied within the class but may just as well be parsed. iii)When I need a connection I simply use it in my classes such as this: package com.db.regnskab; import com.javaexchange.dbConnectionBroker.*; public class Afstemning { public static void arkiverAfstemning() { DbConnectionBroker dbBroker = IRUtilities.dbBroker; Connection conn = dbBroker.getConnection(); try { /*some sql...*/ } catch(Exception e) { e.printStackTrace(); } finally { dbBroker.freeConnection(conn); } } The answer to your second answer is YES - it is written and distributed under Open Source License. /Thomas [EMAIL PROTECTED] 16-09-03 14:42 Til:[EMAIL PROTECTED] cc:Thomas Nybro Bolding/THBO/Intranet/[EMAIL PROTECTED] Vedr.:RE: Vedr.: RE: Connection Pooling in Tomcat 4.0 Hi Thomas, As you have used DBConnectionBroker, can you tell me what configuration is required,whatso ever and the second question i want to ask is if it is free. Regards, Santosh Bhushan i-flex solutions ltd. Tel:2086013 Where there is will there is a way and everything is possible for a willing heart. -Original Message- From: Thomas Nybro Bolding [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 5:47 PM To: Tomcat Users List Subject: Vedr.: RE: Connection Pooling in Tomcat 4.0 Hi santosh. I have been using DBConnectionBroker from http://www.javaexchange.com/ with Tomcat 4.03 and am currently using it with Tomcat 4.1.27. I have no clue what so ever about its performance etc. vs. DBCP but found it very easy to configure and use as I had no experience with connection pooling. Best regards Thomas [EMAIL PROTECTED] 16-09-03 14:13 Besvar venligst til Tomcat Users List Til:[EMAIL PROTECTED] cc: [EMAIL PROTECTED] Vedr.: RE: Connection Pooling in Tomcat 4.0 Hi andoni, First of all thanks for reply. Because you have already done this configaration, Do we need to put Database user id and Password in the server.xml file. if yes what other thing we need to put in server.xml and what things we need to put in web.xml Thanks a lot.. Any other suggestion regarding using CONNECTION POOLING WITH TOMCAT 4.0 is highly welcome -Santosh -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 5:27 PM To: Tomcat Users List Subject: Re: Connection Pooling in Tomcat 4.0 I have tried this and ended up using the DBCP package that comes with Tomcat 4.1. It is not part of Tomcat 4.1 thought so you can download it separately and use it with Tomcat 4.0.4 or later (I hope you have these). Tyrex is not the most useful of things and is major hassle to get working. You can download the DBCP package from here: http://jakarta.apache.org/commons/index.html You need to download DBCP, Collections Pool From there it's easy just put the necessary bits in your server.xml (yes I think this is unavoidable) and it works a treat. Hope that helps, Andoni. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 12:27 PM Subject: Connection Pooling in Tomcat 4.0 Hi, Can anyone send me the process of using Connection pooling in Tomcat 4.0 I have gone through Tomcat documentation, it says it can be done using Tyrex.jar file. Can anyone send me the process. The second question is
Basic authentication works - form authentication does not work
I'm having a problem that I was unable to find any info on in the documentation or the mailing list archives. I've set up Basic Authentication with Tomcat 4.1.27 and an Oracle LDAP server. I've got this working just fine but what I really want is Form-Based Authentication which has thus far eluded me. When I switch the authentication method through the applications web.xml file, I manage to get the correct login screen (so I know that the new xml file is being deployed.) When I enter the same name and password that worked with basic authentication, however, I get the error page that I specified. It should also be noted that in the working basic case, the catalina.out file shows all sorts of activity (connecting to LDAP server, plus the attempt to authenticate the user, etc.) When I switch to form, I only see the initial (successful) connection to the LDAP server. It appears that Tomcat is not even attempting to verify the information anymore. This makes me think this is either a Tomcat bug or I've configured Tomcat incorrectly (as opposed to there being a problem with my LDAP setup.) Any thoughts? TIA - sean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problems receiving date through the input stream
Hi, I use the doPost method and send it a short string. However, reading from the input stream on the server, I get nothing. Any explanations? I added code snippets for client and server: client HttpURLConnection connection = (HttpURLConnection)url.openConnection(); connection.setDoOutput( true ); connection.setDoInput( true ); connection.setRequestMethod( POST ); OutputStream outputStream = connection.getOutputStream(); OutputStreamWriter writer = new OutputStreamWriter( outputStream ); writer.write( This is a test ); writer.flush(); outputStream.close(); InputStream inputStream = connection.getInputStream(); BufferedReader reader = new BufferedReader( new InputStreamReader( inputStream ) ); String line; while( ( line = reader.readLine() ) != null ) { System.out.println( line ); } inputStream.close(); server: System.out.println( wssvl_DomainServlet.doPost ); ServletInputStream inputStream = httpServletRequest.getInputStream(); InputStreamReader reader = new InputStreamReader( inputStream ); BufferedReader bReader = new BufferedReader( reader ); String currentLine = null; while( ( currentLine = bReader.readLine() ) != null ) System.out.println( currentLine ); // DOES NOT RETURN ANYTHING httpServletResponse.setContentType( text/xml ); PrintWriter out = httpServletResponse.getWriter(); out.println( ?xml version=\1.0\ encoding=\UTF-8\? ); out.println( This is another test ); out.close(); *** Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memory Woes
There are reports of jdk 1.4.1 having a memory leak. You could try updating the JDK http://www.raibledesigns.com/page/rd/20030331 -Original Message- From: Pountain, John (KAZ at Alcoa) [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 4:45 AM To: 'Tomcat Users List' Subject: Memory Woes Hi, I have a problem running applications under Tomcat 4.1.24 with jdk1.4.1_01 on Win2K. I have a couple of simple apps - some using struts, some not. I find that when I start my app and go through a number of pages the memory (in the java process on the windows task manager) goes up - no surprise there. After shutting down the browser it would appear that the memory is not being reclaimed as even hours later the task manager shows the same value. I don't think there's any references being held as the apps are dead simple. Any suggestions would be good as this is driving me crazy. Thanks, John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Application Not Updated After Reload from TOMCAT Manager
If you're using 4.1.27, there is a known bug in class reloading. There is a hotfix available http://apache.mirrored.ca/jakarta/tomcat-4/binaries/ -Original Message- From: Thana Letchumi [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 5:33 AM To: 'Tomcat Users List' Subject: Application Not Updated After Reload from TOMCAT Manager Hi, The application is not updated to the latest changes after I recompile the code and update the jar file in the WEB-INF/lib directory. I stop/start the application from TOMCAT MANAGER. What could be the problem ?. Please advise. Thanks Regards, Thana -Original Message- From: Pountain, John (KAZ at Alcoa) [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 5:45 PM To: 'Tomcat Users List' Subject: Memory Woes Hi, I have a problem running applications under Tomcat 4.1.24 with jdk1.4.1_01 on Win2K. I have a couple of simple apps - some using struts, some not. I find that when I start my app and go through a number of pages the memory (in the java process on the windows task manager) goes up - no surprise there. After shutting down the browser it would appear that the memory is not being reclaimed as even hours later the task manager shows the same value. I don't think there's any references being held as the apps are dead simple. Any suggestions would be good as this is driving me crazy. Thanks, John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using ParameterMap throws ClassCastException
I am using the ParameterMap in request in an authentication mechanism. Therefore I need to do the following: add a mapping of parameters to the request.getParameter(). I do the following: import org.apache.catalina.util.ParameterMap; ... System.out.println(ParameterMap is a: + request.getParameterMap().getClass().getName()); try{ ParameterMap map = (ParameterMap)request.getParameterMap(); map.setLocked(false); map.putAll(values.getParameterMap()); map.setLocked(true); }catch(Exception e){ e.printStackTrace(); } This gives the following output: ParameterMap is a org.apache.catalina.util.ParameterMap And a ClassCastException in this line: ParameterMap map = (ParameterMap)request.getParameterMap(); So it seems that they reference to two different class-definitions, but I am using the same catalina.jar everywhere. (included it in the WEB-INF/lib dir) If I put catalina.jar in the WEB-INF/lib dir, then the above error is reported, else a ClassNotFoundException is thrown. I'm using tomcat-4.1 and found the class in the catalina.jar file. Where else is it? Thanks Morten Andersen Master of applied mathematics and computer science Research assistant (in e-learning) The Maersk Institute of Production technology at Southern Danish University www.mip.sdu.dk Campusvej 55 DK-5230 Odense M Denmark +45 6550-3654 +45 6171-1103 Jabber id: [EMAIL PROTECTED]
RE: Using ParameterMap throws ClassCastException
Howdy, Terrible idea. Don't use tomcat internal classes. Stick to the interface defined by the spec, whereby HttpServletRequest#getParameterMap returns an instance java.util.Map. Yoav Shapira Millennium ChemInformatics -Original Message- From: Morten Andersen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 10:14 AM To: [EMAIL PROTECTED] Subject: Using ParameterMap throws ClassCastException I am using the ParameterMap in request in an authentication mechanism. Therefore I need to do the following: add a mapping of parameters to the request.getParameter(). I do the following: import org.apache.catalina.util.ParameterMap; ... System.out.println(ParameterMap is a: + request.getParameterMap().getClass().getName()); try{ ParameterMap map = (ParameterMap)request.getParameterMap(); map.setLocked(false); map.putAll(values.getParameterMap()); map.setLocked(true); }catch(Exception e){ e.printStackTrace(); } This gives the following output: ParameterMap is a org.apache.catalina.util.ParameterMap And a ClassCastException in this line: ParameterMap map = (ParameterMap)request.getParameterMap(); So it seems that they reference to two different class-definitions, but I am using the same catalina.jar everywhere. (included it in the WEB-INF/lib dir) If I put catalina.jar in the WEB-INF/lib dir, then the above error is reported, else a ClassNotFoundException is thrown. I'm using tomcat-4.1 and found the class in the catalina.jar file. Where else is it? Thanks Morten Andersen Master of applied mathematics and computer science Research assistant (in e-learning) The Maersk Institute of Production technology at Southern Danish University www.mip.sdu.dk Campusvej 55 DK-5230 Odense M Denmark +45 6550-3654 +45 6171-1103 Jabber id: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SSL Cipher Suite Config in Tomcat JSSE
I am trying to configure Tomcat to only support cipher suite SSL_RSA_WITH_3DES_EDE_CBC_SHA as we have a requirement to only use Triple DES encryption. How does one do this? Tim McClure - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Garbled Pages
Hello Everyone, I have connected apache 2.0.43 and Tomcat 4.1.27-LE with mod_jk2. Some of the pages in my webapp are all screwed up when being returned via apache. It appears that they display a portion of included javascript files, then an HTTP header, and then my rendered content underneath the screwed up stuff. The page gets displayed as followed: a ton of displayed javascript HTTP/1.1 200 OK Date: Tue, 16 Sep 2003 13:59:13 GMT Server: Apache Content-Type: text/html;charset=ISO-8859-1 Keep-Alive: timeout=15, max=97 Connection: Keep-Alive Transfer-Encoding: chunked cae the actual page that was to be displayed Has anyone seen this before? Is this a known problem or user error? Thanks very much for any help, Frank Febbraro
jk2_init() Can't find Child xxx in scoreboard
Build JK2 now on soalris 9. Placed mod_jk2.so in the Apache module dir. Also added: LoadModule jk2_module modules/mod_jk2.so at the end of my httpd.conf file. Stop and start apache and try to open http://10.99.1.115/examples Nothing!! http://10.99.1.115 is giving me the basic apache site http://10.99.1.115:8080 is giving me the basic tomact site. So the connector is not working correctly Opend error_log and found the following: [error] jk2_init() Can't find child 1157 in scoreboard [error] shm.init(): No file [error] mod_jk child init 1 -2 Any clue how to make it work anybody? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
servlet unavailable
Hi, In what circumstances tomcat (4.1.x) set a servlet unavailable ? Is it possible that a servlet is set unavailable after a high load ? Some users of my web application report error page HTTP Status 503 - Servlet xxx is currently unavailable. Thanks, Dorin
Re: Garbled Pages
I also get error_log entries like this.. [Tue Sep 16 09:55:41 2003] [error] channelSocket.receive(): Error receiving message body -1 131 [Tue Sep 16 09:55:41 2003] [error] workerEnv.processCallbacks() Error reading reply [Tue Sep 16 09:55:41 2003] [error] ajp13.service() ajpGetReply recoverable error 12 - Original Message - From: Frank Febbraro [EMAIL PROTECTED] To: tomcat [EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 10:41 AM Subject: Garbled Pages Hello Everyone, I have connected apache 2.0.43 and Tomcat 4.1.27-LE with mod_jk2. Some of the pages in my webapp are all screwed up when being returned via apache. It appears that they display a portion of included javascript files, then an HTTP header, and then my rendered content underneath the screwed up stuff. The page gets displayed as followed: a ton of displayed javascript HTTP/1.1 200 OK Date: Tue, 16 Sep 2003 13:59:13 GMT Server: Apache Content-Type: text/html;charset=ISO-8859-1 Keep-Alive: timeout=15, max=97 Connection: Keep-Alive Transfer-Encoding: chunked cae the actual page that was to be displayed Has anyone seen this before? Is this a known problem or user error? Thanks very much for any help, Frank Febbraro - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
servlet unavailable
Hi, In what circumstances tomcat (4.1.x) set a servlet unavailable ? Is it possible that a servlet is set unavailable after a high load ? Some users of my web application report error page HTTP Status 503 - Servlet xxx is currently unavailable. Thanks, Dorin
RE: servlet unavailable
Howdy, Are you seeing any errors in your logs? ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Dorin Ciuca [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 10:51 AM To: Tomcat Users List Subject: servlet unavailable Hi, In what circumstances tomcat (4.1.x) set a servlet unavailable ? Is it possible that a servlet is set unavailable after a high load ? Some users of my web application report error page HTTP Status 503 - Servlet xxx is currently unavailable. Thanks, Dorin This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CATALINA_BASE/lib ?
Hi, For keep my files (configuration, lib) clearly separate from the Tomcat distribution files i attempt to use CATALINA_BASE I use JDBC Reaml with mysql driver, cryptographic external provider ... where can i put my jar file under CATALINA_BASE ? i test $CATALINA_BASE/common/lib $CATALINA_BASE/lib ... i'm unable to move my lib files from CATALINA_HOME directory ... thks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error when starting tomcat
Hello, Hello. in my linux i start the tomcat and appears this error: can anybody helps me for solving it? thnaks Sep 16, 2003 1:07:14 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Sep 16, 2003 1:07:14 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Sep 16, 2003 1:07:15 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true Sep 16, 2003 1:07:18 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 Sep 16, 2003 1:07:18 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=4/38 config=/opt/jakarta/tomcat/conf/jk2.properties don't worry, that's just INFOrmation messages from Tomcat resp. the admin-webapp starting up. As long as you don't get any WARN oder ERROR messages, everything is allright. Yann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CATALINA_BASE/lib ?
Howdy, For keep my files (configuration, lib) clearly separate from the Tomcat distribution files i attempt to use CATALINA_BASE Use directories under your webapp root only. Don't use the tomcat common/shared directories unless you have a really good reason ;) Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache + Tomcat, a default servlet, and static content
Apologies if this is a dupe. I just realized I sent the first one from an account that is not subscribed ** Once more with feeling? Bill Barker, John Turner and others might recognize this question. Yes, it's me AGAIN. httpd.conf: VirtualHost 205.200.100.109 ServerName foo.myfoo.com ServerAlias www.foo.myfoo.com DocumentRoot /home/webhome/myfoo #deny WEB-INF Location /WEB-INF AllowOverride None deny from all /Location JkMount /* tomcat1 ErrorLog /var/log/myfoo/error_log CustomLog /var/log/myfoo/access_log combined /VirtualHost server.xml: Context path= docBase=/home/webhome/myfoo/ defaultSessionTimeout=60 / web.xml in myfoo/WEB-INF: servlet-mapping servlet-nameTranslator/servlet-name url-pattern//url-pattern /servlet-mapping Result: http://foo.myfoo.com/hello/there 1. Apache passes everything to Tomcat 2. Tomcat can't recognize a mapped servlet, and uses the default 3. My Translator servlet will translate 'foo' from the subdomain and the /hello/there URI into a form like /real_servlet?a=foob=helloc=there, which is then redirected to. 4. Request for foo.myfoo.com/real_servlet?a=foob=helloc=there 5. Apache passes everything to Tomcat 6. the real_servlet is a recognized mapping, and everything is wonderful. Except when it comes to the HTML. img src=/img/foo.gif / link rel=stylesheet href=/myfoo.css type=text/css These requests are *also* being sent through my translator servlet, which of course, results in little red X images and no CSS. The solution I've come up with is to serve all images/css/etc from a completely separate virtual host. VirtualHost 205.200.100.109 ServerName img.myfoo.com DocumentRoot /home/webhome/myfoo #deny WEB-INF Location /WEB-INF AllowOverride None deny from all /Location ErrorLog /var/log/myfoo/img_error_log CustomLog /var/log/myfoo/img_access_log combined /VirtualHost Here, I forward nothing to Tomcat, and let apache serve whatever requests it gets. And of course, I'd construct my links in such a manner: img src=http://img.myfoo.com/img/foo.gif; / link rel=stylesheet href=http://img.myfoo.com/myfoo.css; type=text/css Finally the question: Is there a way around having to use the separate virtual host to serve static content? --- Mike Curwen204-885-7733 Intermediate Programmer www.gb-im.com --- ___ __ __ / ___| | __ ) |_ _| | \/ | | | _ | _ \ _ | | | |\/| | | |_| | | |_) | |_| | | | | | | \| |/ |___| |_| |_| - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: setup of global resources, dbcp, mail, etc.
Hi Adam, thanks for samples. I finally got it working. My problem was simply in naming, specifically, the ResourceLink name, and using that in the jsp connection code, the specific ResourceLink name for each webapp connect code, respectively. -paul. - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, September 15, 2003 4:33 PM Subject: Re: setup of global resources, dbcp, mail, etc. Here's what I do: !-- Global JNDI resources -- GlobalNamingResources Resource name=jdbc/GlobalRealmDB auth=Container type=javax.sql.DataSource description=blah /Resource ResourceParams name=jdbc/GlobalRealmDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter etc and then in the Host... I have the contexts, e.g.: Context path=/linklib docBase=linklib debug=5 reloadable=true crossContext=true Manager pathname=/ Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_linklib_log. suffix=.txt timestamp=true/ ResourceLink name=jdbc/RealmDB global=jdbc/GlobalRealmDB type=javax.sql.DataSource/ On 09/15/2003 08:15 PM Paul wrote: thanks for the response. I think you are suggesting an approach i have already tried, with confusing results (confusing in that it worked for one web app, but not another!), namely, setting up a global resource under the following server.xml tag: GlobalNamingResources the actual resource tag i use is as follows: Resource name=jdbc/eplResrc auth=Container type=javax.sql.DataSource/ and then the resource link is specified as follows: Context path=/test docBase=test debug=5 reloadable=true crossContext=true ResourceLink name=jdbc/eplResrc global=jdbc/eplResrc type=javax.sql.DataSource/ /Context Notice that the values for the name and global parameter in the ResourceLink tag are the same. I notice that in your example they are different. Where does the global value get defined? - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, September 15, 2003 1:36 PM Subject: Re: setup of global resources, dbcp, mail, etc. The tricky bit is to remember to put a reference to the global-resource in the contexts which want to use it: ResourceLink name=jdbc/RealmDB global=jdbc/GlobalRealmDB type=javax.sql.DataSource/ Adam On 09/15/2003 07:03 PM Paul wrote: has anyone been successful setting up a global resource under Tomcat 4.1, jdk 1.4 that is accessible to all webapps? If so, please describe how you configured tomcat. thanks, paul lomack -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat, a default servlet, and static content
That is because your have overridden the default servlet. It is now your servlet's job to also serve static content. A simple workaround: Extend the DefaultServlet, then use super.doGet(), super.doPost() ... when your servlet doesn't want the mapping. -Tim Mike Curwen wrote: Apologies if this is a dupe. I just realized I sent the first one from an account that is not subscribed ** Once more with feeling? Bill Barker, John Turner and others might recognize this question. Yes, it's me AGAIN. httpd.conf: VirtualHost 205.200.100.109 ServerName foo.myfoo.com ServerAlias www.foo.myfoo.com DocumentRoot /home/webhome/myfoo #deny WEB-INF Location /WEB-INF AllowOverride None deny from all /Location JkMount /* tomcat1 ErrorLog /var/log/myfoo/error_log CustomLog /var/log/myfoo/access_log combined /VirtualHost server.xml: Context path= docBase=/home/webhome/myfoo/ defaultSessionTimeout=60 / web.xml in myfoo/WEB-INF: servlet-mapping servlet-nameTranslator/servlet-name url-pattern//url-pattern /servlet-mapping Result: http://foo.myfoo.com/hello/there 1. Apache passes everything to Tomcat 2. Tomcat can't recognize a mapped servlet, and uses the default 3. My Translator servlet will translate 'foo' from the subdomain and the /hello/there URI into a form like /real_servlet?a=foob=helloc=there, which is then redirected to. 4. Request for foo.myfoo.com/real_servlet?a=foob=helloc=there 5. Apache passes everything to Tomcat 6. the real_servlet is a recognized mapping, and everything is wonderful. Except when it comes to the HTML. img src=/img/foo.gif / link rel=stylesheet href=/myfoo.css type=text/css These requests are *also* being sent through my translator servlet, which of course, results in little red X images and no CSS. The solution I've come up with is to serve all images/css/etc from a completely separate virtual host. VirtualHost 205.200.100.109 ServerName img.myfoo.com DocumentRoot /home/webhome/myfoo #deny WEB-INF Location /WEB-INF AllowOverride None deny from all /Location ErrorLog /var/log/myfoo/img_error_log CustomLog /var/log/myfoo/img_access_log combined /VirtualHost Here, I forward nothing to Tomcat, and let apache serve whatever requests it gets. And of course, I'd construct my links in such a manner: img src=http://img.myfoo.com/img/foo.gif; / link rel=stylesheet href=http://img.myfoo.com/myfoo.css; type=text/css Finally the question: Is there a way around having to use the separate virtual host to serve static content? --- Mike Curwen204-885-7733 Intermediate Programmer www.gb-im.com --- ___ __ __ / ___| | __ ) |_ _| | \/ | | | _ | _ \ _ | | | |\/| | | |_| | | |_) | |_| | | | | | | \| |/ |___| |_| |_| - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: performing init operations in webapp
thanks Williams for the detailed mail. Naresh -Original Message- From: Christopher Williams [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 6:15 PM To: Tomcat Users List Subject: Re: performing init operations in webapp The easiest way is as follows: Say your web service is called MyWebService. Implement the class that does the real work as a singleton class (i.e. private constructor, public getInstance() method which returns the only instance of the singleton class, creating it if it doesn't exist). This class will be called something like MyWebServiceImpl. Your servant class will be a wrapper around the methods in MyWebServiceImpl. For example, say you expose a method called x, the code in the servant class will call MyWebServiceImpl().getInstance().x(). Create a servlet for lifecycle management. In your web.xml set the loadOnStartup value to 1. In your servlet's init() method call MyWebServiceImpl.getInstance() and do your necessary initializing in the getInstance() method. In your servlet's destroy() method, call something like MyWebServiceImpl.getInstance().shutdown() to clean up (assuming that you've defined a shutdown() method). Your lifecycle management servlet can do other stuff - for example acting as the destination for post operations from any admin pages that you might write. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat web.xml url-pattern Apache httpd.conf VirtualHost xxx.com DocumentRoot
Hi, Currently i'm having virtual hosts (subdomains) on Apache-2: abc.xxx.com def.xxx.com ghi.xxx.com ... with different DocumentRoots! On Tomcat-5 i have a servlet 'file' with url-pattern/file/url-pattern On workers2.properties i have [uri:/docs/*] This makes that i got the following: abc.xxx.com/docs/file def.xxx.com/docs/file ghi.xxx.com/docs/file ... and all three of them are showing the expected results. But i only want: abc.xxx.com/docs/file and not: def.xxx.com/docs/file ghi.xxx.com/docs/file What to do to make a servlet for one subdomain only? Thanks, b. http://WWW.ADVENTUREFORUM.NET - Forum on World Travel and Adventure - http://WWW.ADVENTUREFORUM.NET/worldfacts http://WWW.ADVENTUREFORUM.NET/worldnews - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache + Tomcat, a default servlet, and static content
Once more with feeling? Bill Barker, John Turner and others might recognize this question. Yes, it's me AGAIN. httpd.conf: VirtualHost 205.200.100.109 ServerName foo.myfoo.com ServerAlias www.foo.myfoo.com DocumentRoot /home/webhome/myfoo #deny WEB-INF Location /WEB-INF AllowOverride None deny from all /Location JkMount /* tomcat1 ErrorLog /var/log/myfoo/error_log CustomLog /var/log/myfoo/access_log combined /VirtualHost server.xml: Context path= docBase=/home/webhome/myfoo/ defaultSessionTimeout=60 / web.xml in myfoo/WEB-INF: servlet-mapping servlet-nameTranslator/servlet-name url-pattern//url-pattern /servlet-mapping Result: http://foo.myfoo.com/hello/there 1. Apache passes everything to Tomcat 2. Tomcat can't recognize a mapped servlet, and uses the default 3. My Translator servlet will translate 'foo' from the subdomain and the /hello/there URI into a form like /real_servlet?a=foob=helloc=there, which is then redirected to. 4. Request for foo.myfoo.com/real_servlet?a=foob=helloc=there 5. Apache passes everything to Tomcat 6. the real_servlet is a recognized mapping, and everything is wonderful. Except when it comes to the HTML. img src=/img/foo.gif / link rel=stylesheet href=/myfoo.css type=text/css These requests are *also* being sent through my translator servlet, which of course, results in little red X images and no CSS. The solution I've come up with is to serve all images/css/etc from a completely separate virtual host. VirtualHost 205.200.100.109 ServerName img.myfoo.com DocumentRoot /home/webhome/myfoo #deny WEB-INF Location /WEB-INF AllowOverride None deny from all /Location ErrorLog /var/log/myfoo/img_error_log CustomLog /var/log/myfoo/img_access_log combined /VirtualHost Here, I forward nothing to Tomcat, and let apache serve whatever requests it gets. And of course, I'd construct my links in such a manner: img src=http://img.myfoo.com/img/foo.gif; / link rel=stylesheet href=http://img.myfoo.com/myfoo.css; type=text/css Finally the question: Is there a way around having to use the separate virtual host to serve static content? --- Mike Curwen204-885-7733 Intermediate Programmer www.gb-im.com --- ___ __ __ / ___| | __ ) |_ _| | \/ | | | _ | _ \ _ | | | |\/| | | |_| | | |_) | |_| | | | | | | \| |/ |___| |_| |_| - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problems receiving date through the input stream
Hi, I use the doPost method and send it a short string. However, reading from the input stream on the server, I get nothing. Any explanations? I added code snippets for client and server: client HttpURLConnection connection = (HttpURLConnection)url.openConnection(); connection.setDoOutput( true ); connection.setDoInput( true ); connection.setRequestMethod( POST ); OutputStream outputStream = connection.getOutputStream(); OutputStreamWriter writer = new OutputStreamWriter( outputStream ); writer.write( This is a test ); writer.flush(); outputStream.close(); InputStream inputStream = connection.getInputStream(); BufferedReader reader = new BufferedReader( new InputStreamReader( inputStream ) ); String line; while( ( line = reader.readLine() ) != null ) { System.out.println( line ); } inputStream.close(); server: System.out.println( wssvl_DomainServlet.doPost ); ServletInputStream inputStream = httpServletRequest.getInputStream(); InputStreamReader reader = new InputStreamReader( inputStream ); BufferedReader bReader = new BufferedReader( reader ); String currentLine = null; while( ( currentLine = bReader.readLine() ) != null ) System.out.println( currentLine ); // DOES NOT RETURN ANYTHING httpServletResponse.setContentType( text/xml ); PrintWriter out = httpServletResponse.getWriter(); out.println( ?xml version=\1.0\ encoding=\UTF-8\? ); out.println( This is another test ); out.close(); *** Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT]Tomcat-Apache-Cocoon-Perl-Java-Linux-XML Job
Hi, - plz, excuse this off-topic post. Anybody interested please contact me off-list under. mailto:[EMAIL PROTECTED] Good knowledge of German language is required. Best regards, ~/joachim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
servlet unavailable
Hi, In what circumstances tomcat (4.1.x) set a servlet unavailable ? Is it possible that a servlet is set unavailable after a high load ? Some users of my web application report error page HTTP Status 503 - Servlet xxx is currently unavailable. Thanks, Dorin
Re: Looking for isapi_redirect.dll
Barry Rader wrote: If anyone has a valid link or could email me this dll I would greatly appreciate it. Unless there is another way to run Tomcat along side IIS. Hi, http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.4/bin/win32/ -- Juergen Heckel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CATALINA_BASE/lib ?
Hi, I think i have a good raison I use an authentification with a JDBC Realm and Mysql defined in my server.xml, where can i put driver jar ? Tks At 11:03 2003-09-16, you wrote: Howdy, For keep my files (configuration, lib) clearly separate from the Tomcat distribution files i attempt to use CATALINA_BASE Use directories under your webapp root only. Don't use the tomcat common/shared directories unless you have a really good reason ;) Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat apache webapps connector trailing slash
dear all I have been search the internet but could not find a solution. I need to omit the trailing / to enable apache to handle requests to tomcat. I am using apache 2.0, tomcat 4.1.27 and appropriate webapp connector any suggestions are welcome many thanks This email is confidential and intended solely for the use of the person(s) ('the intended recipient') to whom it was addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of the Paterson Institute for Cancer Research or the Christie Hospital NHS Trust. It may contain information that is privileged confidential within the meaning of applicable law. Accordingly any dissemination, distribution, copying, or other use of this message, or any of its contents, by any person other than the intended recipient may constitute a breach of civil or criminal law and is strictly prohibited. If you are NOT the intended recipient please contact the sender and dispose of this e-mail as soon as possible. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ? catalina.out under Windows
It depends on your logging configuration rather than catalina.bat. When you say catalina.out, you mean the console? On 09/16/2003 02:20 PM Csaba Nemeth wrote: Hi all, I would like to log everything under Windows (like under linux) to catalina.out. How should I configure this? ( A proper catalina.bat might help. ) Thanks: Csabi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1 MIME Type from web.xml
In Tomcat 5.0 beta, there is a class MimeMap offering the following method: public String getContentType(String extn) {...} Is there a corresponding method within the Tomcat 4.1 framework? I would like to determine a file's MIME type as specified within the web.xml document. Thanks Lukas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1 MIME Type from web.xml
Is there a corresponding method within the Tomcat 4.1 framework? I would like to determine a file's MIME type as specified within the web.xml document. I'm an idiot, please don't bombard me Servlet Context java.lang.String getMimeType(java.lang.String file) Returns the MIME type of the specified file, or null if the MIME type is not known. Lukas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Character Set Issues (windows vs. Unix)
Hello Hans! HL When the application is installed on the windows server the particular HL character (which is some kind of spacing character in word) gets read out of HL the database as HL Ascii code 160, HL BUT on the Linux server the exact same routine reads it as ascii code 65533 HL Same database, same application config - only difference is OS HL The JVM's are both set up as default english installs. Fun story ideed :-) Are you sure you get it wron from ResultSet.getString()? Try doing String s = rs.getString(x); char c = s.charAt(y); out.print((int)c); Are you getting different character codes? Anton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: Memory Leak with static content
Hello Yoav! Seth Newton [EMAIL PROTECTED] wrote: SNVirtual Size: 112592 SNReal Size: 61880 SNTime Up(days-hours:minutes:seconds): 01:05:20 SY You realize these numbers are meaningless to anyone except you, as we SY don't know what you're measuring, how you're measuring it, what the SY proper results / proper behavior is, etc. There's much will to help you and assure you and us that Tomcat really is production quality. What we would really want to know about these numbers is how you produce them. Could you please send the whole script that mails them to you? Memory leakage and memory leakage like behavior are a major concern and should be investigated with utmost care and due dilligence. Please continue to help us. Anton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: servlet unavailable
On September 16, 2003 11:27 am, Dorin Ciuca wrote: Hi, In what circumstances tomcat (4.1.x) set a servlet unavailable ? Is it possible that a servlet is set unavailable after a high load ? Some users of my web application report error page HTTP Status 503 - Servlet xxx is currently unavailable. Thanks, Dorin Sometimes, the servlet is unavailable because the container has encountered some errors during the servlet's loading (for example, invalid web.xml). In that case, you can find error messages in the logs. Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Specifying content type for file downloads
I'm using Tomcat 4.06 standalone and cannot find how to configure the server to properly identify downloaded files as Excel spreadsheets. I'm using links which look like: a href=https://webserver.com\Info\Docs\4211/SomeSpreadsheet.xls; bSomeSpreadsheet.xls/bbr /a When the user clicks on the link the file is being displayed in the user's browser as garbage rather than having the browser display it via Excel. I cannot find how to configure the server to properly identify these files as Excel spreadsheets. Doug Chamberlin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSP that doesn't work with IBM JVM 1.4
ArrayList importList = (ArrayList)request.getAttribute(importList); // returns String[] String[] sortArray = new String[importList.size()]; // array for sorting input data sortArray = (String []) importList.toArray(sortArray); It seems the above code works fine under Tomcat when using the Sun JVM 1.4 but refuses to compile using the IBM JVM 1.4. Any ideas? Tim McClure - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Logging with tomcat
Yoav == Yoav Shapira Shapira writes: Yoav Howdy, Where are your commons-logging, commons-logging-api Yoav jars, and logging configuration file? jakarta-tomcat-4.0.6-src/lib/commons-logging.jar also jakarta-tomcat-4.1.27/common/lib/commons-logging-api.jar jakarta-tomcat-4.1.27/server/lib/commons-logging.jar (I'm testing both versions) I guess the problem can be the configuration file. I don't know where it is or where should be. Thank you! Yoav Yoav Shapira Millennium ChemInformatics -Original Message- From: Francisco Vides Fernandez [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 5:37 PM To: [EMAIL PROTECTED] Subject: Logging with tomcat Hello I'm trying to do some loging using tomcat and commons-logging, but I don't know how to make it work properly. I'm using org.apache.commons.Log, and if I do something like log.error (something); It works properly, and I can see the output in tomcat log files, but if I do log.debug (something); or log.trace (something); can't see any output. I've RTFM from tomcat and commons-logging, and tried with values of debug in Context, Logger and such. Also search the mail archives, but couldn't find anything on how to configure this. Could someone help me or point me in the right direction? Thanks in advance -- +- | Francisco Vides Fernández [EMAIL PROTECTED] | Director técnico. | Teléfono fijo: 952 60 29 59 | Teléfono móvil: 661 67 32 73 | Fax: 952 60 29 59 | Dédalo Ingenieros http://www.dedaloingenieros.com/ | PGP: http://pgp.rediris.es:11371/pks/lookup?op=indexsearch=0x5AAE6285 +-- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Yoav This e-mail, including any attachments, is a confidential Yoav business communication, and may contain information that is Yoav confidential, proprietary and/or privileged. This e-mail is Yoav intended only for the individual(s) to whom it is addressed, Yoav and may not be saved, copied, printed, disclosed or used by Yoav anyone else. If you are not the(an) intended recipient, please Yoav immediately delete this e-mail from your computer system and Yoav notify the sender. Thank you. Yoav - Yoav To unsubscribe, e-mail: Yoav [EMAIL PROTECTED] For additional Yoav commands, e-mail: [EMAIL PROTECTED] -- +- | Francisco Vides Fernández [EMAIL PROTECTED] | Director técnico. | Teléfono fijo: 952 60 29 59 | Teléfono móvil: 661 67 32 73 | Fax: 952 60 29 59 | Dédalo Ingenieros http://www.dedaloingenieros.com/ | PGP: http://pgp.rediris.es:11371/pks/lookup?op=indexsearch=0x5AAE6285 +-- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A Hebrew Problem
Hello Yair! YZ I have this hebrew problem: YZ I'm trying to include a html in a jsp page: YZ jsp:include page=relativePath/fileName flush=true / YZ When it comes to a hebrew html the browser displays question marks YZ instead of hebrew (no matter what charset do I choose in the browser). YZ The same html is viewed nicely when I get it directly as a file 1) Do I get you right that you have web-app-root/some/a.jsp web-app-root/other/b.html and when you do http://www.myserver.some-domain/my-web-app/other/b.html you get something real, not question marks? 2) I vagually recall some talks about this being a JSP spec limitation on the list, but I did not delve into the topic then. I also recall that the it was mentioned then that the new spec-compliant but unconvinient behavior has been introduced recently. Anyone, any tips? (nagoya.apache.org eyebrowse search is not too much responsive when searching tomcat-dev, and tomcat-user is not indexed at all :-( YZ System: RH9 with tomcat-4.1.18, mod_jk-2.0.43, apache-2.0.44, j2sdk1.4.2 YZ It all works fine on an old server: RH7.1 tomcat-4.0.4 apache-1.3 YZ mysql-connector-java-3.0.7 j2sdk1.4.0_03 Anton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Logging with tomcat
Howdy, Try putting the commons-logging configuration file at the WEB-INF/classes directly of your webapp. Another location for it can be $CATALINA_HOME/common/classes. Yoav Shapira Millennium ChemInformatics -Original Message- From: Francisco Vides Fernandez [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 1:42 PM To: Tomcat Users List Subject: RE: Logging with tomcat Yoav == Yoav Shapira Shapira writes: Yoav Howdy, Where are your commons-logging, commons-logging-api Yoav jars, and logging configuration file? jakarta-tomcat-4.0.6-src/lib/commons-logging.jar also jakarta-tomcat-4.1.27/common/lib/commons-logging-api.jar jakarta-tomcat-4.1.27/server/lib/commons-logging.jar (I'm testing both versions) I guess the problem can be the configuration file. I don't know where it is or where should be. Thank you! Yoav Yoav Shapira Millennium ChemInformatics -Original Message- From: Francisco Vides Fernandez [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 5:37 PM To: [EMAIL PROTECTED] Subject: Logging with tomcat Hello I'm trying to do some loging using tomcat and commons-logging, but I don't know how to make it work properly. I'm using org.apache.commons.Log, and if I do something like log.error (something); It works properly, and I can see the output in tomcat log files, but if I do log.debug (something); or log.trace (something); can't see any output. I've RTFM from tomcat and commons-logging, and tried with values of debug in Context, Logger and such. Also search the mail archives, but couldn't find anything on how to configure this. Could someone help me or point me in the right direction? Thanks in advance -- +- | Francisco Vides Fernández [EMAIL PROTECTED] | Director técnico. | Teléfono fijo: 952 60 29 59 | Teléfono móvil: 661 67 32 73 | Fax: 952 60 29 59 | Dédalo Ingenieros http://www.dedaloingenieros.com/ | PGP: http://pgp.rediris.es:11371/pks/lookup?op=indexsearch=0x5AAE6285 +-- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Yoav This e-mail, including any attachments, is a confidential Yoav business communication, and may contain information that is Yoav confidential, proprietary and/or privileged. This e-mail is Yoav intended only for the individual(s) to whom it is addressed, Yoav and may not be saved, copied, printed, disclosed or used by Yoav anyone else. If you are not the(an) intended recipient, please Yoav immediately delete this e-mail from your computer system and Yoav notify the sender. Thank you. Yoav - Yoav To unsubscribe, e-mail: Yoav [EMAIL PROTECTED] For additional Yoav commands, e-mail: [EMAIL PROTECTED] -- +- | Francisco Vides Fernández [EMAIL PROTECTED] | Director técnico. | Teléfono fijo: 952 60 29 59 | Teléfono móvil: 661 67 32 73 | Fax: 952 60 29 59 | Dédalo Ingenieros http://www.dedaloingenieros.com/ | PGP: http://pgp.rediris.es:11371/pks/lookup?op=indexsearch=0x5AAE6285 +-- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
servlet unavailable
Hi, In what circumstances tomcat (4.1.x) set a servlet unavailable ? Is it possible that a servlet is set unavailable after a high load ? Some users of my web application report error page HTTP Status 503 - Servlet xxx is currently unavailable. Thanks, Dorin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Servlet testing tools
JMeter http://jakarta.apache.org/jmeter/ fits your need perfectly. ciao, Rishi I'm looking for a tool to use for stress testing a servlet. = Yahoo! India Matrimony: Find your partner online. Go to http://yahoo.shaadi.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Specifying content type for file downloads
Tomcat is serving the static resource using its default servlet? If so, try adding the mime type to the conf/web.xml file: mime-mapping extensionxls/extension mime-typeapplication/vnd.ms-excel/mime-type /mime-mapping Doug Chamberlin wrote: I'm using Tomcat 4.06 standalone and cannot find how to configure the server to properly identify downloaded files as Excel spreadsheets. I'm using links which look like: a href=https://webserver.com\Info\Docs\4211/SomeSpreadsheet.xls; bSomeSpreadsheet.xls/bbr /a When the user clicks on the link the file is being displayed in the user's browser as garbage rather than having the browser display it via Excel. I cannot find how to configure the server to properly identify these files as Excel spreadsheets. Doug Chamberlin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
webapp classpath
I could use some help on a little problem I ran into. As I'm developing with eclipse I have 2 projects on which I'm working. One of them is supposed to be packaged into a jar file for releases, but during development I'd like to just include the classes in my webapplication (the other project) which relies on the package.. This is all fine in eclipse, but how can I include those classfiles in my tomcat webapp? (without rebuilding the jar file for every change) Rob Augustinus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: webapp classpath
Howdy, Put them in the WEB-INF/classes folder of your webapp... Yoav Shapira Millennium ChemInformatics -Original Message- From: Rob Augustinus [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 3:18 PM To: Tomcat Users List Subject: webapp classpath I could use some help on a little problem I ran into. As I'm developing with eclipse I have 2 projects on which I'm working. One of them is supposed to be packaged into a jar file for releases, but during development I'd like to just include the classes in my webapplication (the other project) which relies on the package.. This is all fine in eclipse, but how can I include those classfiles in my tomcat webapp? (without rebuilding the jar file for every change) Rob Augustinus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JBoss embedded Tomcat setup with IIS - 2nd post
Hi HS. I'm also having problems with the embedded Tomcat distribution. So far I haven't been able to find reliable documentation on the subject but I suggest you start with the free Quickstart guide for JBoss (@jboss.org documentation) and also take a look at the forums in the same web site. I once read there that in order to deploy a WebApp in embedded Tomcat you have to WAR the application; trying to do it recreating the directory structure within the /server/default/deploy path just wouldn't work. The quickstart guide and the forums should give you a starting point. Whatever else I'll find, you'll be the first to know ;-) Good luck!!! Best regards, Carlos C. From: Haytham Samad [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: JBoss embedded Tomcat setup with IIS - 2nd post Date: Mon, 15 Sep 2003 22:10:27 -0500 Okay. I am trying to setup Tomcat with IIS. I have done this before successfully with Tomcat standalone. Now I have to use JBoss with Tomcat embedded (jboss-3.2.1_tomcat-4.1.24). The configuration is not working so well nor does it map as nicely. Anywhere I can look to get a description of what needs to be done? Has anyone done this and wants to share what needs to be done? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.yupimsn.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help with Tomcat 5.0 setup.
Hello: Thanks for the help in installing Tomcat 5.0. I cannot start tomcat from the menu or icon, but I am able to start from dos prompt. I run the sample JSP test in Tomcat, they work fine. Now the real test: 1) I have an Oracle DB. I copied the classes12.Jar file to the tomcat folders common/lib. Does any one have a sample JSP script to access an oracle table and display data? Thanks for your help in advance, GG - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ManagerServlet (autherization on a percontext basis)
Actually no, reloadable=true will only reload the classes and lib directories (I've tried). Also, having almost 315 (314 iirc) users on the system each with his/her own webapp can get quite bad. Also, tomcat doesn't load all the contexts on startup unless there exists a WEB-INF/web.xml file. So, I had two possible solutions to this: 1. Hack the startup scripts to ensure that there exists a WEB-INF/web.xml file - this does not solve the problem of users being able to reload web.xml 2. Hack the manager app. This is the path that I followed, the results would have been viewable at http://hokusai.cs.up.ac.za:8080 but for the IT departments firewall ... Each user is now required to log in, then he/she is presented with the options deploy,undeploy,start,stop,reload and my own creation restart, along with logout. I've now moved on to having trouble with the security policy. It dies on access denied to a file ${java.home}/jre/lib/xerces.properties, this same policy works fine on tc4.0.3, but tc4.1.26 dies a horrible, but quick death. I see there is another thread on this also, my implementation is extremely specific to our specific setup (there is no time to do it the correct way - not that there seems to be one). Jaco Shapira, Yoav wrote: Howdy, You can't just set each Context to have reloadable=true ? That will reload their webapp when they edit web.xml... Yoav Shapira Millennium ChemInformatics -Original Message- From: Jaco Kroon [mailto:[EMAIL PROTECTED] Sent: Sunday, September 14, 2003 12:15 PM To: [EMAIL PROTECTED] Subject: ManagerServlet (autherization on a percontext basis) Hello, I need to allow users previliges to manage their applications on a per-context basis. We are providing students with a webapp, where they need to build their practical. However, whenever they change web.xml they need to be able to restart their webapp. Considering there are over 300 users I don't want to use the reloadable feature for the lib and classes directories either, as such I would prefer if I can just allow them to reload, start and stop their own webapps. Is there any existing way of doing this or will I have to continue my hack to rewrite the ManagerServlet (or at least implement a similar class and work it into tomcat?) btw, I'm using tomcat 4.0 (revision 0.3 at home and 1.24 where this has to be implemented actually). I'm currently having trouble creating a subclass of HttpServlet implementing ContainerServlet that'll actually load. Any ideas/help extremely welcome. Jaco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and Initial Naming
I'm trying to understand naming contexts and their implementations in tomcat.looking at the code below, we lookup the jndi resource jdbc/test When tomcat starts up, it parses the server.xml file.It finds: Resource name=jdbc/test auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/test parameter namefactory/name valueorg.apache.commons. dbcp.BasicDataSourceFactory/value /parameter . . . Tomcat looks at this and adds a name value pair to a naming context.My question is about this naming context tomcat has..How can I add a name value pair to this same context?.and how can I make a reference to that value? Would I access it the sameway in the code below? ((java:/comp/env/myRefernceName) or (java:/) ) I want to add other values to this same contextMy basic idea is to have an xml file with all of the properties for my webappand I want to lookup these properties using jndi.my reason for this is I want to be able to lookup certain application specific properties (i.e. ldap stuff, jdbc stuff, constants, and such.and I know about adding jdbc, and ldap res-ref in the server.xml) much like a myApp.properties file..Any ideas? Does this question make sense.. try { Context ctx = new InitialContext(); if (ctx == null) throw new Exception(Boom - No Context); DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/test); out.println (DATASOURCE: + ds); conn = ds.getConnection(); . . . }catch{.. Thanx in advance Russ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ManagerServlet (autherization on a percontext basis)
How about letting me see your code for your version of the manager app hack? I would love to play with it and any doc's you create to go along with it. Jason Lanpher [EMAIL PROTECTED] http://www.stealthnetworking.com -Original Message- From: Jaco Kroon [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 5:08 PM To: Tomcat Users List Subject: Re: ManagerServlet (autherization on a percontext basis) Actually no, reloadable=true will only reload the classes and lib directories (I've tried). Also, having almost 315 (314 iirc) users on the system each with his/her own webapp can get quite bad. Also, tomcat doesn't load all the contexts on startup unless there exists a WEB-INF/web.xml file. So, I had two possible solutions to this: 1. Hack the startup scripts to ensure that there exists a WEB-INF/web.xml file - this does not solve the problem of users being able to reload web.xml 2. Hack the manager app. This is the path that I followed, the results would have been viewable at http://hokusai.cs.up.ac.za:8080 but for the IT departments firewall ... Each user is now required to log in, then he/she is presented with the options deploy,undeploy,start,stop,reload and my own creation restart, along with logout. I've now moved on to having trouble with the security policy. It dies on access denied to a file ${java.home}/jre/lib/xerces.properties, this same policy works fine on tc4.0.3, but tc4.1.26 dies a horrible, but quick death. I see there is another thread on this also, my implementation is extremely specific to our specific setup (there is no time to do it the correct way - not that there seems to be one). Jaco Shapira, Yoav wrote: Howdy, You can't just set each Context to have reloadable=true ? That will reload their webapp when they edit web.xml... Yoav Shapira Millennium ChemInformatics -Original Message- From: Jaco Kroon [mailto:[EMAIL PROTECTED] Sent: Sunday, September 14, 2003 12:15 PM To: [EMAIL PROTECTED] Subject: ManagerServlet (autherization on a percontext basis) Hello, I need to allow users previliges to manage their applications on a per-context basis. We are providing students with a webapp, where they need to build their practical. However, whenever they change web.xml they need to be able to restart their webapp. Considering there are over 300 users I don't want to use the reloadable feature for the lib and classes directories either, as such I would prefer if I can just allow them to reload, start and stop their own webapps. Is there any existing way of doing this or will I have to continue my hack to rewrite the ManagerServlet (or at least implement a similar class and work it into tomcat?) btw, I'm using tomcat 4.0 (revision 0.3 at home and 1.24 where this has to be implemented actually). I'm currently having trouble creating a subclass of HttpServlet implementing ContainerServlet that'll actually load. Any ideas/help extremely welcome. Jaco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and Initial Naming
I'm trying to understand naming contexts and their implementations in tomcat.looking at the code below, we lookup the jndi resource jdbc/test When tomcat starts up, it parses the server.xml file.It finds: Resource name=jdbc/test auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/test parameter namefactory/name valueorg.apache.commons. dbcp.BasicDataSourceFactory/value /parameter . . . Tomcat looks at this and adds a name value pair to a naming context.My question is about this naming context tomcat has..How can I add a name value pair to this same context?.and how can I make a reference to that value? Would I access it the sameway in the code below? ((java:/comp/env/myRefernceName) or (java:/) ) I want to add other values to this same contextMy basic idea is to have an xml file with all of the properties for my webapp.. My webapp will read this config.xml file when tomcat starts the application..this part will be another question :)..and I want to lookup these properties using jndi.my reason for this is I want to be able to lookup certain application specific properties (i.e. ldap stuff, jdbc stuff, constants, and such.and I know about adding jdbc, and ldap res-ref in the server.xml) much like a myApp.properties file..Any ideas? Does this question make sense.. try { Context ctx = new InitialContext(); if (ctx == null) throw new Exception(Boom - No Context); DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/test); out.println (DATASOURCE: + ds); conn = ds.getConnection(); . . . }catch{.. Thanx in advance Russ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat error: org.apache.coyote.http11.Http11Processor process SEVERE: Error processing request
I am running Tomcat 4.1.27 on Windows 2000. Installation/setup came out fine. A few days ago I load SAP DB on the same pc. Outside of that nothing has changed. Tomcat starts fine, no errors. But when I open IE to view localhost:8080 I get an HTTP 500 Internal error within IE. In the shell window of Tomcat is error is displayed: Sep 15, 2003 2:32:26 PM org.apache.coyote.http11.Http11Processor process SEVERE: Error processing request java.lang.NoClassDefFoundError at org.apache.coyote.tomcat4.CoyoteResponse.init(CoyoteResponse.java:243) at org.apache.coyote.tomcat4.CoyoteConnector.createResponse(CoyoteConnector.java:980) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:205) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536) I've viewed several users sites on FAQ and java.lang.NoClassDefFoundError, but nothing has resolved this issue. Can someone shed some light on this subject? Thank you! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ManagerServlet (autherization on a percontext basis)
I hope I can use attachments. Ok, first off, there are a few issues with this, as I've said, it's quick and extremely dirty. Extract the archive, cd tuksmanager, ant. This will produce a .jar file (If I haven't left it lying around - hope not). This jar file needs to go into ${CATALINA_HOME}/server/lib This jar file makes use of the org.apache.catalina.up namespace/package. There should be a web.xml file, which I used, if not, just create one, the app doesn't require any params, so just a servlet and servlet-mapping will do. The webapp needs to have privileged=true set in order to function. When changing the code, restart tomcat entirely :). Be warned - it's ugly stuff, lots of error checking missing since I am the only person with shell access, the stuff I don't check should never break, if you want error checking, compare with ${CATALINA_CVS}/catalina/src/share/org/apache/catalina/servlets/ManagerServlet.java Jaco On Tue, 16 Sep 2003, Jason Lanpher wrote: How about letting me see your code for your version of the manager app hack? I would love to play with it and any doc's you create to go along with it. Jason Lanpher [EMAIL PROTECTED] http://www.stealthnetworking.com -Original Message- From: Jaco Kroon [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 5:08 PM To: Tomcat Users List Subject: Re: ManagerServlet (autherization on a percontext basis) Actually no, reloadable=true will only reload the classes and lib directories (I've tried). Also, having almost 315 (314 iirc) users on the system each with his/her own webapp can get quite bad. Also, tomcat doesn't load all the contexts on startup unless there exists a WEB-INF/web.xml file. So, I had two possible solutions to this: 1. Hack the startup scripts to ensure that there exists a WEB-INF/web.xml file - this does not solve the problem of users being able to reload web.xml 2. Hack the manager app. This is the path that I followed, the results would have been viewable at http://hokusai.cs.up.ac.za:8080 but for the IT departments firewall ... Each user is now required to log in, then he/she is presented with the options deploy,undeploy,start,stop,reload and my own creation restart, along with logout. I've now moved on to having trouble with the security policy. It dies on access denied to a file ${java.home}/jre/lib/xerces.properties, this same policy works fine on tc4.0.3, but tc4.1.26 dies a horrible, but quick death. I see there is another thread on this also, my implementation is extremely specific to our specific setup (there is no time to do it the correct way - not that there seems to be one). Jaco Shapira, Yoav wrote: Howdy, You can't just set each Context to have reloadable=true ? That will reload their webapp when they edit web.xml... Yoav Shapira Millennium ChemInformatics -Original Message- From: Jaco Kroon [mailto:[EMAIL PROTECTED] Sent: Sunday, September 14, 2003 12:15 PM To: [EMAIL PROTECTED] Subject: ManagerServlet (autherization on a percontext basis) Hello, I need to allow users previliges to manage their applications on a per-context basis. We are providing students with a webapp, where they need to build their practical. However, whenever they change web.xml they need to be able to restart their webapp. Considering there are over 300 users I don't want to use the reloadable feature for the lib and classes directories either, as such I would prefer if I can just allow them to reload, start and stop their own webapps. Is there any existing way of doing this or will I have to continue my hack to rewrite the ManagerServlet (or at least implement a similar class and work it into tomcat?) btw, I'm using tomcat 4.0 (revision 0.3 at home and 1.24 where this has to be implemented actually). I'm currently having trouble creating a subclass of HttpServlet implementing ContainerServlet that'll actually load. Any ideas/help extremely welcome. Jaco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
MbeanException with realm defined within context
Hi. I am using tomcat 4.1.27. I have a context defined as shown below: Context path=/pweb docBase=pweb debug=0 Realm className=com.silentone.phoenix.tomcat.PhoenixRealm configFile=D:\Programs\jakarta-tomcat-4.1.2\conf\phoenixconfig.xml/ /Context I have created an mbeans-descriptor file for PhoenixRealm, which appears to be being read successfully: eg mbeans-descriptors mbean name=PhoenixRealm className=org.apache.catalina.mbeans.ClassNameMBean description=PhoenixRealm domain=Catalina group=Realm type=com.silentone.phoenix.tomcat.PhoenixRealm attribute name=className description=Fully qualified class name of the managed object type=java.lang.String writeable=false/ attribute name=configFile description=Path of the config file type=java.lang.String writeable=false/ /mbean /mbeans-descriptors Upon starting tomcat however, I get the following error: ServerLifecycleListener: createMBeans: MBeanException javax.management.RuntimeOperationsException: nested exception is java.lang.IllegalArgumentException: ObjectName cannot be null or a pattern ObjectName java.lang.IllegalArgumentException: ObjectName cannot be null or a pattern ObjectName at mx4j.server.MBeanServerImpl.register (MBeanServerImpl.java:) at mx4j.server.MBeanServerImpl.registerImpl (MBeanServerImpl.java:1054) at mx4j.server.MBeanServerImpl.registerMBeanImpl (MBeanServerImpl.java:1002) at mx4j.server.MBeanServerImpl.registerMBean (MBeanServerImpl.java:978) at org.apache.catalina.mbeans.MBeanUtils.createMBean (MBeanUtils.java:650) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans (ServerLifecycleListener.java:462) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans (ServerLifecycleListener.java:728) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans (ServerLifecycleListener.java:667) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans (ServerLifecycleListener.java:860) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans (ServerLifecycleListener.java:828) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans (ServerLifecycleListener.java:372) at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent (ServerLifecycleListener.java:226) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (LifecycleSupport.java:166) at org.apache.catalina.core.StandardServer.start (StandardServer.java:2183) 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 (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) If I define PhoenixRealm inside the Engine container everything seems to work fine, unfortunately there are other web applications being used on this server, that need to use different authentication methods. Any help would be greatly appreciated. Cheers, Rane. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can access tomcat locally but not from another machine
Or it could be that the xp firewall is turned on an not allowing the 8080 connection externally. Christopher Williams wrote: If your company is hot on security, the most likely cause is that port 8080 is blocked (possibly at the router). Ask your admin guys about freeing it for internal network access or try running Tomcat on port 80. Ping doesn't use TCP so you won't experience the same connectivity problems. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
newbie
I cant seem to get started. After tackling some hardware issues I have all the pieces installed and everything setup according to several HOW-TOs. I have mod_jk configured and install, apache configured and installed, tomcat was a binary so that is setup and j2sdk 1.4.2 is setup. I start tomcat and everything is fine. or so I think. service tomcatd start Starting Tomcat: Using CATALINA_BASE: /usr/local/tomcat Using CATALINA_HOME: /usr/local/tomcat Using CATALINA_TMPDIR: /usr/local/tomcat/temp Using JAVA_HOME: /usr/local/java/java wait about 20 seconds and start apache everything is okay. I then stop tomcat and get this service tomcatd stop Shutting down Tomcat: Using CATALINA_BASE: /usr/local/tomcat Using CATALINA_HOME: /usr/local/tomcat Using CATALINA_TMPDIR: /usr/local/tomcat/temp Using JAVA_HOME: /usr/local/java/java Error occurred during initialization of VM java.lang.NullPointerException what the heck is going on, I start tomcat again, and there is no process running. catalina.out just has Error occurred during initialization of VM java.lang.NullPointerException in it. help I'm lost .. I did everything according to the book = Theres no such thing as a problem unless the servers are on fire! __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Stackoverflow after DB inactivity
Yes I do. I don't use dbcp but it sounds like your database connections are timing out. Do you have autoReconnect=true in your mysql jdbc connection url? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and Naming Context
I'm trying to understand naming contexts and their implementations in tomcat.looking at the code below, we lookup the jndi resource jdbc/test When tomcat starts up, it parses the server.xml file.It finds: Resource name=jdbc/test auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/test parameter namefactory/name valueorg.apache.commons. dbcp.BasicDataSourceFactory/value /parameter . . . Tomcat looks at this and adds a name value pair to a naming context.My question is about this naming context that tomcat has..How can I add a name value pair to this same context?.and then how can I make a reference to that value? Would I access it in the same way the code below does? ((java:/comp/env/myRefernceName) or (java:/myReferenceName) ) I want to add other values to this very same contextMy basic idea is to have an xml file with all of the properties for my webapp.. My webapp will read this config.xml file when tomcat starts the application..this part will be another question :)..and I want to lookup these properties using jndi.my reason for this is I want to be able to lookup certain application specific properties (i.e. ldap stuff, jdbc stuff, constants, and such.and I know about adding jdbc, and ldap res-ref in the server.xml) much like a myApp.properties file..Any ideas? Does this question make sense.. try { Context ctx = new InitialContext(); if (ctx == null) throw new Exception(Boom - No Context); DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/test); out.println (DATASOURCE: + ds); conn = ds.getConnection(); . . . }catch{.. Thanx in advance Russ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL Cipher Suite Config in Tomcat JSSE
Tomcat 5 supports configuring the cipher suite (by specifying ciphers= on the Connector). I don't believe that this has been ported to Tomcat 4. McClure, Timothy J(IndSys, GE Interlogix) [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am trying to configure Tomcat to only support cipher suite SSL_RSA_WITH_3DES_EDE_CBC_SHA as we have a requirement to only use Triple DES encryption. How does one do this? Tim McClure - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat, a default servlet, and static content
If you have only a small number of static file types, then you could also do: servlet-mapping servlet-namedefault/servlet-name url-pattern*.gif/url-pattern /servlet-mapping !-- repeat as necessary -- Another trick is to include in your servlet something like: ServletContext cntx = getServletContext(); URL resource = cntx.getResource(request.getPathInfo()); if(resource != null) { // physical file exists RequestDispatcher rd = cntx.getNamedDispatcher(default); rd.forward(request, response); return; } Tim Funk [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] That is because your have overridden the default servlet. It is now your servlet's job to also serve static content. A simple workaround: Extend the DefaultServlet, then use super.doGet(), super.doPost() ... when your servlet doesn't want the mapping. -Tim Mike Curwen wrote: Apologies if this is a dupe. I just realized I sent the first one from an account that is not subscribed ** Once more with feeling? Bill Barker, John Turner and others might recognize this question. Yes, it's me AGAIN. httpd.conf: VirtualHost 205.200.100.109 ServerName foo.myfoo.com ServerAlias www.foo.myfoo.com DocumentRoot /home/webhome/myfoo #deny WEB-INF Location /WEB-INF AllowOverride None deny from all /Location JkMount /* tomcat1 ErrorLog /var/log/myfoo/error_log CustomLog /var/log/myfoo/access_log combined /VirtualHost server.xml: Context path= docBase=/home/webhome/myfoo/ defaultSessionTimeout=60 / web.xml in myfoo/WEB-INF: servlet-mapping servlet-nameTranslator/servlet-name url-pattern//url-pattern /servlet-mapping Result: http://foo.myfoo.com/hello/there 1. Apache passes everything to Tomcat 2. Tomcat can't recognize a mapped servlet, and uses the default 3. My Translator servlet will translate 'foo' from the subdomain and the /hello/there URI into a form like /real_servlet?a=foob=helloc=there, which is then redirected to. 4. Request for foo.myfoo.com/real_servlet?a=foob=helloc=there 5. Apache passes everything to Tomcat 6. the real_servlet is a recognized mapping, and everything is wonderful. Except when it comes to the HTML. img src=/img/foo.gif / link rel=stylesheet href=/myfoo.css type=text/css These requests are *also* being sent through my translator servlet, which of course, results in little red X images and no CSS. The solution I've come up with is to serve all images/css/etc from a completely separate virtual host. VirtualHost 205.200.100.109 ServerName img.myfoo.com DocumentRoot /home/webhome/myfoo #deny WEB-INF Location /WEB-INF AllowOverride None deny from all /Location ErrorLog /var/log/myfoo/img_error_log CustomLog /var/log/myfoo/img_access_log combined /VirtualHost Here, I forward nothing to Tomcat, and let apache serve whatever requests it gets. And of course, I'd construct my links in such a manner: img src=http://img.myfoo.com/img/foo.gif; / link rel=stylesheet href=http://img.myfoo.com/myfoo.css; type=text/css Finally the question: Is there a way around having to use the separate virtual host to serve static content? --- Mike Curwen204-885-7733 Intermediate Programmer www.gb-im.com --- ___ __ __ / ___| | __ ) |_ _| | \/ | | | _ | _ \ _ | | | |\/| | | |_| | | |_) | |_| | | | | | | \| |/ |___| |_| |_| - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
article on tomcat performance
It looks like the tomcat performance book probably won't happen, so I am writing a short article based on some of the benchmark results. I should have a draft done in a week. Anyone interested in reviewing it? peter lin - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software
Apache 2, Tomcat 5, mod_jk?
Hey Guys, I've recently setup Apache2 and Tomcat 5 separately and was wondering if mod_jk or mod_jk2 can be used to link the two of them. Secondly, what's the difference between mod_jk and mod_jk2? Awaiting your reply. vagabond _ Get a FREE computer virus scan online from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Admin app
Hi all, I have a JDBCRealm configured the server.xml to authenticate users. It all works fine. The following lines are in my server.xml and show up in when I click on the User Database followed by the UserDatebase nodes in the tree in the admin application. !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams The re is also When I go to the admin application How do I change this to reflect a JDBCRealm? Jeff