我安装了一个已嵌入tomcat 7的服务器。 服务器运行时,我无法访问服务器的网页。 我需要的是访问管理页面,即。 http://xxx.xxx.xx.77:8080/Nolio-app
然后我得到了以下错误。 请帮助&谢谢!!
了解更多信息: 服务器使用mysql,需要mysql-connect-java-5.1.21.jar 但我只能从互联网上找到mysql-connector-java-5.1.26-bin.jar
服务器使用以下设置。 使用CATALINA_BASE:/data/Nolio-4.7
使用CATALINA_HOME:/data/Nolio-4.7
使用CATALINA_TMPDIR:/data/Nolio-4.7/temp
使用JRE_HOME:./ jre
使用CLASSPATH:/data/Nolio-4.7/bin/bootstrap.jar:/data/Nolio-4.7/bin/tomcat-juli.jar
使用CATALINA_PID:./ catalina.pid
Aug 20, 2013 6:04:43 AM org.apache.catalina.session.JDBCStore open
SEVERE: JDBC driver class not found java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
Aug 20, 2013 8:55:08 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'xmlValidation' to 'false' did not find a matching property.
Aug 20, 2013 8:55:08 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'xmlNamespaceAware' to 'false' did not find a matching property.
Aug 20, 2013 8:55:09 AM org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
Aug 20, 2013 8:55:09 AM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Aug 20, 2013 8:55:09 AM org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["http-nio-8443"]
Aug 20, 2013 8:55:09 AM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Aug 20, 2013 8:55:09 AM org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Aug 20, 2013 8:55:09 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1898 ms
Aug 20, 2013 8:55:09 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Aug 20, 2013 8:55:09 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.14
Aug 20, 2013 8:55:09 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive nexus.war
Aug 20, 2013 8:55:09 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Context/Manager} Setting property 'minIdelSwap' to '0' did not find a matching property.
Aug 20, 2013 8:55:11 AM org.apache.catalina.core.ApplicationContext log
INFO: Configuring Nexus in vanilla WAR...
Aug 20, 2013 8:55:11 AM org.apache.catalina.core.ApplicationContext log
INFO: Setting Plexus basedir context variable to (discovered from Servlet container): /data/Nolio-4.7/webapps/nexus/WEB-INF
Aug 20, 2013 8:55:18 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error manager.start()
java.lang.NullPointerException
at org.apache.catalina.session.JDBCStore.open(JDBCStore.java:892)
at org.apache.catalina.session.JDBCStore.getConnection(JDBCStore.java:844)
at org.apache.catalina.session.JDBCStore.startInternal(JDBCStore.java:983)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.session.PersistentManagerBase.startInternal(PersistentManagerBase.java:824)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5241)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:812)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:932)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:723)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1322)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:379)
at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:324)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1041)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.startup.Catalina.start(Catalina.java:620)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:303)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
Aug 20, 2013 8:55:18 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/nexus] startup failed due to previous errors
....
答案 0 :(得分:1)
尝试使用MySQL使用JDBC存储配置 PersistentManager 时,我遇到了同样的异常。我只需要将mysql-connector jar(例如 mysql-connector-java-5.1.34-bin.jar )复制到我的tomcat库目录( [tomcatDir] / lib /。 )
如果连接字符串不正确,则会出现另一个错误:
org.apache.catalina.session.JDBCStore getConnection
SEVERE: A SQL exception occurred com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'invalidDB'
答案 1 :(得分:0)
一些最新的Nolio版本不支持开箱即用的Mysql,并且需要一些配置。这是Nolio的知识库,关于如何配置4.7版以使用Mysql - Nolio 4.7 - Custom Installation without Database Configuration这可以解决您的问题。