Re: Tomcat - Hibernate

2006-03-02 Thread Nikola Milutinovic
--- Giorgio Clavelli <[EMAIL PROTECTED]> wrote: > Hi, > I'm not an exper at all, but I try to put my 2 cents. > The fact that your app can connect successfully after the server restart, > suggests that you should have your app's context.xml (or whatever it is > called) not in the server.xml but

is mod_jk status manager available in linux shell?

2006-03-02 Thread Jakub Straszewski
hi, I would like to know whether there is some other way to get the information avaiable on jkmanager page(other than in browser). I would love to be able to receive this information in linux shell. thx for any help Kuba Straszewski Na specj

RE: Tomcat - Hibernate

2006-03-02 Thread Tim Lucia
You want ENGINE_NAME in there too, i.e.: ${CATALINA_HOME}/conf/${ENGINE_NAME}/${HOSTNAME}/${CONTEXT_NAME}.xml or, for example (spaces delineate variables above, don't really use them), /usr/local/tomcat /conf /Catalina /localhost /ROOT.xml ==> http://localhost:8080/ /usr/local/tomcat /conf /Cat

Re: Cannot create JDBC driver of class '' for connect URL 'null'

2006-03-02 Thread David Smith
I've done several developments with MySQL and Tomcat. Never defined the datasource in the element so I can't speak to how that should work. The error is usually the result of a configuration element out of place between where the element is declared and your java code. The config looks good t

Re: WHY TOMCAT MEMORY FROM 1G TO 15M IN 10 MINUTES

2006-03-02 Thread Filip Hanik - Dev Lists
I would consider 15M pretty low. If the memory drops,what problem are you having? Sounds like it would be worse going the other way. jiang ying wrote: > Hi. When I run the TPCW bookstore application, I found the server > behave erratic. Experiment enviroment: Hardware: a client PC, two > server P

Re: how to find out who is logging in?

2006-03-02 Thread Leon Rosenberg
This is doable, but you have to do it by yourself. If you want it on the client side (in John's browser) just let your webapp set a cookie. If you need it on the server side, your webapp has to perform it's own session management. If you have to write this solution by yourself you'll end up with ap

Re: WHY TOMCAT MEMORY FROM 1G TO 15M IN 10 MINUTES

2006-03-02 Thread David Delbecq
JAVA_OPTS='-Xms256m -Xmx256m' <-- your tomcat memory should never reach 1G with this parameter! the tomcat memory drops severly from 1G to 15M <-- do you mean tomcat memory usage or tomcat free memory? jiang ying a écrit : > Hi. When I run the TPCW bookstore application, I found the server > behav

worker mapping problem

2006-03-02 Thread dario
i have two tomcats and IIS, i want two virtual hosts served by two tomcats. i declared two wrokers, one for each tomcat, and thats fine. however i have problem with mappings uriworkermap.properties /app1/*=worker1 /app1=worker1 /*=worker2 this is what i get from log Attempting to map URI '/mysi

RE: Tomcat - Hibernate

2006-03-02 Thread Lucas Bee
Thanks to both who responded to my question. I will work on creating the xml fragment and get back with you on the results. The information you provided was very helpful and is pointing me in the right direction. -Lucas -Original Message- From: Nikola Milutinovic [mailto:[EMAIL PROTECT

httpd.conf equivalent options in Tomcat's xml config files

2006-03-02 Thread Robert Kudyba
We ran a vulnerability assessment (results follow below) and here are 2 issues that popped up, and the results suggest changing directives from the httpd.conf file, which of course we don't have. What Tomcat equivalent options in the XML config file(s) are needed to be set to fix these? "The Mac

Re: jdbc tomcat

2006-03-02 Thread Bob_Savard
Hi. I'm using Tomcat 5.5.9 and MySQL 5.0.17 and here's what my relavent file sections look like (I've chaned the real app name to "foo", so notice where "foo" occurs): Note that you're missing the "name" and "factory" attributes, but I suspect "name" is more the culprit. In my WEB-INF/web.xml

Re: httpd.conf equivalent options in Tomcat's xml config files

2006-03-02 Thread Filip Hanik - Dev Lists
re: .DS_Store couple of ways I can think of doing it. 1. Protect it using web.xml (security) with the a matching URL pattern 2. Write a simple filter that checks the URL, and returns the error Filip Robert Kudyba wrote: We ran a vulnerability assessment (results follow below) and here are 2 i

ClassLoader IllegalStateException

2006-03-02 Thread Matteo Barbieri
Hi, I have a web application that uses Tomcat 5.5.15, MySQL, Torque and ZK (a XUL/Ajax library). If I use this application with one client all works well, but when I try to use another client I got this exception: 2-mar-2006 16.14.00 org.apache.catalina.loader.WebappClassLoader loadClass INFO: Il

Re: ClassLoader IllegalStateException

2006-03-02 Thread Matteo Barbieri
Sorry, the correct exception is: 2-mar-2006 16.14.00 org.apache.catalina.loader.WebappClassLoader loadClass INFO: Illegal access: this web application instance has been stopped already. Could not load java.net.BindException. The eventual following stack trace is caused by an error thrown for de

Re: ClassLoader IllegalStateException

2006-03-02 Thread Filip Hanik - Dev Lists
what is a "client"? browser? if the webapp has stopped, or is stopping, that means that the .war file or WEB-INF/web.xml timestamp changed, and the webapp might be reloading. more info would be needed for further analysis Filip Matteo Barbieri wrote: Hi, I have a web application that uses Tom

Re: ClassLoader IllegalStateException

2006-03-02 Thread Matteo Barbieri
Filip Hanik - Dev Lists ha scritto: > what is a "client"? browser? > Yes, browser. > if the webapp has stopped, or is stopping, that means that the .war > file or WEB-INF/web.xml timestamp changed, and the webapp might be > reloading. > more info would be needed for further analysis > Filip the

Re: ClassLoader IllegalStateException

2006-03-02 Thread Filip Hanik - Dev Lists
ok, there could be plenty of things. but basically this is what is happening: one of your JDBC connections is being garbage collected. When this happens, it tries to close itself and in doing so, it needs to load a class. But the webapp is in a state where it has stopped (either been stopped, o

Re: Sad: Tomcat 5.5.x crashes almost every single day.

2006-03-02 Thread Jeanfrancois Arcand
Remy Maucherat wrote: On 2/28/06, Peter Lin <[EMAIL PROTECTED]> wrote: honestly, besides Weblogic, most servlet and ejb containers do not provide simple and clear instructions for tracing issues. With websphere, you have to buy an expensive license of WASD and even then debugging an issue won

double cluster in one server.xml?

2006-03-02 Thread Ronald Klop
Hello, I have this in my server.xml. This seems to work. The sessions aren't mixed up between de hosts. Is this supported behaviour? Or is there a change the sessions wil mix up? Ronald.

Re: ClassLoader IllegalStateException

2006-03-02 Thread Filip Hanik - Dev Lists
1. where in the tomcat directory structure is the mysql jdbc driver JAR file stored? 2. when does this happen? all the time? or as soon as you have more than one browser connect? 3. are you using a connectionpool? 4. how are you closing your connections? Matteo Barbieri wrote: Filip Hanik -

Re: ClassLoader IllegalStateException

2006-03-02 Thread Matteo Barbieri
Filip Hanik - Dev Lists ha scritto: > 1. where in the tomcat directory structure is the mysql jdbc driver > JAR file stored? webapps/my-application/WEB-INF/lib/mysql-connector-java-3.1.12-bin.jar > > 2. when does this happen? all the time? or as soon as you have more > than one browser connect?

Re: double cluster in one server.xml?

2006-03-02 Thread Filip Hanik - Dev Lists
I'm gonna let Peter Rossbach give you the final answer since he developed the "simple"config concept. My guess is yes, if your hosts have webapps with the same names, they will most likely get mixed up. my suggestion to try would be className="org.apache.catalina.cluster.tcp.Si

Re: Executing Manager Commands With Ant and SSL

2006-03-02 Thread Brian Munroe
On 3/1/06, ash ag <[EMAIL PROTECTED]> wrote: > BUILD FAILED > /opt/Ant/apache-ant-1.6.1/build.xml:47: javax.net.ssl.SSLHandshakeException: > sun.security.validator.ValidatorException : No trusted certificate found > Total time: 0 seconds > > How can i configure the certificate in this case. > Are

Form login UTF-8 username problem

2006-03-02 Thread Dave
Web application using JBoss 4.0.3SP1 and servlets. I am using FORM authentication. Can username be UTF-8? I create an account, its username is in UTF-8 encoding, chinese characters. But login was not successful. Can JBoss built-in authentication handle UTF-8 encoding for username? Ascii usern

Re: Form login UTF-8 username problem

2006-03-02 Thread Martin Gainty
Dave- I believe you can effect this encoding if you specify encoding="UTF-8" in the xml element e.g. I am not aware of CJK implementations that use UTF-8 ..you may want to consider UTF-16 Scott does this look ok? HTH, Martin- - Original Message - From: "Dave" <[EMAIL PROTECTED]> To:

JNDI Datasourse Best Practice

2006-03-02 Thread James Reynolds
I'm happy to report that this newbie successfully set up a JNDI Datasource . I now have a question about the best way to create connections in my web application. Previously, I used this class in other beans in order to create and access connections: public class dbConnection { private stati

Re: Form login UTF-8 username problem

2006-03-02 Thread Dave
Hi Martin, Thanks! I already have the following at the beginning of all the jsp pages. <%@ page contentType="text/html; charset=UTF-8"%> Martin Gainty <[EMAIL PROTECTED]> wrote: Dave- I believe you can effect this encoding if you specify encoding="UTF-8" in the xml eleme

DefaultContext problems

2006-03-02 Thread Evan Kirkconnell
Hello all, I've been struggling to setup a datasource that is accessible from all my webapps. As I understand it, I define a (/Server/GlobalNamingResources/Resource) and then a link it in a (/Server/Engine/Host/DefaultContext) like so: type="javax.sql

Problems with extracting beans from a JavaServer Page

2006-03-02 Thread Mark Whitby
Hey all, This may seem like a really dense question so apologies if it is but I have the following code on a jsp page:        vs    , kick off. Allocated Tickets:  To choose to buy tickets for this match, click on the button below which will take y

RE: [SPAM] - Problems with extracting beans from a JavaServer Page - Bayesian Filter detected spam

2006-03-02 Thread Day, Ron
If I have followed your code fragments correctly, it looks like your bean is in request scope and it will go away between requests. Ron Day Senior Developer e-Rewards, Inc. 8401 N. Central Expressway, Suite 900 Dallas, TX 75225 Voice: 214.782.2834 Fax: 214.782.2900 -Original Message- Fro

Re: - Problems with extracting beans from a JavaServer Page

2006-03-02 Thread Mark Whitby
Thanks for the reply Ron So what you're saying is that once the page has loaded the bean, it discards it? Which means I can send a bean from a servlet to a page but I can't extract a bean from a page? Is that correct based on my code? So what I'm thinking now is to store the bean in the ses

tomcat stops responding (err=-104)

2006-03-02 Thread philippe lonchampt
Hi everybody, I've got a problem with tomcat since a week. It seems to be related to the traffic, which is more important than usual these days. Tomcat stops responding, wile the tomcat process is still running. Restaring tomcat+apache makes everything working fine. version information :

RE: - Problems with extracting beans from a JavaServer Page

2006-03-02 Thread Day, Ron
Yes, if I interpreted your code correctly. The "scope" attribute determines where the bean is stored, i.e. in what object. Ron Day Senior Developer e-Rewards, Inc. 8401 N. Central Expressway, Suite 900 Dallas, TX 75225 Voice: 214.782.2834 Fax: 214.782.2900 -Original Message- From: Mark

Re: - Problems with extracting beans from a JavaServer Page

2006-03-02 Thread Mark Whitby
Thanks Ron, I've now changed it to store the item both in the session and the request and this has done the trick. I store it in the request for the jsp page and in the httpsession for the following bean. Or is this inefficient? Mark - Original Message - From: "Day, Ron" <[EMAIL P

RE: - Problems with extracting beans from a JavaServer Page

2006-03-02 Thread Day, Ron
Store it in session and when you are done with it, remove it with session.removeAttribute("name of bean") Ron Day Senior Developer e-Rewards, Inc. 8401 N. Central Expressway, Suite 900 Dallas, TX 75225 Voice: 214.782.2834 Fax: 214.782.2900 -Original Message- From: Mark Whitby [mailto:[EM

mod_jk errors - are these normal?

2006-03-02 Thread michael thomas
If our setup was completely stable, and configured perfectly, should there be NO mod_jk errors ever? Or, are some errors part of normal operation? The system seems to work fine from a user's perspective, but we still occasionally get these: [Wed Mar 01 20:00:42 2006] [error] ajp_connection_tcp_g

RE: Tomcat - Hibernate

2006-03-02 Thread Lucas Bee
Hello, I think we are getting very close I just need clarification on a few things. First off I made the changes of taking out the Context setting in the server.xml and created a context.xml file and put it into the META-INF directory of my application. (Side note: I think this is a lot easier and

"Response already committed" when redirecting from error page?

2006-03-02 Thread David C. Schweisguth
Hi all, I'm using Apache 2.something, mod_jk and Tomcat 5.5.15. mod_jk sends all requests to Tomcat, so Tomcat needs to handle requests for nonexistent paths. Our application handles requests to more than one hostname, and the error response depends on the host to which the request was sent. O

Optimizing tomcat

2006-03-02 Thread Alex Jalali
Hello, I have the following setup. Java jdk 1.4.2 tomcat 5.0.19 Apache 2.0 mod_jk 2.0 ok there are 3 instances of tomcat and one of them with 4 webapps contexts. and 3 large applications that are used a lot. And I do some preloading of some data from database into objects at start up... About e

DataSourceRealm Configuration Question (5.5.15)

2006-03-02 Thread James Reynolds
Can a JNDI DataSourceRealm be defined in my web app's context.xml file, or must it be in the container's server.xml file? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: DataSourceRealm Configuration Question (5.5.15)

2006-03-02 Thread Alex Jalali
It can be in the context. I have mine within the > Can a JNDI DataSourceRealm be defined in my web app's context.xml file, > or must it be in the container's server.xml file? > > Thanks > > > - > To unsubscribe, e-mail: [EMAIL PRO

Re: mod_jk errors - are these normal?

2006-03-02 Thread Sven Köhler
> The system seems to work fine from a user's > perspective, but we still occasionally get these: > > [Wed Mar 01 20:00:42 2006] [error] > ajp_connection_tcp_get_message::jk_ajp_common.c (961): > Can't receive the response message from tomcat, > network problems or tomcat is down (10.0.0.9:8009),

RE: Tomcat - Hibernate

2006-03-02 Thread Klotz Jr, Dennis
I'm jumping in the middle here so forgive me if this has already been covered. If you notice that your context.xml is not being deployed from your own META-INF directory, try putting the following in your server.xml : The deployXML="true" is the important part. I'm not certain if that defaults

RE: Tomcat - Hibernate

2006-03-02 Thread Tim Lucia
If deploying a war, then the correct place to put the context, regardless of the war name is in the war, under META-INF/context.xml. Tomcat should then create the deployment descriptor named according to the war (except .xml) for you. You would not supply the context file separately in this case.

RE: DataSourceRealm Configuration Question (5.5.15)

2006-03-02 Thread Tim Lucia
It can be either. The recommended way, 5.0 and later, is in the war's context.xml. If you have a global resource, that is defined in server.xml, and referenced from each context wishing to make use of it. Tim -Original Message- From: Alex Jalali [mailto:[EMAIL PROTECTED] Sent: Thursda

Re: mod_jk errors - are these normal?

2006-03-02 Thread michael thomas
--- Sven K�hler <[EMAIL PROTECTED]> wrote: > > [Wed Mar 01 20:00:42 2006] [error] > > ajp_connection_tcp_get_message::jk_ajp_common.c > (961): > > Can't receive the response message from tomcat, > > network problems or tomcat is down > (10.0.0.9:8009), > > err=-113 > > [Wed Mar 01 20:00:42 2006]

Re: DataSourceRealm Configuration Question (5.5.15)

2006-03-02 Thread Parsons Technical Services
As other's have noted, both. The difference is that "in the context" will limit to just that app being able to access it and "in the server" is global so that all apps can access it. Doug - Original Message - From: "James Reynolds" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent:

Re: "Response already committed" when redirecting from error page?

2006-03-02 Thread Bill Barker
"David C. Schweisguth" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > I'm using Apache 2.something, mod_jk and Tomcat 5.5.15. mod_jk sends all > requests to Tomcat, so Tomcat needs to handle requests for nonexistent > paths. Our application handles requests to more th

Re: "Response already committed" when redirecting from error page?

2006-03-02 Thread Tomasz Nowak
David C. Schweisguth <[EMAIL PROTECTED]> wrote: > > Mar 2, 2006 2:15:47 PM org.apache.jk.core.MsgContext action > INFO: Response already committed I have a lot of these every single mintue, and I'm not redirecting any error pages, just making a header location stuff. See my recent posts. -- T.

Quick question

2006-03-02 Thread Rakesh Patel
Hi, apologies if this is an easy quesion but time is not on my side: 1. At my company we use Sun Application Server 8.1 for development and production. However, its not the lightest, fastest software in the world and I'm thinking about switching to Tomcat for development and later in the de

Re: Quick question

2006-03-02 Thread Alex Jalali
You would have to add those to the ../WEB-INF/lib/ In this case for javax.mail.* you would need to downlaod the java mail API and put the mail.jar under that folder. Any package that you place in that folder will be added to your class path automaticly. (for that conetext) so there is no need to d