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 Fri, 15 Dec 2017 17:13:07 GMT
Hi Christopher,

Firstly thanks for your interest,

I didn't copy server.xml from old server it is a fresh start from tomcat9.

Here is the catalina.out details after the tomcat restart;

15-Dec-2017 20:07:13.891 SEVERE [main] org.apache.catalina.startup.HostConfig.deployWAR Error
deploying web application archive [/opt/tomcat/webapps/dart.war]
 java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException:
Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/dart]]
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:744)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:716)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:703)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1847)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
        at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:761)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1575)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:308)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
        at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424)
        at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:367)
        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:964)
        at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1425)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1415)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
        at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:941)
        at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:671)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:353)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493)

15-Dec-2017 20:07:13.892 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment
of web application archive [/opt/tomcat/webapps/dart.war] has finished in [661] ms
15-Dec-2017 20:07:13.892 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory
Deploying web application directory [/opt/tomcat/webapps/ROOT]
15-Dec-2017 20:07:13.945 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory
Deployment of web application directory [/opt/tomcat/webapps/ROOT] has finished in [52] ms
15-Dec-2017 20:07:13.945 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory
Deploying web application directory [/opt/tomcat/webapps/docs]
15-Dec-2017 20:07:13.954 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory
Deployment of web application directory [/opt/tomcat/webapps/docs] has finished in [9] ms
15-Dec-2017 20:07:13.954 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory
Deploying web application directory [/opt/tomcat/webapps/examples]
15-Dec-2017 20:07:14.097 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory
Deployment of web application directory [/opt/tomcat/webapps/examples] has finished in [143]
ms
15-Dec-2017 20:07:14.097 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory
Deploying web application directory [/opt/tomcat/webapps/host-manager]
15-Dec-2017 20:07:14.114 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory
Deployment of web application directory [/opt/tomcat/webapps/host-manager] has finished in
[17] ms
15-Dec-2017 20:07:14.115 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory
Deploying web application directory [/opt/tomcat/webapps/manager]
15-Dec-2017 20:07:14.127 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory
Deployment of web application directory [/opt/tomcat/webapps/manager] has finished in [11]
ms
15-Dec-2017 20:07:14.129 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler
["http-nio-8080"]
15-Dec-2017 20:07:14.134 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler
["ajp-nio-8009"]
15-Dec-2017 20:07:14.136 INFO [main] org.apache.catalina.startup.Catalina.start Server startup
in 946 ms


And here is the localhost.2017-12-15.log

15-Dec-2017 20:07:08.002 INFO [main] org.apache.catalina.core.ApplicationContext.log SessionListener:
contextDestroyed()
15-Dec-2017 20:07:08.002 INFO [main] org.apache.catalina.core.ApplicationContext.log ContextListener:
contextDestroyed()
15-Dec-2017 20:07:14.092 INFO [main] org.apache.catalina.core.ApplicationContext.log ContextListener:
contextInitialized()
15-Dec-2017 20:07:14.092 INFO [main] org.apache.catalina.core.ApplicationContext.log SessionListener:
contextInitialized()

And one note, I installed tomcat- java etc.. and just copied the war and the other content
from the old server and restart the tomcat. Did I need to do anything else for the deployment
like from Tomcat Manager?

Thanks&Regards.

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

[cid:signaturelogo_375b02ad-6835-44df-8575-fe85de86a737.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: Christopher Schultz [mailto:chris@christopherschultz.net]
Sent: Friday, December 15, 2017 7:34 PM
To: users@tomcat.apache.org
Subject: Re: Moving a web application from tomcat6 to tomcat9

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Onur,

On 12/15/17 8:31 AM, Onur Küçükturan wrote:
> I want to move a web site from a new server but getting some errors
> and site is not working, here is the details;
>
> Old Server details: Debian,Tomcat6, Java 1.6
>
> New Server details: Centos7, Tomcat9,Java 1.8.151
>
> User and group is created in Centos and gave access to site directory
> and subfolders
>
> After this installation, I moved sitename.war file and site content to
> the new server (tomcat installation path/webapps/).

This is a good first step. Of course, you want to make sure not to copy the configuration
files from OLD_TOMCAT/conf/* to
NEW_TOMCAT/conf/* because they are likely to be incompatible between major Tomcat versions.
Always start with a fresh e.g. conf/server.xml.

> When I run the tomcat in the log files I am getting following errors.
>
> _Catalina.out log files error:_ SEVERE [main]
> org.apache.catalina.startup.HostConfig.deployWAR Error deploying web
> application archive /installation path/sitename.war/
>
> / /java.lang.IllegalStateException: ContainerBase.addChild: start:
> org.apache.catalina.LifecycleException: Failed to start component
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[//si
tename/]]

Without
>
the rest of the stack trace, we aren't going to be able to help. Buried somewhere is the "real"
error preventing the application from starting.

> _Localhost_access_log error: _"GET //sitename/ HTTP/1.1" 404 1077
>
> And when trying to Access page via Internet Explorer:
>
> HTTP Status 404 – Not Found

This is not surprising given that the application failed to deploy.

Can you provide a more complete stack trace from logs/catalina.out?
Also, there may be more information in either logs/localhost*.log or logs/sitename.log.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQJRBAEBCAA7FiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAloz+W0dHGNocmlzQGNo
cmlzdG9waGVyc2NodWx0ei5uZXQACgkQHPApP6U8pFiywBAAvX/n0TruAoelL7Ek
zpQbzCGFnGb51f6KDwin2/3VNBxGfB5c1mYO8sjePnEBen7bdTSz96err5g/qefL
EiCdlQJnutanFDs03NFcuMBvrmYx5pUx9mVfOTKz2lM1KE6fplW9jG77EyldxIIR
f+R/kOHJcRK0lTJcrnEo9cyldRmp/fMnhtvl3L2tpdG2vFhLr0x1nItwd+/Pk9D9
gTOkoayxqJ7YEv0BLM57Z6H/w5Fvfkfx+HTaeGPhG9I5v/IFqgrX79Y98uHrX18f
9H0tPZk97fNyVITHHUrUuOhL7fg5T90tPBZOi0T0Lyr9V/jDjCa6wul4UHNLVNNN
Uck/XZ9EXy3fF9HsZ7pmstPNxu8SucVbtZGzlNHkaft2l7/O5AVKDkuWXGV/EnOp
gweGembX39paSoBx76zZlYs6cmDkYYiXcef2eT1DlAa4Sqwyvvz//9uBLVjLX+2h
ioMVDU3yIL5zQFp0ZECgbktLisMeG2qKfXNL09CfaUEUdPWIQUWr/zaci+Vv1Gur
FhN1aYw6wxH5ZH8IFavoGgJ2GcDPHdS9+injbf5l+K2mUoz7cFA06QOCdKPwjOan
uTlCv/U6Cmqz0Mp3Zq0+gYHPZ1kF4opcE+UrdO649MAjS6gdEvkd8LOTSuc3c5Jn
k7o/9dN3hPFTwq0WgnSWxfiekWI=
=6G9A
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
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