JDBC resource with custom connection pool factory

2007-05-30 Thread Sorin Juco
Hello, I want to create a JDBC resource wich represents a connection pool to an Oracle server. By default Tomcat uses DBCP to provide the connection pool implementation. My problem is that I want to execute some custom code each time I get a connection from the pool and also each time I release

Re: SSO session replication within TC 5.5.23 cluster

2007-05-30 Thread ROOKIE
Hi, Can someone please clarify if tomcat 5.5 supports replication of single-sign-on sessions across cluster members, if so how to configure it ? Thanks, Vinod - Original Message From: ROOKIE [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Tuesday, May 29, 2007 5:20:03 PM Subject:

Re: JDBC resource with custom connection pool factory

2007-05-30 Thread Zdeněk Vráblík
Hi, I use this Resource: Resource name=RESOURCE_NAME auth=Container type=oracle.jdbc.pool.OracleDataSource factory=oracle.jdbc.pool.OracleDataSourceFactory user=ORACLEUSER password=ORACLEPASS driverClassName=oracle.jdbc.driver.OracleDriver

Re: JDBC resource with custom connection pool factory

2007-05-30 Thread ROOKIE
To execute custom code while getting a connection u can extend the connection factory and mention that class as the factory for ur resource, I dont think we close connections using the factory, so maybe u can write a wrapper around Connection.close() method. - Original Message From:

Re: Jasper compiler crashes

2007-05-30 Thread Filip Hanik - Dev Lists
Rashmi Rubdi wrote: On 5/29/07, Berglas, Anthony [EMAIL PROTECTED] wrote: Thanks for that, but I don't see how it will help. If you look below it is the jasper2 that is causing me grief, which is essentially the same as yours. How long does it take to precompile the JSPs. Is it several JSPs

Re: JDBC resource with custom connection pool factory

2007-05-30 Thread Sorin Juco
Thanx for the answers. I just realized that what I want to do is more complex. I use Hibernate and pass the jdbc resource to the Hibernate configuration. Oracle has a temporary table for each session to the database in which you can store 2 varchar arguments for monitoring purposes ( in my case

Re: JDBC resource with custom connection pool factory

2007-05-30 Thread Zdeněk Vráblík
HI ROOKIE, I probably didn't understand the question properly. I have configured datasource with OracleDatasourceFactory and I have expected that DataSource.getConnection return OracleConnection and when I close this connection it will return this connection to the pool instead of close this

Re: content-type without charset

2007-05-30 Thread Richard Kaye
Thank you! I was using a writer and switching to a ServletOutputStream fixed it. I never thought of that: the specs say streams are intended for binary data... Richard Richard Kaye wrote: Please could someone help me by posting a Hello-world servlet that serves a document with this

Log4j runtime reconfigure in Tomcat

2007-05-30 Thread Goran
Hello, I have a question regarding Tomcat 5.5 and log4j (running winXP, Java = 1.5).=20 Deploying my application as .war I have a .jar inside which has a = log4j.properties in WEB-INF/classes directory. It works properly like I want it to, but I need a way to change the = logging level without

Re: content-type without charset

2007-05-30 Thread Mark Thomas
Richard Kaye wrote: Thank you! I was using a writer and switching to a ServletOutputStream fixed it. I never thought of that: the specs say streams are intended for binary data... They do. They also say if you use a writer Tomcat must append a charset to the Content-Type header. Glad this

RE: Log4j runtime reconfigure in Tomcat

2007-05-30 Thread Tim Lucia
I wrote a webapp which displays and allows for modifying the runtime configuration of log4j. I can send you the .war, if you'd like. Tim -Original Message- From: Goran [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 30, 2007 7:22 AM To: users@tomcat.apache.org Subject: Log4j runtime

Re: Servlet and Random Access File

2007-05-30 Thread David Smith
The key phrase here is ...that really suits my needs. Could you provide more information? Your question is a rather generic one not all that specific to java servlets. --David Teh Noranis Mohd Aris wrote: Hello All, Does anyone have an example of a servlet program that uses random

Re: Log4j runtime reconfigure in Tomcat

2007-05-30 Thread Goran
Please, if you can. Thank you, Goran On 5/30/07, Tim Lucia [EMAIL PROTECTED] wrote: I wrote a webapp which displays and allows for modifying the runtime configuration of log4j. I can send you the .war, if you'd like. Tim -Original Message- From: Goran [mailto:[EMAIL PROTECTED]

RE: Web application receives request parameters sent to another application on Tomcat 6

2007-05-30 Thread Reich, Matthias
With some additional logging I found out that my problem is most probably not related to the mixed request parameters. It is a problem of synchronizing the decisions of whether to recycle Request/Response objects and whether to recycle the processor. I'll send more details in another mail with

Comet: Unsufficiently synchronized recycling decisions

2007-05-30 Thread Reich, Matthias
Hi, as mentioned in my contribution to topic 'Web application receives request parameters sent to another application on Tomcat 6', I sometimes get non-recycled Request objects in a BEGIN event. A non-recycled request object appeared in a BEGIN event if the previous request processed by the

FarmWarDeployer

2007-05-30 Thread ben short
Hi, I'm trying to setup a cluster of two tomcats and use the Tomcat 1 server.conf Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false

Tomcat 6 + Jstl

2007-05-30 Thread Manca Davide
I don't understand the reason I'm getting these 2 errrors. org.apache.jasper.JasperException: h3Validation error messages from TagLibraryValidator for c in /cgi/cocktails/browse/listing.cgi/h3p9: tag = 'if' / attribute = 'test': An error occurred while parsing custom action attribute test with

Re: content-type without charset

2007-05-30 Thread Richard Kaye
Incidently, the fact that tomcat seems to remove any space between the ; and charset in mimetype; charset=... whereas apache seems to prefer to add one is an annoying inconsistency that has blocked a much simpler workaround for my difficulties (one that would have used text/xml). No matter. My

Re: Tomcat 6 + Jstl

2007-05-30 Thread David Smith
Try this instead: ${(sreq.vrs eq 0) and (empty sreq.query) and (empty sreq.ilettera)} Your use of the el expressions needs some refinement. Specifically you don't call methods like you would in a jsp:expression tag or in generic java. someBean.getSomething() is replaced with

Re: Tomcat stopped logging

2007-05-30 Thread Daniel Stephens
My fault, I assumed you were on solaris. That is odd. Is there any stack traces in the localhost log? On 5/29/07, Propes, Barry L [EMAIL PROTECTED] wrote: yeah, I didn't think there was, or that I'd had trouble with the number of files in the directory before. Would seem absurd. Might be on a

RE: Tomcat Netbeans Project... WildCat

2007-05-30 Thread Tim Lucia
-Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 29, 2007 1:31 AM To: Tomcat Users List Subject: Re: Tomcat Netbeans Project... WildCat Johnny Kewl wrote: + One can dump the src into a Netbeans project, click compile and you have a working

Re: Tomcat 6 + Jstl

2007-05-30 Thread David Smith
Ooops... didn't see the second expression in that error report: ${((sreq.vrs eq 0) and (status.index gt 0)) or (sreq.vrs gt 0) or (not empty sreq.query ) or (not empty sreq.ilettera)} Keep in mind, the operators '', '||', '==' and '' are valid and you are certainly welcome to keep them. I

Re: Tomcat 6 + Jstl

2007-05-30 Thread Pid
David Smith wrote: Try this instead: ${(sreq.vrs eq 0) and (empty sreq.query) and (empty sreq.ilettera)} Assuming that 'sreq' is a valid object... Your use of the el expressions needs some refinement. Specifically you don't call methods like you would in a jsp:expression tag or in generic

Tomcat does not start

2007-05-30 Thread Dell'oro Marco
Hi there, I'm having problems running Apache Tomcat 6 (But the same happens with Tomcat 5.0) on a Windows XP home computer with Sun JRE 1.6.0_01. I've installed the same configuration on other machines with successfull results... the log message follows: [2007-05-18 00:37:09] [986 prunsrv.c]

Tomcat does not start

2007-05-30 Thread Dell'oro Marco
Hi there, I'm having problems running Apache Tomcat 6 (But the same happens with Tomcat 5.0) on a Windows XP home computer with Sun JRE 1.6.0_01. I've installed the same configuration on other machines with successfull results... the log message follows: [2007-05-18 00:37:09] [986 prunsrv.c]

Tomcat does not start

2007-05-30 Thread Dell'oro Marco
Hi there, I'm having problems running Apache Tomcat 6 (But the same happens with Tomcat 5.0) on a Windows XP home computer with Sun JRE 1.6.0_01. I've installed the same configuration on other machines with successfull results... the log message follows: [2007-05-18 00:37:09] [986 prunsrv.c]

RE: Tomcat stopped logging

2007-05-30 Thread Propes, Barry L
that was another problem that I (unfortunately!) combat daily. I can't see the stack trace. I don't have permissions to the account under which Tomcat runs. I can Terminal Service into the server, but only under my profile, not that account. So I can never see the console! And getting these

Re: Tomcat stopped logging

2007-05-30 Thread David Smith
Can you get them to create a group that you and the tomcat server are both members of? Then grant read privilege on the log directory to the new group. Added benefit of the group plan is you can have other support people added to the group and the network guys don't have to mess with the

RE: Tomcat stopped logging

2007-05-30 Thread Propes, Barry L
I can try...the thing is, I can actually read the logs through a shared directory. Just can't see the console to see the stack trace there. -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 30, 2007 10:11 AM To: Tomcat Users List Subject: Re: Tomcat

Sorry for double posting

2007-05-30 Thread Dell'oro Marco
Sorry for double posting, I realized just now that my mail program is not working correctly... Francesco ___ L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html

Users cannot login when IIS 6.0 is used to redirect user to secure J2EE apps on Tomcat 5.5.15

2007-05-30 Thread Brian Bitteker
Desired State: When users access secure J2EE apps via IIS 6.0 on port 80, they are challenged, authenticated, authorized and presented with pages from a secure application being served by Tomcat 5.5.15 server on port 8080 even though it appears they are still on port 80. Problems: Users are

RE: Users cannot login when IIS 6.0 is used to redirect user tosecure J2EE apps on Tomcat 5.5.15

2007-05-30 Thread Peter Crowther
From: Brian Bitteker [mailto:[EMAIL PROTECTED] Suspicions: Possibly the redirection of the user with the isapi_redirect.dll is the issue. Credentials are not handed off from IIS to Tomcat. I assume (I didn't see you state, but may have misread) you're using IIS to authenticate against

Re: Tomcat does not start

2007-05-30 Thread domenico di leo
I have the same problem, I suppose the cause is JDk 1.6 indeed I use jdk 1.5 and Tomcat play well, On 30/05/07, Dell'oro Marco [EMAIL PROTECTED] wrote: Hi there, I'm having problems running Apache Tomcat 6 (But the same happens with Tomcat 5.0) on a Windows XP home computer with Sun JRE

RE: JDBC resource with custom connection pool factory

2007-05-30 Thread Propes, Barry L
do you mean like the amount of users per a pool connection instance? I think you're stuck with configuration inside the WEB-INF level per app. -Original Message- From: Sorin Juco [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 30, 2007 2:41 AM To: users@tomcat.apache.org Subject: JDBC

Can Two Host-s share one Context?

2007-05-30 Thread Brian Olson
I want to have one server serve a bunch of virtual hosts, and to have their web apps available as both www.mybigsharedserver.com/some_vhost_site/ www.some_vhost_site.com/ I'm able to make this happen by declaring two Host entries in server.xml with overlapping appBase and setting the root

RE: Can Two Host-s share one Context?

2007-05-30 Thread Caldarale, Charles R
From: Brian Olson [mailto:[EMAIL PROTECTED] Subject: Can Two Host-s share one Context? I'm able to make this happen by declaring two Host entries in server.xml with overlapping appBase That sounds a bit scary unless you inhibit war unpacking. Even then I'd be reluctant to do that. Is

Tomcat 6.0.13 port to a plain Netbeans project... WILD-CAT

2007-05-30 Thread Johnny Kewl
Hi guys... As promised, the Netbeans source version of Tomcat 6.0.13 server is on the site below. http://coolese.100free.com/ The Tomcat server port to a plain Netbeans project is called Wild-Cat. And yes, what I was trying to do works, not only can you place Tomcat (Wildcat) in debug and

JSPs with custom tags swallow exceptions

2007-05-30 Thread kempo bob
I have a JSP that uses several tags implemented as tag files (not classic custom tag handlers). I want all exceptions to bubble up and be displayed on the standard apache error page, but some exceptions are being swallowed silently, depending on where they occur relative to the tag being invoked.

Re: JSPs with custom tags swallow exceptions

2007-05-30 Thread David Delbecq
Showing error pages for tomcat means 1) set the current http status header to an error one (5xx,4xx,etc depending on error type) 2) send in body of response a html showing error This can *only* be done if no content has already been send to client (because of http specification). Th be sure your

Re: Tomcat does not start

2007-05-30 Thread John Weaver
i don't know if it will help, but have you tried reinstalling your jvm? On 31/05/07, domenico di leo [EMAIL PROTECTED] wrote: I have the same problem, I suppose the cause is JDk 1.6 indeed I use jdk 1.5 and Tomcat play well, On 30/05/07, Dell'oro Marco [EMAIL PROTECTED] wrote: Hi there, I'm

Re: Tomcat Netbeans Project... WildCat

2007-05-30 Thread Johnny Kewl
- Original Message - From: Mark Thomas [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, May 29, 2007 7:31 AM Subject: Re: Tomcat Netbeans Project... WildCat Johnny Kewl wrote: + One can dump the src into a Netbeans project, click compile and you have a

Re: Tomcat Netbeans Project... WildCat

2007-05-30 Thread Wendy Smoak
On 5/30/07, Johnny Kewl [EMAIL PROTECTED] wrote: Yes I did see this... problem I had was trying to figure out how the code goes into packages. That ant script pulls stuff out of jars, compiles little bits all over the place, and assembles other jars. I'm sure all with good reason, but it makes

Re: FarmWarDeployer

2007-05-30 Thread ben short
Hi, After reviewing the cluster-howto [1] I have noticed a few bits I have forgotten to configure. Namely # Make sure your web.xml has the distributable/ element or set at your Context distributable=true / # Make sure that jvmRoute attribute is set at your Engine Engine name=Catalina

Re: Anybody using GNU Java

2007-05-30 Thread Omar Eljumaily
Thanks Leon and everybody else who replied. My problem was that I was trying to run the pure .bin installer instead of the .bin that decompresses to an RPM and then install the RPM. The later works fine with no other dependencies necessary. Running the .bin installer may work under some

Re: Tomcat does not start

2007-05-30 Thread Len Popp
Sounds like it might be this problem: http://issues.apache.org/bugzilla/show_bug.cgi?id=41538 There are a couple of workarounds suggested there. -- Len On 5/30/07, Dell'oro Marco [EMAIL PROTECTED] wrote: Hi there, I'm having problems running Apache Tomcat 6 (But the same happens with Tomcat

passing Apache htpasswd authnetication to Tomcat

2007-05-30 Thread Patrick Ward
Currently we have Apache configured to do user authentication and Tomcat to run the java application. At this point, Apache is asking for authentication but the information is not being passed on to Tomcat. We are using the following versions: Server version: Apache/2.2.4 (Unix) Apache Tomcat

Re: passing Apache htpasswd authnetication to Tomcat

2007-05-30 Thread Martin Gainty
Good Evening Patrick- Look into implementing Java Authentication and Authorisation Service Realm (JAASRealm) by following the procedures outlined here http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#JAASRealm Feel free to contact me offline for any comments or questions HTH Martin--

Re: passing Apache htpasswd authnetication to Tomcat

2007-05-30 Thread David Smith
If you set tomcatAuthentication=false in your connector configuration for the AJP connector, the credentials will come through. It's set to true by default causing tomcat to ignore the REMOTE_USER header from Apache. --David Patrick Ward wrote: Currently we have Apache configured to do user

Re: JSPs with custom tags swallow exceptions

2007-05-30 Thread kempo bob
Apologies for my ignorance, but I'm new to custom tags and tag files (this is my first app using them). You reference the restriction that only if no content has already been sent to the client. Is there something different about how or when response content gets sent to the client in the

Re: Servlet and Random Access File

2007-05-30 Thread Teh Noranis Mohd Aris
I would like to refer to an example servlet where I can add fields (such as name, staff number, etc...) to a random access file and view the file information by accessing the field (eg. staff number). Please help. Thank you. Yours Sincerely, TEH David Smith [EMAIL PROTECTED] wrote:

RE: tomcat not loading log4j properties

2007-05-30 Thread mélanie langlois
Sorry, I found my mistake.. oups... in the log4j.properties, I put path like C:\Program Files\Tomcat 5.0\Tomcat_bireport\bin, but I need to put C:\\Program Files\\Tomcat 5.0\\Tomcat_bireport\\bin because of the way java read the \ As a result, all files were created under the bin