Re: javax.naming.NamingException: Cannot create resource instance

2008-10-02 Thread Ziggy O
No mate that was the full stack trace. Thanks On Wed, Oct 1, 2008 at 7:02 PM, David Smith [EMAIL PROTECTED] wrote: Seems like such a generic error would have a root cause. Was there anything more to the stack trace? --David Ziggy O wrote: Hi, I am trying to connect to an oracle

Re: tomcat6 + proxy issues

2008-10-02 Thread Mark Thomas
Gabe Wong wrote: Jeff try: ProxyPass /app1 http://localhost:8080/app1 ProxyPassReverse /app1 http://localhost:8080/app1 and better yet if your have mod_proxy_ajp: ProxyPass /app1 ajp://localhost:8009/app1 ProxyPassReverse

Tomcat Servlet Bouncy Castle Problem

2008-10-02 Thread Jeng Yu
Hello Friends! I have a debugging problem here that I hope the gurus here can help me figure out. I'm trying to do RSA public key encryption in a servlet that I'm developing inside Netbeans 6.1. I'm using the Bouncy Castle (BC) crypto package. When I build the servlet, there are no errors. Then

Re: Tomcat Servlet Bouncy Castle Problem

2008-10-02 Thread Mark Thomas
Jeng Yu wrote: Interestngly, the same RSA public encryption code with Bouncy Castle library works flawlessly when I develop it in Netbeans IDE and run it as a java application (not servlet). In servlet environment, it fails. Yes, I added cldc_classes.zip class library file from Bouncy Castle

Re: tomcat6 + proxy issues

2008-10-02 Thread Markus Schönhaber
Mark Thomas: Actually, mod_proxy_http is usually a better choice than mod_proxy_ajp Could you please explain a little further? Since at one site I'm using mod_proxy_ajp I'm interested in what the advantage of switching to mod_proxy_http might be. Regards mks

Re: tomcat6 + proxy issues

2008-10-02 Thread Mark Thomas
Markus Schönhaber wrote: Mark Thomas: Actually, mod_proxy_http is usually a better choice than mod_proxy_ajp Could you please explain a little further? Since at one site I'm using mod_proxy_ajp I'm interested in what the advantage of switching to mod_proxy_http might be. Generally, and

Re: JK and IIS - troubles?

2008-10-02 Thread br1
Hi Rainer, Rainer Jung-3 wrote: Yes it does limit it that way. But when a timeout fires in mod_jk, Tomcat is not aware of it and will still proceed working on the request. Your web server though receives new rquests and forwards them, so Tomcat could run out of memory. If there was a

Re: Tomcat getting insufficient POST data

2008-10-02 Thread Stephen Nelson-Smith
Hello, Yes - I'll package 6.0.18 this afternoon and test it this evening. Initial tests look positive - will do more extensive tests this morning. Thanks very much for the suggestion. S. - To start a new topic, e-mail:

Re: tomcat6 + proxy issues

2008-10-02 Thread Markus Schönhaber
Mark Thomas: Generally, and YMMV, mod_proxy_http is more stable. This is only a generalisation though. I have used mod_proxy_ajp in the past without any problems. Ah, OK. Since the mod_proxy_ajp setup I use is extremely simple and for a low-volume site, I don't expect any problems. Other

Re: JK and IIS - troubles?

2008-10-02 Thread Rainer Jung
br1 wrote: Rainer Jung-3 wrote: If so, what is your connection pool size? The default is 250, which is quite high. I did not go too far, it was the default, after some time I set it to 300 but this did not change anything. That might be the reason for trouble. If things start to get slow,

[Fwd: CFP open for ApacheCon Europe 2009]

2008-10-02 Thread Mark Thomas
The Call for Papers for ApacheCon Europe 2009, to be held in Amsterdam, from 23rd to 27th March, is now open! Submit your proposals at http://eu.apachecon.com/c/aceu2009/cfp/ before 24th October. Remember that early bird prices for ApacheCon US 2008, to be held in New Orleans, from 3rd to 7th

Re: AW: [TOMCAT] Internal Tomcat Server error (HTTP Status 500): NoClassDefFound

2008-10-02 Thread Jon Haitz Legarreta Gorroño
Hi Steffen and all, thanks for the suggestion. 1. How do I do that? 2. Why does it work for other projects without the synchronization? Thanks. Regards, JON HAITZ Steffen Heil escribió: Hi The method yielding the problem is the following one: private static PageLifecycleFactory

Re: application deployment issue, Tomcat 5.5

2008-10-02 Thread albrecht andrzejewski
Considering my own occasional sniping at Chuck here, it kills me to have to say this, but I don't want anyone to look falsely in the wrong direction maybe. One particularity of this Tomcat 5.5 on platform B, compared to the others, is that it was set up via the standard Linux Debian package

RE: Tomcat outputs php to stderr

2008-10-02 Thread Peng Tuck Kwok
I recall seeing a config value in php that lets you dump the output to the console instead of the rendered page. not sure if this is valid if you run php under tomcat :P -Original Message- From: Serge Fonville Sent: 30/09/2008 19:08:21 To: Tomcat Users List Subject: Re: Tomcat

Tomcat Book project on SF.net

2008-10-02 Thread Pierre Goupil
Hello all, Does anyone know about the current status of the Tomcat Book project on SF.net ? http://tomcatbook.sourceforge.net/en/index.shtml It looks stone dead forever and that's a shame since firstly, I discovered it today :-) but, moreover because it's a very good addition to the official doc

Re: javax.naming.NamingException: Cannot create resource instance

2008-10-02 Thread David Smith
Ok... 1) I don't see a tomcat version, could you post that? 2) Are you sure the tomcat version on the production environment the same as your dev system? 3) This is probably not causing the immediate problem, but res-type ... /res-type in your web.xml should be javax.sql.Datasource, not

Re: javax.naming.NamingException: Cannot create resource instance

2008-10-02 Thread Ziggy O
Hi, The tomcat version on my Desktop is 5.5.27 and the Tomcat version on the Unix environment is 5.5.23. Could the above minor version difference cause it? One thing i have noticed is that if i take the /META-INF/Context.xml file and copy it into

Re: application deployment issue, Tomcat 5.5

2008-10-02 Thread André Warnier
albrecht andrzejewski wrote: [...] Thanks for the various answers. But apparently the problem was that this was missing : grant codeBase file:${catalina.home}/bin/tomcat-juli.jar { [ .. parts omitted ..] permission java.io.FilePermission

RE: Seek help for javax.servlet.ServletException: Java heap space

2008-10-02 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: RE: Seek help for javax.servlet.ServletException: Java heap space Why is it usually better to set -Xms and -Xmx to the same value ? It avoids the overhead of expansion and contraction of the heap, including the associated

Problem with JNDI Resources JavaMail Sessions

2008-10-02 Thread Schneider, Sebastian
Hey Team, I have some problems with the example of JNDI Resources JavaMail Sessions. I get the error: The constructor MimeMessage(Session) is undefined A extract from the HOW-TO page: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); Session

Re: javax.naming.NamingException: Cannot create resource instance

2008-10-02 Thread Ziggy O
A bit more info which i think might be relevant. When i run it on my desktop i ran it directly from within Netbeans but when i run it on the Unix server i export the project as a war file (within netbeans) and copy it into the webapps directory on the Unix environment. Is it possible that

URL and mod_jk

2008-10-02 Thread Piller Sébastien
Hi guys, in my project, I very often use absolute url. They have a form like: http://domain/foo/bar/resources/org.apache.wicket.Application//path/to/my/file.png I recently installed Apache and mod_jk. Are this kind of url valid to be served through mod_jk? Because it explicitly reference

RE: application deployment issue, Tomcat 5.5

2008-10-02 Thread Caldarale, Charles R
From: albrecht andrzejewski [mailto:[EMAIL PROTECTED] Subject: Re: application deployment issue, Tomcat 5.5 java is looking to some native code to unzip the WAR file, which is huffman's compressed (yes, war files can be unzipped). The native code being used to do the unzipping is packaged

RE: application deployment issue, Tomcat 5.5

2008-10-02 Thread Caldarale, Charles R
From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: application deployment issue, Tomcat 5.5 I am still a bit puzzled by the sequence of events below though. First it writes that the WAR file is invalid or unreadable, then 10 seconds later it mentions a logging properties permission

RE: javax.naming.NamingException: Cannot create resource instance

2008-10-02 Thread Caldarale, Charles R
From: Ziggy O [mailto:[EMAIL PROTECTED] Subject: Re: javax.naming.NamingException: Cannot create resource instance One thing i have noticed is that if i take the /META-INF/Context.xml file and copy it into $CATALINA_HOME/conf/Catalina/localhost/testapp.xml it does work. If the file is

Re: Tomcat Servlet Bouncy Castle Problem

2008-10-02 Thread Johnny Kewl
- Original Message - From: Jeng Yu [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, October 02, 2008 10:19 AM Subject: Tomcat Servlet Bouncy Castle Problem Hello Friends! I have a debugging problem here that I hope the gurus here can help me figure out. I'm trying to

AW: Problem with JNDI Resources JavaMail Sessions

2008-10-02 Thread Schneider, Sebastian
Hey guys, I found the solution. I had import the wrong Session-class. So long, Sebastian Hey Team, I have some problems with the example of JNDI Resources JavaMail Sessions. I get the error: The constructor MimeMessage(Session) is undefined A extract from the HOW-TO page: Context

Re: URL and mod_jk

2008-10-02 Thread Rainer Jung
Piller Sébastien wrote: Hi guys, in my project, I very often use absolute url. They have a form like: http://domain/foo/bar/resources/org.apache.wicket.Application//path/to/my/file.png I recently installed Apache and mod_jk. Are this kind of url valid to be served through mod_jk? Because

Re: tomcat6 + proxy issues

2008-10-02 Thread Gabe Wong
I would seldom dare to differ with Mark with regards to Tomcat issues but in this case, I prefer mod_AJP for its more predictive behavior compared to mod_HTTP. Tomcat AJP's connector simulates almost the same behavior as Tomcat's HTTP connector. So the all important request headers will look the

Tomcat 5.5.x - Logging Issues

2008-10-02 Thread piercey
Hi, We use a proprietary application in work with Tomcat. The webapp is basically a frontend to a process that runs in the background separate to Tomcat. It uses log4j to produce its own log files, which are stored in it's own directory again separate of Tomcat. This setup worked ok in Tomcat

Re: javax.naming.NamingException: Cannot create resource instance

2008-10-02 Thread David Smith
We have a winner! The Windows file system is one of the few (the only one I can think of) that's not case sensitive. Unix, linux, bsd, macos, etc. , ... are all case sensitive. You should change the file name 'Context.xml' to 'context.xml' and check to be sure it stays that way as you build

Re: javax.naming.NamingException: Cannot create resource instance

2008-10-02 Thread Ziggy O
Yes it looks like that fact it is named with uppercase C was the problem. I renamed it to context.xml and it finally worked. Thank you all for your help. On Thu, Oct 2, 2008 at 5:59 PM, David Smith [EMAIL PROTECTED] wrote: We have a winner! The Windows file system is one of the few (the

Re: problem in running Jconsole remotely --Connection refused

2008-10-02 Thread Kees Jan Koster
Dear Subhrajyoti, I am facing problem in running Jconsole remotely . In my machine from where I am running Jconsole I have jdk1.6...I am trying to connect to TOmcat6.0.18 running on a windows 2003 server machine(with JDK 1,5) ...I have a batch file with the following contents :

Re: Tomcat JVM not releasing deleted files (lsof show delete inodes taking up disk space)

2008-10-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chad, Chad Kellerman wrote: To get a better understanding... the application indexes uploaded files, the indexing process creates the temporary files then removes them. Can you share the code that actually does this? The javadoc for

Re: Another confused person trying to get jconsole to monitor tomcat.

2008-10-02 Thread Kees Jan Koster
Dear Mark, I got bitten by this recently. I am working on a LifecycleListener (that can be configured in server.xml) that fixes both ports that are used by jconsole. This makes it much easier to configure firewalls, tunnel through PuTTY etc. If I get it finished in time, it will be in

Re: How do you have your dev environment setup?

2008-10-02 Thread Kees Jan Koster
Dear All, I've been doing a lot of webapp development on tomcat, but currently my process is all manual. I write the code in Eclipse, and then copy the appropriate files over to tomcat. I'd like to automate and standardize my process. So would y'all mind explaining how your dev

Native library issue on RHEL5

2008-10-02 Thread John Ozarchuk
Hello, I am running Apache-tomcat 6.0.1.14 on Redhat Enterprise 5.2, and I am having trouble getting Catalina.sh to use the Apache Tomcat Native Library. I have run configure, make, and make install on the Native (tomcat-native-1.1.10-src) and it has installed libraries in

Re: Native library issue on RHEL5

2008-10-02 Thread Rainer Jung
John Ozarchuk schrieb: Hello, I am running Apache-tomcat 6.0.1.14 on Redhat Enterprise 5.2, and I am having trouble getting Catalina.sh to use the Apache Tomcat Native Library. I have run configure, make, and make install on the Native (tomcat-native-1.1.10-src) and it has installed

RE: Another confused person trying to get jconsole to monitor tomcat.

2008-10-02 Thread Martin Gainty
http://www.jdocs.com/tomcat/6.0.14/org/apache/catalina/ServerFactory.html ServerFactory.getServer() will return org.apache.catalina.ServerFactory concerning LifecycleListener take a look at http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/catalina/LifecycleListener.html

Re: Native library issue on RHEL5

2008-10-02 Thread John Ozarchuk
Here is the output of ldd libtcnative-1.so libssl.so.6 = /lib64/libssl.so.6 (0x2ace1000) libcrypto.so.6 = /lib64/libcrypto.so.6 (0x2af2a000) libapr-1.so.0 = /usr/lib64/libapr-1.so.0 (0x2b272000) libpthread.so.0 = /lib64/libpthread.so.0 (0x2b49a000)

Re: application deployment issue, Tomcat 5.5

2008-10-02 Thread André Warnier
Caldarale, Charles R wrote: [...] Obviously, Tomcat is running at faster-than-light speed, so cause and effect are no longer ordered... You should take a patent on that one. So, if regarding Tomcat there is no direct causality anymore, does it mean also that we can all just sit here and

Re: JK and IIS - troubles?

2008-10-02 Thread br1
Rainer, Rainer Jung-3 wrote: That might be the reason for trouble. If things start to get slow, the web server gets filled by all thenew requests still coming in without answering fast enough the existing ones. This starts to make sense now. I have a few suggestions inline, I would

Re: Tomcat 5.5.x - Logging Issues

2008-10-02 Thread André Warnier
piercey wrote: Is there an easier solution to getting it to behave like it did on Tomcat 4.1.x? I second the motion. Admittedly I am a complete noobie when it comes to Tomcat (and Java logging) so please excuse my ignorance if I'm making a glaring mistake. That one too.

RE: Tomcat Servlet Bouncy Castle Problem

2008-10-02 Thread Martin Gainty
you'll want to make sure bcprov-ext-jdk15-140.jar is in WEB-INF=lib from http://www.bouncycastle.org/latest_releases.html feel free to ping me offline for implementation specific issues cheers, Martin __ Disclaimer and confidentiality note

Support

2008-10-02 Thread Angelica Ardila
Good afternoon, my question is this: That version of JDK should I use for the Tomcat 6? Thank you very much. Angélica Ardila

Re: Support

2008-10-02 Thread Partha Goswami
which version ? On Fri, Oct 3, 2008 at 3:50 AM, Angelica Ardila [EMAIL PROTECTED]wrote: Good afternoon, my question is this: That version of JDK should I use for the Tomcat 6? Thank you very much. Angélica Ardila -- Regards Partha Goswami President Global Web-Tech Solution

Re: Support

2008-10-02 Thread Angelica Ardila
The Apache Tomcat version 6 2008/10/2, Partha Goswami [EMAIL PROTECTED]: which version ? On Fri, Oct 3, 2008 at 3:50 AM, Angelica Ardila [EMAIL PROTECTED]wrote: Good afternoon, my question is this: That version of JDK should I use for the Tomcat 6? Thank you very much.

Re: Support

2008-10-02 Thread Partha Goswami
I asked which version of JDK ? On Fri, Oct 3, 2008 at 3:56 AM, Angelica Ardila [EMAIL PROTECTED]wrote: The Apache Tomcat version 6 2008/10/2, Partha Goswami [EMAIL PROTECTED]: which version ? On Fri, Oct 3, 2008 at 3:50 AM, Angelica Ardila [EMAIL PROTECTED]wrote: Good

RE: Support

2008-10-02 Thread Caldarale, Charles R
On Fri, Oct 3, 2008 at 3:50 AM, Angelica Ardila [EMAIL PROTECTED]wrote: That version of JDK should I use for the Tomcat 6? Read the release notes: http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt Tomcat 6.0 is designed to run on JSE 5.0 and later. - Chuck THIS COMMUNICATION MAY

Re: Support

2008-10-02 Thread André Warnier
Angelica Ardila wrote: Good afternoon, my question is this: That version of JDK should I use for the Tomcat 6? Thank you very much. Angélica Ardila Whichever one you like, dear. ;-) Seriously now : JDK 6 would probably be best, and JDK 5 should work also. But if it is only to run Tomcat,

Re: Support

2008-10-02 Thread Partha Goswami
ah, JDK 6.0 has some issue, in WIndows after installing JDK 6.0 Tomcat 6.0 u need to put msvci70.dll from Jdk folder to bin folder of tomcat , that's why i was asking. JDK 5 has no issue, On Fri, Oct 3, 2008 at 3:59 AM, André Warnier [EMAIL PROTECTED] wrote: Angelica Ardila wrote: Good

RE: Support

2008-10-02 Thread Martin Gainty
Good afternoon, my question is this: That version of JDK should I use for the Tomcat 6? Thank you very much. Angélica Ardila Whichever one you like, dear. ;-) i'll wait for christopher schultz response to this answer

Re: Support

2008-10-02 Thread André Warnier
Martin Gainty wrote: Good afternoon, my question is this: That version of JDK should I use for the Tomcat 6? Thank you very much. Angélica Ardila Whichever one you like, dear. ;-) i'll wait for christopher schultz response to this answer You are already a few off-list exchanges too

Re: Support

2008-10-02 Thread Johnny Kewl
- Original Message - From: Angelica Ardila [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Friday, October 03, 2008 12:20 AM Subject: Support Good afternoon, my question is this: That version of JDK should I use for the Tomcat 6? Thank you very much. Angélica Ardila

Re: Support

2008-10-02 Thread André Warnier
And by her innocent question, Angelica has brought out the inherent personality of a number of people on this list.. Any more takers ? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL

Re: Support

2008-10-02 Thread Johnny Kewl
- Original Message - From: André Warnier [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, October 03, 2008 12:29 AM Subject: Re: Support Angelica Ardila wrote: Good afternoon, my question is this: That version of JDK should I use for the Tomcat 6?

Apache DirectoryIndex and mod_jk ForwardDirectories not playing nicely

2008-10-02 Thread Townsley, Charlotte
I'm trying to configure mod_jk 1.2.16.with Apache 1.3.26 and tomcat 5.0.28 on Solaris 9. I compiled the mod_jk from source for the Apache version. Unfortunately, I'm stuck with this environment. Behavior with mod_jk ForwardDirectories: When index.shtml exists * GOOD

RE: Support

2008-10-02 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Partha Goswami Subject: Re: Support ah, JDK 6.0 has some issue, in WIndows after installing JDK 6.0 Tomcat 6.0 u need to put msvci70.dll from Jdk folder to bin folder of tomcat , that's why i was asking. JDK 5 has no issue,

RE: Support

2008-10-02 Thread Caldarale, Charles R
From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: Support Normally I always recomment lagging a JRE version as well... avoid bleeding edge... JRE/JDK 6 has been around for almost two years now, so I don't think the 1.6.0_07 download is at all risky. On the other hand, the 1.6.0_10

Re: JK and IIS - troubles?

2008-10-02 Thread Mladen Turk
br1 wrote: Rainer, So perhaps.. upgrading from older JKs the default changed from 10 connections to 250. With a lot of workers (for instance, 40) the total number of maximum threads went from 400 to 1. I will have to fix this and check what happens. Though I understand the perfect default

useSendFile=true skips compression

2008-10-02 Thread Shaun Senecal
Could someone explain to me why the NIO Connector will ignore the compression settings for large files if useSendFile is enabled (it is by default)? It seems to me that if compression is enabled you would specifically want to use it when sendFile is enabled, but that might just be because I don't