AW: META-INF/context.xml not overwriting Catalina/localhost/webapp.xml after redeploy.

2004-11-05 Thread Nick Pellow
Hi Steve,

>
>That file is only updated in certain circumstances.  check that your
>circumstances fit those.  here's a good place to start:
>http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html#Au
>tomatic%2
>0Application%20Deployment

Ok. I see...

>
>I adopted the habit of restarting with a script, which deletes the
>$CATALINA_HOME/conf/[enginename]/[hostname]/webappname.xml files then
>restarts TC.  Just to be sure.

I figured this would be the case.

>
>also, when you say that context.xml is within META-INF, is this within a
>war, or an open filesystem?  (It needs to be in a warfile).

I am using a warfile, however, it does get expanded to the webapps
directory, so
there is also an open filesystem. Should my docbase be pointing to the .war
in my
context.xml, and not the directory?


>
>> -Original Message-
>> From: Nick Pellow [mailto:[EMAIL PROTECTED]
>> Sent: Friday 05 November 2004 14:48
>> To: Tomcat Users List
>> Subject: META-INF/context.xml not overwriting
>> Catalina/localhost/webapp.xml after redeploy.
>>
>>
>> Hi,
>>
>> I am using a META-INF/context.xml in each of my webapps to define
>> Resource-Links to global resources defined in my server.xml.
>> (Tomcat 5.0.28)
>>
>> Upon the initial deployment of the war, tomcate creates a copy of this
>> context.xml
>> under $CATALINA_HOME/conf/[enginename]/[hostname]/ called
>> webappname.xml .
>>
>> When i then redeploy the same webapp ('webappname'), with a
>> META-INF/context.xml,
>> $CATALINA_HOME/conf/[enginename]/[hostname]/webappname.xml
>> does not get
>> updated.
>> Is there a means to enable this under Tomcat 5.0.28, or is
>> this a security
>> feature?
>>
>> Cheers,
>> Nick.
>>
>>
>>
>> -
>> 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]



META-INF/context.xml not overwriting Catalina/localhost/webapp.xml after redeploy.

2004-11-05 Thread Nick Pellow
Hi,

I am using a META-INF/context.xml in each of my webapps to define
Resource-Links to global resources defined in my server.xml. (Tomcat 5.0.28)

Upon the initial deployment of the war, tomcate creates a copy of this
context.xml
under $CATALINA_HOME/conf/[enginename]/[hostname]/ called webappname.xml .

When i then redeploy the same webapp ('webappname'), with a
META-INF/context.xml,
$CATALINA_HOME/conf/[enginename]/[hostname]/webappname.xml  does not get
updated.
Is there a means to enable this under Tomcat 5.0.28, or is this a security
feature?

Cheers,
Nick.



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



AW: AW: Setting Context Path of Webapp as Root on Tomcat 5.5.3

2004-11-05 Thread Nick Pellow
Hi Jojo,

You should make sure that you delete the ROOT directory under
${CATALINE_HOME}/webapps .
If you are still seeing the tomcat default page, then this means that
the TOMCAT default ROOT app is still deployed somewhere...

Cheers,
nick.



>-Ursprungliche Nachricht-
>Von: Jojo Paderes [mailto:[EMAIL PROTECTED]
>Gesendet: Freitag, 5. November 2004 13:24
>An: [EMAIL PROTECTED]
>Betreff: Re: AW: Setting Context Path of Webapp as Root on Tomcat 5.5.3
>
>
>Here's my context.xml file:
>
>   path=""
>   docBase="mywebapp.war"
>   reloadable="true"
>   useNaming="true"
>   debug="5"
>   unpackWAR="true">
>
>
>Seems to be not working either. When I access the root context
>(http://localhost), I still get the Tomcat default page and not my
>webapp's index page. I'm deploying my webapp on a default Tomcat 5.5.3
>setup. I will try this on 5.5.4.
>
>Am I missing something here like some configurations on the server.xml
>or web.xml under $CATALINA_HOME/conf/?
>
>The simplest solution, as Nick suggested, is to rename my webapp WAR
>file to ROOT.war. I'm looking at a solution similar on a typical EAR
>file deployment on a J2EE app (i.e. Jboss) where I can specify my
>webapp to use the root context path in the application.xml file.
>
>On Fri, 5 Nov 2004 13:00:15 +0100, Nick Pellow
><[EMAIL PROTECTED]> wrote:
>> Hi Jojo,
>>
>> I wanted to do the same as you. I got it to work,
>> when the context path is the empty string "".
>> ie.
>> >
>> What however was annoying, was that tomcat then unpacks
>> this war in a directory called ROOT. Hence, when you restart
>> tomcat, it deploys the webapp under ROOT with context of /,
>> *and*, the webapp called myrootapp.war with context of /myrootapp .
>>
>> Problem was, that I have my META-INF/context.xml in myrootapp.
>> This seems to cause a lot of confusion for tomcat.
>>
>> The cleanest solution I found, was to call myrootapp.war ROOT.war...
>>
>> I would like to know a neater solution if there is one..
>>
>> Cheers,
>> nick
>>
>> >-Ursprungliche Nachricht-
>> >Von: Jojo Paderes [mailto:[EMAIL PROTECTED]
>> >Gesendet: Freitag, 5. November 2004 12:45
>> >An: [EMAIL PROTECTED]
>> >Betreff: Setting Context Path of Webapp as Root on Tomcat 5.5.3
>> >
>> >
>> >Hi,
>> >
>> >Is there a way to set a webapp to use the root context path in Tomcat
>> >5.5.3. For example, I want to access by webapp named "mywebapp" by
>> >using this url:
>> >
>> >http://mydomain.com/
>> >
>> >instead of this:
>> >
>> >http://mydomain.com/mywebapp/
>> >
>> >In a J2EE EAR file, I can set the webapp to use the root context path
>> >by setting the  value to /. I'm looking for a similar
>> >way on WAR file deployed on Tomcat.
>> >
>> >I was able to do this by just renaming my webapp to ROOT, but I prefer
>> >something else. Any suggestions?
>> >
>> >
>> >regards,
>> >
>> >jOjO
>
>-
>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]



AW: {an alternative}Re: connection pooling

2004-11-04 Thread Nick Pellow
HI Eric,


I have seen the same error your are getting. I am using tomcat 5.0.28.
Make sure that you have removed the expanded war directories, from
"webapps" and ${CATALINA_HOME}/work before restarting.

Also look inside
those other context.xmls inside ${CATALINA_HOME}/conf/Catalina/localhost
and make sure that they do not define a context with path="/wms".

Cheers,
nick.

>-Ursprungliche Nachricht-
>Von: Eric Wulff [mailto:[EMAIL PROTECTED]
>Gesendet: Freitag, 5. November 2004 07:35
>An: Atishay Kumar
>Cc: Tomcat Users List
>Betreff: Re: {an alternative}Re: connection pooling
>
>
>Atishay, the DefaultContext does work once I comment out the other
>Engine element.  You mentioned that means something is wrong with my
>Context?  So what next?
>
>many thx
>Eric
>
>
>On Thu, 4 Nov 2004 22:21:57 -0800, Eric Wulff <[EMAIL PROTECTED]> wrote:
>> This did not work.  In looking for the Engine element you speak of I
>> didn't find it exactly.  I did find it with it with an extra attribute
>> .  Furthermore, this
>> element was nested within the  element and there is another
>>  element.  I tried with and without the
>> jvmRoute element.  No success.  Same exception.
>>
>> Eric
>>
>> On Fri, 5 Nov 2004 11:20:26 +0530, Atishay Kumar
>>
>>
>> <[EMAIL PROTECTED]> wrote:
>> > If adding  did not work..then try following
>> >
>> > On Thu, 4 Nov 2004 19:46:30 -0800, Eric Wulff <[EMAIL PROTECTED]> wrote:
>> > > Hi all, I'm returning to a problem I couldn't solve the first time,
>> > > about two months ago, and still can't seem to figure out.  I
>can't get
>> > > a db connection using connection pools.  I get the exception listed
>> > > below, same as so many have previously, but nothing I've found seems
>> > > to works.  Below are my specs.  Anyone with concrete advise/direction
>> > > on how to get
>> > > this working?
>> > >
>> > > Also, I noticed in many solutions the suggestion was made to edit the
>> > > myapp.xml file located at CATALINA_HOME/conf/Catalina/localhost/.
>> > > However, there is no myapp.xml in that directory on my server. Just 2
>> > > .xml's related to other applications and a manager.xml which I'm not
>> > > sure what it's related to.
>> > >
>> > > OS: FC2
>> > > Tomcat 5.0.28
>> > >
>> > > exception: org.apache.commons.dbcp.SWLNestedException: Cannot create
>> > > JDBC driver class '' for connect URL 'null'
>> > >
>> > > WEB-INF web xml: code inserted AFTER all servlet mappings...
>> > the following shld be  in
>> > 
>> > > 
>> > My Datasource
>> > > jdbc/wms
>> > > javax.sql.DataSource
>> > > Container
>> > > 
>> >  
>> > >
>> > > server xml(tried this with and without a Resource name)...
>> > The following shld be under
>> > 
>> >
>> > REplace
>> >  
>> > with
>> > 
>> > type="javax.sql.DataSource"/>
>> > > 
>> > >   
>> > > username
>> > > whatever
>> > >   
>> > >   
>> > > password
>> > > whatever
>> > >   
>> > >   
>> > > driverClassName
>> > > com.informix.jdbc.IfxDriver
>> > >   
>> > >   
>> > > url
>> > >
>jdbc:informix-sqli://foo.bar.com:somePort/dbName:INFORMIXSER
>VER=serverName
>> > > 
>> > > 
>> > replace
>> >
>> > with
>> > 
>> > 
>> > >
>> > > I have the following jars in my /common/lib and I also
>> > > tried putting the db driver and commons-collections, dbcp,
>and pool in
>> > > my WEB-INF/lib with no success.  They are all mode 644.
>> > >
>> > > ant.jar
>> > > ant-launcher.jar
>> > > commons-collections-3.1.jar
>> > > commons-dbcp-1.2.1.jar
>> > > commons-el.jar
>> > > commons-pool-1.2.jar
>> > > ifxjdbc.jar (the necessary informix driver)
>> > > jar.txt
>> > > jasper-compiler.jar
>> > > jasper-runtime.jar
>> > > jsp-api.jar
>> > > mysql-connector-java-3.0.15-ga-bin.jar
>> > > naming-common.jar
>> > > naming-factory.jar
>> > > naming-java.jar
>> > > naming-resources.jar
>> > > servlet-api.jar
>> > >
>> > > On Fri, 8 Oct 2004 11:45:59 +0530, Atishay Kumar
>> > > <[EMAIL PROTECTED]> wrote:
>> > > > hi,
>> > > >  i am not sure but you may try downloading latest jar files for
>> > > > following froom tomcat site and try them out. copy the old
>jar files
>> > > > somewhere else and try using the latest jar files.
>> > > > 1) Commons Collections
>> > > > 2)Commons DBCP
>> > > > 3)Commons Pool
>> > > >
>> > > >
>> > > >
>> > > >
>> > > > On Thu, 7 Oct 2004 15:29:40 -0700, Eric Wulff
><[EMAIL PROTECTED]> wrote:
>> > > > > Except that the driver works for connecting if I'm not
>utilizing a
>> > > > > connection pool, i.e., I am able to connect to the db
>and manipulate
>> > > > > data via DriverManager.getConnection(url, db, pwd).
>> > > > >
>> > > > > The driver is located in CATALINA_HOME/commons/lib
>> > > > >
>> > > > > Eric
>> > > > >
>> > > > > On Thu, 7 Oct 2004 18:22:45 -0400, Phillip Qin
>> > > > > <[EMAIL PROTECTED]> wrote:
>> > > > > > No, you don't need that many params. I think your
>proble

AW: DBCP Pooling loggin

2004-11-04 Thread Nick Pellow
Thanks Yoav.


>-Ursprungliche Nachricht-
>Von: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Gesendet: Donnerstag, 4. November 2004 16:39
>An: Tomcat Users List
>Betreff: RE: DBCP Pooling loggin
>
>
>
>Hi,
>
>>Under tomcat 5.0, what is the best way to configure logging
>>for commons-DBCP? Can this be done using log4j?
>
>You have to do it programmatically, using BasicDataSource#setLogWriter.
>This is the only logging supported by DBCP right now.  It's tricky to
>mix it with other logging such as that done by Tomcat.
>
>Yoav
>
>
>
>This e-mail, including any attachments, is a confidential business 
>communication, and may contain information that is confidential, 
>proprietary and/or privileged.  This e-mail is intended only for 
>the individual(s) to whom it is addressed, and may not be saved, 
>copied, printed, disclosed or used by anyone else.  If you are not 
>the(an) intended recipient, please immediately delete this e-mail 
>from your computer system and notify the sender.  Thank you.
>
>
>-
>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]



DBCP Pooling loggin

2004-11-04 Thread Nick Pellow
Hi, 

Under tomcat 5.0, what is the best way to configure logging
for commons-DBCP? Can this be done using log4j?


Cheers, 
Nick


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



defining .war expanded directory ?

2004-10-26 Thread Nick Pellow
Hi, 

Is it possible to configure tomcat 5.0.28
to expand the wars it finds in the webapp directory, 
to another directory? 

By default, it expands them in the same directoy as the wars. 

Cheers, 
Nick.


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