简体   繁体   中英

Unable to deploy .war file in tomcat

I am using tomcat 7. I have integrated tomcat on windows machine. I want to deploy war file on this server. When I restart my tomcat I am getting following error in log:

org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in 
production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin;
C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Mail Enable\BIN;
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;
C:\Program Files\Java\jdk1.7.0_21\bin;D:\xampp\php;C:\ProgramData\Composer\bin;C:\Program 
Files\nodejs\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files\Microsoft 
ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Windows Kits\8.0\Windows Performance 
Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\MySQL\MySQL 
Utilities 1.3.4\;D:\xampp\htdocs\api\lib\Cake\Console;.

在Tomcat的config xml(conf \\ server.xml)中,尝试注释掉APR配置的这一行:

<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />

This isnt an error with Tomcat. It is an Info . Most likely your application deploy is failing due to the application having issues. If you can reach http://localhost:8080 without issues, it isnt a tomcat problem.

Check for catalina.log or if using tomcat as a service, tomcat_service.log(i might be misspelling the filename)

The problem has to be with the deployable war file, it isnt a tomcat issue from what you have mentioned. Check the log files of the application if they get created and if there is an error in them. the typical place would be the logs folder within tomcat to check for logs.

This is not an error, this is just an info message.

For more details check here.

What does "The APR based Apache Tomcat Native library was not found" mean?

Go the tomcat directory

tomcat7\bin>service.bat install //(this will install tomcat)
tomcat7\bin>tomcat7.exe //(this will start tomcat) 

before deploying the war try http://localhost:8080/ if you see tomcat webpage, everything is good else their is a problem.

then Deploy the war file in webapps folder in tomcat directory and start the server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM