前俩天,在本地安装了oracle 10g,后来发现tomcat不能正常启动了。
主要原因:oracle占的端口是8080,把tomct的端口给占了。
解决方法:双击tomcat,改下端口号。我个人是把8080改成8000了。
启动tomcat的时候 出现下列信息。
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\jdk1.6.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Java\jdk1.6.0\jre\bin;C:/Program Files/Java/jdk1.6.0/bin/../jre/bin/client;C:/Program Files/Java/jdk1.6.0/bin/../jre/bin;C:/Program Files/Java/jdk1.6.0/bin/../jre/lib/i386;C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\Program Files\Java\jdk1.6.0\bin;d:\oracle\product\11.1.0\db_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;D:\work\eclipse-jee-helios-SR2-win32\eclipse;
下载 http://tomcat.heanet.ie/native/1.1.12/binaries/win32/tcnative-1.dll
如果版本不对的话,会有提示,比如我的就是1.1.10的版本,把1.1.12改成1.1.10就可以了。
将下载的tcnative-1.dll的放在windows/system32 下面就可以了。
信息:APR capabilities: IPv6 [false], sendfile [true], accept filters [false], random [true].
这样就正常了。