Ok, thanks again. Got it now working :)

> -----Urspr�ngliche Nachricht-----
> Von: Lutz Zetzsche [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 11. Mai 2005 09:35
> An: Tomcat Users List
> Betreff: Re: Restrict access to webapps for IPs
>
>
> Hi Jens,
>
> Am Mittwoch, 11. Mai 2005 09:01 schrieb Altrock, Jens:
> > > -----Urspr�ngliche Nachricht-----
> > > Von: Lutz Zetzsche [mailto:[EMAIL PROTECTED]
> > > Gesendet: Mittwoch, 11. Mai 2005 08:50
> > > An: Tomcat Users List
> > > Betreff: Re: Restrict access to webapps for IPs
> > >
> > >
> > > Hi Jens,
> > >
> > > Am Mittwoch, 11. Mai 2005 08:17 schrieb Altrock, Jens:
> > > > Ok tried it again.. first some more information:
> > > > I am using Tomcat 5.0.28 on Redhat Fedora Core 3, installed in
> > > > /usr/local/tomcat
>
> [...]
>
> > > > I have to mention that I did neither write that app nor
> know much
> > > > about it anyway.. it uses a JDBC connection
> > > > to a mysql database to write data to that db. But after
> > >
> > > creating that
> > >
> > > > config file mentioned above, the
> > > > JDBC driver didn't work anymore...
> > > >
> > > > Anyone can help me with that?
> > >
> > > It looks like your new Context definition is overriding
> an existing
> > > Context definition for this web application which contains
> > > the resource
> > > definition for the MySQL database.
> > >
> > > So you should have a look at your
> $CATALINA_HOME/conf/server.xml if
> > > there might be a existing Context definition inside the related
> > > Host element.
> >
> > I looked at the $CATALINA_HOME/conf/server.xml file, but can't find
> > anything like that inside the HOST element. It's the standard
> > server.xml file though, I don't know in what way a servlet
> itself can
> > change that file; but I don't think it can.
> >
> > > You should also look for a context.xml in the
> > > $CATALINA_HOME/webapps/[webapp]/META-INF/ directory for the same
> > > reason.
> >
> > I did, but there is none, and there never was one. That's what I
> > thought first,
> > but there's just a MANIFEST.MF file inside.
>
> If the MySQL database base connection has worked before and will work 
> again, when you remove your newly created Context file, then
> there has
> to be a Resource definition for it somewhere.
>
> As you are using Linux why don't you simply search the files in the
> $CATALINA_HOME directory for this Resource definition? I.e. like this:
>
>       grep -R "mysql" /usr/local/tomcat
>
> This way, you should find the file defining the MySQL
> resource for your
> web application (context). Then proceed as I suggested.
>
>
> Best wishes
>
> Lutz
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
###########################################
Diese Nachricht wurde von F-Secure Anti-Virus gescannt.

This message has been scanned by F-Secure Anti-Virus.


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

Reply via email to