Re: Tomcat 6 and javamail

2008-11-26 Thread Rainer Frey
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

Re: Updating users

2008-11-26 Thread Mikolaj Rydzewski
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

tomcat module development

2008-11-26 Thread h iroshan
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: Threadpool doesn't contain any threads

2008-11-26 Thread Kees Jan Koster
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

Re: What does tomcat look like?

2008-11-26 Thread Leon Rosenberg
http://images.google.de/images?q=tomcat%20architectureie=utf-8oe=utf-8rls=org.mozilla:en-US:officialclient=firefox-aum=1sa=Ntab=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

Re: What does tomcat look like?

2008-11-26 Thread Kees Jan Koster
Dear Leon, http://images.google.de/images?q=tomcat%20architectureie=utf-8oe=utf-8rls=org.mozilla:en-US:officialclient=firefox-aum=1sa=Ntab=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

mod_jk 1.2.27 and an empty POST

2008-11-26 Thread Henk Fictorie
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

JK connector issues ?

2008-11-26 Thread André Warnier
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

What does tomcat look like?

2008-11-26 Thread Kees Jan Koster
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

RE: tomcat module development

2008-11-26 Thread Caldarale, Charles R
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:

HELP!!! java.lang.NoClassDefFoundError running CXF-based client in Tomcat

2008-11-26 Thread Steve Cohen
(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

RE: HELP!!! java.lang.NoClassDefFoundError running CXF-based client inTomcat

2008-11-26 Thread Caldarale, Charles R
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

Re: HELP!!! java.lang.NoClassDefFoundError running CXF-based client inTomcat

2008-11-26 Thread Steve Cohen
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

RE: HELP!!! java.lang.NoClassDefFoundError running CXF-based client inTomcat

2008-11-26 Thread Pieter Temmerman
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

RE: HELP!!! java.lang.NoClassDefFoundError running CXF-based client inTomcat

2008-11-26 Thread Caldarale, Charles R
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

RE: HELP!!! java.lang.NoClassDefFoundError running CXF-basedclient inTomcat

2008-11-26 Thread Caldarale, Charles R
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

Re: HELP!!! java.lang.NoClassDefFoundError running CXF-based client inTomcat

2008-11-26 Thread Steve Cohen
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

RE: HELP!!! java.lang.NoClassDefFoundError running CXF-based client inTomcat

2008-11-26 Thread Caldarale, Charles R
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?

Re: mod_jk 1.2.27 and an empty POST

2008-11-26 Thread Mladen Turk
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

Re: Threadpool doesn't contain any threads

2008-11-26 Thread Filip Hanik - Dev Lists
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

Re: HELP!!! java.lang.NoClassDefFoundError running CXF-based client inTomcat

2008-11-26 Thread Steve Cohen
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

Jconsole through firewall

2008-11-26 Thread André Warnier
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

RE: HELP!!! java.lang.NoClassDefFoundError running CXF-based client in Tomcat

2008-11-26 Thread Larry Isaacs
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

Re: tomcat module development

2008-11-26 Thread h iroshan
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

Re: HELP!!! java.lang.NoClassDefFoundError running CXF-based client in Tomcat

2008-11-26 Thread Steve Cohen
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

Re: Jconsole through firewall

2008-11-26 Thread Mark Thomas
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

RE: Threadpool doesn't contain any threads

2008-11-26 Thread Gattu, Praveen
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

RE: Jconsole through firewall

2008-11-26 Thread Caldarale, Charles R
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

Re: Threadpool doesn't contain any threads

2008-11-26 Thread Kees Jan Koster
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

Re: Manager app language

2008-11-26 Thread Michael Ludwig
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

Re: Manager app language

2008-11-26 Thread André Warnier
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

BUILD FAILED ...

2008-11-26 Thread Albretch Mueller
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

Re: BUILD FAILED ...

2008-11-26 Thread Mark Thomas
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.

Re: SSI Filter does not work with JSP

2008-11-26 Thread Mark Thomas
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. init-param param-namecontentType/param-name

RE: BUILD FAILED ...

2008-11-26 Thread Caldarale, Charles R
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

Re: SSI Filter does not work with JSP

2008-11-26 Thread Ahmed Hammad
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

Re: Manager app language

2008-11-26 Thread Michael Ludwig
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

Re: Manager app language

2008-11-26 Thread André Warnier
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

RE: Manager app language

2008-11-26 Thread Caldarale, Charles R
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

Re: BUILD FAILED ...

2008-11-26 Thread Albretch Mueller
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

Configuration Quandary - Servicing static page from app root

2008-11-26 Thread John Moore
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

security-constraint outside web.xml

2008-11-26 Thread Andre Rubin
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

Tomcat 5.5.26 / 6.0.18 difference: loading jdbc jar??

2008-11-26 Thread Ken Bowen
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

RE: BUILD FAILED ...

2008-11-26 Thread Caldarale, Charles R
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

RE: security-constraint outside web.xml

2008-11-26 Thread Caldarale, Charles R
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

Setting encoding for tomcat compiler

2008-11-26 Thread Ronald Vyhmeister
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

Re: Manager app language

2008-11-26 Thread Michael Ludwig
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

Re: Tomcat 5.5.26 / 6.0.18 difference: loading jdbc jar??

2008-11-26 Thread Michael Ludwig
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

Re: BUILD FAILED ...

2008-11-26 Thread Albretch Mueller
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

Re: security-constraint outside web.xml

2008-11-26 Thread Andre Rubin
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

Re: Setting encoding for tomcat compiler

2008-11-26 Thread Michael Ludwig
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

RE: BUILD FAILED ...

2008-11-26 Thread Caldarale, Charles R
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

RE: Manager app language

2008-11-26 Thread Caldarale, Charles R
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

RE: security-constraint outside web.xml

2008-11-26 Thread Caldarale, Charles R
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

RE: BUILD FAILED ...

2008-11-26 Thread Caldarale, Charles R
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