1

我安装了一个已经嵌入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

使用类路径:/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
....

4

2 回答 2

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'
于 2014-12-09T05:29:06.373 回答
0

一些最新的 Nolio 版本不支持开箱即用的 Mysql,并且需要对其进行一些配置。这是 Nolio 知识库,关于如何配置 4.7 版以使用 Mysql - Nolio 4.7 - 无需数据库配置的自定义安装这应该可以解决您的问题。

于 2013-10-06T15:43:19.120 回答