Re: [Commercial] Part time developer - Delhi / noida

2011-01-03 Thread Vivek Mohan
Hi Abhishek,

Wish you a happy new year. Did you get any one for this requirement of
yours?

--
vivek.

On Sun, Dec 26, 2010 at 6:28 PM, abhishek jain
wrote:

> Hello ,
> I am looking for a part time developer for java with struts and hibernate
> and a good knowledge of mysql preferably open to visit my office in Noida
> (India), once a week.
> However i will also consider distant people also.
>
>
> Please someone interested contact me offline with resume and rates.
>
> --
> Thanks and kind Regards,
> Abhishek jain
>



-- 
"This is your life and it's ending one minute at a time."


Re: Delete Tomcat logs

2007-08-22 Thread Vivek Mohan
well, it was the maxbackupindex that was what I was trying to find
out. We already are in the process of deleting the files which are
older than a certain time period...

thanks,
Vivek.

On 8/22/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Vivek,
>
> Vivek Mohan wrote:
> > Is there a way to delete tomcat logs which are "older" than 5 days?
>
> You could configure Tomcat to use log4j instead of juli and use a
> DailyRollingFileAppender -- it will generate a new file every day and
> you can simply delete the ones that are several days behind whenever you
> want.
>
> (Unfortunately, DailyRollingFileAppender doesn't inherit from
> RollingFileAppender which includes a "max backup index" setting and will
> automatically clean up after old log files).
>
> - -chris
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGzIF19CaO5/Lv0PARAg39AKDCPdqZuNlmqfsZDvVhbwDacsnU1ACdEY82
> frNhYK+LhiH/3tkH1zAQZwE=
> =DVAL
> -END PGP SIGNATURE-
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
"This is your life and it's ending one minute at a time."

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Delete Tomcat logs

2007-08-22 Thread Vivek Mohan
Is there a way to delete tomcat logs which are "older" than 5 days?

On 8/22/07, Peter Stavrinides <[EMAIL PROTECTED]> wrote:
> You might want to truncate, 'not delete', instead.
>
> David Smith wrote:
> > AFAIK, this won't work on Windows unless you stop tomcat before and
> > restart tomcat after.  Windows keeps the log file open and will do
> > strange things if you take the file out from underneath it.  I believe
> > log4j has options to support what the OP wants through log rotation.
> >
> > --David
> >
> > Ronald Klop wrote:
> >
> >> On Wed Aug 22 10:58:13 CEST 2007 Tomcat Users List
> >>  wrote:
> >>
> >>> Do you know some Windows script to delete Tomcat logs after 5 days?
> >>>
> >>> Thanks a lot
> >>
> >> Windows has a scheduler. Put 'DEL c:\Tomcat\logs\*.*' in it every 5
> >> days.
> >>
> >> Ronald.
> >>
> >
> >
> > -
> > To start 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 PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
"This is your life and it's ending one minute at a time."

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: java:comp/UserTransaction NameNotFoundException Tomcat 5.0.28

2006-07-24 Thread Vivek Mohan

sorry, I meant, "java:comp/env/UserTransaction"

--
Vivek.

On 7/24/06, Vivek Mohan <[EMAIL PROTECTED]> wrote:

try using java:comp/env.UserTransaction for JNDI lookup.

--
Vivek.

On 7/24/06, Seetha Rao <[EMAIL PROTECTED]> wrote:
> Hi I'm using JOTM for transaction management with Tomcat 5.0.28. I have all
> the required jar files as given in
> http://jotm.objectweb.org/current/jotm/doc/howto-tomcat-jotm.html The JNDI
> look up throws the following exception:
>
> Here is the code:
>
> Context ctx = new InitialContext();
> UserTransaction userTx =
> (UserTransaction)ctx.lookup("java:comp/UserTransaction");
>
> The Entry in the mywebapp.xml file:
>
>  type="javax.transaction.UserTransaction" />
> 
> 
>   factory
>   org.objectweb.jotm.UserTransactionFactory
>   
> 
>   jotm.timeout
>   60
> 
> 
>
> Exception:
> javax.naming.NameNotFoundException
> at
> org.objectweb.carol.jndi.enc.java.CompNamingContext.lookupCtx(CompNamingCont
> ext.java:689)
> at
> org.objectweb.carol.jndi.enc.java.CompNamingContext.lookup(CompNamingContext
> .java:179)
> at
> org.objectweb.carol.jndi.enc.java.JavaURLContext.lookup(JavaURLContext.java:
> 138)
> at javax.naming.InitialContext.lookup(Unknown Source)
> at com.vcbp.struts.action.InsertuserAction.execute(InsertuserAction.java:81)
> at
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
> sor.java:484)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
> at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
> at javax.servlet.http.Http
>
> Could anyone give me home hints?
>
> Thanks
> Seetha
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
"This is your life and it's ending one minute at a time."




--
"This is your life and it's ending one minute at a time."

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: java:comp/UserTransaction NameNotFoundException Tomcat 5.0.28

2006-07-24 Thread Vivek Mohan

try using java:comp/env.UserTransaction for JNDI lookup.

--
Vivek.

On 7/24/06, Seetha Rao <[EMAIL PROTECTED]> wrote:

Hi I'm using JOTM for transaction management with Tomcat 5.0.28. I have all
the required jar files as given in
http://jotm.objectweb.org/current/jotm/doc/howto-tomcat-jotm.html The JNDI
look up throws the following exception:

Here is the code:

Context ctx = new InitialContext();
UserTransaction userTx =
(UserTransaction)ctx.lookup("java:comp/UserTransaction");

The Entry in the mywebapp.xml file:




  factory
  org.objectweb.jotm.UserTransactionFactory
  

  jotm.timeout
  60



Exception:
javax.naming.NameNotFoundException
at
org.objectweb.carol.jndi.enc.java.CompNamingContext.lookupCtx(CompNamingCont
ext.java:689)
at
org.objectweb.carol.jndi.enc.java.CompNamingContext.lookup(CompNamingContext
.java:179)
at
org.objectweb.carol.jndi.enc.java.JavaURLContext.lookup(JavaURLContext.java:
138)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.vcbp.struts.action.InsertuserAction.execute(InsertuserAction.java:81)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:484)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.Http

Could anyone give me home hints?

Thanks
Seetha


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
"This is your life and it's ending one minute at a time."

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



best transaction manager and connection pool for tomcat

2006-05-30 Thread Vivek Mohan

Hi all,

I'm using Tomcat 4 for my web application (don't ask me the reason
why) and I was trying to evaluate different transaction managers and
connection pool managers. The db is on MS Sql Server 2000.

We've tried using JOTM + XAPool but we've run into a lot of connection
closure issues. Is there a recommended or more popular pair for the
above purpose.

thanks
Vivek.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: stylesheets giving 404 after a long response time

2006-05-09 Thread Vivek Mohan

Yes, its Tomcat which is serving the resources. And I've made the
timeouts to be infinity for my application so I don't think timeouts
would be occurring. But in any case how does a timeout affect the
fishing out of stylesheets?

--
Vivek.

On 5/10/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:

A 20 minute response time?  Before I worried about why the stylesheet
gets a 404, I'd solve that :)  Trying to hold an HTTP connection open
that long is a recipe for all sorts of problem (proxy timeouts, browser
timeouts, etc).

Is Tomcat serving the stylesheet, i.e., no web server in front of it?
I'm wondering if session timeout isn't playing role somehow (not sure
how it would, but with a request time that long, not very much would
surprise me).

Frank

Vivek Mohan wrote:
> Hi People,
>
> I've an application running on tomcat 4.1. In one particular request,
> I could find that the server response takes a long time, say around 20
> minutes, and when the page comes back all the stylesheets and header
> jsps are missing from the page. If I check my access logs, I see a 404
> response for all the inclusions into the main jsp.
>
> Can anyone tell me how to solve this issue, or how to go about
> investigating it?
>
> --
> Vivek.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
I told the doctor I broke my leg in two places. He told me to quit
going to those places.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



stylesheets giving 404 after a long response time

2006-05-09 Thread Vivek Mohan

Hi People,

I've an application running on tomcat 4.1. In one particular request,
I could find that the server response takes a long time, say around 20
minutes, and when the page comes back all the stylesheets and header
jsps are missing from the page. If I check my access logs, I see a 404
response for all the inclusions into the main jsp.

Can anyone tell me how to solve this issue, or how to go about investigating it?

--
Vivek.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 4.1.24 - Out of memory

2006-04-25 Thread Vivek Mohan

First guess, there are many memory leaks in your application...things
like unclosed connections and all... Did you check on those?

--
Vivek.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Passing data across Tomcat installations

2006-04-25 Thread Vivek Mohan

HI All,

Is there a way to pass data (as sensitive as usrname) from one tomcat
to another?

To be more precise, I've an entry point server(Tomcat server), which
shows links to many other other Tomcat installations. The user
authenticates on the entry point server and then sees several links
(to other tomcat servers). Now if he clicks on one of those links, I
want the username to be passed from the entry point server to the
secondary tomcat server.

I've found that neither the session nor the request attributes are
available on the other side. Is there any other way?

--
Vivek.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: is there a possibility to define the startup order for webapps?

2006-04-24 Thread Vivek Mohan

I believe that the loading of webapps is based on the order of the
webapp folders (or war files) coming into the purview of the tomcat
webapp loader. This is mostly in the order the OS lists the
files/folders within the webapps folder.
I think you can experiment with changing the name of the database
webapp to something that starts with an "_" so that it comes first in
listing of folders. This can be done if you can change the name of the
context for the database webapp or the other webapp.

--
Vivek.

PS: But the creative solutions look more techy:)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat embedded Valve's

2006-04-17 Thread Vivek Mohan
and how was it solved?

On 4/17/06, Ugur Dincer <[EMAIL PROTECTED]> wrote:
> problem solved :-)
>
>
> From: "Ugur Dincer" <[EMAIL PROTECTED]>
> Reply-To: "Tomcat Users List" 
> To: users@tomcat.apache.org
> Subject: Tomcat embedded Valve's
> Date: Sun, 16 Apr 2006 19:12:22 +0200
> MIME-Version: 1.0
> X-Originating-IP: [194.237.142.10]
> X-Originating-Email: [EMAIL PROTECTED]
> X-Sender: [EMAIL PROTECTED]
> Received: from mail.apache.org ([209.237.227.199]) by
> bay0-mc10-f10.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Sun,
> 16 Apr 2006 10:12:50 -0700
> Received: (qmail 39153 invoked by uid 500); 16 Apr 2006 17:12:48 -
> Received: (qmail 39142 invoked by uid 99); 16 Apr 2006 17:12:47 -
> Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49)by
> apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Apr 2006 10:12:47 -0700
> Received: pass (asf.osuosl.org: domain of [EMAIL PROTECTED] designates
> 65.54.168.42 as permitted sender)
> Received: from [65.54.168.42] (HELO hotmail.com) (65.54.168.42)by
> apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Apr 2006 10:12:47 -0700
> Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
> Sun, 16 Apr 2006 10:12:26 -0700
> Received: from 65.54.168.200 by by113fd.bay113.hotmail.msn.com with
> HTTP;Sun, 16 Apr 2006 17:12:22 GMT
> X-Message-Info: JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPt4iogl2abg+M=
> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> Precedence: bulk
> List-Help: 
> List-Unsubscribe: 
> List-Post: 
> List-Id: 
> Delivered-To: mailing list users@tomcat.apache.org
> X-ASF-Spam-Status: No, hits=1.9
> required=10.0tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS
> X-Spam-Check-By: apache.org
> X-OriginalArrivalTime: 16 Apr 2006 17:12:26.0696 (UTC)
> FILETIME=[EF64AC80:01C66178]
> X-Virus-Checked: Checked by ClamAV on apache.org
> Return-Path: [EMAIL PROTECTED]
>
> Hi,
> I'm running Tomcat embedded and have some questions.
> 1. How can I define a Valve so it can be invoked for any request, without
> using web.xml nor server.xml?
> StandardHost.addValve(...)  doesn't have any effect.
> Is implementation of Lifecycle required in this case?
>
> 2. Is it possible to define the execution order of Valve's, or does Tomcat
> use the order in server/web.xml ? And how can that order be modified if not
> using server.xml nor web.xml
>
> Thanks!
> Ugur
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
I told the doctor I broke my leg in two places. He told me to quit
going to those places.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: EJB

2006-04-07 Thread Vivek Mohan
Can you do that? I thought Tomcat doesn't support EJBs!


On 4/7/06, Jeyabalan, Prakash <[EMAIL PROTECTED]> wrote:
> How to configure EJB in Tomcat?
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
I told the doctor I broke my leg in two places. He told me to quit
going to those places.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



get SSL port in tomcat 4.1

2006-03-29 Thread Vivek Mohan
Hi,

Is it possible to get hold of the SSL port for the tomcat installation
programmatically?

Thanks,
Vivek.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Context starts twice

2006-03-29 Thread Vivek Mohan
you're welcome!!

--
Vivek.

On 3/30/06, Dola Woolfe <[EMAIL PROTECTED]> wrote:
> Yes I do!!! Thank you.
>
>
> My guess is that Eclipse sneaked that line in there
> when I experimented with creating Tomcat projects.
> Good grief!
>
> Thanks again.
>
> --- Vivek Mohan <[EMAIL PROTECTED]> wrote:
>
> > Do you have any context entries in your server.xml?
> > Or context.xml
> > files present in other folders in the tomcat
> > installation? If yes,
> > then check if their path attribute is set to
> > something different from
> > their folder names?
> >
> > --
> > Vivek.
> >
> > On 3/30/06, Dola Woolfe <[EMAIL PROTECTED]> wrote:
> > > OK, I see it - it's "webapps". Thank you.
> > >
> > > OK, how do I check wheather "[I] have a separate
> > > context path configured for your webapp and its
> > > present in your appbase." No idea where to look
> > and
> > > for what!
> > >
> > > Thanks!
> > >
> > >
> > > --- "Farrow, Marc" <[EMAIL PROTECTED]> wrote:
> > >
> > > > Appbase is an attribute defined in your
> > > > %tomcat_home%/conf/server.xml file.
> > > > It should be a "sub-attribute" under your HOSTS
> > > > attribute.
> > > >
> > > >
> > > > -Original Message-
> > > > From: Dola Woolfe [mailto:[EMAIL PROTECTED]
> > > > Sent: Wednesday, March 29, 2006 1:48 PM
> > > > To: Tomcat Users List
> > > > Subject: Re: Context starts twice
> > > >
> > > > Hi,
> > > >
> > > > I'm sorry, can you give a couple examples with
> > dir
> > > > names? For example, I'm not sure what appbase
> > is.
> > > >
> > > > Thanks!
> > > >
> > > > Dola
> > > >
> > > > --- Vivek Mohan <[EMAIL PROTECTED]> wrote:
> > > >
> > > > > This can happen if you have a separate context
> > > > path
> > > > > configured for
> > > > > your webapp and its present in your appbase.
> > If
> > > > > thats the case, then
> > > > > Tomcat will try to load the webapp twice, once
> > for
> > > > > the different
> > > > > context path and once for the presence of the
> > war
> > > > or
> > > > > folder in
> > > > > appbase. This is a known feature(or bug) in
> > > > Tomcat.
> > > > >
> > > > > Try keeping your webapp outside of your
> > appbase
> > > > and
> > > > > re-loading should
> > > > > not happen.
> > > > > --
> > > > > Vivek.
> > > > >
> > > > > On 3/28/06, Jean-Philippe Boily
> > > > > <[EMAIL PROTECTED]> wrote:
> > > > > > Hi,
> > > > > >What version of Tomcat are you using ?
> > Maybe
> > > > > your war is under your
> > > > > > appbaseif it so, it may starts your
> > context
> > > > > once  with the
> > > > > > context.xml file and once with the WAR
> > > > > >
> > > > > >
> > > > > > Good luck !
> > > > > > Jean-Philippe Boily
> > > > > >
> > > > > > On 3/27/06, Dola Woolfe <[EMAIL PROTECTED]>
> > > > > wrote:
> > > > > > > Hi,
> > > > > > >
> > > > > > > I don't know what I did wrong, but my
> > StartUp
> > > > > servlet
> > > > > > > now runs twice in a row when I start
> > Tomcat.
> > > > The
> > > > > > > web.xml entry is
> > > > > > >
> > > > > > >   StartUp
> > > > > > >
> > > > >
> > servlets.StartUp
> > > > > > >   1
> > > > > > >
> > > > > > > I don't even know where to begin looking
> > for
> > > > the
> > > > > > > error. Do you have any suggestions?
> > > > > > >
> > > > > > > Many thanks in advance!
> > > > > > >
> > > > > > > Dola
> > > > > > >
> > > > > > >
>

Re: Context starts twice

2006-03-29 Thread Vivek Mohan
Do you have any context entries in your server.xml? Or context.xml
files present in other folders in the tomcat installation? If yes,
then check if their path attribute is set to something different from
their folder names?

--
Vivek.

On 3/30/06, Dola Woolfe <[EMAIL PROTECTED]> wrote:
> OK, I see it - it's "webapps". Thank you.
>
> OK, how do I check wheather "[I] have a separate
> context path configured for your webapp and its
> present in your appbase." No idea where to look and
> for what!
>
> Thanks!
>
>
> --- "Farrow, Marc" <[EMAIL PROTECTED]> wrote:
>
> > Appbase is an attribute defined in your
> > %tomcat_home%/conf/server.xml file.
> > It should be a "sub-attribute" under your HOSTS
> > attribute.
> >
> >
> > -Original Message-
> > From: Dola Woolfe [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 29, 2006 1:48 PM
> > To: Tomcat Users List
> > Subject: Re: Context starts twice
> >
> > Hi,
> >
> > I'm sorry, can you give a couple examples with dir
> > names? For example, I'm not sure what appbase is.
> >
> > Thanks!
> >
> > Dola
> >
> > --- Vivek Mohan <[EMAIL PROTECTED]> wrote:
> >
> > > This can happen if you have a separate context
> > path
> > > configured for
> > > your webapp and its present in your appbase. If
> > > thats the case, then
> > > Tomcat will try to load the webapp twice, once for
> > > the different
> > > context path and once for the presence of the war
> > or
> > > folder in
> > > appbase. This is a known feature(or bug) in
> > Tomcat.
> > >
> > > Try keeping your webapp outside of your appbase
> > and
> > > re-loading should
> > > not happen.
> > > --
> > > Vivek.
> > >
> > > On 3/28/06, Jean-Philippe Boily
> > > <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > >What version of Tomcat are you using ? Maybe
> > > your war is under your
> > > > appbaseif it so, it may starts your context
> > > once  with the
> > > > context.xml file and once with the WAR
> > > >
> > > >
> > > > Good luck !
> > > > Jean-Philippe Boily
> > > >
> > > > On 3/27/06, Dola Woolfe <[EMAIL PROTECTED]>
> > > wrote:
> > > > > Hi,
> > > > >
> > > > > I don't know what I did wrong, but my StartUp
> > > servlet
> > > > > now runs twice in a row when I start Tomcat.
> > The
> > > > > web.xml entry is
> > > > >
> > > > >   StartUp
> > > > >
> > > servlets.StartUp
> > > > >   1
> > > > >
> > > > > I don't even know where to begin looking for
> > the
> > > > > error. Do you have any suggestions?
> > > > >
> > > > > Many thanks in advance!
> > > > >
> > > > > Dola
> > > > >
> > > > >
> > > __
> > > > > Do You Yahoo!?
> > > > > Tired of spam?  Yahoo! Mail has the best spam
> > > protection around
> > > > > http://mail.yahoo.com
> > > > >
> > > > >
> > >
> >
> -
> > > > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > > >
> > > > >
> > > >
> > > >
> > >
> >
> -
> > > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > --
> > > I told the doctor I broke my leg in two places. He
> > > told me to quit
> > > going to those places.
> > >
> > >
> >
> -
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> > protection around
> > http://mail.yahoo.com
> >
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
>
>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
I told the doctor I broke my leg in two places. He told me to quit
going to those places.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to pass basic auth credentials from one tomcat server to another - SSO

2006-03-28 Thread Vivek Mohan
My scenario is something like this:
There's an entry server webapp (tomcat 4.0 installation) which takes
in the username/password from the user for basic authentication,
authenticates the user and makes available links to various other
webapps on different tomcat (4.0)installations. These can be on
different machines.

Question:
How can I enable the user to give his username/password only in the
entry server and not again for any other tomcat server? Is there a way
to pass on the credentials to the webapp url being accessed?

Thanks,
Vivek.

--
I told the doctor I broke my leg in two places. He told me to quit
going to those places.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Context starts twice

2006-03-28 Thread Vivek Mohan
This can happen if you have a separate context path configured for
your webapp and its present in your appbase. If thats the case, then
Tomcat will try to load the webapp twice, once for the different
context path and once for the presence of the war or folder in
appbase. This is a known feature(or bug) in Tomcat.

Try keeping your webapp outside of your appbase and re-loading should
not happen.
--
Vivek.

On 3/28/06, Jean-Philippe Boily <[EMAIL PROTECTED]> wrote:
> Hi,
>What version of Tomcat are you using ? Maybe your war is under your
> appbaseif it so, it may starts your context once  with the
> context.xml file and once with the WAR
>
>
> Good luck !
> Jean-Philippe Boily
>
> On 3/27/06, Dola Woolfe <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I don't know what I did wrong, but my StartUp servlet
> > now runs twice in a row when I start Tomcat. The
> > web.xml entry is
> >
> >   StartUp
> >   servlets.StartUp
> >   1
> >
> > I don't even know where to begin looking for the
> > error. Do you have any suggestions?
> >
> > Many thanks in advance!
> >
> > Dola
> >
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
I told the doctor I broke my leg in two places. He told me to quit
going to those places.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Context startup order

2006-03-28 Thread Vivek Mohan
Do you have all the contexts mentioned in one server.xml? or do you
have separate context xmls for your separate contexts? If its the
former case, then I guess, the order in which you mention the contexts
in server.xml is going to be the order of starting them up by Tomcat.

--
Vivek.

On 3/28/06, Cord Awtry <[EMAIL PROTECTED]> wrote:
> All,
>
> I have several contexts that run on one server. I've slogged
> through documentation and googled until I can google no more, but I've been
> unable to find a way to specify an order to start them up (there's one in
> particular that I want to start first). Does anyone know of a way to do this
> that I missed? This is Tomcat 5.0.28, btw.
>
> Thanks,
>
> -C-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to deploy my webapp as root context webapp without tomcat loading it twice?

2005-12-01 Thread Vivek Mohan
Sorry Mark, but one question to you since you've suggested the option
of moving the webapp outside of appBase.

I've kept myWebapp at ${CATALINA.HOME}/myWebapp and given this path in
server.xml for the root context. Is that the correct way to do it? Is
there anything in my webapp that I need to take care of when I do
this?

--
Vivek.

On 12/1/05, Mark Thomas <[EMAIL PROTECTED]> wrote:
> Vivek Mohan wrote:
> > Question:
> >
> > I want to have myWebapp as the root context webapp in my tomcat
> > server. And I don't want to rename it to "ROOT". Is there a way by
> > which I can avoid tomcat from loading myWebapp twice?
>
> Options:
> - Don't put it in the appbase directory.
> - Turn off autoDeploy
> - Live with renaming it to ROOT
>
> Mark
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Deploying in ROOT folder using a war file

2005-11-30 Thread Vivek Mohan
Tomcat is extracting the files to localhost/_ because thats where it
knows it has to extract anything from the ROOT application.

--
Vivek.

On 12/1/05, Gautam Gothoskar <[EMAIL PROTECTED]> wrote:
> Mark,
>   I have deleted the ROOT folder from the webapps
> directory. I have the unpackWARs set to true in the
> host element in server.xml. My tomcat version is
> 4.1.24.
>   What tomcat does is it loads up the servlet on
> startup as I have specified it in web.xml. It extracts
> the WEB-INF/classes and lib folder required for the
> servlet in TOMCAT_HOME/work/Standalone/localhost/_
> directory. It extracts the jsps and other files as and
> when required. But the problem is with stylesheets and
> javascript files. These files are not explicitly
> called and hence never get extracted. So the jsp does
> not find those files.
>   I also have no ides why tomcat is extracting the
> files to TOMCAT_HOME/work/Standalone/localhost/_ .
>
> Thanks,
> Gautam.
>
>
>
> --- Mark Thomas <[EMAIL PROTECTED]> wrote:
>
> > Gautam Gothoskar wrote:
> > > Hi Mark,
> > >   Thanks for the quick reply. But in doing the way
> > you
> > > have mentioned, tomcat does NOT expand the classes
> > etc
> > > in the ROOT folder. The application does get
> > loaded
> > > and work. I was wondering if there is any way that
> > the
> > > war file could be expanded in the ROOT folder?
> > >
> > > regards,
> > > Gautam.
> >
> > Any existing ROOT folder has to be deleted before
> > any new ROOT.war is
> > expanded. This assumes, of course, that you have set
> > unpackWARs=true
> >
> > Mark
> >
> >
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to deploy my webapp as root context webapp without tomcat loading it twice?

2005-11-30 Thread Vivek Mohan
Like I mentioned in my problem statement:

I don't want to move my application into ROOT folder or rename it to ROOT.
And unlike as you said Mark, putting autoDeploy=false doesn't help in this case.

Is this (loading a webapp twice if the context path and the docBase
path is different) a feature of Tomcat? Can't this be turned off?

--
Vivek.

On 12/1/05, Joe Riopel <[EMAIL PROTECTED]> wrote:
> Since this was brought up..
>
> I moved my default ROOT folder out my webapps directory ( to a temp
> dir on my server ), because I wanted a different app to the be the
> default application. So I moved my application's direcotry to
> webapps/ROOT and everything has been working fine. Is there anything
> "wrong" with doing it that way ? Like I said, everything has been
> working great so far, which has been about 3 months.
>
> Thanks,
> Joe
>
> On 11/30/05, Mark Thomas <[EMAIL PROTECTED]> wrote:
> > Vivek Mohan wrote:
> > > Question:
> > >
> > > I want to have myWebapp as the root context webapp in my tomcat
> > > server. And I don't want to rename it to "ROOT". Is there a way by
> > > which I can avoid tomcat from loading myWebapp twice?
> >
> > Options:
> > - Don't put it in the appbase directory.
> > - Turn off autoDeploy
> > - Live with renaming it to ROOT
> >
> > Mark
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to deploy my webapp as root context webapp without tomcat loading it twice?

2005-11-30 Thread Vivek Mohan
Hi,

Scenario:

I've a webapplication in my tomcat4 installation, called myWebapp.
I've configured it to be my root webapplication since I want users to
be able to access it using the url: "http::". Here's a
snippet of my server.xml:




 
   
 


myWebapp has a init servlet which is loaded on startup. Besides doing
other things like instantiating db connection pool, this servlet
configures the log4j for the application logging.

Issue:

When I start the tomcat server, I find, through logs of the application (and
of log4j), that the init servlet is executed twice.
Essentially, the webapp is loaded twice. This creates a problem with
myWebapp since the logger is configured twice (resulting in
cross-locks and hence Rolling fails).

Question:

I want to have myWebapp as the root context webapp in my tomcat
server. And I don't want to rename it to "ROOT". Is there a way by
which I can avoid tomcat from loading myWebapp twice?

Thanks in advance,
Vivek.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]