tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Onur Küçükturan <onur.kucuktu...@karel.com.tr>
Subject RE: Moving a web application from tomcat6 to tomcat9
Date Tue, 19 Dec 2017 06:03:41 GMT
Hi Konstantin,

Yes, with copying Log4j 1.2.x, everything seems fine.

Thanks all for your help.

Regards.

Onur Küçükturan
Sistem ve Network Destek Kıdemli Uzmanı

[cid:signaturelogo_8ae54f46-e8b1-4007-add7-2894513a3e7e.jpg]

T +90 312 265 0290 / 6016
www.karel.com.tr<http://www.karel.com.tr>

Bu e-posta işbu bağlantıyı kullanarak erişebileceğiniz koşullara tabidir:
http://www.karel.com.tr/eposta-hukuki-sartlari

-----Original Message-----
From: Konstantin Kolinko [mailto:knst.kolinko@gmail.com]
Sent: Monday, December 18, 2017 3:49 PM
To: Tomcat Users List <users@tomcat.apache.org>
Subject: Re: Moving a web application from tomcat6 to tomcat9

2017-12-16 1:05 GMT+03:00 Onur Küçükturan <onur.kucukturan@karel.com.tr>:
>
> Hi Christopher,
>
> I shutdown the service and deleted all the logs files and after I
> moved all the folders under WebApps ( dart, dart.war, docs,
> manager,host-manager, examples) and logs are attached after the
> tomcat9 starts (nothing_under_webapps.zip)
>
> After I re-delete logs and copied only dart.war under /webapps and re-run the service,
attached logs "with_dart.zip".
>

1.) Rules:
http://tomcat.apache.org/lists.html#tomcat-users
-> 6. Top-posting is bad.
-> 7. Please format your messages as plain text, not HTML.

Usually attachments are automatically removed my mailing list server.
Yours came through, thus I will comment

2)

16-Dec-2017 01:02:17.341 SEVERE [main]
org.apache.tomcat.util.digester.Digester.fatalError Parse Fatal Error at line 37 column 2:
The content of elements must consist of well-formed character data or markup.
 org.xml.sax.SAXParseException; lineNumber: 37; columnNumber: 2; The content of elements must
consist of well-formed character data or markup.
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
    [...]
    at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1453)
    at org.apache.catalina.users.MemoryUserDatabase.open(MemoryUserDatabase.java:400)
    at org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:102)

The above means that your tomcat-users.xml file is broken (is not a valid well-formed XML
file).

(The message does not mention the name of the file, but tomcat-users.xml is the file usually
used by MemoryUserDatabase class mentioned in the stacktrace).

http://tomcat.apache.org/tomcat-9.0-doc/jndi-resources-howto.html#UserDatabase_Resources


3)
16-Dec-2017 01:02:18.095 SEVERE [main]
org.apache.catalina.core.ContainerBase.addChildInternal
ContainerBase.addChild: start:
 org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/dart]]
...
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1275)
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1104)
    ... 51 more

The above means that Log4J library is missing in your web application.
(Log4j 1.2.x, I guess)

https://logging.apache.org/log4j/1.2/
https://logging.apache.org/log4j/2.x/manual/migration.html

4)
What is in localhost.2017-12-16.log ?

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


[cid:reklam-imza-v2_fae86dcd-ccdb-4a89-9bbb-7b7a6dba6265.jpg]<http://www.karel.com.tr/sirket-profili>

Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message