Hello,

> -----Ursprüngliche Nachricht-----
> Von: Kevin Huntly <kmhun...@gmail.com>
> Gesendet: Samstag, 18. März 2023 11:10
> An: Tomcat Users List <users@tomcat.apache.org>
> Betreff: Re: Unable to start application
> 
> Here are the logs -
> https://drive.google.com/file/d/1jBsNaW_bQJ4KcDSvucJ5QWo642He6bgb/view
> ?usp=sharing
> 
> The JDBC driver is located under /opt/mysql/, and I added that path to
> catalina.properties under the common loader. I did try to move it into
> ${catalina.home}/lib, this did not change anything.
> ________________________________________________
 

This message looks strange:
18-Mar-2023 06:06:13.305 WARNING [main] 
org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with JAR 
file 
[/opt/Apache/Tomcat/apache-tomcat-9.0.73/lib/mysql-connector-j-8.0.32.jar], 
exists: [true], canRead: [false]

It seems that it cant load the jdbc driver from that path.
Could you download the jar again from the mysql website and replace it?
Can you open/unpack the jar without errors?

Greetings, Thomas



> 
> -----BEGIN GEEK CODE BLOCK-----
> Version: 1.0
> GCS/IT d+ s a C++ UL+++$ P+(++) L+++ E---
> W+++ N+ o K(+) w--- O- M-- V-- PS+ PE Y(+)
> PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> G++ e(+) h--- r+++ y+++*
> ------END GEEK CODE BLOCK------
> 
> 
> On Sat, Mar 18, 2023 at 3:16 AM Mark Thomas <ma...@apache.org> wrote:
> 
> > On 17/03/2023 23:18, John Dale (DB2DOM) wrote:
> > > ok - "mnet" should be "ment"
> >
> >  From the logs excerpt I saw earlier in the thread, that needs fixing
> > (although it was only a test element). I don't think it will break
> > anything else but better to remove the noise from the logs.
> >
> > > I figured I'd spell that out and behave like a compiler.  :)
> > >
> > > I would also move that configuration into server.xml (it's a major
> > > difference between your configuration and mine).
> >
> > That configuration style is NOT recommended. It means you have no
> > choice but to restart Tomcat if you change the Context configuration.
> > If it is in a separate Context file, Tomcat will reload the web
> > application automatically if you change the Context file.
> >
> > Stick with:
> >
> > /opt/Apache/Tomcat/apache-tomcat-9.0.73/conf/Catalina/localhost/esolut
> > ions.xml
> >
> > Do NOT specify a path attribute for the Context. It will be ignored.
> >
> > Where is the JDBC driver located? It needs to be in
> > ${CATALINA_BASE}/lib and not part of the WAR.
> >
> > Can we see the full logs from a clean start-up please?
> >
> > Mark
> >
> >
> > >
> > > Lastly, maybe to help debug a future issue, did you compile your
> > > project files against the tomcat libs included with your
> > > distribution, or did you drop them into this version of tomcat from 
> > > another
> version?
> > >   Probably won't matter since you should be coded to the interfaces,
> > > but one never knows.
> > >
> > > John
> > >
> > > On 3/17/23, Kevin Huntly <kmhun...@gmail.com> wrote:
> > >> no I think it has something to do with it but I'm not sure. I'll
> > >> try
> > taking
> > >> out the environment values and see what happens
> > >>
> > >> On Fri, Mar 17, 2023, 19:11 John Dale (DB2DOM) <jcdw...@gmail.com>
> > wrote:
> > >>
> > >>> In the log you sent below, I see a typo:
> > >>> Context/Environmnet
> > >>>
> > >>> Does that have something to do with it, or is this a typo in
> > >>> tomcat logging?
> > >>>
> > >>>
> > >>>
> > >>>
> > >>> On 3/17/23, Kevin Huntly <kmhun...@gmail.com> wrote:
> > >>>> yes, under Catalina/localhost
> > >>>>
> > >>>> On Fri, Mar 17, 2023, 19:07 John Dale (DB2DOM)
> > >>>> <jcdw...@gmail.com>
> > >>> wrote:
> > >>>>
> > >>>>> Are you modifying a context.xml file in the conf folder?
> > >>>>>
> > >>>>> On 3/17/23, Kevin Huntly <kmhun...@gmail.com> wrote:
> > >>>>>> Also of note:
> > >>>>>>
> > >>>>>> 17-Mar-2023 17:25:42.113 INFO [main]
> > >>>>>> org.apache.catalina.startup.HostConfig.deployDescriptor
> > >>>>>> Deploying deployment descriptor
> > >>>>>>
> > >>>>>
> > >>>
> > [/opt/Apache/Tomcat/apache-tomcat-9.0.73/conf/Catalina/localhost/esolu
> > tions.xml]
> > >>>>>> 17-Mar-2023 17:25:42.174 WARNING [main]
> > >>>>>> org.apache.tomcat.util.digester.Digester.endElement No rules
> > >>>>>> found
> > >>>>> matching
> > >>>>>> [Context/Environmnet]
> > >>>>>> ________________________________________________
> > >>>>>>
> > >>>>>> Kevin Huntly
> > >>>>>> Email: kmhun...@gmail.com
> > >>>>>> Cell: 716/424-3311
> > >>>>>> ________________________________________________
> > >>>>>>
> > >>>>>> -----BEGIN GEEK CODE BLOCK-----
> > >>>>>> Version: 1.0
> > >>>>>> GCS/IT d+ s a C++ UL+++$ P+(++) L+++ E---
> > >>>>>> W+++ N+ o K(+) w--- O- M-- V-- PS+ PE Y(+)
> > >>>>>> PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > >>>>>> G++ e(+) h--- r+++ y+++*
> > >>>>>> ------END GEEK CODE BLOCK------
> > >>>>>>
> > >>>>>>
> > >>>>>> On Fri, Mar 17, 2023 at 5:24 PM Kevin Huntly
> > >>>>>> <kmhun...@gmail.com>
> > >>>>>> wrote:
> > >>>>>>
> > >>>>>>> Here's my santized server.xml and context.xml
> > >>>>>>>
> > >>>>>>> server.xml -> https://pastebin.com/Bj6Wh0qU context.xml ->
> > >>>>>>> https://pastebin.com/Z3dBf3eK
> > >>>>>>>
> > >>>>>>
> > >>>>>
> > >>>>> ----------------------------------------------------------------
> > >>>>> ----- To unsubscribe, e-mail:
> > >>>>> users-unsubscr...@tomcat.apache.org
> > >>>>> For additional commands, e-mail: users-h...@tomcat.apache.org
> > >>>>>
> > >>>>>
> > >>>>
> > >>>
> > >>> ------------------------------------------------------------------
> > >>> --- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > >>> For additional commands, e-mail: users-h...@tomcat.apache.org
> > >>>
> > >>>
> > >>
> > >
> > > --------------------------------------------------------------------
> > > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > > For additional commands, e-mail: users-h...@tomcat.apache.org
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@tomcat.apache.org
> >
> >

Reply via email to