Using JDBC Data source from a business class

2004-09-06 Thread muhammed soyer
Bu mail GESNET sunucusu tarafindan virus kontrolunden gecirilmistir.

Re: Using JDBC Data source from a business class

2004-09-06 Thread Peng Tuck Kwok
On Mon, 6 Sep 2004 09:12:51 +0300, muhammed soyer [EMAIL PROTECTED] wrote: My servlets are using the ds without a problem ..But I have some classes which are POJO classes to make my job easier whie accessing the DB ..these classes couldnt use my JDBC definition ..As I guess its from context

AW: ServletContextListener and HttpSessionActivationListener

2004-09-06 Thread Michael Sudkamp
Yoav, thanks for your understanding. I've just read the 2.4 spec regarding this and cannot any big clarifications. Can you point me to the chapter where you found it. I find this issue logged as bug #30344. It's exactly what I mean. But IMO this not described in the spec, neither 2.3 nor 2.4.

Re: Using JDBC Data source from a business class

2004-09-06 Thread muhammed soyer
Yes they are in my web-inf/classes directory .I use them to do my db jobs ..from jsp pages .. these classes access db .so I want to make them use Tomcats conneciton pooling machanism . I can do this from servlets .. -ms - Original Message - From: Peng Tuck Kwok [EMAIL PROTECTED] To:

Re: Using JDBC Data source from a business class

2004-09-06 Thread muhammed soyer
For my web applications(servlets) I add the following lines in the webapp.xml .For my classes what should I do ..These classes is not directly called from the browser .My JSP files use them .. ResourceLink name=jdbc/gp type=javax.sql.DataSource global=jdbc/gp/ Resource type=javax.sql.DataSource

Real problem posting Euro symbol from jsp page, using TC 5.0

2004-09-06 Thread Ben Bookey
Dear TC profis, (allistair and Nikola) I have had this problem for a week (aaahhh!), and would really appreciate ANY help or pointers to what I may be doing wrong. When I post a € value from a form from either Netscape 6.0 or IE 6.0, and do a system.out.println in my test servlet there is

Getting lastModified() from a (relative) URL

2004-09-06 Thread Chris Ward
Hi, I'm just switching my servlets to read files using URLs rather than fully qualified filenames - which is fine - but I can't figure out how to get the files last modified value. I can get a lastModified header value from the connection but I'm not reading HTML files (if this makes any

Re: AW: ThreadPool: Pool exhausted with 100 threads

2004-09-06 Thread Ronald Klop
On Mon Sep 06 00:40:14 CEST 2004 Matt Robinson [EMAIL PROTECTED] wrote: Steffen, Many thanks for the response. The reason we stuck with 3.2.4 was because of stability. However, as we have become more successful our systems have been receiving heavier loads and thus, the Threadpool exhausted

Re: AW: ThreadPool: Pool exhausted with 100 threads

2004-09-06 Thread Ronald Klop
On Mon Sep 06 00:40:14 CEST 2004 Matt Robinson [EMAIL PROTECTED] wrote: Steffen, Many thanks for the response. The reason we stuck with 3.2.4 was because of stability. However, as we have become more successful our systems have been receiving heavier loads and thus, the Threadpool exhausted

RE: Log4J in Tomcat 5.0...I don't believe the FAQ

2004-09-06 Thread Pedro Nevado
I use commons-logging api for two reasons (I am affraid that one of them better than the other): - because I reuse classes that use it. - because the people from whom I learned to program Java2EE use it. Thanks for the reference; it is really interesting. -Mensaje original- De: Jacob

RE: Using JDBC Data source from a business class

2004-09-06 Thread Keith Bottner
I believe you also need an entry in your web.xml file that looks something like this (obviously changed for your DB settings). resource-ref descriptionpostgreSQL Datasource/description res-ref-namejdbc/postgres/res-ref-name res-typejavax.sql.DataSource/res-type

Re: Using JDBC Data source from a business class

2004-09-06 Thread muhammed soyer
Hello Where is this context.xml file .should I create a file in web-inf directory named context.xml . I put a ResourceLink line in my webapp.xml files which is at jakarta-tomcat-5.0.28/conf/Catalina/localhost -ms - Original Message - From: Keith Bottner [EMAIL PROTECTED] To:

RE: Using JDBC Data source from a business class

2004-09-06 Thread Keith Bottner
The context.xml file is under your WebRoot/META-INF directory. When you application is deployed it gets copied to the conf/Catalina/[host name]/ directory then renamed to be the same as your web application. (Which BTW, if it is NOT being copied could also be part of the problem). 5.0.27 has a

RE: Real problem posting Euro symbol from jsp page, using TC 5.0

2004-09-06 Thread Allistair Crossley
Hi Ben, OK, here is my setup. Can you do the same for yours considering the various layers I have drawn below. You did not mention in your post if you are using the request filter servlet to ensure request encoding is set to utf-8. Remember, Tomcat defaults to ISO-8859-1 for inbound requests.

logging something to catalina.out

2004-09-06 Thread muhammed soyer
Bu mail GESNET sunucusu tarafindan virus kontrolunden gecirilmistir.

Re: logging something to catalina.out

2004-09-06 Thread Rhino
- Original Message - From: muhammed soyer [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, September 06, 2004 7:53 AM Subject: logging something to catalina.out Hello, How can I write something to the logfile . I should study log4j in a few days .. But if

Re: logging something to catalina.out

2004-09-06 Thread Christian Fritze
Rhino wrote: If I'm not mistaken, all you need is: System.out.println(I should study log4j in a few days...). Try replacing 'out' with 'err', then it should work... ;-) Christian -- Gre aus Europas grtem Greetings from Europe's largest Urban Sprawl (DUDOMA -- Duisburg Dortmund

Re: Using JDBC Data source from a business class

2004-09-06 Thread Peng Tuck Kwok
Adding to this, you could also supply a context.xml seperately with the war file when you deploy the app, this is optional. On Mon, 6 Sep 2004 06:07:18 -0500, Keith Bottner [EMAIL PROTECTED] wrote: The context.xml file is under your WebRoot/META-INF directory. When you application is deployed

sendRedirect problem in SSL

2004-09-06 Thread octopus
When I call response.sendRedirect with a relative url in https, the redirect is sent to not https but http. In http, the redirect is correctly sent to http. And also, if I use an absolute url with https:// in sendRedirect, the redirect works fine. This is what I'm running: - Redhat Linux 9 -

Newbie to Version 5.5

2004-09-06 Thread Freddy Villalba
Hi, I just downloaded version 5.5. I'm interested in having several instances of the server running on the same Windows machine (different ports, obviously). Is this possible? Where can I find the documentation for doing so? In case it is not possible (with a single installation), is it possible

Re: logging something to catalina.out

2004-09-06 Thread muhammed soyer
:) I was thinking that my class is jumping inthe catch block ..So I have tried these in the catch block and couldnt get it written .. As always the error is in the place where I am not looking for it :) Thanks for your answers -ms - Original Message - From: Rhino [EMAIL PROTECTED] To:

Problem when using TAGLIB in JSP

2004-09-06 Thread jlonc
hi. i have two classes: MyClass and test.MyClass (they are totally the same and one of them is a member of package test) i use them as tagclasses (taglib.tld): ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN

Vedr.: Problem when using TAGLIB in JSP

2004-09-06 Thread Thomas Nybro Bolding
Assuming you are using 1.4 or higher your classes have to be in packages - see for instance this thread http://forum.java.sun.com/thread.jsp?thread=536889forum=33message=2596508 /Thomas [EMAIL PROTECTED] 06-09-2004 15:24 Besvar venligst til Tomcat Users List Til:[EMAIL

Re: Vedr.: Problem when using TAGLIB in JSP

2004-09-06 Thread jlonc
hi (again). Assuming you are using 1.4 or higher your classes have to be in packages - see for instance this thread http://forum.java.sun.com/thread.jsp?thread=536889forum=33message=2596508 /Thomas you're right thomas, i am using 1.4, but do know the reason, why sun (or whoever)

RE: Real problem posting Euro symbol from jsp page, using TC 5.0

2004-09-06 Thread Ben Bookey
Hi Allistair, I am using win2k and your filter with it set to UTF-8 encoding. Indeed I have not been able to set JVM [file.encoding = utf-8]in the catalina.bat yet (my catalina.out doesnt look like your catlina.bat example that you gave me before!). I am going to continue trying setting the

Re: logging something to catalina.out

2004-09-06 Thread Rhino
- Original Message - From: Christian Fritze [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, September 06, 2004 8:18 AM Subject: Re: logging something to catalina.out Rhino wrote: If I'm not mistaken, all you need is: System.out.println(I should study

Re: Real problem posting Euro symbol from jsp page, using TC 5.0

2004-09-06 Thread Robert Koberg
Ben Bookey wrote: Hi , You meta element: META NAME=GENERATOR CONTENT=test page for encoding http-equiv=Content-Type content=text/html charset='utf-8' seems wrong. You kind of have two content attributes, but still looks wrong. Can you try: meta http-equiv=Content-Type content=text/html;

tomcat 5 and JNI problem

2004-09-06 Thread Alexio Cassani
Hi all, I've some trouble running a web application that use JNI to access a dll. The os is windows 2000/XP and I'm running Tomcat 5.0.26 (tried also with 27 and 28). I've done the following step: - put my dll in the %ApacheInstallDir%/common/lib - started Tomcat service - open the first page of

Re: Newbie to Version 5.5

2004-09-06 Thread Tim Funk
Yes. The easiest way is to make multiple copies of the dist in different directries and make sure server.xml soes not have any overlapping ports. So ... - get it working - copy the distribution to a new dir - Change the ports,addresses, dirs as needed -Tim Freddy Villalba wrote: Hi, I just

Vedr.: Re: Vedr.: Problem when using TAGLIB in JSP

2004-09-06 Thread Thomas Nybro Bolding
Without packages you will soon have a myriad of classes and have no clue as to which depends on which, nor how they relate. Further visibility and accessibility of methods etc. take advantage of packages. Im sure there are many more advantages but this is just my 5 cents... /Thomas [EMAIL

Re: Newbie to Version 5.5

2004-09-06 Thread Remy Maucherat
On Mon, 6 Sep 2004 15:04:57 +0200, Freddy Villalba [EMAIL PROTECTED] wrote: Hi, I just downloaded version 5.5. I'm interested in having several instances of the server running on the same Windows machine (different ports, obviously). Is this possible? Where can I find the documentation for

missing resource bundle shouldn't be

2004-09-06 Thread Garret Wilson
I just installed Tomcat 5.5.0 on Windows XP Professional SP2. I have an existing application that worked under Tomcat 4.x. It consists of a servlet in a jar file located here: \tomcat\common\lib\myservlet.jar That jar contains a servlet mapped to, for example: servlet-mapping

RE: Connection class unknown...

2004-09-06 Thread Bodycombe, Andrew
You could try importing java.sql.Connection (not javax.sql.Connection). Maybe this would help. Regards, Andy -Original Message- From: Sexy Prague To: [EMAIL PROTECTED] Sent: 05/09/2004 18:12 Subject: Connection class unknown... Hello everybody, I've got a problem with creating

RE: Newbie to Version 5.5

2004-09-06 Thread Freddy Villalba
Thanks, Tim. Just one more question... if I copy the dist files, how am I supposed to configure the CATALINA_HOME and CATALINA_BASE variables for each copy??? (it's unique, so it can't be valid for all the copies I configure, am I right?) I really appreciate your help. Cheers. -Mensaje

Re: Newbie to Version 5.5

2004-09-06 Thread QM
On Mon, Sep 06, 2004 at 06:25:01PM +0200, Freddy Villalba wrote: : Just one more question... if I copy the dist files, how am I supposed to : configure the CATALINA_HOME and CATALINA_BASE variables for each copy??? : (it's unique, so it can't be valid for all the copies I configure, am I : right?)

Re: missing resource bundle shouldn't be

2004-09-06 Thread Garret Wilson
Oh, and I'm using JDK 1.5 RC. Garret Garret Wilson wrote: I just installed Tomcat 5.5.0 on Windows XP Professional SP2. I have an existing application that worked under Tomcat 4.x. It consists of a servlet in a jar file located here: \tomcat\common\lib\myservlet.jar That jar contains a servlet

RE: Newbie to Version 5.5

2004-09-06 Thread Freddy Villalba
Yes, QM. You are absolutely right. If I use different copies of the files, I can start them in different environments with a .bat and that would isolate the local value for each one. Right? However, is it possible to have multiple instances run as separate Windows services (so I am able to

tomcat user name

2004-09-06 Thread Harald Schumacher
Hello, I have an application which authorize themselves, but now I would like to have tomcat knowing the user name for using WEB statistic tools. Did someone manage to get back user credentials to tomcat from inside an existing application? Thank you in advance Harald

Problems upgrading to Tomcat 5

2004-09-06 Thread Jonathan Rengifo
Hi all... I am preparing a new production web sever configured with Apache 2 serving static content and Tomcat 5.0.27 serving dynamic content via TCP JK2 connector. In Tomcat, I am trying to configure one database Resource element for various Context, so I decide to configure one Resource

basic authentification with IIS (tomcat 5.x)

2004-09-06 Thread Philippe Lonchampt
Hello all, I don't understand how to use the tomcat 5.x basic authentification with IIS (ajp13) : it works when using tomcat alone, but with IIS the answer is always 401.1 Not authorized. It seems like IIS don't let Tomcat manage the authentification ? I've read somewhere in this list that it

StandardClassLoader: Security Violation, attempt to use Restricted Class: org.apache.tomcat.util.net.SSLSupport$CipherData

2004-09-06 Thread David Wall
What do I have misconfigured to cause this security violation? I am using -security to start a security manager and the page is https secure. Using TC 5.0.27 on Redhat Linux, I received the following error in catalina.out: StandardClassLoader: Security Violation, attempt to use Restricted

RE: missing resource bundle shouldn't be

2004-09-06 Thread George Sexton
Different class loader. The JSP's are running in a class-loader with the application, while the common/lib jars are in a different class-loader where the WEB-INF/classes are not part of the search path. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585

using my own classes in my web-app

2004-09-06 Thread Peter Jarunek
Hello, I'm new to Tomcat and need a help. I'd like to use my own classes in my JSPs, but I can not reach them from my JSPs. I added them (already compiled .class files) into WEB-INF/classes directory of my war file, but the JSP doesn't work. It shows the message of unknown class. How to use

Re: using my own classes in my web-app

2004-09-06 Thread Sjoerd van Leent
Peter Jarunek wrote: Hello, I'm new to Tomcat and need a help. I'd like to use my own classes in my JSPs, but I can not reach them from my JSPs. I added them (already compiled .class files) into WEB-INF/classes directory of my war file, but the JSP doesn't work. It shows the message of unknown

Re: using my own classes in my web-app

2004-09-06 Thread John Villar
try restarting tomcat Peter Jarunek escribi: Hello, I'm new to Tomcat and need a help. I'd like to use my own classes in my JSPs, but I can not reach them from my JSPs. I added them (already compiled .class files) into WEB-INF/classes directory of my war file, but the JSP doesn't work. It shows

Re: using my own classes in my web-app

2004-09-06 Thread Schalk Neethling
Have you registered your servlets via the web.xml? Sjoerd van Leent wrote: Peter Jarunek wrote: Hello, I'm new to Tomcat and need a help. I'd like to use my own classes in my JSPs, but I can not reach them from my JSPs. I added them (already compiled .class files) into WEB-INF/classes directory

Re: missing resource bundle shouldn't be

2004-09-06 Thread Garret Wilson
George, George Sexton wrote: Different class loader. The JSP's are running in a class-loader with the application, while the common/lib jars are in a different class-loader where the WEB-INF/classes are not part of the search path. Then what's the solution? I've tried moving the jar from

Re: missing resource bundle shouldn't be

2004-09-06 Thread QM
On Mon, Sep 06, 2004 at 01:45:27PM -0700, Garret Wilson wrote: : Different class loader. The JSP's are running in a class-loader with the : application, while the common/lib jars are in a different class-loader : where : the WEB-INF/classes are not part of the search path. : : Then what's the

Re: missing resource bundle shouldn't be

2004-09-06 Thread Garret Wilson
QM wrote: : Then what's the solution? I've tried moving the jar from common/lib to : WEB-INF/lib, but that didn't help. Unjarring the files into : WEB-INF/classes didn't work, either. When you say the jar, you mean the jar containing my servlet classes, correct? Right. That should work. You

Re: Problems upgrading to Tomcat 5

2004-09-06 Thread Jonathan Rengifo
Hi all... Can anyone tell me about a succeeding experience ResourceLinking inside a Context element a Resource element contained in a GlobalNamingResources element? Please, I don't really know how to do it on Tomcat 5 and can´t find it on the Internet... (For more information about the problem

Re: missing resource bundle shouldn't be

2004-09-06 Thread QM
On Mon, Sep 06, 2004 at 02:55:13PM -0700, Garret Wilson wrote: : I'll try that---it wouldn't cache a jar, would it? Maybe, maybe not. I see from your first message that you're running Tomcat 5.5, which is technically in alpha state. If you're trying it out to report issues to the developers,

Re: missing resource bundle shouldn't be---solved

2004-09-06 Thread Garret Wilson
QM wrote: On Mon, Sep 06, 2004 at 02:55:13PM -0700, Garret Wilson wrote: : I was planning on using the same set of libraries for multiple web : apps---the jar in question had more than just servlets for a single web app. There's no need to do this, really. Webapps are supposed to be

Re: AW: Configuration Assistance Request - Apache 2.0.5 - Tomcat 4.1.3 - Tomcat 4.1.3 Connector - JK2

2004-09-06 Thread Cary Conover
Yes I meant 4.1.30. My fupah. Yes 30 not 3. Sorry. Cary SH Solutions [EMAIL PROTECTED] wrote: HI Got Jakarta 4.1.3 installed from fresh copy that I got from the jakarta site. You are joking? 4.1.30 is current. I hope, you ment 4.1.30 and not 4.1.3... Regards, steffen

Re: AW: ThreadPool: Pool exhausted with 100 threads

2004-09-06 Thread Matt Robinson
Ronald, The exact error message is ThreadPool: Pool exhausted with 100 threads, so I assume we have 100 threads running -- once this error message appears Tomcat stops responding until it is restarted. Is there a simple way to check # of threads in use by Tomcat at any given time? We are running

tag reuse, setParent and findAncestorWithClass

2004-09-06 Thread Justin Kennedy
Hi, I'm upgrading our tag library to Tomcat 5 and having problems. Note that they were written back in JSP 1.1 and haven't changed for a few years. The problem looks like the tags are being cached and the setParent isn't being called for each new reuse. As a result the wrong tag is