Problems using JavaMail-API within Tomcat

2008-08-12 Thread Gregor Schneider
Hi guys, recently our server crashed (Debian), and since then I'm having problems getting JavaMail to run within Tomcat 5.5 I've defined a ressource within $catalina_home/context.xml: Resource name=mail/Session auth=Container type=javax.mail.Session

Re: Problems using JavaMail-API within Tomcat

2008-08-12 Thread Gregor Schneider
Hi Ben, On Tue, Aug 12, 2008 at 4:19 PM, Ben Stringer [EMAIL PROTECTED] wrote: On Tue, 2008-08-12 at 16:07 +0200, Gregor Schneider wrote: I've often had problems with javamail in Tomcat due to more than one version of the javamail jar being on the classpath. Perhaps check if this is the case

Re: Problems using JavaMail-API within Tomcat

2008-08-12 Thread Gregor Schneider
Hi jonny, On Tue, Aug 12, 2008 at 5:06 PM, Johnny Kewl [EMAIL PROTECTED] wrote: its HELO (blank) because when java asks the machine who it is... it doesnt know ;) that was the clue I was looking for after the crash the hostname in /etc/hostname wasn't configured - duh thanx!

Re: My Log4j statements going crazy in catalina.out

2008-08-13 Thread Gregor Schneider
Well, I guess you should v´have a vanilla start with log4j. Therefore: 1st make sure that you've got all necessary libs installed in the appropriate folders (guess you're fine here, otherwise no logs would show up) 2nd create a file $catalina_home/common/classes/log4j.xml with the following

Re: Can't generate class file from Interface

2008-08-26 Thread Gregor Schneider
On Tue, Aug 26, 2008 at 2:02 PM, sam wun [EMAIL PROTECTED] wrote: package command; Package command; notice the difference? cheers gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

Tomcat 5.5 won't use APR

2008-08-27 Thread Gregor Schneider
Hi folks, some background-infos: OS: -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To start a new topic, e-mail:

Tomcat 5.5 won't use APR

2008-08-27 Thread Gregor Schneider
Hi folks, some background-information first: OS : Debian (Etch) Tomcat: Tomcat 5.5.26 Java : 1.5.014 I've compiled jsvs (which is running) and tomcat-native. I've copied all compiler-output from tomcat-native to $catalina-home/lib: -rw-r--r-- 1 tomcat tomcat 1506416 2008-08-26 15:49

Re: Tomcat 5.5 won't use APR

2008-08-28 Thread Gregor Schneider
Hm, rather quiete here about my problem... Is there anybody on this list who is using Tomcat together with APR on any Linux and could let me know about his/her configs? Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @

Re: Tomcat 5.5 won't use APR

2008-08-28 Thread Gregor Schneider
Hi Mark, On Thu, Aug 28, 2008 at 1:15 PM, Mark Thomas [EMAIL PROTECTED] wrote: Is the right listener defined in web.xml? hm, what do you mean by right listener? and what web.xml? I figure you mean $catalina_home/conf/web.xml? As a how-two I used the tomcat-docs as described here

Tomcat, APR and OpenSSL

2008-08-28 Thread Gregor Schneider
And the story continues OS: Debian Etch Tomcat: 5.5.20 Java: 1.5.0_10-b03 Happily having setup TC Native and APR, now I'm trying to configure SSL Since I'm using the APR, Tomcat uses OpenSSL instead of the JSSE-implementation - ok, got that: I created my connector in

APR SSL not working

2008-08-29 Thread Gregor Schneider
Hi there, I'm about to give it up. One final question though: Anybody out there who has the following combination up running: - Linux (Debian preferred, other distributions also welcome) - Tomcat 5.5 - APR - SSL ? I'm sucessful getting Tomcat running together with the APR, however, when

Re: APR SSL not working

2008-09-01 Thread Gregor Schneider
Hi Markus, On Fri, Aug 29, 2008 at 5:52 PM, Markus Schönhaber [EMAIL PROTECTED] wrote: Gregor Schneider schrieb: Search the list archives. There has more than once been discussion about this topic. For example http://marc.info/?l=tomcat-userm=118190563608389w=2 Maybe this helps. actually

Re: Ignorance about some things.

2008-09-01 Thread Gregor Schneider
On Mon, Sep 1, 2008 at 1:41 PM, Manuel Trujillo [EMAIL PROTECTED] wrote: Is the java 64 bits more memory-eat than 32 bits? No, in fact the 64-bit-jvm is able to adress (thus use) more memory than on 32-bit-jvm. just make sure that a 64-bit-jvm (java-virtual-machine) is installed. Gregor --

Re: APR SSL not working

2008-09-01 Thread Gregor Schneider
Hi Markus, seems I was a bit too optimistic... although I compiled APR with /dev/urandomPLUS creating $HOME/.rnd (changed 2048 to 4096 since this is the value specified in /proc/sys/kernal/poolsize), it's again taking ages to start up tomcat. Since this is a server-machine where I just can't

Re: Ignorance about some things.

2008-09-01 Thread Gregor Schneider
On Mon, Sep 1, 2008 at 3:57 PM, Ronald Klop [EMAIL PROTECTED] wrote: My experience is also that java likes more memory on 64-bit systems. But I can't prove or explain it. You can tell Java exactly how much memory to use: Have a look at the -Xms and -XMX-parameters for the JVM (java -X will

Re: APR SSL not working

2008-09-01 Thread Gregor Schneider
Hi Marcus, On Mon, Sep 1, 2008 at 4:56 PM, Markus Schönhaber [EMAIL PROTECTED] wrote: Is the libtcnative your Tomcat uses really linked against your self-compiled version of APR (ldd to check)? looks as if you're becoming my personal hero... I just had the development-headers of the APR

Re: EJB with Tomcat 6.0.16

2008-09-01 Thread Gregor Schneider
Tomcat is a webserver plus a servlet-container. To run EJBs, you need an application-server. Have a look at JBoss (www.jboss.org): It's an application-server incorporating Tomcat as a servlet-container / web-server. Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp:

Re: Ignorance about some things.

2008-09-01 Thread Gregor Schneider
On Mon, Sep 1, 2008 at 7:38 PM, Johnny Kewl [EMAIL PROTECTED] wrote: The guys tell me that the JRE did have a memory heap allocation bug... in pre JRE's 6... Its not tomcat apparently if you want to play with 64 bit... get the very latest JRE 6 from SUN direct. Have fun... And dont

Re: Ignorance about some things.

2008-09-01 Thread Gregor Schneider
Hi Johnny, On Mon, Sep 1, 2008 at 9:26 PM, Johnny Kewl [EMAIL PROTECTED] wrote: Linux admin guys just knocked off... I'll ask them to explain the details in the morning... They just said something about a major/minor heap allocation problem on earlier JREs You know these debian dudes...

Question regarding FormAutenticator

2008-09-02 Thread Gregor Schneider
Hi guys, I have quite a bit of a problem here. Status quo: We have some heavily framed static html, which now should be served by Tomcat (5.5) only via SSL. The whole content needs to be protected, so I've implemented a FormAuthenticator. However, the heavy framing *yuck* of this static html

Re: How to make to Apache-Tomcat 6.0.13 to support all of SSLv2/SSLv3 and TLS protocols

2008-09-02 Thread Gregor Schneider
Suresh, I guess no one is having the same problem like what you're having. As a first guess, within your connector I'd change clientAuth=false sslProtocol=TLS keystoreType=PKCS12 to clientAuth=false sslProtocol=ALL keystoreType=PKCS12 2nd, I'd have a look how it behaves

Re: APR SSL not working

2008-09-03 Thread Gregor Schneider
Hi Filip, guess you're mixing things up: Since I'm using the APR (Apache Portable Runtime), according to http://tomcat.apache.org/tomcat-5.5-doc/apr.html, it has to be SSLEngine=on (check the HTTPS-Connector) The example given in the Tomcat-docs is Connector port=443

Re: How to make to Apache-Tomcat 6.0.13 to support all of SSLv2/SSLv3 and TLS protocols

2008-09-03 Thread Gregor Schneider
On Wed, Sep 3, 2008 at 8:20 AM, Suresh Kumar J [EMAIL PROTECTED] wrote: Am runing Harmony JRE in this case. Is this error related to Harmony JRE or Tomcat?. Suresh, sorry, but unfortunately my cristal ball is not available... Try it with the original SUN JDK - Not JRE and see if it works. I

Re: Question regarding FormAutenticator

2008-09-03 Thread Gregor Schneider
Hi there, On Wed, Sep 3, 2008 at 1:50 PM, H. Hall [EMAIL PROTECTED] wrote: Assuming that your login form is a jsp, why don't you put something like this in it: if(isOKLogin ){ RequestDispatcher rd = request.getRequestDispatcher(/index.html); rd.forward(request, response);

Re: Suggest A Best Option

2008-09-03 Thread Gregor Schneider
On Wed, Sep 3, 2008 at 2:15 PM, Amit Dixit [EMAIL PROTECTED] wrote: I want to listen at two ports in Tomcat 5.5. One is SSL enabled and another is unsecured port. Currently I have created two Services in Tomcat, Is it the best strategy or I can satisfy this requirement using one Tomcat

Re: share SessionID in different webapps - same tomcat

2008-09-03 Thread Gregor Schneider
http://tomcat.apache.org/tomcat-5.5-doc/config/host.html Search for SingleSignOn Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

Re: share SessionID in different webapps - same tomcat

2008-09-04 Thread Gregor Schneider
On Wed, Sep 3, 2008 at 8:09 PM, Andrew Hole [EMAIL PROTECTED] wrote: Cookies (like you see in this site) is a good solution? *http://www.fwd.at/tomcat/sharing-session-data-howto.html* On Wed, Sep 3, 2008 at 6:21 PM, Andrew Hole [EMAIL PROTECTED]wrote: Thanks. And how can I test this

Re: share SessionID in different webapps - same tomcat

2008-09-04 Thread Gregor Schneider
Andrew, On Wed, Sep 3, 2008 at 8:09 PM, Andrew Hole [EMAIL PROTECTED] wrote: Cookies (like you see in this site) is a good solution? *http://www.fwd.at/tomcat/sharing-session-data-howto.html* that's not necessary. When you configure the SingleSignOnValve within Tomcat, all webapps

Re: Suggest A Best Option

2008-09-04 Thread Gregor Schneider
I guess he's talking about Tomcat-services: A Service element represents the combination of one or more Connector components that share a single Engine component for processing incoming requests. One or more Service elements may be nested inside a Server element. From:

Re: Migration from Tomcat 4.x to 5.5

2008-09-17 Thread Gregor Schneider
http://tomcat.apache.org/connectors-doc/ rgds gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To start a new

Re: apache and tomcat version

2008-09-18 Thread Gregor Schneider
Ayden, On Thu, Sep 18, 2008 at 12:53 AM, [EMAIL PROTECTED] wrote: I would also like a Blogger like WordPress or Apache ROLLER Actually it's pretty simple: - Wordpress is based on PHP - Apache Roller is based on Java (Java-Webapp) There are some options to run PHP using Tomcat, but it's not

Re: tomcat5.5 and ubuntu hardy heron

2008-09-19 Thread Gregor Schneider
On Fri, Sep 19, 2008 at 10:41 PM, André Warnier [EMAIL PROTECTED] wrote: An alternative is to wait a couple more hours, until the first suggestion to de-install your Tomcat package and install the Tomcat from the official Tomcat site arrives. actually, that would be my suggestion. however, I

Re: Appeal to Tomcat developers

2008-10-16 Thread Gregor Schneider
Hm, I guess I disagree. Tomcat is using / supporting the standard logging-features from Java, and I think this is the way it should be. If the Java Community decides for a new way of logging, TC may implement it. For us, we just configure TC to use log4j, and it works like charm. Sure, it's no

Re: Tomcat 5.5 and RMI

2008-10-26 Thread Gregor Schneider
got the same scenario here: - RMI-app (server) - Servlet connecting to the RMI-server However, that's not a Tomcat-issue: Just code the RMI-calls within your servlet. Hope I understood your problem correctly. Cheers Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp:

Re: Tomcat 5.5 and RMI

2008-10-27 Thread Gregor Schneider
Maybe one more statement to shed some light: Tomcat does not have any built-in support for RMI-connectivity but for the HTTP(S)-connectivity. If you want to forward incoming HTTP(S)-Requests to your RMI-server, you'll have to write a servlet which accepts the default HTTP(S)-requests and

Re: Tomcat 5.5 and RMI

2008-10-27 Thread Gregor Schneider
Hi Leon On Mon, Oct 27, 2008 at 12:03 PM, Leon Rosenberg [EMAIL PROTECTED] wrote: Gregor, I think you misunderstood the OP (or maybe I did) but he wanted to receive incoming calls via RMI or HTTP, at least that was what he posted, and not using tomcat as client... I see... however, what

Re: Debian + Apache 2.2 + Tomcat 5.5

2008-11-16 Thread Gregor Schneider
I'm giving you a piece of advice: - copy debian's tomcat-startup-script - since it is not too bad - after that, remove purge debian's tomcat-package - get the tar fro tomcat.apache.org and untar it in a directory of your choice (i.e. /var/lib) - copy debian's startup-script back to the

Tomcat Native 6 Remote Debugging (JPDA)

2008-11-19 Thread Gregor Schneider
Hi guys, we're running Tomcat on Debian on port 80 using Tomcat Native (JSVC). Now I'm wondering wether it's possible to get remote debugging working here. I've adapted the the startup-script as follows: code #!/bin/sh export

Re: Tomcat Native 6 Remote Debugging (JPDA) - SOLVED

2008-11-20 Thread Gregor Schneider
Hi there, to those who might be trapped in the same pitfall: remote-debugging wth tomcat-native works perfectly. The issue was resolved by removin a proxy-setting within Eclipse (Ganymede): Obviously Eclipse doesn't accept information of hosts to for which the proxy has to be bypassed.

j_security_check-behaviour - looking for workaround

2008-12-01 Thread Gregor Schneider
Hi there, we're running some websites which are heavily framed (unfortunately) using IFrames. Authorization is done via FormBased Auth using Tomcat's built-in j_security_check-method. However, this is giving us some headaches when an application times out. As you may know, j_security_check

Re: j_security_check-behaviour - looking for workaround

2008-12-01 Thread Gregor Schneider
Hi Mikolaj, On Mon, Dec 1, 2008 at 1:50 PM, Mikolaj Rydzewski [EMAIL PROTECTED] wrote: Try http://securityfilter.sourceforge.net/ - the good news: Your karma has grown - the bad news: Since SecurityFilter does not support SingleSignOn, looks that I'm not able to use it without adapting the

Re: j_security_check-behaviour - looking for workaround

2008-12-02 Thread Gregor Schneider
Hi Chris, On Tue, Dec 2, 2008 at 3:51 PM, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Now if the session times out, the user clicks on the menue, the url requested is the source of the IFrame. This shouldn't be the case: the URL requested

Re: j_security_check-behaviour - looking for workaround

2008-12-02 Thread Gregor Schneider
Hi Chris, On Tue, Dec 2, 2008 at 4:13 PM, Christopher Schultz [EMAIL PROTECTED] wrote: For Securityfilter's next version, we are attempting to make it easy to implement it as a Tomcat Valve, which should allow things like SSO. Do you have any information when this next version will be

Re: How to not rot my tomcat pb linked with new cookie parser

2008-12-08 Thread Gregor Schneider
Maybe this might help: http://marc.info/?l=tomcat-userm=122538405720489w=2 Cheers Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

Again: Autodeploy in Tomcat 6

2008-12-08 Thread Gregor Schneider
Good evening, I thought I understood the autodeploy-feature. howver... I've started to move away from Tomcat 5.5 towards 6.0, and created my virtual hosts as suggested in the docs: I've created - ${catalina.home}/example.com (directory) - ${catalina.home}/example.com/META-INF (directory, no

Re: Again: Autodeploy in Tomcat 6

2008-12-08 Thread Gregor Schneider
Duuh.. sorry for the misunderstanding: On Mon, Dec 8, 2008 at 10:39 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Gregor Schneider [mailto:[EMAIL PROTECTED] Subject: Again: Autodeploy in Tomcat 6 Next, I put a webapp (roller.war) into ${catalina.home}/webapps - awaiting deployment

Re: Again: Autodeploy in Tomcat 6

2008-12-08 Thread Gregor Schneider
Hi Chuck, everything's working fine now. That was what I missed: On Mon, Dec 8, 2008 at 11:22 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: Note that autoDeploy is effective only for webapps added while Tomcat is running; it's the deployOnStartup attribute that determines what happens

Re: Tomcat caching of static resources?

2008-12-11 Thread Gregor Schneider
Bill, On Thu, Dec 11, 2008 at 4:15 AM, Bill Barker [EMAIL PROTECTED] wrote: The article is referring to the fact that Tomcat adds cache headers by default to any page protected by a security-constraint to prevent someone else from stealing it from an intermediate proxy. The default settings

Re: Tomcat caching of static resources?

2008-12-11 Thread Gregor Schneider
On Thu, Dec 11, 2008 at 1:05 PM, Javabeat [EMAIL PROTECTED] wrote: same applies on Firefox though, there may well be issues in IE as always but i'm not convinced this is the core problem here. I strongly disagree. We do have a setup here having Apache HTTPD 2.2 fronting Tomcat 5.5, and the

Re: Unable to start tomcat server 6x

2008-12-13 Thread Gregor Schneider
what user are you logged in as? what does ls -l /usr/local/apache-tomcat-6.0.18/logs/catalina.out and ls -l /usr/local/apache-tomcat-6.0.18 give? gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @

Re: Unable to start tomcat server 6x

2008-12-13 Thread Gregor Schneider
Hi Parha, never ever run tomcat as root - that's a security-issue. I hope you haven't followed the hint to chmod to 777 - that's anything but a good idea. to solve the issue, procceed like this: - as root , do - create a user tomcat - chown -R tomcat /usr/local/apache-tomcat-6.0.18 - su

Re: Unable to start tomcat server 6x

2008-12-15 Thread Gregor Schneider
Patha, I think you've received enough pointers here already. If you're logged in as root and you can't even write into a directory, it's pretty likely that either - the device is mounted read-only (check with mount -l) - the device is somewhat corrupted (either the device or the

j_security_check only safe via ssl?

2008-12-16 Thread Gregor Schneider
Hi there, I'm just wondering one thing: When using formbased authentication within Tomcat aka j-security_check, the credentials are sent over the wire. No problem when using SSL, however, when using a simple HTTP-request, I figure that this scenario might be a security-issue. Does anybody have

Re: [SECURITY] CVE-2008-2938 - Apache Tomcat information disclosure vulnerability - Update 2

2008-12-18 Thread Gregor Schneider
Hi Mark, ehem, a bit too abstract for my taste - what's the problem with UTF-8 here, anyways? Do you recommend any action to be taken from site-owners? Is there any sample available which explains the issue in more detail? Cheers Gregor -- just because your paranoid, doesn't mean they're not

Re: [SECURITY] CVE-2008-2938 - Apache Tomcat information disclosure vulnerability - Update 2

2008-12-18 Thread Gregor Schneider
Hi Mark, that means, if I haven't set URIEncoding and useBodyEncodingForURI within my connectors at all, I'm well off since the defaults are ISO-8859-1 and false, correct? Cheers Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp:

Re: Apache 2.2.3 segfault with Jk connector 1.2.27

2008-12-18 Thread Gregor Schneider
André, what does that tell you? Update early, update often... ;) Cheers Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

Re: [OT] Apache 2.2.3 segfault with Jk connector 1.2.270

2008-12-18 Thread Gregor Schneider
Hi ho Chuck, On Thu, Dec 18, 2008 at 10:10 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: Don't need mod_jk, but Sun does have Java running on the iPhone; unfortunately, Mr Jobs won't let them release it. Is it? Provided somebody having a jailbreaked *cough* 3G - you've got *any*

Re: tomcat announce / tomcat security mailing list

2008-12-23 Thread Gregor Schneider
Stephanie, Charles did not recommend to search the list for ann but for ANN - please notice the difference. If that's all too complicated for you maybe this suggestion helps: - Subscribe to the Tomcat-Users-Mailinglist (not the digest) - create the following filter: if (from ==

Re: Tomcat 5.5 error

2008-12-23 Thread Gregor Schneider
Is Tomcat running? Do you see the welcome-page when opening http://localhost:8080? What gives netstat -lnp? Do you see any application listening on port 8080? Gregor PS.: To help keep messages readable, please do not fullquote the whole thread but only the necessary details. -- just because

Re: Tomcat 5.5 error

2008-12-23 Thread Gregor Schneider
One more thought to ease up things: - stop Tomcat - delete ALL / MOVE logfiles - restart server - resdtart Tomcat Now, please post the contents of all log-files. This procedure will make sure that the logs are as short as possible but contain the important things - if any. Gregor -- just

Re: Tomcat 5.5 error

2008-12-23 Thread Gregor Schneider
java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) This message is pretty obvious: Is it possible that you've started Tomcat as root incidently and now try to run Tomcat as another user (such as tomcat)? Looks as if there is at least one file where the rights are

Re: I'm desparate with an Apache problem and ReverseProxy

2007-11-12 Thread Gregor Schneider
Hi Christoph, please post your question here: You should get some answers almost instantly: The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. Cheers Gregor -- what's puzzlin' you, is the nature of my game

Re: Help me please,

2007-11-12 Thread Gregor Schneider
-D sets a system-property which then can be used by the Java Runtime. Quick guess: - You're using something but the original startup.bat-file Is the a special reason why ypu are using Tomcat 4 and not Tomcat 6? Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp:

Re: tomcat in production

2007-11-12 Thread Gregor Schneider
Take a look at the Apache Portable Runtime: It will increase Tomcat's performance regarding static content sigificantly: http://tomcat.apache.org/tomcat-6.0-doc/apr.html Cheers Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key

Re: tomcat5.5 Debian Startup Script

2007-11-12 Thread Gregor Schneider
Hi Janning, we've downloaded Tomcat from the Apache website, un-tarred it and ran it using the original scripts - it works quite smooth. Consider this solution as a workaround in case you're not able to solve the problem. I know that there have been some issues with the Debian packages in the

Re: tomcat in production

2007-11-13 Thread Gregor Schneider
Hi Peter, when you're using Apache HTTP in front to serve static content and Tomcat is serving JSP / Servlets only, using the APR won't give you any advantage (AFAIC). However, some ppl are using Tomcat only (running on port 80 / 443 with f.e. JSVC): Then, according to my brain-cells, the APR

Re: Tomcat DB2 JDBC issue

2007-11-16 Thread Gregor Schneider
It's quite some time since my last experience with DB2, however, maybe this gives you a start: There are multiple jdbc-drivers available for DB2. Obviously, youÄre using a class3-JDBC-driver, meaning that this is not a plain java-driver but needs some middleware to connect to DB2 (DB2-Connect).

Re: Tomcat DB2 JDBC issue

2007-11-16 Thread Gregor Schneider
=SELECT 1 works for DB2 - if not, replace it with a working one. Cheers Gregor On Nov 16, 2007 9:22 AM, Gregor Schneider [EMAIL PROTECTED] wrote: It's quite some time since my last experience with DB2, however, maybe this gives you a start: There are multiple jdbc-drivers available for DB2

Re: tomcat in production

2007-11-16 Thread Gregor Schneider
Hi Chuck, On Nov 15, 2007 3:55 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Markus Schönhaber [mailto:[EMAIL PROTECTED] Subject: Re: tomcat in production AFAICT the main advantage of APR wrt static content is the possibility to use sendfile. The pure Java NIO connector also

Re: Tomcat DB2 JDBC issue

2007-11-16 Thread Gregor Schneider
Hi Andrew, that's why I suggest that you define a data-pool in your application-specific context.xml-file (stred in config/server) and put all the needed JDBC-drivers to $CATALINA_HOME/common/lib With this scenario, no web-app need to provide their JDBC-drivers in the WEB-INF/lib-directories and

Re: How to make Tomcat shutdown itself if the address it is trying to bind is already in use.

2007-11-28 Thread Gregor Schneider
if [ -z $(netstat -lnp | grep 8080) ] then echo Tomcat running exit -1 else [ continue with startup-script ] fi do the same for port 8009 (AJP) however, the best way would be to first check if tomcat is running before starting it up remember: a fool with a tool is still a

Re: How to make Tomcat shutdown itself if the address it is trying to bind is already in use.

2007-11-29 Thread Gregor Schneider
Shaji, maybe this will do the trick: http://tomcat.apache.org/faq/security.html#8005 Cheers Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

Re: Tomcat 6.x for 64 bit OS

2008-01-02 Thread Gregor Schneider
The official Apache-solution is imho - get the sources at http://ftp.hosting-studio.de/pub/linux/apache/tomcat/tomcat-6/v6.0.14/src/apache-tomcat-6.0.14-src.zip - compile it on your 64bit-platform using a 64bit-JDK using the provided Ant-build-script Cheers Gregor -- what's puzzlin' you, is

Re: Tomcat 6.x for 64 bit OS

2008-01-02 Thread Gregor Schneider
arfgl... must still have some alcohol in my brains from the last party... indudhar: java byte-code is always the same on any platform. the only thing what you need is a 64-bit-java-runtime. having this, you can just run the precompiled java-bytecode which *should* use the 64bit-benefits (like

Re: Problem with application installation in Tomcat 5.5.

2008-01-10 Thread Gregor Schneider
Seems as if you lack the basic knowledge of what a ServletContainer (aka Tomcat) is about. I got no idea why you want to deploy a jar-file within Tomcat - are you trying something like Webstart? What is you application, anyways.? Is it a Servlet / JSP? If so, then the your deployment was already

Slightly OT: Which CMS?

2007-07-02 Thread Gregor Schneider
Dear list, among other things it's now my job to look out for CMS. I've asked auntie Google, however, browsing all hits that Google showed up would lead straight into my retirement (and I'm not *that* old...) What I've seen so far is, that most CMSs are based on PHP - something which is giving

Re: Slightly OT: Which CMS?

2007-07-02 Thread Gregor Schneider
Guys, thanks a lot for the input! Cheers Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To start a new topic,

Re: tomcat compile failure on debian build.xml base.path for JDT eclipse jars et. al.

2007-07-04 Thread Gregor Schneider
Hm, strange, why does Tomcat need Eclipse-classes for compilation? Maybe that's a classpath-problem (do you have Eclipse installed on your box?) Btw. why are your compiling anyway? Tomcat is all Java, therefore it's ok to download the binaries from tomcat.apache.org, untar them, set the

Re: Tomcat Version problem

2007-07-05 Thread Gregor Schneider
Sorry, my cristal ball just f'd up, therefore I'm neither able to see the errors thrown up nor a possible solution for them. Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

Re: Tomcat Version problem

2007-07-05 Thread Gregor Schneider
well, the error-log is giving you pretty good hints: An error occurred at line: 67 in the jsp file: /classification.jsp Generated servlet error: Type mismatch: cannot convert from Integer to int An error occurred at line: 67 in the jsp file: /classification.jsp Generated servlet error: The

Connection-Pools, MySQL and 8 hours

2007-07-09 Thread Gregor Schneider
Hi list, we're running Tomcat 5.5 here on Debian Edge, MySQL 5 and we've set up a connectionpool. Example of context.xml: ?xml version=1.0 encoding=UTF-8? Context Resource auth=Container description=DB Connection for SSO name=jdbc/SSODS type=javax.sql.DataSource

Re: Http Header Cache-Control

2007-07-17 Thread Gregor Schneider
On 7/17/07, Rainer Jung [EMAIL PROTECTED] wrote: There is no way to influence HTTP headers by mod_jk. You can manipulate Headers via mod_headers, which is part of Apache httpd. when combining apache2 with tomcat 5 using mod_jk, mod_headers will not touch any headers created by tomcat - we've

Session timing out despite of user-actvity

2007-07-18 Thread Gregor Schneider
Hi guys, the following sympomps: We have 2 Apache HTTPD-instances (SSL) behind a CISCO-loadbalancer, the HTTPDs serving static content, dynamic content (servlets) are served by 2 Tomcat instances (5.5). HTTPD and Tomcat are linked via mod_jk 1.2.19 I've specified a session-timeout of 240 (8

Re: Session timing out despite of user-actvity

2007-07-18 Thread Gregor Schneider
Hi Mikolaj, the 2 cookies you're talking about are JSessionID and JSessionIDSSO However, JSessionID is sent for encrypted sessions only (https), JSessionIDSSO for any type of connection. The request-headers do show, for each request only JSessionIDSSO is passed together with the response,

Re: creating jsp pages using tomcat, web.xml problems,i think! (beginner)

2007-07-18 Thread Gregor Schneider
SEVERE: Parse error in application web.xml file at that's your error, meaning you have an error in your web.xml if that's the one you posted previously: you missed the entry /web-app at the end. if you're using the standard-realm, you can lookup your passwords at

Re: How to do this

2007-07-26 Thread Gregor Schneider
http://www.gnupg.org/ -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To start a new topic, e-mail:

Re: How to do this

2007-07-27 Thread Gregor Schneider
ok, this information is for free, the next one you'll have to pay me for: they keys of software.distributions are check-sums over the program-archives (like zip, tgz etc.). those check-sums usually are calculated using a program like pgp (pretty good privacy) or the free version from the

Re: Log4j errors on Tomcat6 startup

2007-08-01 Thread Gregor Schneider
Hi Mark, your application doesn't need the log4j*.jar since they are provided by Tomcat 6 (unlike Tomcat 5.x). However, your application should have it's own log4j-configuration aka log4j.xml. This file is usually found in ${CATALINA_HOME}/webapps/${your_application}/WEB-INF/classes In this

Re: Installing Tomcat on Linux

2007-08-03 Thread Gregor Schneider
Tomcat installing from source doesn't make *any* sense, not even on Linux. Why? Well, Tomcat is written entirely in Java. Therefore, you can download the binaries from the Apache website and check the KEYS (MD5-checksums). If they are ok, you can be sure nobody has tampered with. Building from

Re: Log4j

2007-08-07 Thread Gregor Schneider
use a filter, see example below: ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE log4j:configuration SYSTEM log4j.dtd log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; !-- SSO Daily Rolling File Appender TRACE, DEBUG, INFO -- appender name=DailyFileAppenderInfo

Re: Log4j

2007-08-07 Thread Gregor Schneider
Forgot to mention: ou can leave the part logger name=CompassLogger additivity=false !-- level value=TRACE / level value=DEBUG / level value=INFO / -- level value=WARN / !-- level value=ERROR / level value=FATAL / -- appender-ref ref=DailyFileAppenderInfo /

Re: Log4j

2007-08-07 Thread Gregor Schneider
well, then either - migrate to xml-files (that's what I would do) or - try to use a threshold i know the log4j-docs besides the commercial one are a pain in the ass, however, the log4j-developers have to earn their dollars, too, therefore, the log4j-manual (commercial) might be a good

Re: Tomcat books (was Re: Tomcat and servlet the nightmare)

2007-08-07 Thread Gregor Schneider
Professional Apache Tomcat 5: http://www.wrox.com/WileyCDA/WroxTitle/productCd-0764559028.html There's also a Tomcat 6-version available However, I've used the really good documentation on the Tomcat-Website, started with their examples and read the mailinglist, which altogether gave me a pretty

Re: Tomcat books (was Re: Tomcat and servlet the nightmare)

2007-08-07 Thread Gregor Schneider
Forgot to mention: Tomcat. The Definitive Guide. By Jason Brittain and Ian F. Darwin might also be a *very* good catch since Jason is a well known contributor to the Jakarta projects and definately knows his ways around Tomcat - if I ever had to buy a book, I guess I'd go for the O'Reilly...

Re: Datasource Error

2007-08-08 Thread Gregor Schneider
Will, as long as you don't post your configuration (context.xml and web.xml of your web-app, your servlet / jsp-code accessing the datasource), nobody will be able to help you. That is, since we all ran out of cristal balls telling us the solution for your problems... Gregor -- what's puzzlin'

Re: Can not get Tomcat5 to listen to JPDA port

2007-08-09 Thread Gregor Schneider
I have an original Tomcat-version (5.5) running here on Debian Edge, and my JPDA-startup-script reads as: #!/bin/sh export JPDA_ADDRESS=8787 export JPDA_TRANSPORT=dt_socket /home/tomcat/www/bin/catalina.sh jpda start Try this (run it as user tomcat), but first change the default port 8787 to

Re: Tomcat giving JDK Precedence Over JARs in WAR

2007-08-09 Thread Gregor Schneider
1st, it would help if you let us know which Tomcat / Eclipse-Version... Anyways, it should work if you do the following: - Copy your xml-apis-1.3.03.jar into your application's WEB-INF/lib-directory, so that your application's classloader can find the corrosponding classes. Tomcat (at least

Re: Tomcat giving JDK Precedence Over JARs in WAR

2007-08-09 Thread Gregor Schneider
david, I already include xml-apis-1.3.03.jar in the WAR's WEB-INF/lib-directory. are you saying that the jar containing the said class is in your WEB-INF/lib-directory already and you get that NullPointer? On which OS are you running? Is it possible, that you have set an environment-variable

Re: Tomcat giving JDK Precedence Over JARs in WAR

2007-08-09 Thread Gregor Schneider
as to what i understood, david thinks he's using the ones coming with jdk 1.6, however, they are giving a nullpointer. therefore, it has to be checked if tomcat uses the endorsed mechanism using it's very own libraries. seems as in this very case something is in eclipse's classpath what's missing

Re: Http Header Cache-Control

2007-08-09 Thread Gregor Schneider
I think you misread your test-results. We performed the same tests here, and the result was, that, if you pass requests via mod_jk to Tomcat as a worker, Apache HTTPD did definately not create / touch any headers but uses the ones returned from the worker (Tomcat) via mod_jk. Versions: Tomcat

  1   2   3   4   5   >