Re: DB2 DataSource.

2007-04-13 Thread Foo Shyn
Hi, I'd been using connection pooling setting in Tomcat for MySQL, MSSQL and Derby(or Cloudscape) so i guess DB2 could be setup just as same. Make sure your driver jar file includes the Driver which is packaged as you had declared in the XML. And place it in the Tomcat common lib folder (In

Re: getResourceAsStream returning blank (NOT NULL)

2007-04-13 Thread Johnny Kewl
InputStream in = getClass().getResourceAsStream(sPackageNameWithSlashes); If the class name is com.myCo.data You put it in like this /com/myCo/data Also because this stuff looks for a class loader I dont think it will work in a STATIC class. Use a normal class NO DOTS have fun

Re: nsapi_redirector.so

2007-04-13 Thread Rajiv M
I have tried couple of tests with jsp and servlet redirection to Tomcat. jsp(s) work fine. Having a problem with servlets. To begin with, here is my obj.conf settings: NameTrans fn=pfx2dir from=/try dir=/usr/jakarta-tomcat-5.5.0/webapps ... NameTrans fn=assign-name from=/try/servlets-examples/*

Re: nsapi_redirector.so

2007-04-13 Thread Rainer Jung
You will definitely have to read a bit about standard configuration of Sun Web Server. The web server docs will tell you, that the order of NameTrans directives is relevant. I expect the file system rule comes first in your config, before the jk NameTrans. If you want to debug such issues:

Re: Ajax xmlhttprequest

2007-04-13 Thread dimitryous r.
Hi, I can't give you a response. But would like to know how you manage to be able to get a index.php (for example) page out of your Apache Tomcat server. Sould I recompile the whole stuff? Should I add some xxx.so file to my Apache config? TIA dimitryous. On 8 avr. 07, at 14:55,

Re: nsapi_redirector.so

2007-04-13 Thread Rajiv M
Cheers! - To start a new topic, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Ajax xmlhttprequest

2007-04-13 Thread Johnny Kewl
OK... more than a little confused I think you saying when you run it against Apache Server... it works But when you run the script again tomcat it doesnt... Show us the Script in the web page and show us the Servlet or JSP in tomcat You can also show us the php if u want... Then we can

Re: Ajax xmlhttprequest

2007-04-13 Thread Richard Dunne
Not familiar with xxx.so. file.php is within my context. Richard - Original Message From: dimitryous r. [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, April 13, 2007 11:34:00 AM Subject: Re: Ajax xmlhttprequest Hi, I can't give you a response. But would

Re: Ajax xmlhttprequest

2007-04-13 Thread Richard Dunne
My php webpage renders just like an html page on localhost:8080, but when I run an xmlhttprequest against the tomcat (jakarta) server from within the webpage, the request shows a readystate of 1, and thats as far as it gets. The request goes throught the reaystates 1-4 and status 200 in

Re: Tomcat 6.0.x OpenEJB

2007-04-13 Thread Peter Rossbach
HI David, I think the tomcat 6 basic classloader layout has not changed. Look at Bootstrap.java: private void initClassLoaders() { try { commonLoader = createClassLoader(common, null); if( commonLoader == null ) { // no config file, default to

AW: Ajax xmlhttprequest

2007-04-13 Thread Konstantin Breu
You can try to use a tool like fiddler, to see better what happens at the requests. Have you tried to change the xmlhttprequest call so that it requests a static html file from tomcat? Does that work? Which progid do you use to instantiate the xmlhttprequest object (if you instantiate it via new

RE: unecessary JAR files

2007-04-13 Thread Peter Crowther
From: Rashmi Rubdi [mailto:[EMAIL PROTECTED] On 4/12/07, Kevin Gutch [EMAIL PROTECTED] wrote: Do unnecessary jar files affect performance of an application? Only if the classes in the JAR files are called, but then that wouldn't make the JAR file unnecessary :-) . There are a couple of

RE: Question on setting up LDAP...

2007-04-13 Thread Smith, Corey
Here is my realm I am using in my server.xml file and the web apps xml file !-- Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://MainDC1.Mydomain.com; roleBase=ou=Global

jakarta connection

2007-04-13 Thread Cesare Vairetti
Hi everybody, I have a web site running IIS6 and a Jakarta connector to link a section of our web site to an internal tomcat 5.5 server. On our web site we use an applet java program that use a servlet running on tomcat to make some query. For a while the applet running good, then the log of

Re: getResourceAsStream returning blank (NOT NULL)

2007-04-13 Thread Martin Gainty
I have to inquire why you are performing init() operations in the constructor? Did you move your operations from the constructor to a separate init() as earlier suggested? Also.. ensure your startup initialisation file 'pam.properties' is located in the same folder as your Pam class (or

Re: jakarta connection

2007-04-13 Thread Martin Gainty
error 61 is no Data I would suggest looking at all your forms and setup default values (numeric for numeric data fields, alphanumeric for alphanumeric fields) for each field M-- This email message and any files transmitted with it contain confidential information intended only for the

Re: AW: Ajax xmlhttprequest

2007-04-13 Thread Pid
I'm going to ask a potentially stupid question here: how have you configured / are you running PHP code on Tomcat? Have you called the PHP file directly to see what output it generates? p Konstantin Breu wrote: You can try to use a tool like fiddler, to see better what happens at the

HTTPS service

2007-04-13 Thread Jayson Enriquez
Hi all ~ When restarting Tomcat Services (due to increasing memory); our HTTPS site gives a 404 error (Page cannot be displayed). The HTTP site is just fine. After restarting the service the second time, HTTPS is back up and running.Has anybody experienced or have heard of this issue

Re: AW: Ajax xmlhttprequest

2007-04-13 Thread Richard Dunne
If you take any .html file and rename it .php for instance, the file will change to the php icon. PHP is installed of course (I have PHP5) It renders exactly the same as an html page does. Once the file is within your context folder, it will be listed in the context dir in localhost under

Re: Java Web Parts v1.1 Beta 1 released

2007-04-13 Thread Anoop kumar V
hey - Where would I find pertinent information about the project. I mean suppose I want to look up what all types of filters are available for reuse, where is that infromations. Thanks, Anoop On 4/8/07, Frank W. Zammetti [EMAIL PROTECTED] wrote: Hey everyone... just a quick weekend note to

Re: AW: Ajax xmlhttprequest

2007-04-13 Thread Pid
Richard Dunne wrote: If you take any .html file and rename it .php for instance, the file will change to the php icon. PHP is installed of course (I have PHP5) It renders exactly the same as an html page does. Once the file is within your context folder, it will be listed in the context

Re: Java Web Parts v1.1 Beta 1 released

2007-04-13 Thread Frank W. Zammetti
Hi Anoop, http://javawebparts.sourceforge.net Click the Javadocs link, that's the easiest way to see what's available. The project is organized as 11 packages, such as javawebparts.filter and javawebparts.servlet for example, it's usually pretty obvious where things will be found (and the

Re: Java Web Parts v1.1 Beta 1 released

2007-04-13 Thread Frank W. Zammetti
Woops, sorry about that folks... I didn't see the Cc list before I clicked Reply All. Didn't mean to cross-reply. Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of Practical Ajax

Re: unecessary JAR files

2007-04-13 Thread Pierre Goupil
Hello, World ! Another question asked by the OP which is of interest to me : does anyone have a tool that can profile whether or not a jar file gets utilized during an application? Cheers, Pierre 2007/4/13, Peter Crowther [EMAIL PROTECTED]: From: Rashmi Rubdi [mailto:[EMAIL

Re: HTTPS service

2007-04-13 Thread Martin Gainty
Lately I see alot of permgen errors With Hibernate I see javassist bytecode provider causing permgen errors thankfully a solution is to use the cglib provider by changing hibernate.properties hibernate.bytecode.provider.javassist to hibernate.bytecode.provider cglib

Re: Java Web Parts v1.1 Beta 1 released

2007-04-13 Thread Anoop kumar V
Thank you Frank - it is a fine project. On 4/13/07, Frank W. Zammetti [EMAIL PROTECTED] wrote: Woops, sorry about that folks... I didn't see the Cc list before I clicked Reply All. Didn't mean to cross-reply. Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex

Problem reading the Accept-Encoding header from a request

2007-04-13 Thread Christian Hvitved
Hi support list I am having a problem, with reading the Accept-Encoding header from a request, which seems very simple. I use Tomcat 6.0.10 on a dansih windows xp. The problem arose when I was writing a special compression filter (I don't want to use the one that ships with tomcat). When the

RE: DB2 DataSource.

2007-04-13 Thread Fargusson.Alan
Actually my program works when I use DriverManager. It only failes when I use a DataSource. -Original Message- From: Pulkit Singhal [mailto:[EMAIL PROTECTED] Sent: Thursday, April 12, 2007 10:06 PM To: Tomcat Users List Cc: Martin Gainty Subject: Re: DB2 DataSource. The following is

RE: DB2 DataSource.

2007-04-13 Thread Fargusson.Alan
I think I have all the jar files in the right place. In fact I can access DB2 when I use DriverManager. -Original Message- From: Foo Shyn [mailto:[EMAIL PROTECTED] Sent: Thursday, April 12, 2007 11:14 PM To: Tomcat Users List Cc: Martin Gainty Subject: Re: DB2 DataSource. Hi, I'd

RE: DB2 DataSource.

2007-04-13 Thread Fargusson.Alan
Thanks. I am using 5.0.28, but what I have looks like what you have. I will take a closer look to make sure I didn't miss something. -Original Message- From: Rashmi Rubdi [mailto:[EMAIL PROTECTED] Sent: Thursday, April 12, 2007 5:59 PM To: Tomcat Users List Subject: Re: DB2 DataSource.

Re: DB2 DataSource.

2007-04-13 Thread Len Popp
It should *not* look the same, because the syntax of the Resource element changed after 5.0. Look for ResourceParam in the 5.0 documentation. -- Len On 4/13/07, Fargusson.Alan [EMAIL PROTECTED] wrote: Thanks. I am using 5.0.28, but what I have looks like what you have. I will take a closer

RE: DB2 DataSource.

2007-04-13 Thread Fargusson.Alan
Your right. My ResourceParam syntax is different. I didn't look closely at that. My values are mostly the same. -Original Message- From: Len Popp [mailto:[EMAIL PROTECTED] Sent: Friday, April 13, 2007 9:25 AM To: Tomcat Users List Subject: Re: DB2 DataSource. It should *not* look

Re: Problem reading the Accept-Encoding header from a request

2007-04-13 Thread Martin Gainty
Read this excellent tutorial http://www.sitepoint.com/blogs/2006/03/15/do-you-know-your-character-encodings/ To change the encoding one must change the charset meta tag as in META charset= from ASCII (7bit) or ISO-8859 (8bit) to UCS based encodings UTF-8 (8 bit represenation of UCS) UTF-16 (16

Stuck in SYN_RECV when binding to ip

2007-04-13 Thread robert lazarski
Hi all, I'm using the tomcat that is embedded into jboss 4.0.5 , 5.5.17 I believe. I'm running opensuse 10.1 with kernel 2.6.16.13 . I'm trying to test our app which is now behind a load balancer. I've tried with and without apr to the same effect. My ifconfig shows: eth0 Link

RE: Question on setting up LDAP...

2007-04-13 Thread Smith, Corey
Hello and how are things? Well I am convinced that having to type in the domain in front of my user name is causing the Invalid escape sequence error in the web apps log. I guess my question is how can I either remove that domain\ in front of my username before the realm searches for the

Re: DB2 DataSource.

2007-04-13 Thread Rashmi Rubdi
As Len Popp mentioned before, the syntax for Connection Pooling is different for certain versions of Tomcat. If you carefully follow the documentation of JDBC DataSources for *your* version of Tomcat http://tomcat.apache.org/ , and do some additional minor research on the pseudo-code presented

Re: Problem reading the Accept-Encoding header from a request

2007-04-13 Thread Rashmi Rubdi
The problem arose when I was writing a special compression filter I tried your code in a JSP directly (without using any other custom compression filter) and it prints as follows: Accept-Encoding gzip,deflate some other headers.. accept

Re: jakarta connection

2007-04-13 Thread Rashmi Rubdi
On 4/13/07, Cesare Vairetti [EMAIL PROTECTED] wrote: [Fri Apr 13 12:39:22 2007] [3860:3172] [error] jk_ajp_common.c (1942): (ajp13w) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port It could be possible that something in your code is causing a

RE: DB2 DataSource.

2007-04-13 Thread Fargusson.Alan
I am putting my Resource inside the GlobalNamingResource. Do I need anything in the Context node? I have been doing this two different ways. My latest attempts I have used the management console which generates the server.xml file. -Original Message- From: Rashmi Rubdi [mailto:[EMAIL

Re: DB2 DataSource.

2007-04-13 Thread Rashmi Rubdi
On 4/13/07, Fargusson.Alan [EMAIL PROTECTED] wrote: I am putting my Resource inside the GlobalNamingResource. Do I need anything in the Context node? If you are using GlobalNamingResource you don't need the Context node because it is global to all contexts and not just one context. I have

RE: DB2 DataSource.

2007-04-13 Thread Fargusson.Alan
I tried the management console way because I was not sure I was getting the xml right. I will stick with that until I find something wrong with the generated xml. -Original Message- From: Rashmi Rubdi [mailto:[EMAIL PROTECTED] Sent: Friday, April 13, 2007 11:09 AM To: Tomcat Users List

Re: Problem reading the Accept-Encoding header from a request

2007-04-13 Thread Rashmi Rubdi
As far as I understand, the Accept-Encoding header is set by the *browser*. It is also possible to override the browser headers with HttpResponse's addHeader (if the header doesn't exist) or setHeader (to overwrite the header) So you may want to try either one of:

Re: Tomcat Datbase Connection Pooling

2007-04-13 Thread Daniel Stephens
it also contributes to the other parameters like removeAbandoned, etc.. If I remember right when the validation Query runs the evictor thread gets called and then abandoned connections are relieved.They all kinda work together. On 4/13/07, Venky Vasant [EMAIL PROTECTED] wrote: Thanks i had

Re: Stuck in SYN_RECV when binding to ip

2007-04-13 Thread Rashmi Rubdi
On 4/13/07, robert lazarski [EMAIL PROTECTED] wrote: I'm using the tomcat that is embedded into jboss 4.0.5 , 5.5.17 I believe. Did you check with JBoss's support/forum ? -Rashmi - To start a new topic, e-mail: [EMAIL

Re: Error message

2007-04-13 Thread Martin Gainty
Dwight- Must be too much heat because I havent seen this since IBM J2RE 1.4.2 Which JDK are you using? Which version Tomcat? M-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If

RE: unecessary JAR files

2007-04-13 Thread Tim Lucia
mv + java should do the trick. If you get a ClassNotFoundException, then the jar file is utilized. Tim -Original Message- From: Pierre Goupil [mailto:[EMAIL PROTECTED] Sent: Friday, April 13, 2007 11:28 AM To: Tomcat Users List Subject: Re: unecessary JAR files Hello, World !

RE: getResourceAsStream returning blank (NOT NULL)

2007-04-13 Thread Tim Lucia
-Original Message- From: Johnny Kewl [mailto:[EMAIL PROTECTED] Sent: Friday, April 13, 2007 2:36 AM To: Tomcat Users List Subject: Re: getResourceAsStream returning blank (NOT NULL) InputStream in = getClass().getResourceAsStream(sPackageNameWithSlashes); If the class name is

Re: getResourceAsStream returning blank (NOT NULL)

2007-04-13 Thread Thomas Polliard
Tim Thanks for the help, That FIXED it :)... Thanks for the reference it was indeed helpful. Thomas - To start a new topic, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Error message

2007-04-13 Thread Rashmi Rubdi
According to the docs: http://java.sun.com/javase/6/docs/api/java/lang/ClassFormatError.html Thrown when the Java Virtual Machine attempts to read a class file and determines that the file is malformed or otherwise cannot be interpreted as a class file. ByteChunk is in tomcat-coyote.jar ,