RE: Determining file locations in tomcat

2006-05-15 Thread Benjamin Armintor
Or you could let go of the idea of file paths and use a URL from the ServletContext.getResource() or the corresponding InputStream from ServletContext.getResourceAsStream(). This also allows you to package the .xsl up in a .war file without breaking. -Original Message- From: Mark Pet

Re: Determining file locations in tomcat

2006-05-15 Thread Mark Petrovic
You can put the path in an in the application's web.xml. Then retrieve it at runtime in your servlet.init() method using getInitParameter("path"). On 5/15/06, Calvin Deiterich <[EMAIL PROTECTED]> wrote: I need to place a file(.xsl) in with a tomcat servlet application and I do not want to har

Determining file locations in tomcat

2006-05-15 Thread Calvin Deiterich
I need to place a file(.xsl) in with a tomcat servlet application and I do not want to hard-code the path into the java code. I want the file to be in the \webapps\\WebContent\xml\xslt\ path. What is the best way to handle this. Thanks Calvin -- http://mywebpages.comcast.net/tnczoo/ - "If a

Re: More virtual hosting problems!!

2006-05-15 Thread Parsons Technical Services
In that case there would be no xml file as you have to put the context element under the host element in the server.xml. There is only two ways I know to define the default application (www.eshipper.com/): Use ROOT.war as the package name. (Or manually deploy it to a folder called ROOT and use

Re: More virtual hosting problems!!

2006-05-15 Thread Rizwan Merchant
So what would my context.xml look like if I did not want to name my app ROOT.war. Say I want to name my app under rizapps something like myapplication.war ...what would the settings be for docbase and path in this case? i.e there would be no ROOT application under rizapps. Thanks again! :)

Re: Run class in the start up of Tomcat

2006-05-15 Thread Parsons Technical Services
Are you wanting to start a servlet or load a class? You can load a servlet at the application level. load-on-startup in the servlet class element in the web.xml of the app. Scored srm.Scored 1 The number indicates the order that the servlet is loaded. As for a class you will

Re: Weirdness with Tomcat 5.5.17, j_security_check and favicon.ico

2006-05-15 Thread Konstantin Ignatyev
URL pattern matching is VERY limited in J2EE standard, it is basically either prefix matching like /something/* or suffix matching like *.jsp Patterns like /something/*.jsp are not supported Dean Searle wrote: Konstantin, Thank you very much for replying so quickly. Is there any way around t

Run class in the start up of Tomcat

2006-05-15 Thread Juanjo Cuadrado
Hi, I'm trying to run a class in startup of Tomcat. I think that this was possible in others versions of Tomcat (I just started with Tomcat 5). I think that it was a property in someone element of server.xml that allowed this. Anyone can help me? I hope that yes ;) tx

RE: Java class as a Tomcat Service

2006-05-15 Thread Tim Lucia
See ServletContextListener: http://java.sun.com/j2ee/1.4/docs/api/index.html Tim -Original Message- From: kjr_23 [mailto:[EMAIL PROTECTED] Sent: Monday, May 15, 2006 4:46 PM To: users@tomcat.apache.org Subject: Java class as a Tomcat Service I have a java service which implements Start

RE: Weirdness with Tomcat 5.5.17, j_security_check and favicon.ico

2006-05-15 Thread Dean Searle
Konstantin, Thank you very much for replying so quickly. Is there any way around that? I've tried changing the from /* to /*.jsp but I get 'Invalid /*.jsp in security constraint' in my catalina log file. I've tried looking for resources to explain the usage, but have not found much that hel

Java class as a Tomcat Service

2006-05-15 Thread kjr_23
I have a java service which implements Start() Run() Stop() methods that I want started everytime Tomcat starts. This class is part of a Tomcat Webapp. Seems simple but how do I accomplish this? I am using 5.5.17 jdk 1.5.06 KR -- View this message in context: http://www.nabble.com/Java-class-

Re: You must specify a valid --with-apxs path

2006-05-15 Thread Sean O'Reilly
On Mon, 15 May 2006 11:19:42 -0400 MOURANI Gerhard <[EMAIL PROTECTED]> wrote: > > > did you verify apxs is in the folder you have specified > Yes, it's into -> /home/svc_web/webserver/bin/apxs where I've > compiled and installed Apache. > > Gerhard, > > -Original Message- > From: Rick

RE: You must specify a valid --with-apxs path

2006-05-15 Thread MOURANI Gerhard
Ok, I found the problem for those who could be in the same situation. Problem was that build and include directories have been removed once apache was installed under -> /home/svc_web/webserver directory. Therefore I've recompiled Apache and keeped the build and include directory, then recompiled j

RE: You must specify a valid --with-apxs path

2006-05-15 Thread MOURANI Gerhard
> did you verify apxs is in the folder you have specified Yes, it's into -> /home/svc_web/webserver/bin/apxs where I've compiled and installed Apache. Gerhard, -Original Message- From: Rick G [mailto:[EMAIL PROTECTED] Sent: May 15, 2006 11:15 AM To: 'Tomcat Users List' Subject: RE: You

RE: You must specify a valid --with-apxs path

2006-05-15 Thread Rick G
Well, did you verify apxs is in the folder you have specified, apxs is installed with the httpd-devel package/rpm. -Original Message- From: MOURANI Gerhard [mailto:[EMAIL PROTECTED] Posted At: Monday, May 15, 2006 8:10 AM Posted To: Tomcat Dev Conversation: You must specify a valid --wi

You must specify a valid --with-apxs path

2006-05-15 Thread MOURANI Gerhard
Dear All, I'm trying to install jakarta-tomcat-connectors version 1.2.15 on RH Enterprise Linux 4 where my apxs is located under -> /home/svc_web/webserver/bin/apxs and I'me getting the following error message durring compile time: need to check for Perl first, apxs depends on it... checking fo

How to connect from Tomcat to Weblogic

2006-05-15 Thread Chen, Wei
Hi, I wrote a web-app which runs on Tomcat. I have to hold a value from a web-app which runs on Weblogic Webcontainer. I use the following jndi to connect the weblogic: ... try { Properties h = new Properties(); h.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jn

jsp-examples

2006-05-15 Thread ali ciftci
thank you for the replies. but, to learn the whole system properly, i found an application and to deploy it i need directory structure of "jsp examples" link (http://localhost:8080/jsp-examples/). when i click on the link i want it to run successfully. it mustn't be so hard to find it for me.

Sv: jsp-examples!!

2006-05-15 Thread henrik.claesen
Ursprungligt meddelande Från: [EMAIL PROTECTED] Datum: May 15, 2006 2:11:16 PM Till: users@tomcat.apache.org Ärende: jsp-examples!! I need help. i have just downloaded tomcat 5.5, but there was no jsp- examples directory in it under webapps. I am a new bee and i want to test my app. ser

jsp-examples!!

2006-05-15 Thread ali ciftci
I need help. i have just downloaded tomcat 5.5, but there was no jsp-examples directory in it under webapps. I am a new bee and i want to test my app. server. How can i add jsp-examples and servlets examples to my installation. - Yahoo! Messenger

Re: Variables in server.xml?

2006-05-15 Thread Markus Schönhaber
Am Montag, den 15.05.2006, 11:56 +0200 schrieb Aust, Christian: > is it possible to set values in server.xml to something referencing a > variable? Like in ANT build files, where I could do > > Yes. At least Java properties will be replaced with their value. For example you could use something

Problem with apache tomcat

2006-05-15 Thread Siddesh Prabhu
Hi Experts,   I have problem with my apache tomcat, the detail of the problem is s below. I have a box with Business Objects 6.5.1 installed with Apache 2.0,Apache tomcat version 5.0.28 and Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01). There is freqent problem with Tomcat. I

Variables in server.xml?

2006-05-15 Thread Aust, Christian
Hi, is it possible to set values in server.xml to something referencing a variable? Like in ANT build files, where I could do Kind regards, Christian Aust This email has been scanned for all viruses by the MessageLabs S