Re: Desperate for help with isapi_redirect.dll
Mark Thomas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Mark Thomas wrote: You will need to send the war directly to me rather than to the list as it will get stripped out. OK. Test war received. IIS installed (I'd be lost without VMWare). ISAPI 1.2.15 installed. ISAPI configured to talk to Tomcat 5.5.x HEAD. I can reproduce the problem. (So far so good ;) Next steps are to see if I can build the .dll locally and then try the windows equivalent of remote debug. Building the dll should be easy enough, if you have access to MSVC. Attaching the debugger is a PITA. I warn you now the last time I did anything with C at all was at uni and that was a long time ago. It was much simpler than the ISAPI code. It might take me a little while to figure things out. Probably easier to add lots of debugging logging statements than to attach the debugger to IIS. But it's your hair ;-). I'll start looking at this with a fresh pair of eyes tomorrow. In the mean time, if anyone can point me at a copy of the ISAPI filter interface spec on the web I would be grateful. Urm, go to http://msdn.microsoft.com and type isapi into the search box? It will tell you way more than you ever wanted to know :). Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Desperate for help with isapi_redirect.dll
Mark The are few good, comprehensive ressources on the web for ISAPI filters, MSDN provides API documentation and code examples, but the most helpful was [for my problems] to look at the .h [isapi, winnet,..] from visual studio. There is a guy from MS whose online blog helped me a lot when writing ISAPI filters, David Wang, you can find him on: http://blogs.msdn.com/david.wang/default.aspx Hopes this helps. With Best Regards Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 |-+--- | | Mark Thomas | | | [EMAIL PROTECTED]| | | g | | | | | | 02.02.06 01:06 | | | Please respond | | | to Tomcat Users| | | List | | | | |-+--- --| | | |To: Tomcat Users List users@tomcat.apache.org | |cc: | |Subject: Re: Desperate for help with isapi_redirect.dll | | | |Distribute: | |Personal? |---| | || [ ] x | | ||---| | | | --| Mark Thomas wrote: You will need to send the war directly to me rather than to the list as it will get stripped out. OK. Test war received. IIS installed (I'd be lost without VMWare). ISAPI 1.2.15 installed. ISAPI configured to talk to Tomcat 5.5.x HEAD. I can reproduce the problem. (So far so good ;) Next steps are to see if I can build the .dll locally and then try the windows equivalent of remote debug. I warn you now the last time I did anything with C at all was at uni and that was a long time ago. It was much simpler than the ISAPI code. It might take me a little while to figure things out. I'll start looking at this with a fresh pair of eyes tomorrow. In the mean time, if anyone can point me at a copy of the ISAPI filter interface spec on the web I would be grateful. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly confidential and they may not be used or disclosed by someone who is not a named recipient. If you have received this email in error please notify the sender by replying to this email inserting the word misdirected as the message and delete this e-mail from your system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: How to identify version of a running Tomcat and similar trivia
Good Morning Bill (at least in my TZ that is), many thanks for clarifying what Http10Connector stands for. Of course I should have known that it refers to version 1.0 of the HTTP. I admid that I should be reading more of the docs of the Tomcat project, and probably have an occassional glance at the sources where I suspect further commentary. I think to recall that there even was such a thing as javadoc that would provide a documentation of the class'es interfaces (but this should more be dedicated to the application developer, I suppose). As I said, I am merely a simpleton sysadmin who unfortunately lacks the time to delve deeper into the Java/Tomcat guts. You're right, I do have a modules.xml file in this server's conf dir. These are the modules listed within the module tag: (I hope you don't mind the Perl line noise, but can you parse a Tomcat conf file with a Java oneliner? ;-) perl -MXML::Simple -le 'print join(\n,sort keys %{XML::Simple-new-XMLin(/opt/hpapache2/tomcat/conf/modules.xml )-{module}})' AccessInterceptor AccessLogInterceptor AccountingInterceptor Ajp12Connector Ajp13Connector ApacheConfig AutoDeploy AutoWebApp ContextXmlReader CredentialsInterceptor DecodeInterceptor ErrorHandler Http10Connector Http10Interceptor IISConfig InvokerInterceptor JDBCRealm JNIConnectionHandler Jdk12Interceptor JniConnector JservConfig JspInterceptor LoadOnStartupInterceptor LoaderInterceptor11 LogEvents LogSetter NSConfig PathSetter PolicyLoader ProfileLoader ReloadInterceptor ServerXmlReader Servlet22Interceptor SessionExpirer SessionId SessionIdGenerator SimpleMapper1 SimpleRealm SimpleSessionStore StaticInterceptor TagPoolManagerInterceptor TrustedLoader WebXmlReader WorkDirSetup Would you mind telling me, which of these modules could be of any use for my Tomcat monitoring purposes. I'd simply like to cut down the masses of documentation I would peruse in vain to only find out that a module was totally irrelevant to my objective. Apropos, another stupid question, what does TC stand for (is it Tomcat)? Regards Ralph -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Barker Sent: Thursday, February 02, 2006 4:26 AM To: users@tomcat.apache.org Subject: Re: How to identify version of a running Tomcat and similar trivia The Http10Connector refers to HTTP/1.0. It also means that you've got a TC 3.x server running there. If you've got a conf/modules.xml then it's probably TC 3.3.1a (since 3.3.2 uses the CoyoteConnector by default). Otherwise, it's probably TC 3.2.4. It also explains why there is no /manager webapp, since it's called /admin in TC 3 (and is much less full-featured than /manager in later TC versions :). [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] walt-berlin.de... Hi Tim, thanks for referring me to the Tomcat FAQs. That's for sure the first source of information one should read before nagging the list community with redundant questions. At least did I find therein a description how to enable CGI support. Yet, the trivial task of identifying a running Java thread's Tomcat version seems rediculously convoluted. I assume the mentioned version script isn't much more than a mere wrapper script that puts together the a hundred chars long java invocation of some class method call that most likely is called version() along with the loading of a dozen jar libs etc. (only joking ;-) Anyway, far more than anyone can remember and type without making typos. Only problem is, my Tomcat depot on this box (randomly picked one of our HP-UX boxes, but we also have Tomcats running on Linux, AIX, Solaris (and probably Win32) doesn't seem to have bundled such a wrapper script. # swlist |grep -i tomcat hpuxwsTomcat A.4.1.29.04HP-UX Tomcat-based Servlet Engine (ok, I concede with a properly bundled hpux depot I get a revision string that happens to be the same as the bundled Tomcat version, but that's not everywhere the case) # swlist -l file hpuxwsTomcat|grep -cF version 0 So where can I get such a version script? Hm, most likely in the official Apache Tomcat tarball distribution. Ok, I got that already for my Linux install problem (where I first thought to be required to compile from sources by Ant). Let's see if I find it there $ gzip -dc apache-tomcat-5.5.15.tar.gz |tar tf -|grep -F version apache-tomcat-5.5.15/bin/version.bat apache-tomcat-5.5.15/bin/version.sh Yup, let's see what its content is $ gzip -dc apache-tomcat-5.5.15.tar.gz |tar xf - apache-tomcat-5.5.15/bin/version.sh $ grep EXE apache-tomcat-5.5.15/bin/version.sh EXECUTABLE=catalina.sh if [ ! -x $PRGDIR/$EXECUTABLE ]; then echo Cannot find $PRGDIR/$EXECUTABLE exec $PRGDIR/$EXECUTABLE version $@ What the hack is catalina? Only know of an island off the coast of Los Angeles of that name, and a nice WWII water plane. But if I have the catalina.sh script anyway, and the only
RE: How to identify version of a running Tomcat and similar trivia
Hi Mike, yesterday I already found out (thanks to a hint from Tim Funk) that in the official Apache Tomcat tarball a version.sh wrapper script is included. Having had a deko at the file also revealed to be nothing more than a mere invocation of catalina.sh script with the argument version, exactly as you are proposing. The only drawback is that not every Tomcat bundler, like HP in my case, seems to have an affection for those handy scripts. It also seems to be heavily version dependent to find or miss one. E.g. on this hpux box of ours I've currently two versions of Tomcat installed. (on other boxes there are even more concurrent releases, which increases the confusion and sparked my interest in a quick way to identify a running Tomcat) However, only the newer release seems to be shipped with a catalina.sh. Still this doesn't get me any further since it only comes up with a usage screen: # find /opt/hpws/tomcat /opt/hpapache2/tomcat -type f -name catalina.sh /opt/hpws/tomcat/bin/catalina.sh # /opt/hpws/tomcat/bin/catalina.sh version Using CATALINA_BASE: /opt/hpws/tomcat Using CATALINA_HOME: /opt/hpws/tomcat Using CATALINA_TMPDIR: /opt/hpws/tomcat/temp Using JAVA_HOME: /opt/java1.5 Usage: catalina.sh ( commands ... ) commands: debug Start Catalina in a debugger debug -security Debug Catalina with a security manager embedded Start Catalina in embedded mode jpda startStart Catalina under JPDA debugger run Start Catalina in the current window run -security Start in the current window with security manager start Start Catalina in a separate window start -security Start in a separate window with security manager stop Stop Catalina But I appreceate your reply, and assume that the catalina.sh call for your release and platform most likely will output the requested info. -Original Message- From: Mike Sabroff [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 8:49 PM To: Tomcat Users List Subject: Re: How to identify version of a running Tomcat and similar trivia go to tomcat/bin type catalina.sh version output will look like: Using CATALINA_BASE: /usr/local/tomcat Using CATALINA_HOME: /usr/local/tomcat Using CATALINA_TMPDIR: /usr/local/tomcat/temp Using JRE_HOME: /usr/local/java Server version: Apache Tomcat/5.5.12 Server built: Sep 23 2005 09:40:42 Server number: 5.5.12.0 OS Name:Linux OS Version: 2.6.11-1.1369_FC4 Architecture: i386 JVM Version:1.5.0_06-b05 JVM Vendor: Sun Microsystems Inc. Tim Funk wrote: Tomcat is like any server based java app. It will always require a convulted classpath as well as multiple classloaders to do anything interesting. The most failsafe way to get the version regarless of the packaging is to do the following: (no, i'm not kidding) 1) find catalina.jar. It *should* be in server/lib/catalina.jar of your tomcat installation 2) Open it with winzip like program 3) Look for ServerInfo.properties (in org/apache/catalina/util/) 4) In that file is ther server version The version.sh script is just a wrapper the created the appropriate classpath so that the properties file can be loaded. -Tim [EMAIL PROTECTED] wrote: Hi Tim, SNIP Only problem is, my Tomcat depot on this box (randomly picked one of our HP-UX boxes, but we also have Tomcats running on Linux, AIX, Solaris (and probably Win32) doesn't seem to have bundled such a wrapper script. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 - 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]
Memory Management between different webapps
Hi, I have a tomcat with ± 10 web-applications. Is there a maximum or some guidance in the number of web-apps you can put in one instance of Tomcat? And i start tomcat with the options -Xmx1024m -Xms1024m -- is there some information or articles about how tomcat is spreading all this memory over the web-apps? Is this completely random, or first come first gets? What if a web-app is called for the first time and all possible memory is allocated to other web-apps? Many thanks already Roel ** Disclaimer: zie www.aquafin.be
RE: Memory Management between different webapps
From: Roel De Nijs [mailto:[EMAIL PROTECTED] I have a tomcat with ± 10 web-applications. Is there a maximum or some guidance in the number of web-apps you can put in one instance of Tomcat? Tomcat itself uses relatively little memory per-webapp (a few megabytes, depending on version). The major load comes from the number of simultaneous connections (and hence the size of the thread pool) and, even more, from how the webapps are written. You're in the best place to evaluate these. And i start tomcat with the options -Xmx1024m -Xms1024m -- is there some information or articles about how tomcat is spreading all this memory over the web-apps? Is this completely random, or first come first gets? What if a web-app is called for the first time and all possible memory is allocated to other web-apps? It's all one big object memory, shared between all the webapps. Roughly (there are many more nuances than this): whenever it gets full, the garbage-collector is run. If there's not enough space to allocate an object after the garbage collector has run, you get an OutOfMemoryError. So memory will be allocated as your webapps request it (and potentially returned to the Java VM's pool of free memory some unknown time after they stop using it); if a webapp is called for the first time and there's not enough space to allocate the memory required for its startup, you'll get an OOME. To my knowledge, there is no way of partitioning memory inside a single JVM such that the amount available to a given webapp can be restricted. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Catalina.out gets to big- Server crashes
Hello, I got this problem that the catalina.out file gets to big. It grows to a size of approx. 2 gig and then tomcat just crashes. Does anyone know how configure tomcat so that catalina.out only get a size of 100 MB and then replaces it by a new empty catalina.out? The old one should be saved under a different name. cheers, Pete -- Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko! Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to identify version of a running Tomcat and similar trivia
Hi Tim, yes, at least the later Tomcat release of HP has such a ServerInfo.properties method # find /opt/hpws/tomcat -type f -name catalina.jar|xargs -n1 jar tf|grep -F ServerInfo.properties org/apache/catalina/util/ServerInfo.properties # cd /tmp # find /opt/hpws/tomcat -type f -name catalina.jar|xargs -n 1 -I CLASS jar xf CLASS org/apache/catalina/util/ServerInfo.properties # ll /tmp/org/apache/catalina/util total 16 -rw-r--r-- 1 root sys 30 Feb 2 11:01 ServerInfo.properties # file /tmp/org/apache/catalina/util/ServerInfo.properties /tmp/org/apache/catalina/util/ServerInfo.properties:sed program text # cat /tmp/org/apache/catalina/util/ServerInfo.properties server.info=Apache Tomcat/4.1 Ok, this is probably a pretty weird hack to identify a Tomcat, but it seems to be sufficiently reliable, and can be casted into a script. So from the proc table entry of the running Java master thread I will have to parse the full args token to retreive the classpath and jar dirs in the startup command line. Then I could run this find and extract stuff like above. What I still dislike is the need for a temporal extraction directory for a mere 30 byte string. I will have to find out a way if I could extract this into a pipe. Still, I would hope the Tomcat developers could devise an easy and straight forward way to query this info from the shell. Come on lads, this should only take less than half an hour for a decent Java hacker. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 6:39 PM To: Tomcat Users List Subject: Re: How to identify version of a running Tomcat and similar trivia Tomcat is like any server based java app. It will always require a convulted classpath as well as multiple classloaders to do anything interesting. The most failsafe way to get the version regarless of the packaging is to do the following: (no, i'm not kidding) 1) find catalina.jar. It *should* be in server/lib/catalina.jar of your tomcat installation 2) Open it with winzip like program 3) Look for ServerInfo.properties (in org/apache/catalina/util/) 4) In that file is ther server version The version.sh script is just a wrapper the created the appropriate classpath so that the properties file can be loaded. -Tim [EMAIL PROTECTED] wrote: Hi Tim, SNIP Only problem is, my Tomcat depot on this box (randomly picked one of our HP-UX boxes, but we also have Tomcats running on Linux, AIX, Solaris (and probably Win32) doesn't seem to have bundled such a wrapper script. - 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: Catalina.out gets to big- Server crashes
Good Morning, Does anyone know how configure tomcat so that catalina.out only get a size of 100 MB and then replaces it by a new empty catalina.out? The old one should be saved under a different name. There is information missing: Which Tomcat Version? Which logging API is in use? Assuming Tomcat 5.5.x with default installation and Tomcat JULI in use: Change to x4juli (see http://www.x4juli.org and the samples in the distribution for Tomcat) and use a RollingFileHandler. Without changing to x4juli (or log4j): Reduce the log level in conf/logging.properties for the FileHandler to WARNING or SEVERE. You still have the problem that there is no rolling but the log amount is reduced. Regards Boris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Catalina.out gets to big- Server crashes
Hello, sorry, I just clean forgot to tell the version its 5.5.9. I discovered the tomcat-juli.jar in the bin directory so I suppose its in use. Although I never used it so far. So the idea is to switch x4juli.jar and I get the same functionality as in log4J? That's great because I'm using it to log my webapps. So despite this option the only real solution would be to do it with shell scripts in my linux environment? cheers, Pete --- Ursprüngliche Nachricht --- Von: Boris Unckel [EMAIL PROTECTED] An: Tomcat Users List users@tomcat.apache.org Betreff: Re: Catalina.out gets to big- Server crashes Datum: Thu, 2 Feb 2006 11:20:08 +0100 (MET) Good Morning, Does anyone know how configure tomcat so that catalina.out only get a size of 100 MB and then replaces it by a new empty catalina.out? The old one should be saved under a different name. There is information missing: Which Tomcat Version? Which logging API is in use? Assuming Tomcat 5.5.x with default installation and Tomcat JULI in use: Change to x4juli (see http://www.x4juli.org and the samples in the distribution for Tomcat) and use a RollingFileHandler. Without changing to x4juli (or log4j): Reduce the log level in conf/logging.properties for the FileHandler to WARNING or SEVERE. You still have the problem that there is no rolling but the log amount is reduced. Regards Boris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- DSL-Aktion wegen großer Nachfrage bis 28.2.2006 verlängert: GMX DSL-Flatrate 1 Jahr kostenlos* http://www.gmx.net/de/go/dsl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and client certificates
Ok, when I set clientAuth to want the Exception getting SSL Cert goes away. (Wtf is this documented?). But I still get the 403 - Access denied error. Here is how I added the users certificate to my realm: web.xml: security-constraint web-resource-collection url-pattern/html/*/url-pattern http-methodPOST/http-method http-methodGET/http-method /web-resource-collection auth-constraint role-namemyrole/role-name /auth-constraint user-data-constraint/ /security-constraint login-config auth-methodCLIENT-CERT/auth-method /login-config security-role role-namemyrole/role-name /security-role tomcat-users.xml: tomcat-users role rolename=myrole/ user username=EMAILADDRESS=mark... , CN=markus, OU=..., O=... , L=, ST=... C=... password= roles=myrole/ /tomcat-users As username I used exactly the cert.getSubjectDN().getName() String from the client certificate. Is this ok? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Betr.: RE: Memory Management between different webapps
The problem we are confronted with: all our web-apps are running fine in our test-environment, even if workload is simulated to be very high. If we go to production environment (which is an exact copy of the test-environment) then tomcat gives OOME, sometimes 3-4 times a day. And it looks to be at random situations, so it's a really big mistery why in test everything goes well and in production it crashes more then once a day. And it's doing it for approx 4 months now, so it's time it's getting solved. [EMAIL PROTECTED] 2/02/2006 11:06 From: Roel De Nijs [mailto:[EMAIL PROTECTED] I have a tomcat with ± 10 web-applications. Is there a maximum or some guidance in the number of web-apps you can put in one instance of Tomcat? Tomcat itself uses relatively little memory per-webapp (a few megabytes, depending on version). The major load comes from the number of simultaneous connections (and hence the size of the thread pool) and, even more, from how the webapps are written. You're in the best place to evaluate these. And i start tomcat with the options -Xmx1024m -Xms1024m -- is there some information or articles about how tomcat is spreading all this memory over the web-apps? Is this completely random, or first come first gets? What if a web-app is called for the first time and all possible memory is allocated to other web-apps? It's all one big object memory, shared between all the webapps. Roughly (there are many more nuances than this): whenever it gets full, the garbage-collector is run. If there's not enough space to allocate an object after the garbage collector has run, you get an OutOfMemoryError. So memory will be allocated as your webapps request it (and potentially returned to the Java VM's pool of free memory some unknown time after they stop using it); if a webapp is called for the first time and there's not enough space to allocate the memory required for its startup, you'll get an OOME. To my knowledge, there is no way of partitioning memory inside a single JVM such that the amount available to a given webapp can be restricted. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** Disclaimer: zie www.aquafin.be
RE: Catalina.out gets to big- Server crashes
Good Morning Pete, although I have no Tomcat knowledge whatsoever (only subscribed to the list in order to learn more and seek for an answer to my trivia questions) the fact that your Tomcat crashes when a logfile reached the 2 GB boundary in my opinion has nothing to do with Tomcat but rather the underlying filesystem Tomcat is logging to. Usually old type filesystems could only write 2^31 bytes unless the filesystem provided a so called largefile extension. Modern journaling filesystems have far higher limits for single file sizes. What type of filesystem do you use? Besides, I'd strongly advise to employ logrotate on your logfiles. No admin can comfortably handle logfiles that big. Any log rotation mechanism would automatically rotate the files either on a set time interval or if a set size is reached. HTH Ralph -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 11:09 AM To: Tomcat Users List Subject: Catalina.out gets to big- Server crashes Hello, I got this problem that the catalina.out file gets to big. It grows to a size of approx. 2 gig and then tomcat just crashes. Does anyone know how configure tomcat so that catalina.out only get a size of 100 MB and then replaces it by a new empty catalina.out? The old one should be saved under a different name. cheers, Pete -- Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko! Satte Provisionen fur GMX Partner: http://www.gmx.net/de/go/partner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat + postgres
Thanks Tim, I have yet to post an intelligent question. You answered my real question though. Just for good measure I'll mention the book was O'Reilly's Java Enterprise Best Practices... ah and the _interface_ was javax.sql.ConnnectionPoolDataSource . Yeah, weird in the example they actually instantiate an object that type So when I : DataSource ds = null; try { InitialContext cxt = new InitialContext(); ds = (DataSource) cxt.lookup( java:/comp/env/jdbc/postgres ); } catch (Exception e) {e.printStackTrace(out);} if(ds != null)try{ Connection conn = ds.getConnection(); PreparedStatement stmt = conn.prepareStatement(SELECT name FROM tonight); ResultSet rs = stmt.executeQuery(); *conn.close()*; } conn.close() I am actually just releasing the connection and not really closing it? Thanks, Matt Tim Lucia wrote: Without knowing what book you refer to, and what class or interface ConnectionPoolDataSource represents, it is difficult to know for sure. DataSource (javax.sql.DataSource) is an Interface, not a class. Objects returned from tomcat are sure to implement this interface, and are pooled behind the scene, i.e., you do not care what the implementation class is. So, I would recommend going with javax.sql.DataSource. I.e., in context.xml, you say: Resource name=my/datasource/name type=javax.sql.DataSource ... /Resource And in your code, you expect the returned object to be a javax.sql.DataSource (from the initial context, lookup, etc.) Tim -Original Message- From: Matthew Whisenhunt [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 4:06 PM To: users@tomcat.apache.org Subject: tomcat + postgres I followed the howto about connection pooling at http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html and I had following question: Do I use the DataSource class like in the example or the ConnectionPoolDataSource class (like it says to do in my book)? Any insights would be very appreciated. -Matt - 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]
automating use of webXmlFragment result - how to do?
Hi- If you're using Ant, you might try adding a concat task to combine generated_web.xml with predefined header and footer files. -Terence M. Bandoian Subject: automating use of webXmlFragment result - how to do? From: Olinga K. Abbott [EMAIL PROTECTED] Date: Wed, 1 Feb 2006 14:58:27 -0800 (PST) To: users@tomcat.apache.org To: users@tomcat.apache.org Use of the webXmlFragment attribute with Jasper produces an xml fragment requiring inserting into web.xml. Although I could write some custom code to perform this task, probably using xslt, this seems like a common enough use case that a solution should already exist. Does anyone know of such a solution? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Catalina.out gets to big- Server crashes
Hello Ralph, well it's SUSE ES 9. The filesystem is Reiserfs. The system was set up recently. The server got multiple processors. But I can't tell you more cause I don't have access to it again until monday. cheers, Pete --- Ursprüngliche Nachricht --- Von: [EMAIL PROTECTED] An: users@tomcat.apache.org Betreff: RE: Catalina.out gets to big- Server crashes Datum: Thu, 2 Feb 2006 11:55:39 +0100 Good Morning Pete, although I have no Tomcat knowledge whatsoever (only subscribed to the list in order to learn more and seek for an answer to my trivia questions) the fact that your Tomcat crashes when a logfile reached the 2 GB boundary in my opinion has nothing to do with Tomcat but rather the underlying filesystem Tomcat is logging to. Usually old type filesystems could only write 2^31 bytes unless the filesystem provided a so called largefile extension. Modern journaling filesystems have far higher limits for single file sizes. What type of filesystem do you use? Besides, I'd strongly advise to employ logrotate on your logfiles. No admin can comfortably handle logfiles that big. Any log rotation mechanism would automatically rotate the files either on a set time interval or if a set size is reached. HTH Ralph -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 11:09 AM To: Tomcat Users List Subject: Catalina.out gets to big- Server crashes Hello, I got this problem that the catalina.out file gets to big. It grows to a size of approx. 2 gig and then tomcat just crashes. Does anyone know how configure tomcat so that catalina.out only get a size of 100 MB and then replaces it by a new empty catalina.out? The old one should be saved under a different name. cheers, Pete -- Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko! Satte Provisionen fur GMX Partner: http://www.gmx.net/de/go/partner - 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] -- Telefonieren Sie schon oder sparen Sie noch? NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to identify version of a running Tomcat and similar trivia
This has been fixed in the tomcat 5.0.X line months ago with the inclusion of the version.bat and version.sh scripts. (Which call catalina.sh version). We can't help it if OS vendors repackage tomcat and omit those files. -Tim [EMAIL PROTECTED] wrote: Hi Tim, yes, at least the later Tomcat release of HP has such a ServerInfo.properties method # find /opt/hpws/tomcat -type f -name catalina.jar|xargs -n1 jar tf|grep -F ServerInfo.properties org/apache/catalina/util/ServerInfo.properties # cd /tmp # find /opt/hpws/tomcat -type f -name catalina.jar|xargs -n 1 -I CLASS jar xf CLASS org/apache/catalina/util/ServerInfo.properties # ll /tmp/org/apache/catalina/util total 16 -rw-r--r-- 1 root sys 30 Feb 2 11:01 ServerInfo.properties # file /tmp/org/apache/catalina/util/ServerInfo.properties /tmp/org/apache/catalina/util/ServerInfo.properties:sed program text # cat /tmp/org/apache/catalina/util/ServerInfo.properties server.info=Apache Tomcat/4.1 Ok, this is probably a pretty weird hack to identify a Tomcat, but it seems to be sufficiently reliable, and can be casted into a script. So from the proc table entry of the running Java master thread I will have to parse the full args token to retreive the classpath and jar dirs in the startup command line. Then I could run this find and extract stuff like above. What I still dislike is the need for a temporal extraction directory for a mere 30 byte string. I will have to find out a way if I could extract this into a pipe. Still, I would hope the Tomcat developers could devise an easy and straight forward way to query this info from the shell. Come on lads, this should only take less than half an hour for a decent Java hacker. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Catalina.out gets to big- Server crashes
sorry, I just clean forgot to tell the version its 5.5.9. I discovered the tomcat-juli.jar in the bin directory so I suppose its in use. Although I never used it so far. So the idea is to switch x4juli.jar and I get the same functionality as in log4J? That's great because I'm using it to log my webapps. What are you using in your webapps? java.util.logging or log4j? If you are using java.util.logging in your webapps try x4juli. If you are using log4j in your webapps try log4j with http://tomcat.apache.org/tomcat-5.5-doc/logging.html http://tomcat.apache.org/faq/logging.html So despite this option the only real solution would be to do it with shell scripts in my linux environment? This is a bad option. You would move an open file (during Tomcat run) to an separate name/directory. Regards Boris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat + postgres
Close() on a pooled connection is almost certainly releasing it, rather then actually closing it (it would depend on the pooling implementation.) org.apache.commons.dbcp.PoolableConnection, for example, has a reallyClose() method which closes the underlying connection. The resource... probably registers an object with JNDI that implements javax.sql.ConnnectionPoolDataSource. I.e., you don't need to ever use that interface directly. It's not part of J2EE 1.4 (it was last scene in 1.3). Tim -Original Message- From: Matthew Whisenhunt [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 6:06 AM To: Tomcat Users List Subject: Re: tomcat + postgres Thanks Tim, I have yet to post an intelligent question. You answered my real question though. Just for good measure I'll mention the book was O'Reilly's Java Enterprise Best Practices... ah and the _interface_ was javax.sql.ConnnectionPoolDataSource . Yeah, weird in the example they actually instantiate an object that type So when I : DataSource ds = null; try { InitialContext cxt = new InitialContext(); ds = (DataSource) cxt.lookup( java:/comp/env/jdbc/postgres ); } catch (Exception e) {e.printStackTrace(out);} if(ds != null)try{ Connection conn = ds.getConnection(); PreparedStatement stmt = conn.prepareStatement(SELECT name FROM tonight); ResultSet rs = stmt.executeQuery(); *conn.close()*; } conn.close() I am actually just releasing the connection and not really closing it? Thanks, Matt Tim Lucia wrote: Without knowing what book you refer to, and what class or interface ConnectionPoolDataSource represents, it is difficult to know for sure. DataSource (javax.sql.DataSource) is an Interface, not a class. Objects returned from tomcat are sure to implement this interface, and are pooled behind the scene, i.e., you do not care what the implementation class is. So, I would recommend going with javax.sql.DataSource. I.e., in context.xml, you say: Resource name=my/datasource/name type=javax.sql.DataSource ... /Resource And in your code, you expect the returned object to be a javax.sql.DataSource (from the initial context, lookup, etc.) Tim -Original Message- From: Matthew Whisenhunt [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 4:06 PM To: users@tomcat.apache.org Subject: tomcat + postgres I followed the howto about connection pooling at http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html and I had following question: Do I use the DataSource class like in the example or the ConnectionPoolDataSource class (like it says to do in my book)? Any insights would be very appreciated. -Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Catalina.out gets to big- Server crashes
Which are you using? Log4j already has a RollingFileAppender (size or date based, your choice) which rolls logs automatically. Or, you can use logrotate on linux. http://logging.apache.org/log4j/docs/api/org/apache/log4j/DailyRollingFileAp pender.html http://logging.apache.org/log4j/docs/api/org/apache/log4j/RollingFileAppende r.html Tim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 5:32 AM To: Tomcat Users List Subject: Re: Catalina.out gets to big- Server crashes Hello, sorry, I just clean forgot to tell the version its 5.5.9. I discovered the tomcat-juli.jar in the bin directory so I suppose its in use. Although I never used it so far. So the idea is to switch x4juli.jar and I get the same functionality as in log4J? That's great because I'm using it to log my webapps. So despite this option the only real solution would be to do it with shell scripts in my linux environment? cheers, Pete --- Ursprüngliche Nachricht --- Von: Boris Unckel [EMAIL PROTECTED] An: Tomcat Users List users@tomcat.apache.org Betreff: Re: Catalina.out gets to big- Server crashes Datum: Thu, 2 Feb 2006 11:20:08 +0100 (MET) Good Morning, Does anyone know how configure tomcat so that catalina.out only get a size of 100 MB and then replaces it by a new empty catalina.out? The old one should be saved under a different name. There is information missing: Which Tomcat Version? Which logging API is in use? Assuming Tomcat 5.5.x with default installation and Tomcat JULI in use: Change to x4juli (see http://www.x4juli.org and the samples in the distribution for Tomcat) and use a RollingFileHandler. Without changing to x4juli (or log4j): Reduce the log level in conf/logging.properties for the FileHandler to WARNING or SEVERE. You still have the problem that there is no rolling but the log amount is reduced. Regards Boris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- DSL-Aktion wegen großer Nachfrage bis 28.2.2006 verlängert: GMX DSL-Flatrate 1 Jahr kostenlos* http://www.gmx.net/de/go/dsl - 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]
Custom Authenticator
Hi, I need to implement my custom authenticator to do some extra comfig i user session beside the authentication. How can I achive this? Is there a way to do authentication besides rigid j_check_security? -- from debian manifesto: Debian Linux is a brand-new kind of Linux distribution. Rather than being developed by one isolated individual or group, as other distributions of Linux have been developed in the past, Debian is being developed openly in the spirit of Linux and GNU.
Re: Betr.: RE: Memory Management between different webapps
Obviously something is different. Given tomcat and the web-app are the same, I would guess environmental differences exist between test and production. Do both have the same set of services? Same OS? OOM errors can also indicate a lack of system resources such as file handles. Just throwing out some ideas to look in to. -- David Roel De Nijs wrote: The problem we are confronted with: all our web-apps are running fine in our test-environment, even if workload is simulated to be very high. If we go to production environment (which is an exact copy of the test-environment) then tomcat gives OOME, sometimes 3-4 times a day. And it looks to be at random situations, so it's a really big mistery why in test everything goes well and in production it crashes more then once a day. And it's doing it for approx 4 months now, so it's time it's getting solved. [EMAIL PROTECTED] 2/02/2006 11:06 From: Roel De Nijs [mailto:[EMAIL PROTECTED] I have a tomcat with ± 10 web-applications. Is there a maximum or some guidance in the number of web-apps you can put in one instance of Tomcat? Tomcat itself uses relatively little memory per-webapp (a few megabytes, depending on version). The major load comes from the number of simultaneous connections (and hence the size of the thread pool) and, even more, from how the webapps are written. You're in the best place to evaluate these. And i start tomcat with the options -Xmx1024m -Xms1024m -- is there some information or articles about how tomcat is spreading all this memory over the web-apps? Is this completely random, or first come first gets? What if a web-app is called for the first time and all possible memory is allocated to other web-apps? It's all one big object memory, shared between all the webapps. Roughly (there are many more nuances than this): whenever it gets full, the garbage-collector is run. If there's not enough space to allocate an object after the garbage collector has run, you get an OutOfMemoryError. So memory will be allocated as your webapps request it (and potentially returned to the Java VM's pool of free memory some unknown time after they stop using it); if a webapp is called for the first time and there's not enough space to allocate the memory required for its startup, you'll get an OOME. To my knowledge, there is no way of partitioning memory inside a single JVM such that the amount available to a given webapp can be restricted. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** Disclaimer: zie www.aquafin.be - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Custom Authenticator
Have You thought about a request filter? All it has to do is watch for authenticated sessions that are missing some critical session attributes. Fill in the missing info as needed. -David Arash Bijanzadeh wrote: Hi, I need to implement my custom authenticator to do some extra comfig i user session beside the authentication. How can I achive this? Is there a way to do authentication besides rigid j_check_security? -- from debian manifesto: Debian Linux is a brand-new kind of Linux distribution. Rather than being developed by one isolated individual or group, as other distributions of Linux have been developed in the past, Debian is being developed openly in the spirit of Linux and GNU. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5.15 unable to find the Apache Portable Runtime library, Solaris 10.
Hi all, On Solaris 10, I am using Tomcat 5.5.15. I downloaded apr-1.2.2 and produced the libtcnative-1.so which has been placed in /usr/local/apr/lib. I have also added to CATALINA_OPTS the instruction: -Djava.library.path=/usr/local/apr/lib setenv CATALINA_OPTS '-Xms256m -Xmx512m -Djava.library.path=/usr/local/apr/lib -Djava.awt.headless=true' In spite of this, Tomcat on launch time is still reporting not being able to load the library. 2 févr. 2006 11:35:24 org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Portable Runtime which allows optimal performance in production environments was not found on the java.library.path: /usr/local/apr/lib 2 févr. 2006 11:35:26 org.apache.coyote.http11.Http11BaseProtocol init INFO: Initialisation de Coyote HTTP/1.1 sur http-80 2 févr. 2006 11:35:26 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 6176 ms I have read some of the comments regarding the use of apr with tomcat, I have taken the answers into account as much as I could. But I am now stuck and I do not know what else I should do. As anyone succeeded in having apr work with this version of tomcat? Thanks in advance, Regards, Dominique
Custom Authenticator in tomcat 4 ?
Hi, Is it possible to have a custom Authenticator in tomcat 4.1? I can't find any information about it, only for 5x. I have tried configuring a WEB-INF/context.xml with a valve referencing my authenticator class, works well in tomcat 5.5, but not in 4.1 (which is currently the version we are running in production). Do I have to upgrade to make this work? Thanks /Andreas
RE: Betr.: RE: Memory Management between different webapps
From: Roel De Nijs [mailto:[EMAIL PROTECTED] Subject: Betr.: RE: Memory Management between different webapps The problem we are confronted with: all our web-apps are running fine in our test-environment, even if workload is simulated to be very high. If we go to production environment (which is an exact copy of the test-environment) then tomcat gives OOME, sometimes 3-4 times a day. Have you read this? http://tomcat.apache.org/faq/memory.html Note that an OOME can result from a variety of problems other than exhausting heap memory, including such things as running out of file descriptors. Turn on -verbose:gc to get an idea of what's happening with the Java heap, and proceed from there. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: BUG TOMCAT 4.1.31 Stack Trace
that's the stack trace i get when i try the mentioned code. regards, markus //-- 2006-02-02 13:41:33 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception javax.servlet.ServletException: ORA-01722: invalid number at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:498) at org.apache.jsp.test_update_double_jsp._jspService(test_update_double_jsp.java:120) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92) at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187) at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) - Root Cause - java.sql.SQLException: ORA-01722: invalid number at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180) at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208) at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543) at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1451) at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:862) at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:1846) at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1771) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2361) at oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java:865) at org.apache.jsp.test_update_double_jsp._jspService(test_update_double_jsp.java:105) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92) at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) at
RE: Catalina.out gets to big- Server crashes
Ugh, reiserfs is a journalling filesystem and should have no problems with files larger than 2 GB. To be on the safe side you could however check here for all things reiserfs (got the URL from the manpage of mkreiserfs) http://www.namesys.com/ We also happen to have a SEL9 box running. There I checked what the stock SuSE kernel got compiled with (n.b. most distributors place their kernel's config file in the /boot dir) # uname -r 2.6.5-7.191-pseries64 # grep -i reiser /boot/config-$(uname -r) CONFIG_REISERFS_FS=y # CONFIG_REISERFS_CHECK is not set CONFIG_REISERFS_PROC_INFO=y CONFIG_REISERFS_FS_XATTR=y CONFIG_REISERFS_FS_POSIX_ACL=y CONFIG_REISERFS_FS_SECURITY=y Looks only REISERFS_CHECK isn't enabled. # rpm -qa|grep -i reiser reiserfs-3.6.19-3.2 # rpm -ql reiserfs /sbin/debugreiserfs /sbin/fsck.reiserfs /sbin/mkfs.reiserfs /sbin/mkreiserfs /sbin/reiserfsck /sbin/reiserfstune /sbin/resize_reiserfs /usr/share/man/man8/debugreiserfs.8.gz /usr/share/man/man8/fsck.reiserfs.8.gz /usr/share/man/man8/mkfs.reiserfs.8.gz /usr/share/man/man8/mkreiserfs.8.gz /usr/share/man/man8/reiserfsck.8.gz /usr/share/man/man8/reiserfstune.8.gz /usr/share/man/man8/resize_reiserfs.8.gz I guess your Reiserfs support looks pretty similar. I checked the mount options for Reiserfs but couldn't find any hint at all relating to large files. Anyway, this isn't getting you any further, and I guess it must then be another Tomcat imposed restriction. I can remember that I ran into troubles when I built Net-SNMP from the sources on hpux with the ANSI C HP compiler until I realized that the application was only 32bit capable. I know that Java once emerged with the posture to erradicate any type mismatches but who can tell what kind of mappings JVMs on different platform behind the scenes. Nevertheless, I wouldn't let my logfiles grow that large. As I said, no standard editor or pager is handling such beasts satisfactorily. Since you are running Linux anyway you also should have logrotate on board. Run rpm -qi logrotate to check. logrotate is very easy to set up. Once added a stanza for your tomcat logs you should never ever worry about files becoming too large or filesystems getting full. Just see man logrotate, there are examples in it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 12:20 PM To: Tomcat Users List Subject: RE: Catalina.out gets to big- Server crashes Hello Ralph, well it's SUSE ES 9. The filesystem is Reiserfs. The system was set up recently. The server got multiple processors. But I can't tell you more cause I don't have access to it again until monday. cheers, Pete --- Ursprüngliche Nachricht --- Von: [EMAIL PROTECTED] An: users@tomcat.apache.org Betreff: RE: Catalina.out gets to big- Server crashes Datum: Thu, 2 Feb 2006 11:55:39 +0100 Good Morning Pete, although I have no Tomcat knowledge whatsoever (only subscribed to the list in order to learn more and seek for an answer to my trivia questions) the fact that your Tomcat crashes when a logfile reached the 2 GB boundary in my opinion has nothing to do with Tomcat but rather the underlying filesystem Tomcat is logging to. Usually old type filesystems could only write 2^31 bytes unless the filesystem provided a so called largefile extension. Modern journaling filesystems have far higher limits for single file sizes. What type of filesystem do you use? Besides, I'd strongly advise to employ logrotate on your logfiles. No admin can comfortably handle logfiles that big. Any log rotation mechanism would automatically rotate the files either on a set time interval or if a set size is reached. HTH Ralph -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 11:09 AM To: Tomcat Users List Subject: Catalina.out gets to big- Server crashes Hello, I got this problem that the catalina.out file gets to big. It grows to a size of approx. 2 gig and then tomcat just crashes. Does anyone know how configure tomcat so that catalina.out only get a size of 100 MB and then replaces it by a new empty catalina.out? The old one should be saved under a different name. cheers, Pete -- Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko! Satte Provisionen fur GMX Partner: http://www.gmx.net/de/go/partner - 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] -- Telefonieren Sie schon oder sparen Sie noch? NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie
Re: BUG TOMCAT 4.1.31 Stack Trace
Its a database error [ ORA-01722: invalid number] coming from oracle. Looks like your trying do shove a nonnumber into a fields which is a number. This is a developer coding error. (not tomcat) -Tim Markus kalle wrote: that's the stack trace i get when i try the mentioned code. regards, markus //-- 2006-02-02 13:41:33 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception javax.servlet.ServletException: ORA-01722: invalid number at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:498) at org.apache.jsp.test_update_double_jsp._jspService(test_update_double_jsp.java:120) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92) SNIP at java.lang.Thread.run(Thread.java:534) - Root Cause - java.sql.SQLException: ORA-01722: invalid number at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180) at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208) at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543) at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1451) at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:862) at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:1846) at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1771) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2361) at oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java:865) at org.apache.jsp.test_update_double_jsp._jspService(test_update_double_jsp.java:105) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92) at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: The Future of Tomcat
Not to mention the fact that JBoss uses Tomcat as its JSP engine. Tomcat is not going away any time soon. Earnie! -Original Message- From: David Kerber [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 8:10 AM To: Tomcat Users List Subject: Re: The Future of Tomcat Roel De Nijs wrote: Hi, I heard that resources, updates, development and support of tomcat are slightly disappearing. MAny people are looking for alternatives (e.g. JBoss). Even Microsoft and HP are cooperating with JBoss very closely. As far as i know Tomcat is the most used app server, so it will take lots of time to replace every Tomcat app server with some alternative. So does Tomcat have a future or will it die in the future? If I understand correctly, Tomcat and JBoss aren't really equivalent, and don't aim at the same markets. Tomcat is a servlet container, handling servlets, .jsp's and related pieces. JBoss is a full-blown J2EE server, which does the same things as tomcat, but also adds support for the Enterprice pieces of J2EE, such as EJB's and the like. The price you pay for that extra functionality is extra complexity in development and maintenance. It's kind of like the relationship between Apache and Tomcat: Tomcat can do all the stuff that Apache can in serving up static pages, but it's not the best tool for that job. Apache does a subset of what Tomcat does, and Tomcat does a subset of what JBoss does. Somebody please correct me if I'm off base here, because it also affects my company's future decisions. That said, everything dies eventually, so you have to decide how far away your definition of future is, and go from there. I expect Tomcat will continue to be developed and useful for *at least* 5 more years. JMPO, of course. Dave - 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: The Future of Tomcat
Tim Funk wrote: Sweet sweet flame fodder. Tomcat is as alive as the community of developers that are willing to work on it (like any open source project). I guess you could consider it flame fuel, but it's also a legitimate question, IMO. Your answer below looks good to me. Tomcat did take a hit with respect to Sun moving resources to Glassfish. But in general, servlet containers are fairly mature and boring and somewhat stable. Its the stuff in application space which is where things are interesting. (Portlets, web services, and any other marketroid buzzwords). Tomcat is used in JBoss and the rep for Tomcat (who still does most of the code changes to this point) to the Apache foundation is a JBOSS employee. (Which could be good, bad, or neither depending on your financial interests of your particular employer). The current base is being tweaked to support the servlet 2.4 servlet spec/2.1 JSP spec. So from a near future point of view - things look OK. Tomcat will die when a better alternative is available and a critical mass move to it and stop working / using Tomcat. -Tim Roel De Nijs wrote: Hi, I heard that resources, updates, development and support of tomcat are slightly disappearing. MAny people are looking for alternatives (e.g. JBoss). Even Microsoft and HP are cooperating with JBoss very closely. As far as i know Tomcat is the most used app server, so it will take lots of time to replace every Tomcat app server with some alternative. So does Tomcat have a future or will it die in the future? - 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: The Future of Tomcat
Apache is a legal entity which is composed of many developers who work on a variety of software projects in a variety of programming languages. Some projects are related to one another, others are not. Apache != httpd. httpd was the first Apache project. -Tim David Kerber wrote: Apache and Tomcat: Tomcat can do all the stuff that Apache can in serving up static pages, but it's not the best tool for that job. Apache does a subset of what Tomcat does, and Tomcat does a subset of what JBoss does. Somebody please correct me if I'm off base here, because it also affects my company's future decisions. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: The Future of Tomcat
Tim Funk wrote: Apache is a legal entity which is composed of many developers who work on a variety of software projects in a variety of programming languages. Some projects are related to one another, others are not. Apache != httpd. httpd was the first Apache project. True, but the HTTP server is still what most people think of when they hear the name Apache. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
the best way to distribute Tomcat with my web-application
Dear friends, I have the following goal: create a pack containing my web-application and also a runnable Tomcat server. the cliente should be able to run my application whithout any previously installed Tomcat server... just download my product and start it through some line command or shell script... my first question: what distribution should I download to create such standalone web-application? the 5.0.28 Embedded ?? * obs: I can't adopt the 5.5 version for now.. that's why I guess the 5.0.28... any advice will be greateful. best regards, Felipe Gaúcho Cejug-Classifieds owner https://cejug-classifieds.dev.java.net/
RE: Tomcat under IIS using isapi_redirect.dll
Richard, Is that all there is in the log? You may want to change to log level in the redirector to trace to get more info. Our biggest problem was with the firewall. IIS runs on one side and JBoss/Tomcat on the other. Earnie! -Original Message- From: Richard Burman [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 10:27 AM To: users@tomcat.apache.org Subject: Tomcat under IIS using isapi_redirect.dll Hi all, I'm having a little trouble getting tomcat to work in conjunction with IIS. I have followed the instructions to the letter but to no avail. When I check in the IIS properties, the filter has a green arrow so the isapi portion seems to be okay. When I try to take a look at something that should be farmed out to Tomcat, I get The specified module could not be found and in the log I see: [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (835): Default redirection of /NetSearch/jsp/index.jsp [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (449): Attempting to map URI '/NetSearch/jsp/index.jsp' from 4 maps [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (461): Attempting to map context URI '/NetSearch/servlet/*' [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (461): Attempting to map context URI '/NetSearch/*.jsp' [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (475): Found a wildchar match NetSearchWorker - /NetSearch/*.jsp [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (845): check if [/NetSearch/jsp/index.jsp] is points to the web-inf directory [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (863): [/NetSearch/jsp/index.jsp] is a servlet url - should redirect to NetSearchWorker Any hints on where I'm going wrong? Cheers, Richard. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat under IIS using isapi_redirect.dll
They are both running on the same machine and it doesn't have a firewall installed. Here is a more extensive snippet from the log file: [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_shm.c (134): Initialized shared memory size=67584 free=65536 addr=0xfe [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1160): Using registry. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1163): Using log file C:\Program Files\Apache Software Foundation\Tomcat 5.5\logs\jk_iis.log. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1164): Using log level 1. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1165): Using extension uri /tomcat/isapi_director.dll. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1166): Using worker file C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\workers.properties. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1167): Using worker mount file C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\uriworkermap.properties. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1169): Using uri select 0. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /servlet-examples/*.jpeg=ajp13w was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /NetSearch/*=NetSearchWorker was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /NetSearch/*.jsp=NetSearchWorker was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /NetSearch/servlet/*=NetSearchWorker was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (236): creating worker ajp12 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (141): about to create instance ajp12 of ajp12 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp12_worker.c (241): Into ajp12_worker_factory [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (154): about to validate and init ajp12 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp12_worker.c (153): Into jk_worker_t::validate [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp12_worker.c (165): In jk_worker_t::validate for worker ajp12 contact is localhost:8007 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (248): removing old ajp12 worker [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (236): creating worker ajp13 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (141): about to create instance ajp13 of ajp13 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (154): about to validate and init ajp13 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1806): worker ajp13 contact is 'localhost:8009' [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1895): setting socket keepalive to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1934): setting socket timeout to -1 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1938): setting socket buffer size to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1942): setting connection recycle timeout to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1946): setting cache timeout to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1950): setting connect timeout to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1954): setting reply timeout to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1958): setting prepost timeout to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1962): setting recovery opts to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1966): setting number of retries to 3 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1843): setting connection cache size to 10 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (248): removing old ajp13 worker [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (711): Detected IIS = 5.0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (762): Filter started [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (828): Virtual Host redirection of /localhost/NetSearch/jsp/index.jsp [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (449): Attempting to map URI '/localhost/NetSearch/jsp/index.jsp' from 4 maps [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (461): Attempting to map context URI '/NetSearch/servlet/*' [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (461): Attempting to map context URI '/NetSearch/*.jsp' [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (461): Attempting to map context URI '/NetSearch/*' [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (835): Default redirection of /NetSearch/jsp/index.jsp [Thu Feb 02 11:57:38
RE: Tomcat under IIS using isapi_redirect.dll
D'oh!! It's okay, I've just spotted the problem. I had put 'workers.properties' in the registry, not 'worker.properties'. I suspect it will work now. Thanks for looking, anyway! Cheers, Richard. -Original Message- From: Richard Burman [mailto:[EMAIL PROTECTED] Sent: 02 February 2006 15:34 To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll They are both running on the same machine and it doesn't have a firewall installed. Here is a more extensive snippet from the log file: [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_shm.c (134): Initialized shared memory size=67584 free=65536 addr=0xfe [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1160): Using registry. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1163): Using log file C:\Program Files\Apache Software Foundation\Tomcat 5.5\logs\jk_iis.log. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1164): Using log level 1. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1165): Using extension uri /tomcat/isapi_director.dll. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1166): Using worker file C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\workers.properties. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1167): Using worker mount file C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\uriworkermap.properties. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1169): Using uri select 0. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /servlet-examples/*.jpeg=ajp13w was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /NetSearch/*=NetSearchWorker was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /NetSearch/*.jsp=NetSearchWorker was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /NetSearch/servlet/*=NetSearchWorker was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (236): creating worker ajp12 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (141): about to create instance ajp12 of ajp12 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp12_worker.c (241): Into ajp12_worker_factory [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (154): about to validate and init ajp12 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp12_worker.c (153): Into jk_worker_t::validate [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp12_worker.c (165): In jk_worker_t::validate for worker ajp12 contact is localhost:8007 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (248): removing old ajp12 worker [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (236): creating worker ajp13 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (141): about to create instance ajp13 of ajp13 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (154): about to validate and init ajp13 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1806): worker ajp13 contact is 'localhost:8009' [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1895): setting socket keepalive to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1934): setting socket timeout to -1 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1938): setting socket buffer size to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1942): setting connection recycle timeout to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1946): setting cache timeout to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1950): setting connect timeout to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1954): setting reply timeout to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1958): setting prepost timeout to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1962): setting recovery opts to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1966): setting number of retries to 3 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1843): setting connection cache size to 10 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (248): removing old ajp13 worker [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (711): Detected IIS = 5.0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (762): Filter started [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (828): Virtual Host redirection of /localhost/NetSearch/jsp/index.jsp [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (449): Attempting to map URI '/localhost/NetSearch/jsp/index.jsp' from 4 maps [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (461): Attempting to map context URI '/NetSearch/servlet/*'
RE: Tomcat under IIS using isapi_redirect.dll
That could do it. Earnie! -Original Message- From: Richard Burman [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 10:38 AM To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll D'oh!! It's okay, I've just spotted the problem. I had put 'workers.properties' in the registry, not 'worker.properties'. I suspect it will work now. Thanks for looking, anyway! Cheers, Richard. -Original Message- From: Richard Burman [mailto:[EMAIL PROTECTED] Sent: 02 February 2006 15:34 To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll They are both running on the same machine and it doesn't have a firewall installed. Here is a more extensive snippet from the log file: [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_shm.c (134): Initialized shared memory size=67584 free=65536 addr=0xfe [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1160): Using registry. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1163): Using log file C:\Program Files\Apache Software Foundation\Tomcat 5.5\logs\jk_iis.log. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1164): Using log level 1. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1165): Using extension uri /tomcat/isapi_director.dll. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1166): Using worker file C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\workers.properties. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1167): Using worker mount file C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\uriworkermap.properties. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1169): Using uri select 0. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /servlet-examples/*.jpeg=ajp13w was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /NetSearch/*=NetSearchWorker was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /NetSearch/*.jsp=NetSearchWorker was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /NetSearch/servlet/*=NetSearchWorker was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (236): creating worker ajp12 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (141): about to create instance ajp12 of ajp12 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp12_worker.c (241): Into ajp12_worker_factory [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (154): about to validate and init ajp12 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp12_worker.c (153): Into jk_worker_t::validate [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp12_worker.c (165): In jk_worker_t::validate for worker ajp12 contact is localhost:8007 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (248): removing old ajp12 worker [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (236): creating worker ajp13 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (141): about to create instance ajp13 of ajp13 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (154): about to validate and init ajp13 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1806): worker ajp13 contact is 'localhost:8009' [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1895): setting socket keepalive to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1934): setting socket timeout to -1 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1938): setting socket buffer size to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1942): setting connection recycle timeout to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1946): setting cache timeout to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1950): setting connect timeout to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1954): setting reply timeout to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1958): setting prepost timeout to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1962): setting recovery opts to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1966): setting number of retries to 3 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1843): setting connection cache size to 10 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (248): removing old ajp13 worker [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (711): Detected IIS = 5.0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (762): Filter started [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (828): Virtual Host redirection of /localhost/NetSearch/jsp/index.jsp [Thu Feb 02 11:57:38 2006] [5684:1588] [debug]
RE: Tomcat under IIS using isapi_redirect.dll
Hmm... No, that's not it. Still getting exactly the same error. Where exactly is this 'The specified module could not be found' coming from? Is it the redirector that is failing or is Tomcat somehow giving an incorrect response? Are these two lines an error or informational? [Thu Feb 02 15:40:31 2006] [2240:5376] [debug] jk_isapi_plugin.c (845): check if [/NetSearch/jsp/index.jsp] is points to the web-inf directory [Thu Feb 02 15:40:31 2006] [2240:5376] [debug] jk_isapi_plugin.c (863): [/NetSearch/jsp/index.jsp] is a servlet url - should redirect to NetSearchWorker I can't find a lot of help anywhere if things don't work... Cheers, Richard. -Original Message- From: Earnie Dyke [mailto:[EMAIL PROTECTED] Sent: 02 February 2006 15:40 To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll That could do it. Earnie! -Original Message- From: Richard Burman [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 10:38 AM To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll D'oh!! It's okay, I've just spotted the problem. I had put 'workers.properties' in the registry, not 'worker.properties'. I suspect it will work now. Thanks for looking, anyway! Cheers, Richard. -Original Message- From: Richard Burman [mailto:[EMAIL PROTECTED] Sent: 02 February 2006 15:34 To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll They are both running on the same machine and it doesn't have a firewall installed. Here is a more extensive snippet from the log file: [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_shm.c (134): Initialized shared memory size=67584 free=65536 addr=0xfe [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1160): Using registry. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1163): Using log file C:\Program Files\Apache Software Foundation\Tomcat 5.5\logs\jk_iis.log. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1164): Using log level 1. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1165): Using extension uri /tomcat/isapi_director.dll. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1166): Using worker file C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\workers.properties. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1167): Using worker mount file C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\uriworkermap.properties. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1169): Using uri select 0. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /servlet-examples/*.jpeg=ajp13w was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /NetSearch/*=NetSearchWorker was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /NetSearch/*.jsp=NetSearchWorker was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /NetSearch/servlet/*=NetSearchWorker was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (236): creating worker ajp12 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (141): about to create instance ajp12 of ajp12 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp12_worker.c (241): Into ajp12_worker_factory [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (154): about to validate and init ajp12 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp12_worker.c (153): Into jk_worker_t::validate [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp12_worker.c (165): In jk_worker_t::validate for worker ajp12 contact is localhost:8007 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (248): removing old ajp12 worker [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (236): creating worker ajp13 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (141): about to create instance ajp13 of ajp13 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (154): about to validate and init ajp13 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1806): worker ajp13 contact is 'localhost:8009' [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1895): setting socket keepalive to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1934): setting socket timeout to -1 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1938): setting socket buffer size to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1942): setting connection recycle timeout to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1946): setting cache timeout to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1950): setting connect timeout to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1954): setting reply timeout to 0 [Thu Feb 02 11:57:38 2006]
Re: The Future of Tomcat
True, but the HTTP server is still what most people think of when they hear the name Apache. Probably same people, that think of Applets or Javascript when they hear the word Java? Dave Leon :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to propagate an exception from JAAS to JSP page, and a workaround
Hi folks, I'm using Tomcat and CMA with JAAS. In my application there are several possible reason why a user can not login (wrong password, user expired, user locked, etc) and I need to present a message with the information to user on the JSP page. So I need to propagate the exception from the JAAS to the JSP page, however I was not able to do this. Does anybody have any idea how to do this? The CMA is a must otherwise it's easy… In the meantime I've come with a workaround and would like to know your opinion – in my login module, when the exception occurs I store the information in JNDI, for example I put a HashMap in JNDI and in HashMap under key username_password I store user expired. Then on error page I read j_username and j_password (Tomcat does transfer these along with all request parameters from login page) and I use the username and password to generate the key and read the message value from JNDI. What do you think about the workaround? Do you see any obvious holes? Thx, Milan -- [EMAIL PROTECTED] [EMAIL PROTECTED]
Betr.: Re: The Future of Tomcat
or they think coffee and/or island :-) [EMAIL PROTECTED] 2/02/2006 16:50:03 True, but the HTTP server is still what most people think of when they hear the name Apache. Probably same people, that think of Applets or Javascript when they hear the word Java? Dave Leon :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** Disclaimer: zie www.aquafin.be
RE: Tomcat under IIS using isapi_redirect.dll
Does your application require to add or to the end of the isapi_redirect.dll so it is isapi_redirector.dll? My application specifically required me to do so or it would not work. Criss Blackwell Enterprise Services Highline Community College 2400 S. 240th St. M/S 26-1 Des Moines, WA 98198-98000 [EMAIL PROTECTED] (206) 878-3710 ext: 3566 -Original Message- From: Richard Burman [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 7:38 AM To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll D'oh!! It's okay, I've just spotted the problem. I had put 'workers.properties' in the registry, not 'worker.properties'. I suspect it will work now. Thanks for looking, anyway! Cheers, Richard. -Original Message- From: Richard Burman [mailto:[EMAIL PROTECTED] Sent: 02 February 2006 15:34 To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll They are both running on the same machine and it doesn't have a firewall installed. Here is a more extensive snippet from the log file: [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_shm.c (134): Initialized shared memory size=67584 free=65536 addr=0xfe [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1160): Using registry. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1163): Using log file C:\Program Files\Apache Software Foundation\Tomcat 5.5\logs\jk_iis.log. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1164): Using log level 1. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1165): Using extension uri /tomcat/isapi_director.dll. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1166): Using worker file C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\workers.properties. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1167): Using worker mount file C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\uriworkermap.properties. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1169): Using uri select 0. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /servlet-examples/*.jpeg=ajp13w was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /NetSearch/*=NetSearchWorker was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /NetSearch/*.jsp=NetSearchWorker was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /NetSearch/servlet/*=NetSearchWorker was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (236): creating worker ajp12 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (141): about to create instance ajp12 of ajp12 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp12_worker.c (241): Into ajp12_worker_factory [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (154): about to validate and init ajp12 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp12_worker.c (153): Into jk_worker_t::validate [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp12_worker.c (165): In jk_worker_t::validate for worker ajp12 contact is localhost:8007 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (248): removing old ajp12 worker [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (236): creating worker ajp13 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (141): about to create instance ajp13 of ajp13 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (154): about to validate and init ajp13 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1806): worker ajp13 contact is 'localhost:8009' [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1895): setting socket keepalive to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1934): setting socket timeout to -1 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1938): setting socket buffer size to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1942): setting connection recycle timeout to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1946): setting cache timeout to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1950): setting connect timeout to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1954): setting reply timeout to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1958): setting prepost timeout to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1962): setting recovery opts to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1966): setting number of retries to 3 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1843): setting connection cache size to 10 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (248): removing old ajp13 worker [Thu Feb 02 11:57:38 2006] [5684:1588]
RE: Tomcat under IIS using isapi_redirect.dll
The two lines are informational. It tells you that it matched the URI with a worker. Can you post your workers and uriworkers properties files? Earnie! -Original Message- From: Richard Burman [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 10:49 AM To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll Hmm... No, that's not it. Still getting exactly the same error. Where exactly is this 'The specified module could not be found' coming from? Is it the redirector that is failing or is Tomcat somehow giving an incorrect response? Are these two lines an error or informational? [Thu Feb 02 15:40:31 2006] [2240:5376] [debug] jk_isapi_plugin.c (845): check if [/NetSearch/jsp/index.jsp] is points to the web-inf directory [Thu Feb 02 15:40:31 2006] [2240:5376] [debug] jk_isapi_plugin.c (863): [/NetSearch/jsp/index.jsp] is a servlet url - should redirect to NetSearchWorker I can't find a lot of help anywhere if things don't work... Cheers, Richard. -Original Message- From: Earnie Dyke [mailto:[EMAIL PROTECTED] Sent: 02 February 2006 15:40 To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll That could do it. Earnie! -Original Message- From: Richard Burman [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 10:38 AM To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll D'oh!! It's okay, I've just spotted the problem. I had put 'workers.properties' in the registry, not 'worker.properties'. I suspect it will work now. Thanks for looking, anyway! Cheers, Richard. -Original Message- From: Richard Burman [mailto:[EMAIL PROTECTED] Sent: 02 February 2006 15:34 To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll They are both running on the same machine and it doesn't have a firewall installed. Here is a more extensive snippet from the log file: [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_shm.c (134): Initialized shared memory size=67584 free=65536 addr=0xfe [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1160): Using registry. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1163): Using log file C:\Program Files\Apache Software Foundation\Tomcat 5.5\logs\jk_iis.log. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1164): Using log level 1. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1165): Using extension uri /tomcat/isapi_director.dll. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1166): Using worker file C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\workers.properties. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1167): Using worker mount file C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\uriworkermap.properties. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1169): Using uri select 0. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /servlet-examples/*.jpeg=ajp13w was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /NetSearch/*=NetSearchWorker was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /NetSearch/*.jsp=NetSearchWorker was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /NetSearch/servlet/*=NetSearchWorker was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (236): creating worker ajp12 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (141): about to create instance ajp12 of ajp12 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp12_worker.c (241): Into ajp12_worker_factory [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (154): about to validate and init ajp12 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp12_worker.c (153): Into jk_worker_t::validate [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp12_worker.c (165): In jk_worker_t::validate for worker ajp12 contact is localhost:8007 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (248): removing old ajp12 worker [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (236): creating worker ajp13 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (141): about to create instance ajp13 of ajp13 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (154): about to validate and init ajp13 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1806): worker ajp13 contact is 'localhost:8009' [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1895): setting socket keepalive to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1934): setting socket timeout to -1 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1938): setting socket buffer size to 0 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp_common.c (1942): setting
Re: the best way to distribute Tomcat with my web-application
why not simply take the tomcat download (normal version), unpack it, put your webapp into it, pack it and offer for download for the client? On 2/2/06, Felipe Gaúcho [EMAIL PROTECTED] wrote: Dear friends, I have the following goal: create a pack containing my web-application and also a runnable Tomcat server. the cliente should be able to run my application whithout any previously installed Tomcat server... just download my product and start it through some line command or shell script... my first question: what distribution should I download to create such standalone web-application? the 5.0.28 Embedded ?? * obs: I can't adopt the 5.5 version for now.. that's why I guess the 5.0.28... any advice will be greateful. best regards, Felipe Gaúcho Cejug-Classifieds owner https://cejug-classifieds.dev.java.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Betr.: Re: The Future of Tomcat
Roel De Nijs wrote: or they think coffee and/or island :-) [EMAIL PROTECTED] 2/02/2006 16:50:03 True, but the HTTP server is still what most people think of when they hear the name Apache. Probably same people, that think of Applets or Javascript when they hear the word Java? To a certain extent, but I'm one of those people. In the back of my mind, I know that Apache.org does a lot more than just the http server, but that's still the first thing which pops to mind when I hear it, since that's really the only thing I use from them, now that Tomcat is largely separate from Apache. I don't have that confusion with Java, though, since (a small) part of my job is as a java programmer, writing stuff to run in Tomcat ;-) Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat under IIS using isapi_redirect.dll
worker.properties worker.list=NetSearchWorker worker.NetSearchWorker.port=8019 worker.NetSearchWorker.host=localhost worker.NetSearchWorker.type=ajp13 uriworkermap.properties /NetSearch/*=NetSearchWorker /NetSearch/*.jsp=NetSearchWorker /NetSearch/servlet/*=NetSearchWorker -Original Message- From: Earnie Dyke [mailto:[EMAIL PROTECTED] Sent: 02 February 2006 16:15 To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll The two lines are informational. It tells you that it matched the URI with a worker. Can you post your workers and uriworkers properties files? Earnie! -Original Message- From: Richard Burman [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 10:49 AM To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll Hmm... No, that's not it. Still getting exactly the same error. Where exactly is this 'The specified module could not be found' coming from? Is it the redirector that is failing or is Tomcat somehow giving an incorrect response? Are these two lines an error or informational? [Thu Feb 02 15:40:31 2006] [2240:5376] [debug] jk_isapi_plugin.c (845): check if [/NetSearch/jsp/index.jsp] is points to the web-inf directory [Thu Feb 02 15:40:31 2006] [2240:5376] [debug] jk_isapi_plugin.c (863): [/NetSearch/jsp/index.jsp] is a servlet url - should redirect to NetSearchWorker I can't find a lot of help anywhere if things don't work... Cheers, Richard. -Original Message- From: Earnie Dyke [mailto:[EMAIL PROTECTED] Sent: 02 February 2006 15:40 To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll That could do it. Earnie! -Original Message- From: Richard Burman [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 10:38 AM To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll D'oh!! It's okay, I've just spotted the problem. I had put 'workers.properties' in the registry, not 'worker.properties'. I suspect it will work now. Thanks for looking, anyway! Cheers, Richard. -Original Message- From: Richard Burman [mailto:[EMAIL PROTECTED] Sent: 02 February 2006 15:34 To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll They are both running on the same machine and it doesn't have a firewall installed. Here is a more extensive snippet from the log file: [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_shm.c (134): Initialized shared memory size=67584 free=65536 addr=0xfe [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1160): Using registry. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1163): Using log file C:\Program Files\Apache Software Foundation\Tomcat 5.5\logs\jk_iis.log. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1164): Using log level 1. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1165): Using extension uri /tomcat/isapi_director.dll. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1166): Using worker file C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\workers.properties. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1167): Using worker mount file C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\uriworkermap.properties. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1169): Using uri select 0. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /servlet-examples/*.jpeg=ajp13w was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /NetSearch/*=NetSearchWorker was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /NetSearch/*.jsp=NetSearchWorker was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /NetSearch/servlet/*=NetSearchWorker was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (236): creating worker ajp12 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (141): about to create instance ajp12 of ajp12 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp12_worker.c (241): Into ajp12_worker_factory [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (154): about to validate and init ajp12 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp12_worker.c (153): Into jk_worker_t::validate [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp12_worker.c (165): In jk_worker_t::validate for worker ajp12 contact is localhost:8007 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (248): removing old ajp12 worker [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (236): creating worker ajp13 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (141): about to create instance ajp13 of ajp13 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (154): about to validate and init ajp13 [Thu Feb 02 11:57:38 2006] [5684:1588]
APR in Tomcat 5.5
Hi All, Once I have apr installed, what is the configuration change that I need to do to let tomcat know to use apr? Thanks
Re :automating use of webXmlFragment result - how to do?
Using the Jasper2 task and pointing it to my web.xml, the generated fragment is automatically merged into the right spot of web.xml. Here's how I specify the Jasper2 task. You'll obviously have to set your attributes according to your setup. The two key attributes are webxmlfragment and addwebxmlmappings. It'll look in your dir that the uriroot attribute points to to find your web.xml to insert into. jasper2 verbose=0 validatexml=false package=${jsp.package} uriroot=${webapp.root.context} webxmlfragment=${build.prod.dir}/generated_web.xml addwebxmlmappings=true outputdir=${jasper2.output.dir} / Subject: automating use of webXmlFragment result - how to do? From: Olinga K. Abbott [EMAIL PROTECTED] Date: Wed, 1 Feb 2006 14:58:27 -0800 (PST) To: users@tomcat.apache.org To: users@tomcat.apache.org Use of the webXmlFragment attribute with Jasper produces an xml fragment requiring inserting into web.xml. Although I could write some custom code to perform this task, probably using xslt, this seems like a common enough use case that a solution should already exist. Does anyone know of such a solution? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Betr.: Re: The Future of Tomcat
Those evil people at Sun with their weird and often difficult to use javascript!! *shakes fist* Now ECMAScript THAT'S a different story... =P -Original Message- From: Roel De Nijs [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 10:52 AM To: users@tomcat.apache.org Subject: Betr.: Re: The Future of Tomcat or they think coffee and/or island :-) [EMAIL PROTECTED] 2/02/2006 16:50:03 True, but the HTTP server is still what most people think of when they hear the name Apache. Probably same people, that think of Applets or Javascript when they hear the word Java? Dave Leon :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** Disclaimer: zie www.aquafin.be - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat under IIS using isapi_redirect.dll
Is the port 8019 correct. Usually Tomcat AJP connector is listening on 8009. From the log snippet, it is finding a worker based on the URI. Earnie! -Original Message- From: Richard Burman [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 11:38 AM To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll worker.properties worker.list=NetSearchWorker worker.NetSearchWorker.port=8019 worker.NetSearchWorker.host=localhost worker.NetSearchWorker.type=ajp13 uriworkermap.properties /NetSearch/*=NetSearchWorker /NetSearch/*.jsp=NetSearchWorker /NetSearch/servlet/*=NetSearchWorker -Original Message- From: Earnie Dyke [mailto:[EMAIL PROTECTED] Sent: 02 February 2006 16:15 To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll The two lines are informational. It tells you that it matched the URI with a worker. Can you post your workers and uriworkers properties files? Earnie! -Original Message- From: Richard Burman [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 10:49 AM To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll Hmm... No, that's not it. Still getting exactly the same error. Where exactly is this 'The specified module could not be found' coming from? Is it the redirector that is failing or is Tomcat somehow giving an incorrect response? Are these two lines an error or informational? [Thu Feb 02 15:40:31 2006] [2240:5376] [debug] jk_isapi_plugin.c (845): check if [/NetSearch/jsp/index.jsp] is points to the web-inf directory [Thu Feb 02 15:40:31 2006] [2240:5376] [debug] jk_isapi_plugin.c (863): [/NetSearch/jsp/index.jsp] is a servlet url - should redirect to NetSearchWorker I can't find a lot of help anywhere if things don't work... Cheers, Richard. -Original Message- From: Earnie Dyke [mailto:[EMAIL PROTECTED] Sent: 02 February 2006 15:40 To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll That could do it. Earnie! -Original Message- From: Richard Burman [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 10:38 AM To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll D'oh!! It's okay, I've just spotted the problem. I had put 'workers.properties' in the registry, not 'worker.properties'. I suspect it will work now. Thanks for looking, anyway! Cheers, Richard. -Original Message- From: Richard Burman [mailto:[EMAIL PROTECTED] Sent: 02 February 2006 15:34 To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll They are both running on the same machine and it doesn't have a firewall installed. Here is a more extensive snippet from the log file: [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_shm.c (134): Initialized shared memory size=67584 free=65536 addr=0xfe [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1160): Using registry. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1163): Using log file C:\Program Files\Apache Software Foundation\Tomcat 5.5\logs\jk_iis.log. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1164): Using log level 1. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1165): Using extension uri /tomcat/isapi_director.dll. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1166): Using worker file C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\workers.properties. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1167): Using worker mount file C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\uriworkermap.properties. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1169): Using uri select 0. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /servlet-examples/*.jpeg=ajp13w was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /NetSearch/*=NetSearchWorker was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /NetSearch/*.jsp=NetSearchWorker was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /NetSearch/servlet/*=NetSearchWorker was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (236): creating worker ajp12 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (141): about to create instance ajp12 of ajp12 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp12_worker.c (241): Into ajp12_worker_factory [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (154): about to validate and init ajp12 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp12_worker.c (153): Into jk_worker_t::validate [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_ajp12_worker.c (165): In jk_worker_t::validate for worker ajp12 contact is localhost:8007 [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_worker.c (248): removing old
RE: Tomcat under IIS using isapi_redirect.dll
Yeah, I had to change the port because something else on my machine is holding port 8009, but I've changed it in both the worker.properties and the server.xml connector so it should work? I've just modified the ports back to the normal 8009 and got it all running but I'm still seeing the same problem. I understand that it's finding a worker based on the URI but I don't understand what could be wrong past that point? How can I tell whether Tomcat is receiving the request? Even a request to /NetSearch/index.html won't work even though a work is found based on the URI. I'm confused! %o) Rich. -Original Message- From: Earnie Dyke [mailto:[EMAIL PROTECTED] Sent: 02 February 2006 17:00 To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll Is the port 8019 correct. Usually Tomcat AJP connector is listening on 8009. From the log snippet, it is finding a worker based on the URI. Earnie! -Original Message- From: Richard Burman [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 11:38 AM To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll worker.properties worker.list=NetSearchWorker worker.NetSearchWorker.port=8019 worker.NetSearchWorker.host=localhost worker.NetSearchWorker.type=ajp13 uriworkermap.properties /NetSearch/*=NetSearchWorker /NetSearch/*.jsp=NetSearchWorker /NetSearch/servlet/*=NetSearchWorker -Original Message- From: Earnie Dyke [mailto:[EMAIL PROTECTED] Sent: 02 February 2006 16:15 To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll The two lines are informational. It tells you that it matched the URI with a worker. Can you post your workers and uriworkers properties files? Earnie! -Original Message- From: Richard Burman [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 10:49 AM To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll Hmm... No, that's not it. Still getting exactly the same error. Where exactly is this 'The specified module could not be found' coming from? Is it the redirector that is failing or is Tomcat somehow giving an incorrect response? Are these two lines an error or informational? [Thu Feb 02 15:40:31 2006] [2240:5376] [debug] jk_isapi_plugin.c (845): check if [/NetSearch/jsp/index.jsp] is points to the web-inf directory [Thu Feb 02 15:40:31 2006] [2240:5376] [debug] jk_isapi_plugin.c (863): [/NetSearch/jsp/index.jsp] is a servlet url - should redirect to NetSearchWorker I can't find a lot of help anywhere if things don't work... Cheers, Richard. -Original Message- From: Earnie Dyke [mailto:[EMAIL PROTECTED] Sent: 02 February 2006 15:40 To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll That could do it. Earnie! -Original Message- From: Richard Burman [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 10:38 AM To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll D'oh!! It's okay, I've just spotted the problem. I had put 'workers.properties' in the registry, not 'worker.properties'. I suspect it will work now. Thanks for looking, anyway! Cheers, Richard. -Original Message- From: Richard Burman [mailto:[EMAIL PROTECTED] Sent: 02 February 2006 15:34 To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll They are both running on the same machine and it doesn't have a firewall installed. Here is a more extensive snippet from the log file: [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_shm.c (134): Initialized shared memory size=67584 free=65536 addr=0xfe [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1160): Using registry. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1163): Using log file C:\Program Files\Apache Software Foundation\Tomcat 5.5\logs\jk_iis.log. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1164): Using log level 1. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1165): Using extension uri /tomcat/isapi_director.dll. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1166): Using worker file C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\workers.properties. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1167): Using worker mount file C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\uriworkermap.properties. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1169): Using uri select 0. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /servlet-examples/*.jpeg=ajp13w was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /NetSearch/*=NetSearchWorker was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c (260): wildchar rule /NetSearch/*.jsp=NetSearchWorker was added [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_uri_worker_map.c
mod_jk problem on solaris 10
Hello all, I did searchs on the net but still could not find a clear solution, os: solaris 10 java: 1.3.1.11 apache: 1.3.29 when trying to build jakarta-tomcat-connectors-1.2.15, got following error messages during the make Making all in apache-1.3 make: Fatal error in reader: Makefile, line 23: Unexpected end of line seen Current working directory /tmp/jakarta-tomcat-connectors-1.2.15-src/jk/native/apache-1.3 *** Error code 1 The following command caused the error: set fnord $MAKEFLAGS; amf=$2; \ dot_seen=no; \ target=`echo all-recursive | sed s/-recursive//`; \ list='common apache-1.3'; for subdir in $list; do \ echo Making $target in $subdir; \ if test $subdir = .; then \ dot_seen=yes; \ local_target=$target-am; \ else \ local_target=$target; \ fi; \ (cd $subdir make $local_target) \ || case $amf in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ done; \ if test $dot_seen = no; then \ make $target-am || exit 1; \ fi; test -z $fail make: Fatal error: Command failed for target `all-recursive' any body has a solution for this? if this is a known issue, please direct me to a right thread/document. Thanks. Regards! Ran - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: APR in Tomcat 5.5
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Antonio W. Lagnada Subject: APR in Tomcat 5.5 Once I have apr installed, what is the configuration change that I need to do to let tomcat know to use apr? None, assuming the APR native library is installed in the proper place. Tomcat looks for the library and uses it if found; if not found, it simply reverts to the pure Java connector. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Port 8443 won't become active
Hello! I'm brand-new to Tomcat and am under the gun to learn it quickly. The short story: My University hired our Software Vendor to upgrade our administrative web software. We also hired them to move us from iPlanet to Jakarta Tomcat 5.0.28. Currently we can access our web software on port 80. The problem is enabling SSL on port 8443. We're stuck and the software vendor hasn't been helpful (yet). I don't know if the problem was caused by something the consultant did not do upon setup or something we are missing elsewhere. Our webserver is an IBM P615C AIX 5.2 box. I have attempted the following to enable port 8443: 1) keytool -genkey -alias tomcat -keyalg RSA 2) Edited server.xml and uncommented the port 8443 connector 3) Stopped/Started Tomcat When I run telnet localhost 80 I get a connection. When I try telnet localhost 8443 I get a denied connection message. I have re-commented the port 8443 connector and then changed my port 80 (formerly 8080) to 8443 and restarted Tomcat. After doing this I was able to go to http://localhost:8443 with no problems. Of course, it is http and not https. Since the port activates I'm led to believe it's either a Tomcat setup issue or perhaps something to do with AIX. I changed things back so port 80 was active again and I uncommented port 8443 and restarted Tomcat again. The catalina.out log file shows some errors which may have something to do with the problem but I don't know what to do at this point. Please help this novice! Thanks! Jeffery G. Summers System Administrator Transylvania University Colleague R17/Ben 5.1/AIX 5.3.3 WebAdvisor 3.0/AIX 5.2/Tomcat 5.0.28 = The errors: Feb 2, 2006 10:20:20 AM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8443 Feb 2, 2006 10:20:20 AM org.apache.coyote.tomcat5.CoyoteConnector pause SEVERE: Protocol handler pause failed java.lang.NullPointerException Feb 2, 2006 10:20:22 AM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8443 Feb 2, 2006 10:20:22 AM org.apache.coyote.tomcat5.CoyoteConnector stop SEVERE: Coyote connector has not been started Feb 2, 2006 10:20:40 AM org.apache.coyote.http11.Http11Protocol start SEVERE: Error initializing endpoint java.io.IOException: Algorithm SunX509 not available Successfully Scanned by the McAfee SIG 3200 Appliance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Port 8443 won't become active
From: Jeffery G. Summers [mailto:[EMAIL PROTECTED] Subject: Port 8443 won't become active Our webserver is an IBM P615C AIX 5.2 box. I have attempted the following to enable port 8443: 1) keytool -genkey -alias tomcat -keyalg RSA 2) Edited server.xml and uncommented the port 8443 connector 3) Stopped/Started Tomcat Have you read this yet? http://tomcat.apache.org/tomcat-5.0-doc/ssl-howto.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Port 8443 won't become active
From: Jeffery G. Summers [mailto:[EMAIL PROTECTED] Our webserver is an IBM P615C AIX 5.2 box. Whose JVM and what version? - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1.31 IBM JDK JSSE crash
Hi, I use an Tomcat 4.1.31 wit IBM JDK 1.4.1 and i want Implement JSSE on my Tomcat I have add Sun jsse.jar on $JAVA_HOME/jre/lib/ext but i have following error, where is my mistake ?? Regards Philippe - Root Cause - java.security.NoSuchAlgorithmException: Class com.ibm.jsse.bd configured for SSL Context not a SSLContext at com.sun.net.ssl.SunJSSE_b.a(DashoA12275) Philippe COUAS Responsable Développement INFODEV S.A.
Re: the best way to distribute Tomcat with my web-application
great it means tomcat really dont't need any installer.. that windows intaller is just a windows-like manner to get tomcat working... great.. On 2/2/06, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Felipe Gaúcho [mailto:[EMAIL PROTECTED] Subject: Re: the best way to distribute Tomcat with my web-application tomcat runs whithout installation under windows ? i.e., can I simply unzip a tomcat version and run it through command line? Yes, if you start with the .zip version from the Tomcat download site. The .exe version does not include the scripts. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat under IIS using isapi_redirect.dll
In your Connector definition add the attriute: debug=6 This will turn on debugging on the Tomcat side. You should see message in your Tomcat log then. Can you connect to the app by going straight at Tomcat? Earnie! -Original Message- From: Richard Burman [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 12:12 PM To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll Yeah, I had to change the port because something else on my machine is holding port 8009, but I've changed it in both the worker.properties and the server.xml connector so it should work? I've just modified the ports back to the normal 8009 and got it all running but I'm still seeing the same problem. I understand that it's finding a worker based on the URI but I don't understand what could be wrong past that point? How can I tell whether Tomcat is receiving the request? Even a request to /NetSearch/index.html won't work even though a work is found based on the URI. I'm confused! %o) Rich. -Original Message- From: Earnie Dyke [mailto:[EMAIL PROTECTED] Sent: 02 February 2006 17:00 To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll Is the port 8019 correct. Usually Tomcat AJP connector is listening on 8009. From the log snippet, it is finding a worker based on the URI. Earnie! -Original Message- From: Richard Burman [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 11:38 AM To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll worker.properties worker.list=NetSearchWorker worker.NetSearchWorker.port=8019 worker.NetSearchWorker.host=localhost worker.NetSearchWorker.type=ajp13 uriworkermap.properties /NetSearch/*=NetSearchWorker /NetSearch/*.jsp=NetSearchWorker /NetSearch/servlet/*=NetSearchWorker -Original Message- From: Earnie Dyke [mailto:[EMAIL PROTECTED] Sent: 02 February 2006 16:15 To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll The two lines are informational. It tells you that it matched the URI with a worker. Can you post your workers and uriworkers properties files? Earnie! -Original Message- From: Richard Burman [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 10:49 AM To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll Hmm... No, that's not it. Still getting exactly the same error. Where exactly is this 'The specified module could not be found' coming from? Is it the redirector that is failing or is Tomcat somehow giving an incorrect response? Are these two lines an error or informational? [Thu Feb 02 15:40:31 2006] [2240:5376] [debug] jk_isapi_plugin.c (845): check if [/NetSearch/jsp/index.jsp] is points to the web-inf directory [Thu Feb 02 15:40:31 2006] [2240:5376] [debug] jk_isapi_plugin.c (863): [/NetSearch/jsp/index.jsp] is a servlet url - should redirect to NetSearchWorker I can't find a lot of help anywhere if things don't work... Cheers, Richard. -Original Message- From: Earnie Dyke [mailto:[EMAIL PROTECTED] Sent: 02 February 2006 15:40 To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll That could do it. Earnie! -Original Message- From: Richard Burman [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 10:38 AM To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll D'oh!! It's okay, I've just spotted the problem. I had put 'workers.properties' in the registry, not 'worker.properties'. I suspect it will work now. Thanks for looking, anyway! Cheers, Richard. -Original Message- From: Richard Burman [mailto:[EMAIL PROTECTED] Sent: 02 February 2006 15:34 To: Tomcat Users List Subject: RE: Tomcat under IIS using isapi_redirect.dll They are both running on the same machine and it doesn't have a firewall installed. Here is a more extensive snippet from the log file: [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_shm.c (134): Initialized shared memory size=67584 free=65536 addr=0xfe [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1160): Using registry. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1163): Using log file C:\Program Files\Apache Software Foundation\Tomcat 5.5\logs\jk_iis.log. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1164): Using log level 1. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1165): Using extension uri /tomcat/isapi_director.dll. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1166): Using worker file C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\workers.properties. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1167): Using worker mount file C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\uriworkermap.properties. [Thu Feb 02 11:57:38 2006] [5684:1588] [debug] jk_isapi_plugin.c (1169): Using uri select 0. [Thu Feb 02 11:57:38 2006] [5684:1588]
RE: Port 8443 won't become active
We're using version 1.4.2. When we used SunONE (iPlanet) we had 1.3.1 and that old directory still exists (/usr/java131). I think the old directory can be blown away since we have everything we need with /usr/java14 and have removed the apps that had to use the previous version. -Original Message- From: Peter Crowther [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 12:28 PM To: Tomcat Users List Subject: RE: Port 8443 won't become active From: Jeffery G. Summers [mailto:[EMAIL PROTECTED] Our webserver is an IBM P615C AIX 5.2 box. Whose JVM and what version? - Peter Successfully scanned by McAfee SIG 3200 Appliance. Successfully Scanned by the McAfee SIG 3200 Appliance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Port 8443 won't become active
When we contracted our upgrades the consultant installed version 1.4.2 but when I just ran java -version the box tells me that 1.3.1 is the one running in memory! I've never stopped/started java, etc. and I plan on making the consultant finish the job on this...but, if I want to try it does anyone have a Quickie Guide I could use? Thanks! Jeff -Original Message- From: Peter Crowther [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 12:28 PM To: Tomcat Users List Subject: RE: Port 8443 won't become active From: Jeffery G. Summers [mailto:[EMAIL PROTECTED] Our webserver is an IBM P615C AIX 5.2 box. Whose JVM and what version? - Peter Successfully scanned by McAfee SIG 3200 Appliance. Successfully Scanned by the McAfee SIG 3200 Appliance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: APR in Tomcat 5.5
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Antonio W. Lagnada Subject: Re: APR in Tomcat 5.5 Thanks. I'm assuming I need to append it to LD_LIBRARY_PATH as such: LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/apr If you already have something in that environment variable, then yes. What about in WindowsXP? Do the dlls just need to be in C:\Windows\system32? You can, but I wouldn't put it there, unless you want everything on the system to have access to it. My JVM installation has, by default: java.library.path=C:\jdk1.5.0\bin;.;C:\WINDOWS\system32;C:\WINDOWS;.;C:\ jdk1.5.0\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem [must have been implemented by the Department of Redundancy Department] so you could just put it in the current directory for your Tomcat script. The LD_LIBRARY_PATH environment variable appears to be ignored in XP. For portability, I think I'd use the system property, not an environment variable. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Servlet filter on j_security_check
I am using form based authentication in my application. I would like to know if it is possible to install a Servlet filter on j_security_check. I have tried to install one, but it never gets invoked. Here is my filter definition in application web.xml: filter filter-nameLoginFilter/filter-name filter-classLoginFilter/filter-class descriptionPerforms pre-login and post-login operation/description /filter filter-mapping filter-nameLoginFilter/filter-name url-pattern/j_security_check/url-pattern /filter-mapping I have some logs in the doFilter function. It seems like doFilter never gets called. However, if I set the url-pattern property to /*, doFilter gets called while rendering pages, but doesn't seem to be invoked from j_security_check. Comments? Suggestions? Martin - Bring words and photos together (easily) with PhotoMail - it's free and works with Yahoo! Mail.
SSL on Virtual Hosts
Hi All, As far as I know there's only one place to set the keystore in tomcat ( server.xml). Connector port=443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=conf/my-keystore keystorePass=password / Will tomcat support https on virtual domains? If I have placed www.host1.com and www.host2.com on my keystore, will tomcat map the correct domain entry? Right now I think the first entry gets used all the time no matter what host name is being used. https://www.host1.com - mapped to www.host1.com keystore entry https://www.host2.com - ALSO mapped to www.host1.com keystore entry -- Thanks
Re: Servlet filter on j_security_check
You can't install a filter on j_security_check -Tim Martin Dubuc wrote: I am using form based authentication in my application. I would like to know if it is possible to install a Servlet filter on j_security_check. I have tried to install one, but it never gets invoked. Here is my filter definition in application web.xml: filter filter-nameLoginFilter/filter-name filter-classLoginFilter/filter-class descriptionPerforms pre-login and post-login operation/description /filter filter-mapping filter-nameLoginFilter/filter-name url-pattern/j_security_check/url-pattern /filter-mapping I have some logs in the doFilter function. It seems like doFilter never gets called. However, if I set the url-pattern property to /*, doFilter gets called while rendering pages, but doesn't seem to be invoked from j_security_check. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SSL on Virtual Hosts
SSL requires a dedicated Connector bound to a dedicated IP address to work. This is because the certificate exchange takes place before the HTTP request transmits the desired HOST name. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Antonio W. Lagnada Sent: Thursday, February 02, 2006 12:52 PM To: users@tomcat.apache.org Subject: SSL on Virtual Hosts Hi All, As far as I know there's only one place to set the keystore in tomcat ( server.xml). Connector port=443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=conf/my-keystore keystorePass=password / Will tomcat support https on virtual domains? If I have placed www.host1.com and www.host2.com on my keystore, will tomcat map the correct domain entry? Right now I think the first entry gets used all the time no matter what host name is being used. https://www.host1.com - mapped to www.host1.com keystore entry https://www.host2.com - ALSO mapped to www.host1.com keystore entry -- Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Servlet filter on j_security_check
Yes, it is generically possible... I have the following mapping in one of my apps: filter-mapping filter-nameInitialLoginFilter/filter-name url-pattern/j_security_check/url-pattern /filter-mapping This runs on Websphere though, so maybe there is some limitation with Tomcat. In general though, it appears it is possible. One suggestion: change to a servlet mapping for the filter. IIRC, j_security_check is just a servlet that is set up by the container, so that might work. I kind of doubt it, but for the 30 seconds it'll take to try, worth a shot. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] On Thu, February 2, 2006 2:51 pm, Martin Dubuc said: I am using form based authentication in my application. I would like to know if it is possible to install a Servlet filter on j_security_check. I have tried to install one, but it never gets invoked. Here is my filter definition in application web.xml: filter filter-nameLoginFilter/filter-name filter-classLoginFilter/filter-class descriptionPerforms pre-login and post-login operation/description /filter filter-mapping filter-nameLoginFilter/filter-name url-pattern/j_security_check/url-pattern /filter-mapping I have some logs in the doFilter function. It seems like doFilter never gets called. However, if I set the url-pattern property to /*, doFilter gets called while rendering pages, but doesn't seem to be invoked from j_security_check. Comments? Suggestions? Martin - Bring words and photos together (easily) with PhotoMail - it's free and works with Yahoo! Mail. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Servlet filter on j_security_check
Well, there you go Martin :) Tim, is this something peculiar to Tomcat that doesn't allow it? As I mentioned in my previous post, I in fact do this in an app running on Websphere. Or, maybe its a case of Websphere letting me do something it really shouldn't? -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] On Thu, February 2, 2006 2:53 pm, Tim Funk said: You can't install a filter on j_security_check -Tim Martin Dubuc wrote: I am using form based authentication in my application. I would like to know if it is possible to install a Servlet filter on j_security_check. I have tried to install one, but it never gets invoked. Here is my filter definition in application web.xml: filter filter-nameLoginFilter/filter-name filter-classLoginFilter/filter-class descriptionPerforms pre-login and post-login operation/description /filter filter-mapping filter-nameLoginFilter/filter-name url-pattern/j_security_check/url-pattern /filter-mapping I have some logs in the doFilter function. It seems like doFilter never gets called. However, if I set the url-pattern property to /*, doFilter gets called while rendering pages, but doesn't seem to be invoked from j_security_check. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Servlet filter on j_security_check
If you want to be spec compliant. There is a bugzilla entry with respect to this and confirmation by the expert group that Tomcat's behavior is correct. -Tim Frank W. Zammetti wrote: Well, there you go Martin :) Tim, is this something peculiar to Tomcat that doesn't allow it? As I mentioned in my previous post, I in fact do this in an app running on Websphere. Or, maybe its a case of Websphere letting me do something it really shouldn't? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1.31 IBM JDK JSSE crash
The error is for com.ibm.jsse.bd not com.sun.jsse or whatever. Youneed IBM's jsse it appears Philippe Couas wrote: Hi, I use an Tomcat 4.1.31 wit IBM JDK 1.4.1 and i want Implement JSSE on my Tomcat I have add Sun jsse.jar on $JAVA_HOME/jre/lib/ext but i have following error, where is my mistake ?? Regards Philippe - Root Cause - java.security.NoSuchAlgorithmException: Class com.ibm.jsse.bd configured for SSL Context not a SSLContext at com.sun.net.ssl.SunJSSE_b.a(DashoA12275) Philippe COUAS Responsable D�veloppement INFODEV S.A. -- Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Servlet filter on j_security_check
Interesting. Thanks for that info! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] On Thu, February 2, 2006 3:04 pm, Tim Funk said: If you want to be spec compliant. There is a bugzilla entry with respect to this and confirmation by the expert group that Tomcat's behavior is correct. -Tim Frank W. Zammetti wrote: Well, there you go Martin :) Tim, is this something peculiar to Tomcat that doesn't allow it? As I mentioned in my previous post, I in fact do this in an app running on Websphere. Or, maybe its a case of Websphere letting me do something it really shouldn't? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File encoding not getting set (using JVM option in service.bat)
Sriram Subramanian wrote: Hi, I am installing Tomcat 5.5.9 as a windows service using the service.bat script. I need to set the jvm file encoding to UTF-8, which I did using the following syntax - === %EXECUTABLE% //IS//%SERVICE_NAME% --JavaHome %JAVA_HOME% --StartPath %CATALINA_HOME% --Startup auto --JvmOptions -Dfile.encoding=UTF-8 more stuff file.encoding is intended to be read only. That it is read/write on some JVM/OS combinations is a feature that cannot be relied upon to work in all cases. What are you trying to do? Depending on your aims you might have better luck with some/all of the following: URIEncoding of the connector fileEncoding of the default servlet Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File encoding not getting set (using JVM option in service.bat)
Sriram Subramanian wrote: Mark, I see your point related to file encoding changes working on select OS/JVM combinations, why is probably why setting LANG=en_US.UTF-8 in catalina.sh does the trick on Unix. There's got to be some workaround for Windows. My aim is to force Tomcat to use UTF-8. We have a EAR that is deployed on Tomcat, and setting the file encoding to UTF-8 would help satisfy i18n requirements for the product. Otherwise for e.g. japanese usernames would be seen as ???. You can't really force Tomcat to use UTF-8 since a lot of the encoding is under the control of the developer. However what you can do is: 1) set URIEncoding=UTF-8 on the connector - this will help with any query parameters 2) setting fileEncoding=UTF-8 on the default servlet will help if you have any UTF-8 encoded static resources 3) Code the application carefully ;). This one is where people usually come unstuck. Search the archives for encoding filters. You should find some resources that may help you if you have problems here but be aware that these are sticking plasters for application problem rather than the right solution. The test JSP in this post may also help you. http://marc.theaimsgroup.com/?l=tomcat-userm=108896683306201w=2 You should be able to paste any text (Japanese, Chinese, English...) into the input text box and see the exact same text echoed back. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Port 8443 won't become active
Hi Jeff, when I had this problem it was caused by the presence of a file named tcnative-1.dll in the ~/Tomcat 5.5/bin directory. When I removed that .dll file, everything worked as described in the Tomcat documentation for SSL. --Tony C. -- Original message -- From: Jeffery G. Summers [EMAIL PROTECTED] Hello! I'm brand-new to Tomcat and am under the gun to learn it quickly. The short story: My University hired our Software Vendor to upgrade our administrative web software. We also hired them to move us from iPlanet to Jakarta Tomcat 5.0.28. Currently we can access our web software on port 80. The problem is enabling SSL on port 8443. We're stuck and the software vendor hasn't been helpful (yet). I don't know if the problem was caused by something the consultant did not do upon setup or something we are missing elsewhere. Our webserver is an IBM P615C AIX 5.2 box. I have attempted the following to enable port 8443: 1) keytool -genkey -alias tomcat -keyalg RSA 2) Edited server.xml and uncommented the port 8443 connector 3) Stopped/Started Tomcat When I run telnet localhost 80 I get a connection. When I try telnet localhost 8443 I get a denied connection message. I have re-commented the port 8443 connector and then changed my port 80 (formerly 8080) to 8443 and restarted Tomcat. After doing this I was able to go to http://localhost:8443 with no problems. Of course, it is http and not https. Since the port activates I'm led to believe it's either a Tomcat setup issue or perhaps something to do with AIX. I changed things back so port 80 was active again and I uncommented port 8443 and restarted Tomcat again. The catalina.out log file shows some errors which may have something to do with the problem but I don't know what to do at this point. Please help this novice! Thanks! Jeffery G. Summers System Administrator Transylvania University Colleague R17/Ben 5.1/AIX 5.3.3 WebAdvisor 3.0/AIX 5.2/Tomcat 5.0.28 = The errors: Feb 2, 2006 10:20:20 AM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8443 Feb 2, 2006 10:20:20 AM org.apache.coyote.tomcat5.CoyoteConnector pause SEVERE: Protocol handler pause failed java.lang.NullPointerException Feb 2, 2006 10:20:22 AM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8443 Feb 2, 2006 10:20:22 AM org.apache.coyote.tomcat5.CoyoteConnector stop SEVERE: Coyote connector has not been started Feb 2, 2006 10:20:40 AM org.apache.coyote.http11.Http11Protocol start SEVERE: Error initializing endpoint java.io.IOException: Algorithm SunX509 not available Successfully Scanned by the McAfee SIG 3200 Appliance. - 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: how to use datasource in a non-tomcat project?
You can use jakarta commons dbcp http://jakarta.apache.org/commons/dbcp/. There is a basic datasource and examples on how to create it. mas Rick Col wrote: Hi, guys: I am stuck here with this problem. I created a Java project on Eclipse, the reason is I have to use my own framework that won't fit into a Tomcat project. But we are using Tomcat to run our application. Now I have to create datasource for Hibernate to use. If this is a tomcat project, I can set up DB2 datasource in Tomcat's server.xml. But it seems I cannot access this datasource set up in server.xml and web.xml using Hibernate code or JDBC code. I am wondering if there is a workaround for this? regards, __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.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]
Re: how to use datasource in a non-tomcat project?
Thanks, Mark: Basic datasource is a good resource. This is really pointing me to the right direction. --- Mark Shifman [EMAIL PROTECTED] wrote: You can use jakarta commons dbcp http://jakarta.apache.org/commons/dbcp/. There is a basic datasource and examples on how to create it. mas Rick Col wrote: Hi, guys: I am stuck here with this problem. I created a Java project on Eclipse, the reason is I have to use my own framework that won't fit into a Tomcat project. But we are using Tomcat to run our application. Now I have to create datasource for Hibernate to use. If this is a tomcat project, I can set up DB2 datasource in Tomcat's server.xml. But it seems I cannot access this datasource set up in server.xml and web.xml using Hibernate code or JDBC code. I am wondering if there is a workaround for this? regards, __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.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] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1.31 IBM JDK JSSE crash
Mike Sabroff [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The error is for com.ibm.jsse.bd not com.sun.jsse or whatever. Youneed IBM's jsse it appears Yup. Ditch the Sun jar, and specify algorithm=IbmX509 on the Connector. Philippe Couas wrote: Hi, I use an Tomcat 4.1.31 wit IBM JDK 1.4.1 and i want Implement JSSE on my Tomcat I have add Sun jsse.jar on $JAVA_HOME/jre/lib/ext but i have following error, where is my mistake ?? Regards Philippe - Root Cause - java.security.NoSuchAlgorithmException: Class com.ibm.jsse.bd configured for SSL Context not a SSLContext at com.sun.net.ssl.SunJSSE_b.a(DashoA12275) Philippe COUAS Responsable D?veloppement INFODEV S.A. -- Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Solution: File encoding not getting set (using JVM option in service.bat)
Hi Mark, and others, So I did find a way to set the encoding for the JVM (and hence Tomcat 5.5 which uses this jvm and runs as a windows service). Just add another update statement in service.bat: //US//SelectFederation ++JvmOptions -Dfile.encoding=UTF-8 Regards, Sriram --- Mark Thomas [EMAIL PROTECTED] wrote: Sriram Subramanian wrote: Mark, I see your point related to file encoding changes working on select OS/JVM combinations, why is probably why setting LANG=en_US.UTF-8 in catalina.sh does the trick on Unix. There's got to be some workaround for Windows. My aim is to force Tomcat to use UTF-8. We have a EAR that is deployed on Tomcat, and setting the file encoding to UTF-8 would help satisfy i18n requirements for the product. Otherwise for e.g. japanese usernames would be seen as ???. You can't really force Tomcat to use UTF-8 since a lot of the encoding is under the control of the developer. However what you can do is: 1) set URIEncoding=UTF-8 on the connector - this will help with any query parameters 2) setting fileEncoding=UTF-8 on the default servlet will help if you have any UTF-8 encoded static resources 3) Code the application carefully ;). This one is where people usually come unstuck. Search the archives for encoding filters. You should find some resources that may help you if you have problems here but be aware that these are sticking plasters for application problem rather than the right solution. The test JSP in this post may also help you. http://marc.theaimsgroup.com/?l=tomcat-userm=108896683306201w=2 You should be able to paste any text (Japanese, Chinese, English...) into the input text box and see the exact same text echoed back. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best practice for Capturing JSP Errors
Mott Leroy wrote: I am on Tomcat 5.0.x I am familiar with a couple ways to capture errors that occur on the JSP side. One way is to use the error page tag: %@ page errorPage=MyErrorPage.jsp % Chapter 10 on exception handling, Beginning JavaServer Pages (Wrox Books, 2005), I think would be helpful for you here. I think (am unsure) you can make your error page the same as the page that created the error (by adding another page directive [EMAIL PROTECTED] isErrorPage=true % to the same page). This way, by checking if the ${pagecontext.exception} property is populated (indicating that this page was activated *not* as a non-exception first activation but as an exception-based second or third activation), you can then add error messages to the JSP page. And another is to define the error page in your web.xml: error-page error-code500/error-code location/myPage.jsp/location /error-page I would save these for generic HTTP error codes, or generic Java exceptions (NullPointerErrors, ClassCastExceptions, perhaps), things are more likely the result of errors in coding than in user entry, and something the user cannot really recover from. Also, the JSTL c:catch var=.../ action may be something to look at here, to keep runtime/coding errors handled within the JSP pages, without needing to forward to a generic error page. Glen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: How to identify version of a running Tomcat and similar trivia
Yes, TC stands for TomCat. Well, this confirms that the version is one of 3.3.0, 3.3.1, or 3.3.1a. Most likely the later (since most people upgraded to that). You can find out for sure which by doing a HEAD request to anything but a JSP page: It will be in the 'Server:' header. There isn't much for monitoring on any of these versions. AccountingInterceptor dumps out a lot of timing info, but not much else. LogEvents dumps out huge amounts of info on all Requests, but will probably slow your system down a lot. Both of these are meant more for Tomcat developers debugging problems. TC 3.3.2 has the JMXSupport module (at http://apache.downlod.in/tomcat/tomcat-3/v3.3.2/add-ons/) that will probably work with older versions (but I've never tried it myself :). However, this is more for dynamic management than for monitoring. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Good Morning Bill (at least in my TZ that is), many thanks for clarifying what Http10Connector stands for. Of course I should have known that it refers to version 1.0 of the HTTP. I admid that I should be reading more of the docs of the Tomcat project, and probably have an occassional glance at the sources where I suspect further commentary. I think to recall that there even was such a thing as javadoc that would provide a documentation of the class'es interfaces (but this should more be dedicated to the application developer, I suppose). As I said, I am merely a simpleton sysadmin who unfortunately lacks the time to delve deeper into the Java/Tomcat guts. You're right, I do have a modules.xml file in this server's conf dir. These are the modules listed within the module tag: (I hope you don't mind the Perl line noise, but can you parse a Tomcat conf file with a Java oneliner? ;-) perl -MXML::Simple -le 'print join(\n,sort keys %{XML::Simple-new-XMLin(/opt/hpapache2/tomcat/conf/modules.xml )-{module}})' AccessInterceptor AccessLogInterceptor AccountingInterceptor Ajp12Connector Ajp13Connector ApacheConfig AutoDeploy AutoWebApp ContextXmlReader CredentialsInterceptor DecodeInterceptor ErrorHandler Http10Connector Http10Interceptor IISConfig InvokerInterceptor JDBCRealm JNIConnectionHandler Jdk12Interceptor JniConnector JservConfig JspInterceptor LoadOnStartupInterceptor LoaderInterceptor11 LogEvents LogSetter NSConfig PathSetter PolicyLoader ProfileLoader ReloadInterceptor ServerXmlReader Servlet22Interceptor SessionExpirer SessionId SessionIdGenerator SimpleMapper1 SimpleRealm SimpleSessionStore StaticInterceptor TagPoolManagerInterceptor TrustedLoader WebXmlReader WorkDirSetup Would you mind telling me, which of these modules could be of any use for my Tomcat monitoring purposes. I'd simply like to cut down the masses of documentation I would peruse in vain to only find out that a module was totally irrelevant to my objective. Apropos, another stupid question, what does TC stand for (is it Tomcat)? Regards Ralph -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Barker Sent: Thursday, February 02, 2006 4:26 AM To: users@tomcat.apache.org Subject: Re: How to identify version of a running Tomcat and similar trivia The Http10Connector refers to HTTP/1.0. It also means that you've got a TC 3.x server running there. If you've got a conf/modules.xml then it's probably TC 3.3.1a (since 3.3.2 uses the CoyoteConnector by default). Otherwise, it's probably TC 3.2.4. It also explains why there is no /manager webapp, since it's called /admin in TC 3 (and is much less full-featured than /manager in later TC versions :). [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] walt-berlin.de... Hi Tim, thanks for referring me to the Tomcat FAQs. That's for sure the first source of information one should read before nagging the list community with redundant questions. At least did I find therein a description how to enable CGI support. Yet, the trivial task of identifying a running Java thread's Tomcat version seems rediculously convoluted. I assume the mentioned version script isn't much more than a mere wrapper script that puts together the a hundred chars long java invocation of some class method call that most likely is called version() along with the loading of a dozen jar libs etc. (only joking ;-) Anyway, far more than anyone can remember and type without making typos. Only problem is, my Tomcat depot on this box (randomly picked one of our HP-UX boxes, but we also have Tomcats running on Linux, AIX, Solaris (and probably Win32) doesn't seem to have bundled such a wrapper script. # swlist |grep -i tomcat hpuxwsTomcat A.4.1.29.04HP-UX Tomcat-based Servlet Engine (ok, I concede with a properly bundled hpux depot I get a revision string that happens to be the same as the bundled Tomcat version, but that's not everywhere the case) # swlist -l file hpuxwsTomcat|grep -cF version 0 So where can I get such a
Re: catalina.sh on os x
Hi all I am a newbie to tomcat. I installed jarkarta tomcat 5.5.9 with fedoracore3 OS. I already have j2sdk1.5.2 installed on it. I downloaded and configured tomcat from http://www.coreservlets.com/Apache-Tomcat-Tutorial/tomcat5.5-files/jakarta-= tomcat-5.5.9-preconfigured.ziphttp://www.coreservlets.com/Apache-Tomcat-Tutorial/tomcat5.5-files/jakarta-=tomcat-5.5.9-preconfigured.zip After configuring tomcat, and i run http://localhost:8080/ from firefox in my pc, it works fine and shows me the index.html in webapps directory. Other files like index.jsp, hello.jsp are working fine too. However, when i access it from any other pc saying http://mypcname:8080/ it gives me an error saying No route to host . However when i type http://mypcname/ it works fine and is accessible. That is on port 80, it works fine. Even other hosts like http://someotherhost:8080/ , my pc isnt accessible. I dont understand my it is giving me the error saying No route to host when accessing from other pc. I am using the server.xml from coreservelets.com The following seems to be running when i saw in ps -x 9908 pts/1Sl 0:03 /usr/local/j2sdk1.4.2_10/bin /java - Djava.util.logging.manager =3Dorg.apache.juli.ClassLoaderLogManage I checked out catalina.out, but that didnt not contain any errors for No route to host. Please help thanks -Rsh