Problem in changing Tomcats shared Classloader in Embedded Tomcat

2006-06-27 Thread Suvendu Kumar Barik
Hi I want to change the shared classloader of Embedded Tomact ,so that some of the jar file required for my Application will be loaded from a separeate directory..I am using a *URLClassLoader *.and using org.apache.catalina.startup.Catalina to start the tomcat using conf/server.xml file.I m

Re: query

2006-06-27 Thread veena v
Hi Thanks for your help. I uninstalled j2sdk1.4 and installed it again. Now tomcat is working. veena On 6/26/06, Sanjeev Kumar Bhat, Noida <[EMAIL PROTECTED]> wrote: What all environment variables does it show? Check JAVA_HOME variable and make sure it exists and points to the right versio

Re: Web Service performance issues

2006-06-27 Thread Rajeev N. Jha
Giovane Moura wrote: Hello, I'm using Muse/Tomcat/Apache on a Linux box (slackware 10.2) in order to run my Web service. And now I need to do a performance test on my Web Service and find out some things: 1. How much memory does my web service consume?Can I measure it with Tomcat Manager?

Web Service performance issues

2006-06-27 Thread Giovane Moura
Hello, I'm using Muse/Tomcat/Apache on a Linux box (slackware 10.2) in order to run my Web service. And now I need to do a performance test on my Web Service and find out some things: 1. How much memory does my web service consume?Can I measure it with Tomcat Manager? Or Via JMX? What's the be

LVS problem

2006-06-27 Thread Jason Downing
I have a problem with a tomcat cluster and a Linux Virtual Server based load balancer. I beleive the problem is with my load balancer, but I'm not completely sure. Does anyone know if there is any interaction between tomcat and IPVS in LVS? Here is a link to the full details of my problem if it

Re: Programmatic Security

2006-06-27 Thread Martin Gainty
Good Evening All- The best way is to put up a Jsp / servlet which itself has the username/password information to let you behind the firewall There are a ton of https and firewalls you can install and configure to your hearts content But none would be more secure and safe than controlling authe

Programmatic Security

2006-06-27 Thread John Caron
I need to implement fine-grained security access, so it looks to me like "Programmatic Security" (Servlet spec 12.3) is called for. I want to recieve the request in my servlet, then decide what access rights are needed for it. In this case, if I understand correctly, the "user must already be

using ServletRequestWrapper to forward custom request/response

2006-06-27 Thread Brandon Vallade
Hello, I have seen a few references to this problem but have not seen any known solution. I have a scenario where I want to create a mock request/response and forward that on using servletContext.getRequestDispatcher(myJspPath).forward(req, resp); I have created FakeRequest and FakeResponse whic

RE: [SPAM] RE: Best Practice for properties files

2006-06-27 Thread Richard Mixon
Paul, I can understand the reluctance to create and deploy the war just to change a configuration setting - it seems so "heavyweight". You could try a variation and have an ant target (or a shell script for that matter) update the properties under WEB-INF from a know location that is custom for e

RE: Graphics Display

2006-06-27 Thread Bob Wyatt
Thanks a bunch, Pid; your first suggestion did the trick! Regards, Bob Wyatt -Original Message- From: Pid [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 17:16 To: Tomcat Users List Subject: Re: Graphics Display CATALINA_OPTS=" -Djava.awt.headless=true" ^

deployment to .war not context.xml value

2006-06-27 Thread Lou Caudell
If I deploy a war file named by the project-version it will name the application instance by the filename not the actual name of the application supplied in the META-INF/context.xml file. Why is this. My development ide knows the difference. - Lou Caudell sweng

Re: Graphics Display

2006-06-27 Thread Pid
CATALINA_OPTS=" -Djava.awt.headless=true" ^ ^ If that doesn't work, set it as a JVM option. I set it in my /etc/profile on Linux, don't know if AIX is the same. JAVA_OPTS="-server -verbosegc -Djava.awt.headless=true" Bob Wyatt wrote: > I have Tomcat 5.0.28 on AIX 5.2.

Graphics Display

2006-06-27 Thread Bob Wyatt
I have Tomcat 5.0.28 on AIX 5.2. My application provides the user the capability to graph data displayed, such as graphing monthly sales, or orders, etc.. This is not working for me; see the log below. The system does not have a graphics console; the application provider had me insert 'CATALI

Re: sort an array

2006-06-27 Thread Martin Gainty
Bernadel- Have you looked at aggregating all of the items into either a SortedMap (sorted on the natural order of the keys) or perhaps a SortedSet (sorted according to natural ordering of its elements)?? http://java.sun.com/j2se/1.5.0/docs/api/ Saludos! M- ***

Re: Commons fileUpload: write to disk permission problem

2006-06-27 Thread Andrea Salvi
Hi again Tim :D My servlet works fine now thanks a lot for your help! Andrea 2006/6/26, Tim Lucia <[EMAIL PROTECTED]>: The servlet looks OK -- I didn't compile or run it or anything. When you say a blank image -- are you requesting the servlet URL directly from the browser? I'd snoop

RE: [SPAM] RE: Best Practice for properties files

2006-06-27 Thread Paul Mendelson
Richard, Thanks for the suggestion. I appreciate the elegance of your ant targets to create war files targeted for each runtime environment. The reason that I am looking for a different approach is this approach would require me to create a new war file if the managers of the runtime environment

RE: sort an array

2006-06-27 Thread Gordon Smith
Perhaps all the data items stored in the three arrays could be put into a single new class so that, by definition, all the data would be sorted together. At that point, you might not need three separate arrays. If you need to sort the data in different ways, you can avoid making copies of the Lis

Re: sort an array

2006-06-27 Thread Marc Farrow
This is just basic Java coding. Search on google for an example. I am sure there are tons out there. On 6/27/06, password password <[EMAIL PROTECTED]> wrote: >Yes, you need to create an array of a data bean/value bean/private class >(whatever buzz word you want to give) and then sort that arra

Re: JDBC jar in WEB-INF/lib?

2006-06-27 Thread Lou Caudell
wolverine my wrote: Hi! The Tomcat's MySQL DBCP example mentioned that we have to copy the JDBC Driver's jar $CATALINA_HOME/common/lib. Do we allowed to copy the jar to WEB-INF/lib? And how can we do that? - To start a new topi

Re: Problem referencing webapp with different context name

2006-06-27 Thread dhay
Thanks for the quick reply. Sorry - typo in previous email (name/path should have read path/docBase!). I actually did try renaming mywebapp.xml to differentName.xml, but got errors saying it couldn't find ...\webapps\differentName. So now I have differentName.xml, containing but I get t

Re: sort an array

2006-06-27 Thread password password
>Yes, you need to create an array of a data bean/value bean/private class >(whatever buzz word you want to give) and then sort that array. So you >would have an array of arrays and then sort the array of arrays. Can you put an example of this (array of arrays)? How can I do the order with this

Tomcat SNMP Agent

2006-06-27 Thread Florentino Gameiro
  Hi Everybody     I’m trying to find a free tomcat SNMP agent for the Windows Operating System.   Does anyone know were I can find it?     Regards,   Florentino   --- Florentino Gameiro Departamento Ténico

Paid consultant Wanted

2006-06-27 Thread ksh95
Extensive experience with SSL and virtualhost setup required. Please respond to [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -

Re: sort an array

2006-06-27 Thread Marc Farrow
Yes, you need to create an array of a data bean/value bean/private class (whatever buzz word you want to give) and then sort that array. So you would have an array of arrays and then sort the array of arrays. On 6/27/06, Robert Harper <[EMAIL PROTECTED]> wrote: If you need to keep one array in

System property in web.xml

2006-06-27 Thread Ingo Siebert
Hi, is it possible to set a system property like "javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema"; = "org.apache.xerces.jaxp.validation.XMLSchemaFactory" in a web.xml? Cheers, Ingo - To start a new to

Re: Problem referencing webapp with different context name

2006-06-27 Thread Pid
[EMAIL PROTECTED] wrote: > Hi, > > We install a webapp under tomcat\webapps\mywebapp by exploding the > appropriately named war file. > > However, we need users to be able to reference it by typing in > http://myserver/differentName. > > I tried adding a mywebapp.xml file under C:\jakarta-tomc

Problem referencing webapp with different context name

2006-06-27 Thread dhay
Hi, We install a webapp under tomcat\webapps\mywebapp by exploding the appropriately named war file. However, we need users to be able to reference it by typing in http://myserver/differentName. I tried adding a mywebapp.xml file under C:\jakarta-tomcat-5.5.12 \conf\Catalina\localhost with the c

RE: sort an array

2006-06-27 Thread Robert Harper
If you need to keep one array in a certain order, why not add the references to another sorted array. Then you could have a primary array and a sorted array. They would both hold references to the same objects. The down side is that when you remove an element from one array, you will have to also r

Re: sort an array

2006-06-27 Thread johnny
password password: Maybe it would be easier if you used some kind of collection, or created your own object(s) that contained some kinds of collections... Thanks, Johnny password password <[EMAIL PROTECTED]> 06/27/2006 10:56 AM Please respond to "Tomcat Users List" To Tomcat Users List

Re: sort an array

2006-06-27 Thread password password
Hi, Arrays.sort(astrName); I can not use the sort method because I have the arrays have an relation. I mean, the first element of astrName have relation with first element of adblBackground1, adblBackground2, adblItensity1 and adblItensity2. Then I can sort each array indepe

Re: sort an array

2006-06-27 Thread Sérgio Costa
This first class should be you domain object. You should add all related data here. public class ExampleClass implements Comparable { public String astrName; /* * All other members you need here * */ public ExampleClass(String astrName) { this.astrName = astrName;

Re: multiple instances of load-on-startup classes

2006-06-27 Thread Magnus Larsgården
a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROT

RE: Apache2 (virtual hosts) + Tomcat5 (one host multiple contexts) + mod_jk +mod_ext_filter (sed)

2006-06-27 Thread HOOGHE Gilles
>HOOGHE Gilles wrote: >> Hi, >> I have several small websites/virtual hosts in Apache. >> For each virtual host I want to map the root folder "/" to >its own webapp in >> Tomcat using mod_jk. >> The Tomcat documentation describe this using virtual host on >both sides Apache and >> Tomcat, this is

Re: sort an array

2006-06-27 Thread Marc Farrow
Search on Interface of Collections (specifically the comparable method). This should allow you to write your own way to compare objects and thus the Java engine will sort based upon your comparable method. On 6/27/06, password password <[EMAIL PROTECTED]> wrote: Hi, Arrays.sort(astrName);

Re: sort an array

2006-06-27 Thread password password
Hi, Arrays.sort(astrName); I can not use the sort method because I have the arrays have an relation. I mean, the first element of astrName have relation with first element of adblBackground1, adblBackground2, adblItensity1 and adblItensity2. Then I can sort each array indepe

Re: Apache2 (virtual hosts) + Tomcat5 (one host multiple contexts) + mod_jk +mod_ext_filter (sed)

2006-06-27 Thread Pid
HOOGHE Gilles wrote: > Hi, > I have several small websites/virtual hosts in Apache. > For each virtual host I want to map the root folder "/" to its own webapp in > Tomcat using mod_jk. > The Tomcat documentation describe this using virtual host on both sides > Apache and > Tomcat, this is a set

Re: multiple instances of load-on-startup classes

2006-06-27 Thread dirk ooms
i had something similar and the reason then was that i had duplicate context definition files. it seems that your context definition is not in server.xml, so you might check whether there are duplicate context files somewhere in tomcat/conf/... dirk On Tuesday 27 June 2006 13:43, Mark Benussi

Apache2 (virtual hosts) + Tomcat5 (one host multiple contexts) + mod_jk +mod_ext_filter (sed)

2006-06-27 Thread HOOGHE Gilles
Hi, I have several small websites/virtual hosts in Apache. For each virtual host I want to map the root folder "/" to its own webapp in Tomcat using mod_jk. The Tomcat documentation describe this using virtual host on both sides Apache and Tomcat, this is a setup that is well documented. However,

multiple instances of load-on-startup classes

2006-06-27 Thread Mark Benussi
We have a webapp running within Tomcat 5.0.28 on Linux. The message log indicates that any classes are loaded twice. Also, any singleton objects created by these load-on-startup classes are created twice. This has been confirmed by stepping through the code via a debugger. From what I have g

Re: JDBC jar in WEB-INF/lib?

2006-06-27 Thread David Smith
You can if you like. Just implement a ServletContextListener to setup a DBCP pool for your webapp and store the resulting DataSource in the ServletContext. Servlets and JSPs can pull it out of the ServletContext later for use. Then have both the DBCP jar and the MySQL jar in your WEB-INF/lib

Re: sort an array

2006-06-27 Thread Rajeev N. Jha
Looks like you are using 2 order N loops. why not use quicksort ? Tomcat may have nothing to do with it. Thanks - Rajeev. password password wrote: Please, can you put an example? I don't know how put the compareTo Method in my servlet. Sérgio Costa <[EMAIL PROTECTED]> escribió: Put them in

Re: sort an array

2006-06-27 Thread Pid
You put the compareTo object on the object to be compared. You could also try: java.utils.Arrays.sort(Object[] array, Comparator comp) There are plenty of tutorials to be found via Google on the use of both this and Collections.sort(). password password wrote: > Please, can you put an example?

Re: Out of Memory Error

2006-06-27 Thread Franck Borel
There is a known problem with SUNs compiler "javac" and Tomcat. If you are using the standard configuration javac and Tomcat uses the same JVM. Soon or later this will produce an "out of memory". To prevent this, you can either update your JRE to Java 5 or set fork=true in your standard deployment

Re: sort an array

2006-06-27 Thread password password
Please, can you put an example? I don't know how put the compareTo Method in my servlet. Sérgio Costa <[EMAIL PROTECTED]> escribió: Put them in a list and Collections.sort() them. All you'll need to do is create a Class with all those fields implementing Comparable, and implement the compareTo

Re: JDBC jar in WEB-INF/lib?

2006-06-27 Thread I D B Major
wolverine my wrote: Hi! The Tomcat's MySQL DBCP example mentioned that we have to copy the JDBC Driver's jar $CATALINA_HOME/common/lib. Do we allowed to copy the jar to WEB-INF/lib? And how can we do that? - To start a new topi