RE: BUILD FAILED ...
> From: Caldarale, Charles R > Subject: RE: BUILD FAILED ... > > > From: Albretch Mueller [mailto:[EMAIL PROTECTED] > > Subject: Re: BUILD FAILED ... > > > > sh-3.1# pwd > > /media/hda3/tc/tc-6.0.18/bin > It's been a while since I've done a Tomcat build O.k., I just downloaded a 1.5 JDK and did a Tomcat build, albeit on a Vista 64 box. Looks like you're trying to run Tomcat from the source files rather than the build output directory. Your current directory really should be: /media/hda3/tc/tc-6.0.18/output/build/bin when you try to run the generated Tomcat. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Manager app language
> From: Michael Ludwig [mailto:[EMAIL PROTECTED] > Subject: Re: Manager app language > > I'm not sure Tomcat would bother what character encoding you > specify in LANG. It does, albeit indirectly. JVM initialization uses the LANG value to set user.language, user.country, sun.jnu.encoding, and file.encoding, and it's the user.language setting that determines which LocalStrings file the manager uses. Curiously enough, LANG=de_DE.iso885915 does not work on the SuSE box I'm using; the JVM reverted to en, US, and ANSI-X3.4-1968 when I tried that. LANG=de_DE.iso88591 does work as expected, even though "locale -a" doesn't list it. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: security-constraint outside web.xml
> From: Andre Rubin [mailto:[EMAIL PROTECTED] > Subject: Re: security-constraint outside web.xml > > I want to manage security completely outside my app (outside the war > file), not just outside web.xml. I was under the impression that you could store the configuration settings for SecurityFilter anywhere you want, not just inside the webapp structure. Chris Schultz works on SecurityFilter and is a regular contributer to this list, so he may be able to answer more definitively; however, this is a holiday week in the US, so it may be a while before he can comment. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: BUILD FAILED ...
> From: Albretch Mueller [mailto:[EMAIL PROTECTED] > Subject: Re: BUILD FAILED ... > > sh-3.1# pwd > /media/hda3/tc/tc-6.0.18/bin Seems to be missing the requisite jars: bootstrap.jar commons-daemon.jar tomcat-juli.jar Looks like your build either did not create them, or did not place them properly. > Also I noticed even if the build apparently worked fine, I am missing > directories such as ${tomcat.home}/lib and ${tomcat.home}/common Another indication that the build did not actually complete properly. It's been a while since I've done a Tomcat build (since there's almost never any reason to do so), so I can't tell you much more. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting encoding for tomcat compiler
Ronald Vyhmeister schrieb am 27.11.2008 um 08:47:07 (+0800): > In looking through the documentation, it looks like the default > encoding for the compiler is ISO-8859-1. Not quite. The javac man page (1.4, 1.6 ...) has this to say: -encoding encoding Set the source file encoding name, such as EUC-JP and UTF-8. If -encoding is not specified, the platform default converter is used. > I need to use Windows-1251 (Russian input). The javac compiler takes > an encoding option, but I have not figured out (maybe it's just too > late) how to make it use that encoding for all files (only one > application on the server, so no need to have multiple choices)... Always use that option. Or define an alias, if you're on UNIX. Or write a shell script calling javac with your options. Or if you use an IDE, configure it accordingly. > The database (postgresql) is UTF8, and will auto convert from WIN1251, > but right now it's receiving the stuff as LATIN1 (8859-1)... That doesn't have anything to do with javac, where you specify the *source file* encoding. An application dealing with different encodings has to be made aware of the issue. When reading text data, always specify the correct character encoding. If you read CP1251 and have your application believe it is Latin-1, your results won't make much sense. You must have code like this, which takes the encoding as parameter: C:\dev\Java\Encoding :: more /t1 Convert.java /* * Konvertiert von einer Zeichenkodierung in die andere. */ import java.io.*; public class Convert { public static void main( String[] args) throws IOException { assert args.length > 3 : "Argumente: Quelldatei Quellkodierung Zieldatei Ziellkodierung"; Reader in = null; Writer out = null; try { in = new BufferedReader( new InputStreamReader( new FileInputStream( args[0]), args[1])); out = new BufferedWriter( new OutputStreamWriter( new FileOutputStream( args[2]), args[3])); int c; while ( (c = in.read()) != -1 ) out.write( c); } finally { if ( in != null ) in.close(); if ( out != null ) out.close(); } } } C:\dev\Java\Encoding :: java -cp . Convert CP1251.txt latin1 Murks.txt utf-8 C:\dev\Java\Encoding :: more Murks.txt €??? ???°? ?Š?€? ???? ?®? ???®?? ???® ???°???¬?? ???§?°?»??? ®?? ?? ?¬??? ?? Michael Ludwig - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: BUILD FAILED ...
>> Exception in thread "main" java.lang.NoClassDefFoundError: >> org/apache/catalina/startup/Bootstrap > What's in the /media/hda3/tc/tc-6.0.18/bin directory? ~ sh-3.1# pwd /media/hda3/tc/tc-6.0.18/bin ~ sh-3.1# ls -l total 100 -rw-r--r-- 1 root root 1201 Jul 21 20:01 Tomcat6.launch -rw-r--r-- 1 root root 2374 Jul 21 20:01 catalina-tasks.xml -rw-r--r-- 1 root root 9670 Jul 21 20:01 catalina.bat -rwxr-xr-x 1 root root 12907 Jul 21 20:01 catalina.sh -rw-r--r-- 1 root root 1307 Jul 21 20:01 cpappend.bat -rw-r--r-- 1 root root 2048 Jul 21 20:01 digest.bat -rwxr-xr-x 1 root root 1624 Jul 21 20:01 digest.sh -rw-r--r-- 1 root root 4820 Jul 21 20:01 service.bat -rw-r--r-- 1 root root 3220 Jul 21 20:01 setclasspath.bat -rwxr-xr-x 1 root root 4447 Jul 21 20:01 setclasspath.sh -rw-r--r-- 1 root root 2037 Jul 21 20:01 shutdown.bat -rwxr-xr-x 1 root root 1563 Jul 21 20:01 shutdown.sh -rw-r--r-- 1 root root 2038 Jul 21 20:01 startup.bat -rwxr-xr-x 1 root root 1956 Jul 21 20:01 startup.sh -rw-r--r-- 1 root root 3110 Jul 21 20:01 tool-wrapper.bat -rwxr-xr-x 1 root root 3291 Jul 21 20:01 tool-wrapper.sh -rw-r--r-- 1 root root 2042 Jul 21 20:01 version.bat -rwxr-xr-x 1 root root 1567 Jul 21 20:01 version.sh ~ > Do you have the CLASSPATH variable set? It must not be when running Tomcat. ~ No actually I don't ~ sh-3.1# echo $CLASSPATH sh-3.1# ~ I think (and you certainly know) it is set by tomcat as it starts up ~ Also I noticed even if the build apparently worked fine, I am missing directories such as ${tomcat.home}/lib and ${tomcat.home}/common ~ sh-3.1# ls -lS total 228 -rw-r--r-- 1 root root 37951 Jul 21 20:01 LICENSE -rw-r--r-- 1 root root 30608 Jul 21 20:01 dist.xml -rw-r--r-- 1 root root 30284 Jul 21 20:01 build.xml -rw-r--r-- 1 root root 17826 Jul 21 20:01 KEYS -rw-r--r-- 1 root root 11384 Jul 21 20:01 extras.xml -rw-r--r-- 1 root root 7320 Jul 21 20:01 RELEASE-NOTES -rw-r--r-- 1 root root 6587 Jul 21 20:01 RUNNING.txt -rw-r--r-- 1 root root 4757 Nov 26 18:17 build.properties -rw-r--r-- 1 root root 4730 Jul 21 20:01 BUILDING.txt -rw-r--r-- 1 root root 4698 Jul 21 20:01 build.properties.default drwxr-xr-x 2 root root 4096 Nov 26 18:08 bin drwxr-xr-x 2 root root 4096 Nov 26 18:57 conf drwxr-xr-x 4 root root 4096 Jul 21 20:01 java drwxr-xr-x 2 root root 4096 Nov 26 18:30 logs drwxr-xr-x 3 root root 4096 Jul 21 20:01 native drwxr-xr-x 4 root root 4096 Nov 26 18:22 output drwxr-xr-x 6 root root 4096 Nov 26 18:08 res drwxr-xr-x 10 root root 4096 Nov 26 18:22 share drwxr-xr-x 3 root root 4096 Nov 26 18:08 test drwxr-xr-x 7 root root 4096 Jul 21 20:01 webapps -rw-r--r-- 1 root root 2548 Jul 21 20:01 STATUS.txt -rw-r--r-- 1 root root 2392 Jul 21 20:01 RELEASE-PLAN-6.0.txt -rw-r--r-- 1 root root 556 Jul 21 20:01 NOTICE ~ lbrtchx - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: security-constraint outside web.xml
Thanks Chuck but SecurityFilter does exactly the opposite of what I want: "Security Filter is intended to be packaged within your web app, including your realm implementation and supporting classes. This allows you to deploy your app as a single, deployable unit (war file or expanded war directory structure) with no additional configuration of the server environment." I want to manage security completely outside my app (outside the war file), not just outside web.xml. Maybe I wasn't clear enough on that regard. Andre On Wed, Nov 26, 2008 at 4:44 PM, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: >> From: Andre Rubin [mailto:[EMAIL PROTECTED] >> Subject: security-constraint outside web.xml >> >> Is there a way to configure the security-constraints >> somewhere else for my_app, like in a context file >> somewhere > > Not when you're using the standard declarative security. > > This might help do what you want: > http://securityfilter.sourceforge.net/ > > - 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 start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.26 / 6.0.18 difference: loading jdbc jar??
Ken Bowen schrieb am 26.11.2008 um 19:21:33 (-0500): >Under 5.5.26, TC+myApp will load the mysql jar from either common/ > lib or webapps/myApp/WEB-INF/lib. > >Under 6.0.18, TC+myApp will only load the mysql jar from tomcat's > lib. If I try to move the mysql >jar from Tomcat's lib to webapps/myApp/WEB-INF/lib, I get the > following error when the first attempt >to access the db is made: > Cannot load JDBC driver class 'com.mysql.jdbc.Driver' In order for JNDI data sources to work, both Tomcat and the web app must have access to the driver. So you have to put the driver in Tomcat/lib; putting it in WEB-INF/lib makes it private to the web app. > A) is this a new feature in TC6? (if so is there doc anywhere?); > or (more likely) Class loading has changed: http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html > B) is there something I need to adjust in my configuration and jndi > code? If you want the JNDI data source, put the mysql.jar in Tomcat/lib. Michael Ludwig - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Manager app language
André Warnier schrieb am 26.11.2008 um 23:48:50 (+0100): > Only yesterday did he ever speak German, and by today he seems to have > forgotten all of it, despite all our attempts to feed him appetising > bits of LANG=de_DE.iso885915, Accept-language=de; and other Gummy > Bäre. I'm not sure Tomcat would bother what character encoding you specify in LANG. I'd say this gets configured at the web application level. What does `locale -a' on your Debian machine say? Maybe your LANG setting is not installed. Try a LANG that is listed among the installed locales. (GNU Gettext requires the requested locale be installed in the OS, else ignoring the locale you're trying to set.) Or simply: LANG=de_DE ./startup.sh # or maybe even LANG=de ./startup.sh Michael Ludwig - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Setting encoding for tomcat compiler
In looking through the documentation, it looks like the default encoding for the compiler is ISO-8859-1. I need to use Windows-1251 (Russian input). The javac compiler takes an encoding option, but I have not figured out (maybe it's just too late) how to make it use that encoding for all files (only one application on the server, so no need to have multiple choices)... The database (postgresql) is UTF8, and will auto convert from WIN1251, but right now it's receiving the stuff as LATIN1 (8859-1)... Any help is appreciated! Ron - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: security-constraint outside web.xml
> From: Andre Rubin [mailto:[EMAIL PROTECTED] > Subject: security-constraint outside web.xml > > Is there a way to configure the security-constraints > somewhere else for my_app, like in a context file > somewhere Not when you're using the standard declarative security. This might help do what you want: http://securityfilter.sourceforge.net/ - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: BUILD FAILED ...
> From: Albretch Mueller [mailto:[EMAIL PROTECTED] > Subject: Re: BUILD FAILED ... > However, tc doc states: "version 1.5.x or later" and > to me "later" meant 1.6.0_07 should be fine Yes, it would have worked under 1.6 except for Sun changing the JDBC spec in an incompatible fashion. The problem wasn't discovered until well after Tomcat 6 went out. There are changes in the trunk to replace the DB connection pooling mechanism with one that isn't impacted by the 1.6 change. > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/catalina/startup/Bootstrap What's in the /media/hda3/tc/tc-6.0.18/bin directory? Do you have the CLASSPATH variable set? It must not be when running Tomcat. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5.26 / 6.0.18 difference: loading jdbc jar??
Hi all, Using: tomcat-6.0.18 (download from Apache), simply unzipped & running java 1.5.0_16 on a Mac OS X 10.5.5 mysql-connector-java-3.1.14-bin I've just switched up from 5.5.26 to 6.0.18 (both downloads from Apache). I seem to have one datasource difference: Using the same configurations and code: Under 5.5.26, TC+myApp will load the mysql jar from either common/ lib or webapps/myApp/WEB-INF/lib. Under 6.0.18, TC+myApp will only load the mysql jar from tomcat's lib. If I try to move the mysql jar from Tomcat's lib to webapps/myApp/WEB-INF/lib, I get the following error when the first attempt to access the db is made: Cannot load JDBC driver class 'com.mysql.jdbc.Driver' I scanned the Tomcat 6 changelog, but nothing about this caught my eye -- but my eyes are not that good anymore :-). So: A) is this a new feature in TC6? (if so is there doc anywhere?); or (more likely) B) is there something I need to adjust in my configuration and jndi code? In case of the latter, I've attached my context.xml (from myApp/META- INF) and my jndi code at the end. Have a Happy Thanksgiving (wherever it is celebrated) Thanks much in advance, Ken Bowen context.xml: type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="1" username="XXX" password="XXX" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://sequoyah:3306/securities_info" validationQuery="select 1" /> Datasource setup (runs in contextInitialized in ServletContextListener): Context initialContext = new InitialContext(); if (initialContext == null ) { throw new Exception("Boom - No Initial Context"); } Context envCtx = (Context) initialContext.lookup("java:comp/ env"); String key = "jdbc" + "/" + SECURITIES_INFO; DataSource ds = (DataSource)envCtx.lookup(key); if (ds != null ){ SI_DAOBase.setDataSource(ds); MD_DAOs2.set_siDAOBase(new SI_DAOBase()); } ... - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
security-constraint outside web.xml
Hey All, I'm new here, yada yada yada. I've been trying to find the answer in the archives, manual, etc, and so far nothing. What I want to do is to deploy my_app.war with different security-constraints (for different customers). But I was hoping not to edit the web.xml file in the war file for each deployment. Is there a way to configure the security-constraints somewhere else for my_app, like in a context file somewhere ($CATALINA_HOME/conf/[enginename]/[hostname]/my_app.xml) or somewhere else? Thanks in advance. Andre - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configuration Quandary - Servicing static page from app root
OS - CentOS 4.7 Tomcat - apache-tomcat-5.5.23.tar.gz Apache - httpd-2.0.59.tar.gz (compiled on that machine) Connector - tomcat-connectors-1.2.21-src.tar.gz (compiled on that machine) I'm trying to serve a static page (which will redirect elsewhere but that is not the issue) that will be found when the user uses the raw domain name URL. i.e. http://www.somedomain.com Currently this particular webapp requires the fairly usual: http://www.somedomain.com/appname/servlet_controller with the directory structure: /webapps/somedomain/appname and works just fine.. (Note: I have a LOT of web apps on this machine with various domains, hence the directory structure) In the base configuration file that is "include"d in httpd.conf that is working for the URL http://www.somedomain.com/appname/servlet_controller I have.. == ServerName www.somedomain.com Alias /appname "/usr/local/tomcat/webapps/somedomain/appname" Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp DocumentRoot "/usr/local/tomcat/webapps/somedomain/" JkMount /appname/servlet_controller ajp13 JkMount /appname/*.jsp ajp13 = What I would like to do is place an index.html in, for example, the directory /webapps/somedomain/index.html ..and have the URL http://www.somedomain.com ...load that index.html (the above path location can be different I'm just assuming that would be a good place) So far I have had no luck.. (I seem to remember doing this back in Tomcat3 but either my brain has deteriorated severely or something has changed and I don't "get it" yet..) I have tried ADDING variations on the following several settings with no luck...: Alias / "usr/local/tomcat/webapps/somedomain" Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp JkMount / ajp13 === ...and reread all of the docs Except for when I added the "JkMount / ajp13" I got a 404 returned.. When I added the JkMount then I got a blank page (no error), but the index.html page did not load... I would appreciate a kick up the side of the head to get me going here.. I'm feeling rather clueless at the moment... Thank you.. John - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: BUILD FAILED ...
On Wed, Nov 26, 2008 at 4:08 PM, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: >> sh-3.1# java -version >> java version "1.6.0_07" > > Tomcat must be built with a 1.5 JDK at the moment, due to incompatibilities > introduced by Sun in 1.6. ~ However, tc doc states: "version 1.5.x or later" and to me "later" meant 1.6.0_07 should be fine ~ > Looks like you skipped the "ant download" part. ~ I think the jdk version issue would have made it fail anyway ~ > > For curiosity's sake, why are you bothering to build Tomcat? ~ I like to keep the source baseline of anything I use for production (well, anything anyway) ~ After doing the changes you suggested I got a "NoClassDefFoundError", when I tried to run it: ~ sh-3.1# sh ./catalina.sh run Using CATALINA_BASE: /media/hda3/tc/tc-6.0.18 Using CATALINA_HOME: /media/hda3/tc/tc-6.0.18 Using CATALINA_TMPDIR: /media/hda3/tc/tc-6.0.18/temp Using JRE_HOME: /media/hda3/jdk1.5.0_16 Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap ~ Thanks Chuck lbrtchx - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Manager app language
> From: André Warnier [mailto:[EMAIL PROTECTED] > Subject: Re: Manager app language > But where the h.. does Tomcat or the Manager figure that it needs to > send the "application list" main page in German ? The nice Tomcat folks provided a few language translations of the manager strings in LocalStrings[_xx].properties files (buried inside server/webapps/manager/WEB-INF/lib/catalina-manager.jar). The appropriate one is read up as a ResourceBundle during manager initialization based on the value of Locale.getDefault(). The default Locale is derived from the user.language system property, which itself initially comes from LC_xxx variants, if not set on the command line. The default Locale can be changed on the fly (as can user.language), but that shouldn't affect message bundles already read in. If Tomcat or the manager app were not restarted before each language change, I still don't understand how this could happen. I went so far as to modify the manager servlet to change the Locale after each display of the status page (and show the current language), but it still had no effect. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Manager app language
Michael Ludwig wrote: André Warnier schrieb am 26.11.2008 um 21:02:10 (+0100): I told Chuck already (but not the list) that this morning it is back to English, and all attempts to display the Manager page again in German fail. Not only from my workstation and my 3 browsers, also on the workstation of another colleague who, like me, saw it in German yesterday for the first time. Wie nennt man gremlins in Deutsch ? Kobolde. Zur See auch Klabautermänner, aber ich schätze, Dein Tomcat ist eine Landratte. Oder wohl eher eine Landkatze. This Tomcat, Sir, was born English-speaking, in an English-speaking Host, and spoke exclusively English for the first 3 years of his life. Only yesterday did he ever speak German, and by today he seems to have forgotten all of it, despite all our attempts to feed him appetising bits of LANG=de_DE.iso885915, Accept-language=de; and other Gummy Bäre. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Manager app language
André Warnier schrieb am 26.11.2008 um 21:02:10 (+0100): > I told Chuck already (but not the list) that this morning it is back > to English, and all attempts to display the Manager page again in > German fail. Not only from my workstation and my 3 browsers, also on > the workstation of another colleague who, like me, saw it in German > yesterday for the first time. > Wie nennt man gremlins in Deutsch ? Kobolde. Zur See auch Klabautermänner, aber ich schätze, Dein Tomcat ist eine Landratte. Oder wohl eher eine Landkatze. Michael Ludwig - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSI Filter does not work with JSP
You are right Mark. Thanks a lot :) Ahmed On Wed, Nov 26, 2008 at 11:08 PM, Mark Thomas <[EMAIL PROTECTED]> wrote: > Ahmed Hammad wrote: > > <%@ page language="java" contentType="text/html;"%> > > I am pretty sure the content types have to match in order for the filter to > be used. The content type of your JSP doesn't match your filter > configuration. > > > > > contentType > > text/x-server-parsed-html(;.*)? > > > > Mark > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
RE: BUILD FAILED ...
> From: Albretch Mueller [mailto:[EMAIL PROTECTED] > Subject: BUILD FAILED ... > > sh-3.1# java -version > java version "1.6.0_07" Tomcat must be built with a 1.5 JDK at the moment, due to incompatibilities introduced by Sun in 1.6. > I cannot believe you must have eclipse installed if you > want to run java. What is going on here? Mostly you're not following the instructions here: http://tomcat.apache.org/tomcat-6.0-doc/building.html#Building%20Tomcat Looks like you skipped the "ant download" part. For curiosity's sake, why are you bothering to build Tomcat? - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSI Filter does not work with JSP
Ahmed Hammad wrote: > <%@ page language="java" contentType="text/html;"%> I am pretty sure the content types have to match in order for the filter to be used. The content type of your JSP doesn't match your filter configuration. > > contentType > text/x-server-parsed-html(;.*)? > Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: BUILD FAILED ...
Albretch Mueller wrote: > about some eclipse classes. I cannot believe you must have eclipse > installed if you want to run java. What is going on here? You need to download the dependencies (which includes the Eclipse JDT compiler) before you try a build. http://tomcat.apache.org/tomcat-6.0-doc/building.html Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
BUILD FAILED ...
Hi, ~ I installed java and ant in my box: ~ sh-3.1# which java /media/hda3/jdk1.6.0_07/bin/java ~ sh-3.1# java -version java version "1.6.0_07" Java(TM) SE Runtime Environment (build 1.6.0_07-b06) Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing) ~ sh-3.1# echo $JAVA_HOME /media/hda3/jdk1.6.0_07 ~ sh-3.1# which ant /media/hda3/inst/sw/java/JARs/ant-1.7.1/bin/ant sh-3.1# ant -version Apache Ant version 1.7.1 compiled on June 27 2008 ~ then I downloaded tomcat sources ~ sh-3.1# wget http://mirror.candidhosting.com/pub/apache/tomcat/tomcat-6/v6.0.18/src/apache-tomcat-6.0.18-src.tar.gz --12:58:10-- http://mirror.candidhosting.com/pub/apache/tomcat/tomcat-6/v6.0.18/src/apache-tomcat-6.0.18-src.tar.gz => `apache-tomcat-6.0.18-src.tar.gz' Resolving mirror.candidhosting.com... 66.230.217.253 Connecting to mirror.candidhosting.com|66.230.217.253|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 3,484,249 (3.3M) [application/x-gzip] 100%[===>] 3,484,249131.14K/sETA 00:00 12:58:36 (137.48 KB/s) - `apache-tomcat-6.0.18-src.tar.gz' saved [3484249/3484249] ~ sh-3.1# ls -l apache* -rw-r--r-- 1 root root 3484249 Jul 30 05:51 apache-tomcat-6.0.18-src.tar.gz -rw-r--r-- 1 root root 197 Aug 11 08:25 apache-tomcat-6.0.18-src.tar.gz.asc -rw-r--r-- 1 root root 67 Jul 30 05:51 apache-tomcat-6.0.18-src.tar.gz.md5 ~ sh-3.1# md5sum apache-tomcat-6.0.18-src.tar.gz 9bdbb1c1d79302c80057a70b18fe6721 apache-tomcat-6.0.18-src.tar.gz ~ sh-3.1# cat apache-tomcat-6.0.18-src.tar.gz.md5 9bdbb1c1d79302c80057a70b18fe6721 *apache-tomcat-6.0.18-src.tar.gz ~ sh-3.1# gpg --import KEYS gpg: directory `/home/root/.gnupg' created gpg: can't open `/gnupg/options.skel': No such file or directory gpg: keyring `/home/root/.gnupg/secring.gpg' created gpg: keyring `/home/root/.gnupg/pubring.gpg' created gpg: /home/root/.gnupg/trustdb.gpg: trustdb created gpg: key F22C4FED: public key "Andy Armstrong <[EMAIL PROTECTED]>" imported gpg: key 86867BA6: public key "Jean-Frederic Clere (jfclere) <[EMAIL PROTECTED]>" imported gpg: key E86E29AC: public key "kevin seguin <[EMAIL PROTECTED]>" imported gpg: key 307A10A5: public key "Henri Gomez <[EMAIL PROTECTED]>" imported gpg: key 564C17A3: public key "Mladen Turk (*** DEFAULT SIGNING KEY ***) <[EMAIL PROTECTED]>" imported gpg: key 7C037D42: public key "Yoav Shapira <[EMAIL PROTECTED]>" imported gpg: key 33C60243: public key "Mark E D Thomas <[EMAIL PROTECTED]>" imported gpg: key 288584E7: public key "Rémy Maucherat <[EMAIL PROTECTED]>" imported gpg: key 0D811BBE: public key "Yoav Shapira <[EMAIL PROTECTED]>" imported gpg: Total number processed: 9 gpg: imported: 9 gpg: no ultimately trusted keys found ~ sh-3.1# gpg --verify apache-tomcat-6.0.18-src.tar.gz.asc gpg: Signature made Mon Aug 11 08:21:37 2008 EDT using DSA key ID 288584E7 gpg: Good signature from "Rémy Maucherat <[EMAIL PROTECTED]>" gpg: WARNING: This key is not certified with a trusted signature! gpg: There is no indication that the signature belongs to the owner. Primary key fingerprint: 541F BE7D 8F78 B25E 055D DEE1 3C37 0389 2885 84E7 ~ and tried to compile them, but the build failed and it is complaining about some eclipse classes. I cannot believe you must have eclipse installed if you want to run java. What is going on here? ~ sh-3.1# ls -l b*.xml -rw-r--r-- 1 root root 30284 Jul 21 20:01 build.xml sh-3.1# ant Buildfile: build.xml build-prepare: [mkdir] Created dir: /media/hda3/tc/tc-6.0.18/output/classes [mkdir] Created dir: /media/hda3/tc/tc-6.0.18/output/build [mkdir] Created dir: /media/hda3/tc/tc-6.0.18/output/build/bin [mkdir] Created dir: /media/hda3/tc/tc-6.0.18/output/build/conf [mkdir] Created dir: /media/hda3/tc/tc-6.0.18/output/build/lib [mkdir] Created dir: /media/hda3/tc/tc-6.0.18/output/build/temp [mkdir] Created dir: /media/hda3/tc/tc-6.0.18/output/build/webapps compile: [javac] Compiling 1047 source files to /media/hda3/tc/tc-6.0.18/output/classes [javac] /media/hda3/tc/tc-6.0.18/java/org/apache/jasper/compiler/JDTCompiler.java:38: package org.eclipse.jdt.core.compiler does not exist [javac] import org.eclipse.jdt.core.compiler.IProblem; [javac] ^ [javac] /media/hda3/tc/tc-6.0.18/java/org/apache/jasper/compiler/JDTCompiler.java:39: package org.eclipse.jdt.internal.compiler does not exist [javac] import org.eclipse.jdt.internal.compiler.ClassFile; [javac] ^ [javac] /media/hda3/tc/tc-6.0.18/java/org/apache/jasper/compiler/JDTCompiler.java:40: package org.eclipse.jdt.internal.compiler does not exist [javac] import org.eclipse.jdt.internal.compiler.CompilationResult; [javac] ^ [javac] /media/hda3/tc/tc-6.0.18/java/org/apache/jasper/compiler/JDTCompiler.java:41: package org.eclipse.j
Re: Manager app language
Michael Ludwig wrote: André Warnier schrieb am 25.11.2008 um 16:55:51 (+0100): Apparently since today, the Manager app (accessed through /manager/html) responds with its main page in German. Ist doch schön! - the Tomcat startup script sets LC_CTYPE to the same value prior to LC_MESSAGES or LC_ALL would be the ones to look out for. LC_CTYPE is for character classification. Watch out for LANG, which overrides everything else. But where the h.. does Tomcat or the Manager figure that it needs to send the "application list" main page in German ? Don't complain about user-friendliness :-) I told Chuck already (but not the list) that this morning it is back to English, and all attempts to display the Manager page again in German fail. Not only from my workstation and my 3 browsers, also on the workstation of another colleague who, like me, saw it in German yesterday for the first time. Wie nennt man gremlins in Deutsch ? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Manager app language
André Warnier schrieb am 25.11.2008 um 16:55:51 (+0100): > Apparently since today, the Manager app (accessed through > /manager/html) responds with its main page in German. Ist doch schön! > - the Tomcat startup script sets LC_CTYPE to the same value prior to LC_MESSAGES or LC_ALL would be the ones to look out for. LC_CTYPE is for character classification. Watch out for LANG, which overrides everything else. > But where the h.. does Tomcat or the Manager figure that it needs to > send the "application list" main page in German ? Don't complain about user-friendliness :-) Michael Ludwig - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Threadpool doesn't contain any threads
Dear Praveen, And what about my question below? Did anyone else notice this issue. Another minor caveat is, we built Tomcat using JDK 1.5 but are running it on JDK 1.6. Could this be causing any issue? Hum. You built your own Tomcat? Is there a test environment that you can test this application with a pre-built one from Apache.org? Just to make sure. -- Kees Jan http://java-monitor.com/forum/ [EMAIL PROTECTED] 06-51838192 The secret of success lies in the stability of the goal. -- Benjamin Disraeli - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Jconsole through firewall
> From: Mark Thomas [mailto:[EMAIL PROTECTED] > Subject: Re: Jconsole through firewall > > There is some code in trunk to do this. Life just became easier. Thanks very much. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Threadpool doesn't contain any threads
I don't think it is related to JMX. I took a stack dump and I don't see threads related to that thread pool. To answer Kees questions, it happens randomly and there is no specific request pattern. However whenever this happens I see a "Thread death" exception which I included in my previous email. When I tracked it through I see that this is caused when PoolTcpEndpoint encounters an IOException on socket accept, and it essentially either reinitializes endpoint or if that fails, stops the endpoint(which causes to shutdown the thread pool), initializes the endpoint and starts the endpoint. My guess is in the "start" phase when it is trying to start the thread pool, its going into some bad state. There is no other activity going on, also we have a large fleet and this issue props up randomly on some of the boxes. Since I cannot reproduce this behavior predictably I don't know if I can say I can test it out with a prebuilt apache build. Thanks for the comments. Any other pointers please send it my way. -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2008 8:28 AM To: Tomcat Users List Subject: Re: Threadpool doesn't contain any threads could just be flaky jmx code, meaning we don't publish completely accurate numbers Filip Kees Jan Koster wrote: > Dear Praveen, > >> Everyday we are noticing the tomcat not responding on a port. On >> further inspection we noticed that the thread pool that is serving >> this port has no threads. Right around the time tomcat goes into this >> state, we noticed that there is a thread death, and get the following >> stack trace > > Does this happen randomly on the day, or at a specific time of day? Is > it reproducible on a test machine? > > What other activity is going on around the time that Tomcat dies? Cron > jobs? Backups? Network changes? > >> Did anyone else notice this issue. Another minor caveat is, we built >> Tomcat using JDK 1.5 but are running it on JDK 1.6. Could this be >> causing any issue? > > Hum. You built your own Tomcat? Is there a test environment that you > can test this application with a pre-built one from Apache.org? Just > to make sure. > >> Also I used Jconsole and noticed that currentThreadBusy and >> currentThreadCount are both -1. > > I'm not sure that these figures can be trusted once the thread pool > has died. > -- > Kees Jan > > http://java-monitor.com/forum/ > [EMAIL PROTECTED] > 06-51838192 > > Human beings make life so interesting. Do you know that in a universe > so full of wonders, > they have managed to invent boredom. Quite astonishing... -- Terry > Partchett > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jconsole through firewall
André Warnier wrote: > 1) does someone understand what it says above ? Yes. :) > 2) if I want to monitor a Tomcat server from a remote location through a > firewall using jconsole, can I do it ? There is some code in trunk to do this. You'll need to build the extras package for tomcat trunk and then use the catalina-jmx-remote.jar It will need to be in Tomcat's lib directory and on JConsole's classpath. You can look at the docs in svn: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/config/listeners.xml?revision=700734&view=markup Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HELP!!! java.lang.NoClassDefFoundError running CXF-based client in Tomcat
Thank you Larry!!! That was it! I was barking up the wrong tree. The class that couldn't be loaded was indeed the "MyClient" class, which existed in a Utility Jar that I had not made a Java EE Module Dependency. D'Oh! Steve Larry Isaacs wrote: Be aware that in Eclipse WTP, your web project is "published" to the server to be served. Jars that are added to the project as runtime dependencies will be copied to the "WEB-INF/lib" of the "published" webapp. Just adding a jar to the build path of the web project DOES NOT add the jar as a runtime dependency. The project builds fine, but won't work at runtime due to missing classes. Normally, the Problems view will show warnings when this is the case. Assuming this is your problem, go the Java EE Module Dependencies page in the web project's Properties dialog. Make sure all the jars you want in "WEB-INF/lib" at runtime are checked. Cheers, Larry -Original Message- From: Steve Cohen [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2008 11:44 AM To: Tomcat Users List Subject: Re: HELP!!! java.lang.NoClassDefFoundError running CXF-based client inTomcat It's the Real Tomcat, but running inside Eclipse WTP, which starts and stops the server. Caldarale, Charles R wrote: From: Steve Cohen [mailto:[EMAIL PROTECTED] Subject: Re: HELP!!! java.lang.NoClassDefFoundError running CXF-based client inTomcat Another piece of information I omitted: JDK version java-1.5.0-sun-1.5.0.13 running under Ubuntu Linux. Is this a real Tomcat or a 3rd-party repackaged version? If the latter, please install a real one from tomcat.apache.org and try again, as the 3rd-party ones often break things in subtle ways. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat module development
On Wed, Nov 26, 2008 at 8:34 PM, Caldarale, Charles R < [EMAIL PROTECTED]> wrote: > > From: h iroshan [mailto:[EMAIL PROTECTED] > > Subject: tomcat module development > > > > I am actually new for the tomcat development. Can any body > > please know me,is there any technical documentation for the > > Tomcat development. > > Tomcat's doc starts here: > http://tomcat.apache.org/tomcat-6.0-doc/index.html > > Also read the Servlet and JSP specs: > http://jcp.org/aboutJava/communityprocess/mrel/jsr154/index2.html > http://jcp.org/aboutJava/communityprocess/final/jsr245/index.html > > Links to the associated API docs are on the Tomcat doc page. > > A prerequisite is a good understanding of the Java language. > > - Chuck > > Thank you very much chunk ...
RE: HELP!!! java.lang.NoClassDefFoundError running CXF-based client in Tomcat
Be aware that in Eclipse WTP, your web project is "published" to the server to be served. Jars that are added to the project as runtime dependencies will be copied to the "WEB-INF/lib" of the "published" webapp. Just adding a jar to the build path of the web project DOES NOT add the jar as a runtime dependency. The project builds fine, but won't work at runtime due to missing classes. Normally, the Problems view will show warnings when this is the case. Assuming this is your problem, go the Java EE Module Dependencies page in the web project's Properties dialog. Make sure all the jars you want in "WEB-INF/lib" at runtime are checked. Cheers, Larry -Original Message- From: Steve Cohen [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2008 11:44 AM To: Tomcat Users List Subject: Re: HELP!!! java.lang.NoClassDefFoundError running CXF-based client inTomcat It's the Real Tomcat, but running inside Eclipse WTP, which starts and stops the server. Caldarale, Charles R wrote: >> From: Steve Cohen [mailto:[EMAIL PROTECTED] >> Subject: Re: HELP!!! java.lang.NoClassDefFoundError running >> CXF-based client inTomcat >> >> Another piece of information I omitted: JDK version >> java-1.5.0-sun-1.5.0.13 running under Ubuntu Linux. >> > > Is this a real Tomcat or a 3rd-party repackaged version? If the latter, > please install a real one from tomcat.apache.org and try again, as the > 3rd-party ones often break things in subtle ways. > > - 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 start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jconsole through firewall
Hi. Here : http://java.sun.com/javase/6/docs/technotes/guides/management/faq.html#rmi1 it says quote 7. The com.sun.management.jmxremote.port management property specifies the port where the RMI Registry can be reached but the ports where the RMIServer and RMIConnection remote objects are exported is chosen by the RMI stack. To export the remote objects (RMIServer and RMIConnection) on a given port you need to create your own RMI connector server programmatically, as described in the section Mimicking Out-of-the-Box Management Using the JMX Remote API in the Java SE Monitoring and Management Guide. You must specify the JMXServiceURL as follows: JMXServiceURL url = new JMXServiceURL("service:jmx:rmi://localhost:" + port1 + "/jndi/rmi://localhost:" + port2 + "/jmxrmi"); In the command above, port1 is the port number on which the RMIServer and RMIConnection remote objects are exported and port2 is the port number of the RMI Registry. unquote My simple questions are : 1) does someone understand what it says above ? 2) if I want to monitor a Tomcat server from a remote location through a firewall using jconsole, can I do it ? Thanks. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HELP!!! java.lang.NoClassDefFoundError running CXF-based client inTomcat
It's the Real Tomcat, but running inside Eclipse WTP, which starts and stops the server. Caldarale, Charles R wrote: From: Steve Cohen [mailto:[EMAIL PROTECTED] Subject: Re: HELP!!! java.lang.NoClassDefFoundError running CXF-based client inTomcat Another piece of information I omitted: JDK version java-1.5.0-sun-1.5.0.13 running under Ubuntu Linux. Is this a real Tomcat or a 3rd-party repackaged version? If the latter, please install a real one from tomcat.apache.org and try again, as the 3rd-party ones often break things in subtle ways. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Threadpool doesn't contain any threads
could just be flaky jmx code, meaning we don't publish completely accurate numbers Filip Kees Jan Koster wrote: Dear Praveen, Everyday we are noticing the tomcat not responding on a port. On further inspection we noticed that the thread pool that is serving this port has no threads. Right around the time tomcat goes into this state, we noticed that there is a thread death, and get the following stack trace Does this happen randomly on the day, or at a specific time of day? Is it reproducible on a test machine? What other activity is going on around the time that Tomcat dies? Cron jobs? Backups? Network changes? Did anyone else notice this issue. Another minor caveat is, we built Tomcat using JDK 1.5 but are running it on JDK 1.6. Could this be causing any issue? Hum. You built your own Tomcat? Is there a test environment that you can test this application with a pre-built one from Apache.org? Just to make sure. Also I used Jconsole and noticed that currentThreadBusy and currentThreadCount are both -1. I'm not sure that these figures can be trusted once the thread pool has died. -- Kees Jan http://java-monitor.com/forum/ [EMAIL PROTECTED] 06-51838192 Human beings make life so interesting. Do you know that in a universe so full of wonders, they have managed to invent boredom. Quite astonishing... -- Terry Partchett - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk 1.2.27 and an empty POST
Henk Fictorie wrote: Hi, I think that I've been bitten by a resolved bug in mod_jk 1.2.27. The changelog is describing this as: AJP13: Always send initial POST packet even if the client disconnected after sending request but before providing POST data. In that case or in case the client broke the connection in a middle of read send an zero size packet informing container about broken client connection. (mturk) Your SSO will have to remember the POST data or use the GET for that. In all other cases this is security risk of hi-jacking the sessions. Regards -- ^(TM) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HELP!!! java.lang.NoClassDefFoundError running CXF-based client inTomcat
> From: Steve Cohen [mailto:[EMAIL PROTECTED] > Subject: Re: HELP!!! java.lang.NoClassDefFoundError running > CXF-based client inTomcat > > Another piece of information I omitted: JDK version > java-1.5.0-sun-1.5.0.13 running under Ubuntu Linux. Is this a real Tomcat or a 3rd-party repackaged version? If the latter, please install a real one from tomcat.apache.org and try again, as the 3rd-party ones often break things in subtle ways. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HELP!!! java.lang.NoClassDefFoundError running CXF-based client inTomcat
Another piece of information I omitted: JDK version java-1.5.0-sun-1.5.0.13 running under Ubuntu Linux. This appears relevant to me after reading http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html - the section entitled XML Parsers and JSE 5, although I'm not sure what to do about it if this is the cause. This would be the first time we've tried adding a SOAP client to this application, so it seems likely that this is the case. Caldarale, Charles R wrote: From: Steve Cohen [mailto:[EMAIL PROTECTED] Subject: HELP!!! java.lang.NoClassDefFoundError running CXF-based client inTomcat I am beginning to think the problem is not a missing class but a class conflicting with something in Tomcat. Highly likely. First just look at the names of the Tomcat-supplied jars and see if any match or are very similar to the ones you have in your webapp. (Can't tell you which directories to look at, since that varies with the version of Tomcat you're using, which you didn't bother to tell us.) If that doesn't turn up anything, try finding a tool to scan jars and report duplicate classes (sorry, I don't know of any specific ones, but there must be some out 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HELP!!! java.lang.NoClassDefFoundError running CXF-basedclient inTomcat
> From: Pieter Temmerman [mailto:[EMAIL PROTECTED] > Subject: RE: HELP!!! java.lang.NoClassDefFoundError running > CXF-basedclient inTomcat > > Can you move your program .jar to /server/lib and see if it > works? (This is not a solution though). You really, really don't want to do that - it just muddies the waters. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HELP!!! java.lang.NoClassDefFoundError running CXF-based client inTomcat
> From: Steve Cohen [mailto:[EMAIL PROTECTED] > Subject: Re: HELP!!! java.lang.NoClassDefFoundError running > CXF-based client inTomcat > > Tomcat version is 6.0.16. That simplifies things, since the only directory to look at is Tomcat's lib. One common error is having j2ee.jar around, which is a no-no. One other thing you didn't mention is the names of the classes getting the NCDFE exceptions. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HELP!!! java.lang.NoClassDefFoundError running CXF-based client inTomcat
One such tool is jarFinder (http://www.isocra.com/articles/jarFinder.php) You need Ant to build the tool. Example: java -cp classes com.isocra.utils.jarSearch.DirectorySearcher DIRECTORY org.my.program.class Another explanation could be that the wrong class loader is looking for the class. Can you move your program .jar to /server/lib and see if it works? (This is not a solution though). On Wed, 2008-11-26 at 09:16 -0600, Caldarale, Charles R wrote: > > From: Steve Cohen [mailto:[EMAIL PROTECTED] > > Subject: HELP!!! java.lang.NoClassDefFoundError running > > CXF-based client inTomcat > > > > I am beginning to think the problem is not a missing class > > but a class conflicting with something in Tomcat. > > Highly likely. First just look at the names of the Tomcat-supplied jars and > see if any match or are very similar to the ones you have in your webapp. > (Can't tell you which directories to look at, since that varies with the > version of Tomcat you're using, which you didn't bother to tell us.) > > If that doesn't turn up anything, try finding a tool to scan jars and report > duplicate classes (sorry, I don't know of any specific ones, but there must > be some out 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 start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HELP!!! java.lang.NoClassDefFoundError running CXF-based client inTomcat
Tomcat version is 6.0.16. Sorry for not mentioning it originally. Thanks. Caldarale, Charles R wrote: From: Steve Cohen [mailto:[EMAIL PROTECTED] Subject: HELP!!! java.lang.NoClassDefFoundError running CXF-based client inTomcat I am beginning to think the problem is not a missing class but a class conflicting with something in Tomcat. Highly likely. First just look at the names of the Tomcat-supplied jars and see if any match or are very similar to the ones you have in your webapp. (Can't tell you which directories to look at, since that varies with the version of Tomcat you're using, which you didn't bother to tell us.) If that doesn't turn up anything, try finding a tool to scan jars and report duplicate classes (sorry, I don't know of any specific ones, but there must be some out 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HELP!!! java.lang.NoClassDefFoundError running CXF-based client inTomcat
> From: Steve Cohen [mailto:[EMAIL PROTECTED] > Subject: HELP!!! java.lang.NoClassDefFoundError running > CXF-based client inTomcat > > I am beginning to think the problem is not a missing class > but a class conflicting with something in Tomcat. Highly likely. First just look at the names of the Tomcat-supplied jars and see if any match or are very similar to the ones you have in your webapp. (Can't tell you which directories to look at, since that varies with the version of Tomcat you're using, which you didn't bother to tell us.) If that doesn't turn up anything, try finding a tool to scan jars and report duplicate classes (sorry, I don't know of any specific ones, but there must be some out 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HELP!!! java.lang.NoClassDefFoundError running CXF-based client in Tomcat
(Cross-posted on Apache CXF Mailing List) I have developed a Client for accessing a vendor's Web Service. The client is based on the CXF framework, built with source code generated from a Maven-based pom.xml and the vendor's WSDL. I ran this client in a standalone JUnit test and found it to work. Being a curmudgeon who doesn't believe in including every jar under the sun and who likes to know why I'm including what I am including, I removed 14 of the 47 jars that Maven told me to include, but which seemed irrelevant to me, and it still ran. The ultimate destination of this component is inside a web-app running under Tomcat 6.0. When I put my component and the 33 necessary jars into WEB-INF/lib I got NoClassDefFoundErrors. These errors are singularly uninformative, all I know is that the class supposedly not found is my client class, however, given the following code: MyClient myclient1 = null; MyClient myclient2 = new MyClient(); the error occurs on the second line and not the first. Therefore I conclude that the NoClassDefFoundError refers to a dependency, and not to MyClient itself. The NoClassDefFoundError itself is singularly uninformative - the getCause() member, for example, returns null. I need more information and can't figure out where to find it. I have since tried putting back all the fourteen other jars that Maven insisted I include and THIS DID NOT HELP. I am beginning to think the problem is not a missing class but a class conflicting with something in Tomcat. How the HELL do I debug this, given the miserable lack of information in a NoClassDefFoundError? I have tried putting a -verbose switch on the jvm command line that launches Tomcat, and while this does emit a slew more information, it still doesn't tell me what I need. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat module development
> From: h iroshan [mailto:[EMAIL PROTECTED] > Subject: tomcat module development > > I am actually new for the tomcat development. Can any body > please know me,is there any technical documentation for the > Tomcat development. Tomcat's doc starts here: http://tomcat.apache.org/tomcat-6.0-doc/index.html Also read the Servlet and JSP specs: http://jcp.org/aboutJava/communityprocess/mrel/jsr154/index2.html http://jcp.org/aboutJava/communityprocess/final/jsr245/index.html Links to the associated API docs are on the Tomcat doc page. A prerequisite is a good understanding of the Java language. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk 1.2.27 and an empty POST
Hi, I think that I've been bitten by a resolved bug in mod_jk 1.2.27. The changelog is describing this as: AJP13: Always send initial POST packet even if the client disconnected after sending request but before providing POST data. In that case or in case the client broke the connection in a middle of read send an zero size packet informing container about broken client connection. (mturk) Let me describe our setup. In our apache we have 2 additional modules, mod_jk and a module for Oracle SSO webgate. The last plugin takes care of authentication and protecting URL's. When an user login to our website, a POST is done containing username/password to a specific URL. This URL is mounted to Tomcat. The Oracle SSO webgate plugin intercepts this specific URL and authenticate the user with the Oracle SSO backend. After authenticating the REMOTE_USER is set and the URL is processed further (by mod_jk). A nasty side effect is that the POST body is removed by the Oracle SSO webgate plugin. Our Tomcat application doesn't have any problems with the empty POST body and responds normal with a redirection (302). In the older mod_jk the 302 was send to the browser and everybody was happy. In mod_jk 1.2.27 however, I find this in the mod_jk logging: [Wed Nov 26 13:14:35 2008] [16251:7] [info] ajp_service::jk_ajp_common.c (2407): (wm9_i) sending request to tomcat failed (unrecoverable), because of client read error (attempt=1) [Wed Nov 26 13:14:36 2008] [16251:7] [info] service::jk_lb_worker.c (1347): service failed, worker wm9_i is in local error state [Wed Nov 26 13:14:36 2008] [16251:7] [info] service::jk_lb_worker.c (1366): unrecoverable error 400, request failed. Client failed in the middle of request, we can't recover to another instance. [Wed Nov 26 13:14:36 2008] wm9_i POST /web/restricted/form?formelement=512663 HTTP/1.1 200 1.377267 [Wed Nov 26 13:14:36 2008] [16251:7] [info] jk_handler::mod_jk.c (2469): Aborting connection for worker=wm9_i_lbworker So the browser is receiving a HTTP 400-code and displays an empty screen. Questions: - Is my problem analysis correct - Is this a regression bug - Can I somehow circumvent this (other than not upgrading) regards Henk Fictorie -- View this message in context: http://www.nabble.com/mod_jk-1.2.27-and-an-empty-POST-tp20699972p20699972.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JK connector issues ?
Hi. Apache 2.0.52 Tomcat 5.5.20 mod_jk 1.2.x (sorry, don't know the exact version) OS : Linux (hostname) 2.6.9-67.0.15.ELsmp #1 SMP Tue Apr 22 13:58:43 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux (Red Hat Enterprise Linux) all the above on the same host. At a customer site we find repeated traces like the one below in the catalina.out logfile. I would just like to know if my analysis is correct in that these indicate a problem at the point where Tomcat is trying to send a response back to Apache through the Jk/mod_jk connector. And, if someone has an idea of where the problem might lie, that would be very welcome too. Or an idea as to what else we could activate or examine that would allow us to narrow down the problem. (Note : we sometimes get such traces at a frequency and within such short intervals, that it seems unlikely that a number of users (or the same user) could press the "cancel" button in their browser fast enough. But then one never knows.) (Note also : on the same host, we have been experiencing other rather unique problems of perl programs seeming to crash for no reason, apparently during network-related operations, the same programs running flawlessly at numerous other sites. So I am not entirely sure at this point that the problems originate in Apache or Tomcat.) Thanks in advance André Sample catalina.out : 26.11.2008 13:20:01 org.apache.jk.core.MsgContext action WARNUNG: Error sending end packet java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:531) at org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:112) at org.apache.jk.core.MsgContext.action(MsgContext.java:293) at org.apache.coyote.Response.action(Response.java:182) at org.apache.coyote.Response.finish(Response.java:304) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:204) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:619) 26.11.2008 13:20:01 org.apache.jk.common.ChannelSocket processConnection WARNUNG: processCallbacks status 2 [some time later] 26.11.2008 13:33:06 org.apache.jk.core.MsgContext action WARNUNG: Error sending end packet java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:531) at org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:112) at org.apache.jk.core.MsgContext.action(MsgContext.java:293) at org.apache.coyote.Response.action(Response.java:182) at org.apache.coyote.Response.finish(Response.java:304) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:204) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:619) 26.11.2008 13:33:06 org.apache.jk.common.ChannelSocket processConnection WARNUNG: processCallbacks status 2 Sample mod_jk logfile (level INFO): [Wed Nov 26 13:19:42 2008] [14572:4416] [info] ajp_send_request::jk_ajp_common.c (1244): (ajp13) increase the backend idle connection timeout or the connection_pool_minsize [Wed Nov 26 13:19:42 2008] [14572:4416] [info] ajp_service::jk_ajp_common.c (1930): (ajp13) sending request to tomcat failed, recoverable operation attempt=1 [Wed Nov 26 13:20:06 2008] [14637:4416] [info] ajp_process_callback::jk_ajp_common.c (1447): Writing to client aborted or client network problems [Wed Nov 26 13:20:06 2008] [14637:4416] [info] ajp_service::jk_ajp_common.c (1846): (ajp13) request failed, because of client write error without recovery in send loop attempt=0 [Wed Nov 26 13:20:06 2008] [14637:4416] [info] jk_handler::mod_jk.c (2190): Aborting connection for worker=ajp13 [Wed Nov 26 13:22:33 2008] [14710:4416] [info] ajp_send_request::jk_ajp_common
Re: What does tomcat look like?
Dear Leon, http://images.google.de/images?q=tomcat%20architecture&ie=utf-8&oe=utf-8&rls=org.mozilla:en-US:official&client=firefox-a&um=1&sa=N&tab=wi Thanks for the help. I had already entered the exact same query earlier today. depends on your desired detail grade. Well, more than what these images give me. I'm looking for a drawing that shows me how connectors, thread pools and executors are wired together. This one comes close, but does not show where Tomcat's subsystems live. http://www.vsj.co.uk/pix/articleimages/apr04/tomcat3.jpg So, that image, with yet more detail. -- Kees Jan http://java-monitor.com/forum/ [EMAIL PROTECTED] 06-51838192 The secret of success lies in the stability of the goal. -- Benjamin Disraeli - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What does tomcat look like?
http://images.google.de/images?q=tomcat%20architecture&ie=utf-8&oe=utf-8&rls=org.mozilla:en-US:official&client=firefox-a&um=1&sa=N&tab=wi depends on your desired detail grade. regards Leon On Wed, Nov 26, 2008 at 11:21 AM, Kees Jan Koster <[EMAIL PROTECTED]> wrote: > Dear All, > > I am looking for a good architecture drawing of Tomcat. I found lots of text > descriptions of what Tomcat looks like internally, but I am looking for a > graphical representation. Preferably one that shows internal components such > as thread pools and connectors. > > I found many generic JEE pictures, but they are too abstract. > > -- > Kees Jan > > http://java-monitor.com/forum/ > [EMAIL PROTECTED] > 06-51838192 > > The secret of success lies in the stability of the goal. -- Benjamin > Disraeli > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What does tomcat look like?
Dear All, I am looking for a good architecture drawing of Tomcat. I found lots of text descriptions of what Tomcat looks like internally, but I am looking for a graphical representation. Preferably one that shows internal components such as thread pools and connectors. I found many generic JEE pictures, but they are too abstract. -- Kees Jan http://java-monitor.com/forum/ [EMAIL PROTECTED] 06-51838192 The secret of success lies in the stability of the goal. -- Benjamin Disraeli - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Threadpool doesn't contain any threads
Dear Praveen, Everyday we are noticing the tomcat not responding on a port. On further inspection we noticed that the thread pool that is serving this port has no threads. Right around the time tomcat goes into this state, we noticed that there is a thread death, and get the following stack trace Does this happen randomly on the day, or at a specific time of day? Is it reproducible on a test machine? What other activity is going on around the time that Tomcat dies? Cron jobs? Backups? Network changes? Did anyone else notice this issue. Another minor caveat is, we built Tomcat using JDK 1.5 but are running it on JDK 1.6. Could this be causing any issue? Hum. You built your own Tomcat? Is there a test environment that you can test this application with a pre-built one from Apache.org? Just to make sure. Also I used Jconsole and noticed that currentThreadBusy and currentThreadCount are both -1. I'm not sure that these figures can be trusted once the thread pool has died. -- Kees Jan http://java-monitor.com/forum/ [EMAIL PROTECTED] 06-51838192 Human beings make life so interesting. Do you know that in a universe so full of wonders, they have managed to invent boredom. Quite astonishing... -- Terry Partchett - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat module development
hi all, I am actually new for the tomcat development. Can any body please know me,is there any technical documentation for the Tomcat development. Best Regard, H Iroshan,
Re: Updating users
Prastein, Rebeccah H wrote: There must be a way - Managing users is one of the things that the admin webapp does. Maybe take a look at its source code? BTW, The admin webapp doesn't come with the default installation of tomcat any more, you have to download and install it separately. You can use JMX to communicate with user store. MBean exposes methods such as load/save. I don't know how portable it is across different Tomcat's versions, though. -- Mikolaj Rydzewski <[EMAIL PROTECTED]> - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6 and javamail
On Wednesday 26 November 2008 08:37:14 Rainer Frey wrote: > > In the MailServer constructor I do the following > > > > properties = System.getProperties(); > > ... > > properties.put("mail.smtp.auth", "false"); > > > > so it looks like a different properties bundle is being used when I > > run this in Tomcat ... does any of this make sense ?? Argh, I overlooked that you use System.getProperties() here. If you specify any JavaMail related Properties in JAVA_OPTS or CATALINA_OPTS environment variables, this will be different indeed. You might want to check your tomcat start script. Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]