Re: [OT] JDBC problem: PreparedStatement.setTimestamp function ignores milliseconds in TOMCAT + ddbb Oracle

2007-08-07 Thread Jose Gargallo
This is the code: java.sql.Timestamp time = new Timestamp(System.currentTimeMillis()); ... pstmt = this.conexion.prepareStatement(INSERT); ... pstmt.setTimestamp(1, time); should I use java.sql.Date instead of java.util.Data? thanks Christopher Schultz escribió: -BEGIN PGP SIGNED MESSAGE--

AW: How to avoide delete context.xml - 6.0.14

2007-08-07 Thread hans.mader
Hi Hassan, I did exactly that way you described to me, but the 2nd deployment still dosn't work properly. Even a server restart does not make the context working again The only way that works (not always) is to delete the WAR file manually, wait until the webapp is undeployed and then place t

RE: Local String Problem

2007-08-07 Thread Caldarale, Charles R
> From: Fabbris Pierluigi [mailto:[EMAIL PROTECTED] > Subject: Local String Problem > > I've this Exception in the Log: > > 7-ago-2007 10.38.05 > org.apache.catalina.core.StandardWrapperValve invoke > GRAVE: Servlet.service() for servlet invoker threw exception > java.util.MissingResourceExcept

Re: Issues with mod_jk and escaped sequences in URLs (particularly %2F)

2007-08-07 Thread Mark Thomas
Christopher Swingler wrote: > Hi there list. > > We're experiencing an odd issue when a URL contains an escaped sequence, in > particular, the escaped sequence for forward slash (%2F). We have a servlet > defined in httpd.conf as such: Take a look at: - http://tomcat.apache.org/security-5.html

Re: InvocationTargetException when starting up Tomcat

2007-08-07 Thread Mark Thomas
Nagesh wrote: > Hi all, > I am installing Tomcat server on a machine that runs Unix but does not > have a graphical interface. I have unpacked the zip file > (jakarta-tomcat-5.0.28.zip) You'll do better with the .tar.gz disto on *nix. Mark ---

RE: Datasource Error

2007-08-07 Thread Will Holmes
Barry, I had no problems with the project when I was using Netbeans 5.5 as my IDE but I had to convert my project to work with Websphere development studio and that is when I encountered the error below. I believe the error is somewhere with my Tomcat setup. I thought maybe there might be some

ajp through ProxyPass is sending HTTP HEAD requests as HTTP GET to servlets.

2007-08-07 Thread Chad Scholes
I am using Apache 2.2.3 and Tomcat 5.0. I use ProxyPass to ajp to send Servlet requests from Apache to Tomcat and for some reason all HEAD requests are being sent to my servlets as GET requests. I probably don't have something setup correctly but I don't know what would affect the HEAD request

Issues with mod_jk and escaped sequences in URLs (particularly %2F)

2007-08-07 Thread Christopher Swingler
Hi there list. We're experiencing an odd issue when a URL contains an escaped sequence, in particular, the escaped sequence for forward slash (%2F). We have a servlet defined in httpd.conf as such: JkMount /search* worker1 If we look up "http://example.org/search/University+Of+Foo " it works

Re: JDBC problems

2007-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yazan, Yazan Jber wrote: > I'm having a concurrency problem that seems to be caused by the way > tomcat handles JDBC connections. I'm guessing it's the way your application handles connections, not Tomcat. > My problem happens in a database procedu

Re: Tomcat on Plesk

2007-08-07 Thread Clemens Eisserer
as far as I know this is not possible with Plesk. To be honest I had very ugly experiences with Plesk+Tomcat, I've to use it but I personally hate it, and it does not work very well. (Uploaded servlets take ages till they become "active", status report is wrong, non-existent logging in plesk itsel

Re: Access jsp from different context

2007-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Victor, Victor Huang wrote: > But I'm not quite sure if I understand the deployment method you described. > Can you explain it with bit more details? /me rolls eyes. > How do I access jsps in one app from another app? You don't. Instead, you deploy

Re: SSO session replication within TC 5.5.23 cluster

2007-08-07 Thread Filip Hanik - Dev Lists
you sure can, there is a single sign on valve, you would have to change the code for that one filip ROOKIE wrote: Hi Filip, I had posted earlier and u had confirmed that SSO replication is not complete. I would like to know if there is a way by which I can edit the SSO cookie generated by tom

Re: SSO session replication within TC 5.5.23 cluster

2007-08-07 Thread ROOKIE
Hi Filip, I had posted earlier and u had confirmed that SSO replication is not complete. I would like to know if there is a way by which I can edit the SSO cookie generated by tomcat to also contain jvmRoute (mentioned in Engine node in server.xml) so that my load balancer rewrites my SSO sessio

JDBC problems

2007-08-07 Thread Yazan Jber
I'm having a concurrency problem that seems to be caused by the way tomcat handles JDBC connections. My problem happens in a database procedure that is supposed to lock a cretin raw in the database, preventing any other call to the procedure from acuiring the same raw, but this behavior is only gua

Re: How to avoide delete context.xml - 6.0.14

2007-08-07 Thread Hassan Schroeder
On 8/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > you mean my /webbappname/META-INF/context.xml > > shuould look like: > > Yep. Given the odd log entries, if it were me I'd do a clean install of Tomcat, and then drop your WAR in with proper META-INF/context.xml and see what happens. Ther

RE: Datasource Error

2007-08-07 Thread Propes, Barry L
yeah that's all good and well but we still haven't seen what he originally put in his XML configurations have we? Will, please post the necessary xml code when you can. thanks. -Original Message- From: Manivannan Palanichamy [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 07, 2007 1:27

Re: Datasource Error

2007-08-07 Thread Manivannan Palanichamy
Set the connection url in database configuration xml file. Some thing like, url jdbc:mysql://localhost:3306/javatest?autoReconnect=true Refer to this page: http://tomcat.apache.org/tomcat-5.0-doc/jndi-datasource-examples-howto.html -- Manivannan.Palanichamy (@) Oracle.com http:/

RE: Access jsp from different context

2007-08-07 Thread Victor Huang
Thanks, Chris. But I'm not quite sure if I understand the deployment method you described. Can you explain it with bit more details? How do I access jsps in one app from another app? Regards, Victor -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tues

Re: Datasource Error

2007-08-07 Thread David Smith
It would be great to see more info on your setup including - Resource definition in server.xml - ResourceLink definition in your context.xml - resource-ref in web.xml - the source code of where you are attempting to get a connection. In short, this error is most likely cause because one or more

RE: Best practice application deployement

2007-08-07 Thread Gerhardus . Geldenhuis
> I'm always a fan of not doing anything you don't have to. > There's no question that you will increase the performance of > your application by disabling the auto-deployment features of > Tomcat. The difference may be undetectable, but it's a simple > change, requires virtually no testing,

AW: How to avoide delete context.xml - 6.0.14

2007-08-07 Thread hans.mader
Hi Hassan, you mean my /webbappname/META-INF/context.xml shuould look like: ... The server appBase within the is set to webapps. The Catalina/localhost/webappname.xml (xjosf.xml) is the same as in META-INF. The server puts it into automatically. Unfortunately I'm stopping and restarting t

Re: Access jsp from different context

2007-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Victor, Victor Huang wrote: > I have 3 web app running on Tomcat - > > 1.web application - mywebapp.war > 2.Component JSPs - mycomponent.war > 3.Web site JSPs - mywebsite.war Might I suggest a different deployment strategy? cd $DEPLO

Re: Best practice application deployement

2007-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gerhardus, [EMAIL PROTECTED] wrote: >> I have auto-deploy on for production, but I only have 1 >> webapp per Tomcat instance, so I'm pretty sure it's not >> working all that hard. I leave it on to simplify my >> deployment (don't have to copy META-

Re: Tomcat 5.5 unable to access 'deployed' webapp

2007-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, davewark wrote: > I see from the past postings that Linux permissions and web archive > deployment don't get on too well. I've tried following some of the advice in > other posts such as updating the policy files to grant all permissions and >

Re: SSO session replication within TC 5.5.23 cluster

2007-08-07 Thread Filip Hanik - Dev Lists
I'm not sure the replicated SSO cookie implementation ever was completed, I think it was abandoned before it reached a functional stage Filip ROOKIE wrote: Hi, I have a problem with tomcat cluster + mod_proxy load balancer : We have a main app which authenticate itself to a webapp and from th

Re: no autostart

2007-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 dwa, (Boy, nobody has a name, today...) dwa wrote: > so my path and global vars are correct -> or? > i want to start in runlevel2 and so ive a softlink in > /etc/rc2.d/S99catalina -> /opt/tomcat/bin What does /etc/rc2.d/S99catalina point to? You

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

2007-08-07 Thread Juergen Nickelsen
David Smith wrote: I have no doubt Tomcat: The Definitive Guide is very good although I would suspect it's targeted to the tomcat servlet container specifically rather than java servlets and jsp. At the point you are at, a book that targets java servlets and jsp is better than a book that targ

Re: Best practice application deployement

2007-08-07 Thread Leon Rosenberg
On the other hand you could disable on the fly compiling and hence checking for updates (tomcat checks if the jsp page has been changed and if there is a need to recompile it). Disabling this can get you some performance boost and reduce io. Of course it only matters if you really have traffic. le

Re: EL Expressions allowed with Tomcat 5.0.19

2007-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dimitrius, Dimitris Mouchritsas wrote: > Christopher Schultz wrote: >> You are adding the result of the ternary operator. The second >> parameter to the ternary operator is a double value (0.0). The >> third one is a String. > > Well shouldn't the res

RE: Best practice application deployement

2007-08-07 Thread Gerhardus . Geldenhuis
> > Why bother un-deploying and then shutting-down? A shutdown > undeploys all applications, first, anyway. I think you're > just complicating the process. We were just being paranoid. We were seeing issues before with tomcat serving the wrong version of an application even though we believed w

Re: Load testing, benchmarking, and tuning

2007-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 rhull, rhull wrote: >> Also, are you using apr? IF you are serving static content, apr should >> help a lot (but maybe not if you're planning on caching them in memory). >> Not sure if a memory cache is going to buy you that much. > > Sorry, I'm not

no autostart

2007-08-07 Thread dwa
Hey people, i have got a big!! problem... configure os: Gnu/Linux -> debian tomcat: 6.0.x I can start my tomcat only an root AFTER i am logged! so my path and global vars are correct -> or? i want to start in runlevel2 and so ive a softlink in /etc/rc2.d/S99catalina -> /opt/tomcat/bin but af

RE: Datasource Error

2007-08-07 Thread Propes, Barry L
we might could stand to see more of the code...or I could at least. -Original Message- From: Will Holmes [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 07, 2007 10:33 AM To: users@tomcat.apache.org Cc: [EMAIL PROTECTED] Subject: Datasource Error I am using Tomcat 5.5.9 on Windows XP I

Tomcat 5.5 unable to access 'deployed' webapp

2007-08-07 Thread davewark
I see from the past postings that Linux permissions and web archive deployment don't get on too well. I've tried following some of the advice in other posts such as updating the policy files to grant all permissions and changing permissions of some file systems directly, but I still seem to have n

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

2007-08-07 Thread David Smith
I have no doubt Tomcat: The Definitive Guide is very good although I would suspect it's targeted to the tomcat servlet container specifically rather than java servlets and jsp. At the point you are at, a book that targets java servlets and jsp is better than a book that target's tomcat. And w

Re: cookies

2007-08-07 Thread tony . chamberlain
Before, I was noticing the cookie getting set when I did Edit->Preferences. Later I did not, and I noticed my machine was blocked from setting cookies. I removed the block, tried again and later it was blocked again. I was originally removing the cookie and maybe that made Firefox think I wanted t

Datasource Error

2007-08-07 Thread Will Holmes
I am using Tomcat 5.5.9 on Windows XP I have created a resouce in the Tomcat server.xml file. I have configured the resource ref in the web.xml file. When my application access the datasource I get the following error: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of c

Access jsp from different context

2007-08-07 Thread Victor Huang
I have 3 web app running on Tomcat - 1. web application - mywebapp.war 2. Component JSPs - mycomponent.war 3. Web site JSPs - mywebsite.war I have deployed above 3 app into Tomcat without any error. However what I couldn't figure out is - how can I access JSPs from #2 app

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... Che

Re: EL Expressions allowed with Tomcat 5.0.19

2007-08-07 Thread Dimitris Mouchritsas
Christopher Schultz wrote: > Dimitris, > > Dimitris Mouchritsas wrote: > > > > ${ table_data.package_price + > > ( road_assistance_2year == '-' ? 0.0 : road_assistance_2year ) + > > ( comp_offer_data.hasInsurance ? table_data.insuranceValue : 0.0 ) } > > > > > and in Tomcat 6.0.13 it works

Re: Load testing, benchmarking, and tuning

2007-08-07 Thread rhull
>>I'm running on a 1.5mb download/256kb upload cable connection. > >Is that the advertised rate, or the measured rate? Yes. :-) It's how it's advertised, and I ran a couple online bandwidth tests to check it. >Are you just serving static content? What about the POSTs? The content will be up

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: How to avoide delete context.xml - 6.0.14

2007-08-07 Thread Hassan Schroeder
On 8/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I am wondering about the > < > Missing application web.xml, ... > I played with the context's docBase attribute, but with no success. > (this context.xml placed in META-INF contains no docBase) It shouldn't, nor should you have the path a

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 investmen

Re: [OT] JDBC problem: PreparedStatement.setTimestamp function ignores milliseconds in TOMCAT + ddbb Oracle

2007-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Barry, Propes, Barry L wrote: > and what date type are you using? sql.date or util.date? I'm pretty sure that's going to be the problem. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http

Re: tomcat 5.5.23 CAN have context path different from war name.

2007-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 lmk, lmk wrote: > [Is there a way] to set the context path [to something other than] the > application name[?] Yes. This has been discussed several times on the list. > i set the context into the META-INF directory, tomcat copied this the > contaxt

Re: EL Expressions allowed with Tomcat 5.0.19

2007-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dimitris, Dimitris Mouchritsas wrote: > > ${ table_data.package_price + > ( road_assistance_2year == '-' ? 0.0 : road_assistance_2year ) + > ( comp_offer_data.hasInsurance ? table_data.insuranceValue : 0.0 ) } > > > and in Tomcat 6.0.13 it wo

Tomcat on Plesk

2007-08-07 Thread Mark Benussi
I've installed Tomcat on port 9080 (SSL 9443) on a box running Plesk. What do I have to do to get requests on the box forwarded from 80 and 443 on to Tomcat 9080 and 9443. I am normally happy to play but this is a production box and the administrators have little knowledge outside of Plesk stan

RE: [OT] JDBC problem: PreparedStatement.setTimestamp function ignores milliseconds in TOMCAT + ddbb Oracle

2007-08-07 Thread Propes, Barry L
and what date type are you using? sql.date or util.date? -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 07, 2007 8:55 AM To: Tomcat Users List Subject: Re: [OT] JDBC problem: PreparedStatement.setTimestamp function ignores milliseconds in TOMCA

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

2007-08-07 Thread Juergen Nickelsen
David Smith wrote: I have to tell you guy, true nightmares exist in answering questions from people who obviously haven't made any attempt at learning the technology before throwing stuff together and asking questions. Please do us a favor and get a recently written book on tomcat. What bo

Re: Load testing, benchmarking, and tuning

2007-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 rhull, rhull wrote: >> Are you bottlenecked on your internet bandwidth? Are you bottlenecked >> on latency, if you're not re-using HTTP connections? > > I can't find any reason to believe I am. I'm running on a 1.5mb > download/256mb upload cable c

Re: Load testing, benchmarking, and tuning

2007-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 rhull, rhull wrote: > I've got Tomcat (5.0) running on Linux with JVM 1.5.0_12, with a pretty thin > servlet. I'm fairly new to benchmarking/load testing with Tomcat, and some > of my numbers seem odd. They always do when you get started ;) > Load

Re: Log4j

2007-08-07 Thread Andrew Hole
Well, I don't have properties in xml ... I've log4j.properties file... On 8/7/07, Gregor Schneider <[EMAIL PROTECTED]> wrote: > > Forgot to mention: > > ou can leave the part > > > > > > > > > > > > since this is a logger that is only needed from one of our centra

Re: Log4j

2007-08-07 Thread Gregor Schneider
Forgot to mention: ou can leave the part since this is a logger that is only needed from one of our central libraries. Cheers Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http

Re: Best practice application deployement

2007-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gerhardus, [EMAIL PROTECTED] wrote: > If the jsp gets compiled once after the war files get deployed then I would > be willing for the server to be a bit less responsive for the 2 minutes or > so that it takes for the application to deploy. The probl

Should classloader at handler stage find jars in the service's WEB-INF/lib ?

2007-08-07 Thread Karen Loughran
Hi all, My web service code makes a call to a service which returns a SAML assertion (serialised with XStream) and this works fine. However, if I move this call to my security handler code (WSCredentialReceiver extended from wss4j) configured in requestFlow within the server-config.wsdd (of th

Re: Log4j

2007-08-07 Thread Gregor Schneider
use a filter, see example below: http://jakarta.apache.org/log4j/";>

Re: Local String Problem

2007-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fabbris, Buon Giorno. Vista sotto, per favore. ;) Fabbris Pierluigi wrote: > java.util.MissingResourceException: Can't find bundle for base name > LocalStrings, locale it_IT [snip] > ResourceBundle rb = > ResourceBundle.getBundle("L

Re: InvocationTargetException when starting up Tomcat

2007-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nagash, Nagesh wrote: > I have unpacked the zip file > (jakarta-tomcat-5.0.28.zip) and trying to start the server with the > script below. Why aren't you using the script that comes with Tomcat? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG

Re: Best practice application deployement

2007-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gerhardus, [EMAIL PROTECTED] wrote: >> Ouch. Why do you delete the application before you stop >> Tomcat? I would stop Tomcat and then delete the files. > > We delete the war file before stopping tomcat to give Tomcat a chance to > auto-undeploy the

Re: [OT] JDBC problem: PreparedStatement.setTimestamp function ignores milliseconds in TOMCAT + ddbb Oracle

2007-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jose, I marked this as off-topic because it doesn't have anything to do with Tomcat. Tomcat doesn't do anything to your SQL queries, etc. See below. Jose Gargallo wrote: > I have a J2EE application that runs in Oracle and Postgres databases > and OC4

Re: tomcat 5.5.23 can't have context path different from war name.

2007-08-07 Thread lmk
thanks David.it's well deployed now.. you are the best !! David Smith-2 wrote: > > Store the webapp outside the webapps directory, rename > CATALINA_HOME/conf/Enginename/HostName/app_name.xml to newAppName.xml > and add a docBase attribute to it pointing the way to the webapp's new > locat

Re: tomcat5.5 and mysql5 permission problem on Ubuntu 7.04 (Fiesty)

2007-08-07 Thread Stephen Pegg
My 50user.policy currently shows... grant codeBase "file:/var/lib/tomcat5.5/webapps/DBTest/-" { //permission java.net.SocketPermission "localhost", "resolve"; //permission java.net.SocketPermission "127.0.0.1:3306", "connect"; permission java.security.AllPermission; }; grant c

Re: tomcat 5.5.23 can't have context path different from war name.

2007-08-07 Thread David Smith
Store the webapp outside the webapps directory, rename CATALINA_HOME/conf/Enginename/HostName/app_name.xml to newAppName.xml and add a docBase attribute to it pointing the way to the webapp's new location. --David lmk wrote: hellooo, do you have any solution to set the context path didffe

Log4j

2007-08-07 Thread Andrew Hole
*Could you tell me how to create different log files for different levels? *log4j.appender.A1=org.apache.log4j.FileAppender log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %log4j.appender.A1.Threshold=DEBUG log4j.appender.A1

RE: Tomcat clearing conf/Catalina/localhost/ROOT.xml

2007-08-07 Thread Mark Benussi
Still here Leon :) (I used to be on this list years ago) All sorted. I had a context entry under my host in the server.xml which was causing the ROOT.xml to be re-written every time. skype:mark_benussi?add -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: 07 Augus

Re: tomcat5.5 and mysql5 permission problem on Ubuntu 7.04 (Fiesty)

2007-08-07 Thread David Smith
So what does your 50user.policy show now? What you posted below grants all permissions to both your webapp and the mysql driver jar file. --David Stephen Pegg wrote: David, I can verify that the 50user.policy file is sufficient for making the catalina.policy. In the Ubuntu install there are

tomcat 5.5.23 can't have context path different from war name.

2007-08-07 Thread lmk
hellooo, do you have any solution to set the context path didfferent from the application name, i set the context into the META-INF directory, tomcat copied this the contaxt into CATALINA_HOME/conf/Enginename/HostName/app_name.xml. but the /mycontextpath is not deployed..I still have the /app_n

RE: Load testing, benchmarking, and tuning

2007-08-07 Thread Peter Crowther
> From: rhull [mailto:[EMAIL PROTECTED] > I can't find any reason to believe I am. I'm running on a 1.5mb > download/256mb upload cable connection. The Linux box is on > similar. The > requests are fairly short HTTP POST request (couple hundred > bytes), and the > responses from the servlet a

EL Expressions allowed with Tomcat 5.0.19

2007-08-07 Thread Dimitris Mouchritsas
Hi everyone. I'm testing this code: ${ table_data.package_price + ( road_assistance_2year == '-' ? 0.0 : road_assistance_2year ) + ( comp_offer_data.hasInsurance ? table_data.insuranceValue : 0.0 ) } and in Tomcat 6.0.13 it works fine. However in Tomcat 5.0.19 the page stops proccessing a

Re: Tomcat clearing conf/Catalina/localhost/ROOT.xml

2007-08-07 Thread Leon Rosenberg
put a context.xml (with same content) into the META_INF folder of your ROOT folder / war instead. regards leon On 8/7/07, Mark Benussi <[EMAIL PROTECTED]> wrote: > I am running Tomcat and everytime I restart the web application it keeps on > clearing my ROOT.xml file back to its initial state (Ve

RE: Load testing, benchmarking, and tuning

2007-08-07 Thread rhull
>Are you bottlenecked on your internet bandwidth? Are you bottlenecked >on latency, if you're not re-using HTTP connections? I can't find any reason to believe I am. I'm running on a 1.5mb download/256mb upload cable connection. The Linux box is on similar. The requests are fairly short HTTP

Re: mod_jk seems to be giving up with no errors

2007-08-07 Thread Charlie Williams
Rainer, Thanks for the reply! I am on Linux enterprise version 4.4. I will give the timeouts + upgrading a try. If I am still having problems I'll reply again. -Charlie On 8/7/07, Rainer Jung <[EMAIL PROTECTED]> wrote: > > Hi Charlie, > > I don't know what your platform is. > > Version 1.2.14 is

Re: tomcat5.5 and mysql5 permission problem on Ubuntu 7.04 (Fiesty)

2007-08-07 Thread Stephen Pegg
David, I can verify that the 50user.policy file is sufficient for making the catalina.policy. In the Ubuntu install there are 5 seperate .policy files that form the catalina.policy file. The catalina.policy file is uneditable as any changes made are overwritten by the 5 seperate files. One update

Re: tomcat5.5 and mysql5 permission problem on Ubuntu 7.04 (Fiesty)

2007-08-07 Thread David Smith
The problem is most definitely in the security manager configuration. I'm not familiar with 50user.policy though -- this must be a Ubuntu thing. Can you verify this is really the security policy config file tomcat is using? The policy settings I see toward the bottom looks good on the suface

RE: Load testing, benchmarking, and tuning

2007-08-07 Thread Peter Crowther
> From: rhull [mailto:[EMAIL PROTECTED] > Load testing with WAPT from a Windows box across the internet > to Tomcat > running on the Linux machine, I'm only seeing something around 15 > transactions per second. This seems like an unlikely low > number to me. Are you bottlenecked on your intern

Tomcat + Apache log files information

2007-08-07 Thread John_crfpk
Hello can some one help me by telling what these logs are meant for in Tomcat and Apache servers. Tomcat admin.2007-08-02.log catalina.2007-08-02.log manager.2007-08-03.log localhost.2007-08-03.log host-manager.2007-08-03.log Apache mod_jk.log export.log error.log.1186358400

Load testing, benchmarking, and tuning

2007-08-07 Thread rhull
Hi, I'm new to the forum, and I'm a little new to Tomcat load testing/benchmarking. I've done some searching on the 'net, but I haven't been able to turn up anything useful that addresses my issues. I'm hoping somebody could provide some helpful thoughts. I've got Tomcat (5.0) running on Linu

Tomcat clearing conf/Catalina/localhost/ROOT.xml

2007-08-07 Thread Mark Benussi
I am running Tomcat and everytime I restart the web application it keeps on clearing my ROOT.xml file back to its initial state (Very sparse). So I keep on losing my environment variables and Resources... Any thoughts? With regards, Mark Benussi, IBT Services [EMAIL PROTECTED] Tel +44 870

RE: Best practice application deployement

2007-08-07 Thread Gerhardus . Geldenhuis
Hi Leon, If the jsp gets compiled once after the war files get deployed then I would be willing for the server to be a bit less responsive for the 2 minutes or so that it takes for the application to deploy. Assuming that you would deploy by copying files, copying one war file for me is simpler

Re: SSO session replication within TC 5.5.23 cluster

2007-08-07 Thread ROOKIE
Hi, I have a problem with tomcat cluster + mod_proxy load balancer : We have a main app which authenticate itself to a webapp and from this app one can launch embedded apps which use the SSO cookie to access other webapps on the server (Single-Sign-On for the user). Things are working perfectly

Re: Best practice application deployement

2007-08-07 Thread Leon Rosenberg
I concluded that from statements from Remy on different occasions; Jason Brittain also mentions it in his new book, and finally our production experience tells us that its better to. Unless you want your server to be busy compiling jsps instead of serving requests some time after start :-) regards

tomcat5.5 and mysql5 permission problem on Ubuntu 7.04 (Fiesty)

2007-08-07 Thread Stephen Pegg
I am having a very bad time trying to get a webapp to connect to a MySQL database. I am using tomcat 5.5 and mysql 5 on a Ubuntu Server 7.04 (Fiesty Fawn) As far as i am aware i have set everything up okay and the webapp does actually try and connect to the database. However, it doesn't! See trac

tomcat5.5 and mysql5 permission problem on Ubuntu 7.04 (Fiesty)

2007-08-07 Thread Stephen Pegg
I am having a very bad time trying to get a webapp to connect to a MySQL database. I am using tomcat 5.5 and mysql 5 on a Ubuntu Server 7.04 (Fiesty Fawn) As far as i am aware i have set everything up okay and the webapp does actually try and connect to the database. However, it doesn't! See trac

Re: Local String Problem

2007-08-07 Thread Martin Uhlir
Hi, I think you have the LocalStrings.properties file in the default package, haven't you?? Try to put it into a package (for example: com.mypackage) and than modify ResourceBundle.getBundle("com.mypackage.LocalStrings",request.getLocale()); It could help. Martin Uhlir Fabbris Pierluigi

RE: Best practice application deployement

2007-08-07 Thread Gerhardus . Geldenhuis
Hi Leon, > -Original Message- > From: Leon Rosenberg [mailto:[EMAIL PROTECTED] > Sent: 07 August 2007 09:40 > To: Tomcat Users List > Subject: Re: Best practice application deployement > > just a side note, the recommended deployment for production > environment isn't a war file. inste

Local String Problem

2007-08-07 Thread Fabbris Pierluigi
Hello, I've this Exception in the Log: 7-ago-2007 10.38.05 org.apache.catalina.core.StandardWrapperValve invoke GRAVE: Servlet.service() for servlet invoker threw exception java.util.MissingResourceException: Can't find bundle for base name LocalStrings, locale it_IT at java.util.ResourceBundl

Re: Best practice application deployement

2007-08-07 Thread Leon Rosenberg
just a side note, the recommended deployment for production environment isn't a war file. instead put the webapp folder directly under webapps (or whenever your docroot directory is) AND put precompiled jsps under work. regards Leon On 8/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi > A

Re: Mathematical Editor for textarea in JSP page.

2007-08-07 Thread Girish Havaldar
Ya do u know any? GS On 07/08/07, Propes, Barry L <[EMAIL PROTECTED]> wrote: > > an equation editor, I believe is what he was looking for, correct? > > -Original Message- > From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Sent: Monday, August 06, 2007 4:23 PM > To: Tomcat Users List >

Re-Deployment Problem - 6.0.14

2007-08-07 Thread hans.mader
Hi all, I am not able to redeploy an application. I used the deployment manager ANT tasks, or simply filecopy to /webapps. I opened a thread before called "How to avoide delete context.xml - 6.0.14" but this behaviour looks like standard, I guess. The first deployment always works pretty fine, t

Re: mod_jk seems to be giving up with no errors

2007-08-07 Thread Rainer Jung
Hi Charlie, I don't know what your platform is. Version 1.2.14 is pretty outdated, we are close to 1.2.25. If it is urgent I would suggest you update to 1.2.23 (1.2.24 had to be withdrawn), it it can wait a few days, you could also use 1.2.25 which should be available in a few days. Indepen

RE: Best practice application deployement

2007-08-07 Thread Gerhardus . Geldenhuis
Hi Christopher, > > Ouch. Why do you delete the application before you stop > Tomcat? I would stop Tomcat and then delete the files. We delete the war file before stopping tomcat to give Tomcat a chance to auto-undeploy the application automatically. I just read last night that auto-deploy/und

InvocationTargetException when starting up Tomcat

2007-08-07 Thread Nagesh
Hi all, I am installing Tomcat server on a machine that runs Unix but does not have a graphical interface. I have unpacked the zip file (jakarta-tomcat-5.0.28.zip) and trying to start the server with the script below. The startup always fails with the following message in STDERR. Can someone p