当前位置: 首页 > 知识库问答 >
问题:

雄猫不要跑酒井

伯博
2023-03-14

我正在安装sakai,我获得了“构建成功”,但当运行tomcat时,这不起作用,所以看起来像java执行错误。

我的环境:

>

  • 酒井(来自github)
  • Apache Maven 3.0.5

    Maven home: /usr/share/maven
    Java版本: 1.8。0_05,供应商: Oracle Corporation
    Javahome: /usr/lib/jvm/jdk1.8.0_05/jre默认语言环境:es_CO,平台编码: UTF-8操作系统名称:"linux",版本:"3.11-2-amd64",arch:"amd64",系列:"unix"

    雄猫8.0.21

    Java语言

    java版本“1.8.0\u 05”java(TM)SE Runtime Environment(build 1.8.0\u 05-b13)
    java HotSpot(TM)64位服务器虚拟机(build 25.5-b02,混合模式)

    当运行tomcat时,我得到了这个:

    rizotas@g4:~/Proyectos/sakai/apache-tomcat-8.0.21/bin$ ./startup.sh && tail -f ../logs/catalina.out 
    Using CATALINA_BASE:   /home/rizotas/Proyectos/sakai/apache-tomcat-8.0.21
    Using CATALINA_HOME:   /home/rizotas/Proyectos/sakai/apache-tomcat-8.0.21
    Using CATALINA_TMPDIR: /home/rizotas/Proyectos/sakai/apache-tomcat-8.0.21/temp
    Using JRE_HOME:        /usr
    Using CLASSPATH:       /home/rizotas/Proyectos/sakai/apache-tomcat-8.0.21/bin/bootstrap.jar:/home/rizotas/Proyectos/sakai/apache-tomcat-8.0.21/bin/tomcat-juli.jar
    Tomcat started.
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)
    
    04-May-2015 18:19:17.807 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8080"]
    04-May-2015 18:19:17.807 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-nio-8009"]
    04-May-2015 18:19:17.807 INFO [main] org.apache.catalina.core.StandardService.stopInternal Parando servicio Catalina
    04-May-2015 18:19:17.953 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8080"]
    04-May-2015 18:19:17.953 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-8080"]
    04-May-2015 18:19:17.954 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["ajp-nio-8009"]
    04-May-2015 18:19:17.954 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["ajp-nio-8009"]
    Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=320m; support was removed in 8.0
    04-May-2015 18:20:08.922 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/home/rizotas/Proyectos/sakai/apache-tomcat-8.0.21/server/classes/,/home/rizotas/Proyectos/sakai/apache-tomcat-8.0.21/server/lib], exists: [false], isDirectory: [false], canRead: [false]
    04-May-2015 18:20:09.018 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/home/rizotas/Proyectos/sakai/apache-tomcat-8.0.21/shared/classes/,/home/rizotas/Proyectos/sakai/apache-tomcat-8.0.21/shared/lib], exists: [false], isDirectory: [false], canRead: [false]
    04-May-2015 18:20:10.648 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/8.0.21
    04-May-2015 18:20:10.649 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Mar 23 2015 14:11:21 UTC
    04-May-2015 18:20:10.649 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:         8.0.21.0
    04-May-2015 18:20:10.649 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Linux
    04-May-2015 18:20:10.649 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            3.11-2-amd64
    04-May-2015 18:20:10.649 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
    04-May-2015 18:20:10.650 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /usr/lib/jvm/jdk1.8.0_05/jre
    04-May-2015 18:20:10.650 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_05-b13
    04-May-2015 18:20:10.650 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
    04-May-2015 18:20:10.650 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /home/rizotas/Proyectos/sakai/apache-tomcat-8.0.21
    04-May-2015 18:20:10.650 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /home/rizotas/Proyectos/sakai/apache-tomcat-8.0.21
    04-May-2015 18:20:10.651 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/home/rizotas/Proyectos/sakai/apache-tomcat-8.0.21/conf/logging.properties
    04-May-2015 18:20:10.651 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
    04-May-2015 18:20:10.651 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx1028m
    04-May-2015 18:20:10.651 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:MaxPermSize=320m
    04-May-2015 18:20:10.651 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false
    04-May-2015 18:20:10.652 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.awt.headless=true
    04-May-2015 18:20:10.652 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote
    04-May-2015 18:20:10.652 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dsun.lang.ClassLoader.allowArraySyntax=true
    04-May-2015 18:20:10.652 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=/home/rizotas/Proyectos/sakai/apache-tomcat-8.0.21/endorsed
    04-May-2015 18:20:10.652 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/home/rizotas/Proyectos/sakai/apache-tomcat-8.0.21
    04-May-2015 18:20:10.652 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/home/rizotas/Proyectos/sakai/apache-tomcat-8.0.21
    04-May-2015 18:20:10.653 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/home/rizotas/Proyectos/sakai/apache-tomcat-8.0.21/temp
    04-May-2015 18:20:10.653 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent La biblioteca nativa de Apache Tomcat basada en ARP que permite un rendimiento óptimo en entornos de desarrollo no ha sido hallada en java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
    04-May-2015 18:20:11.286 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
    04-May-2015 18:20:11.323 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
    04-May-2015 18:20:11.342 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
    04-May-2015 18:20:11.344 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
    04-May-2015 18:20:11.344 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1773 ms
    04-May-2015 18:20:11.481 INFO [main] org.apache.catalina.core.StandardService.startInternal Arrancando servicio Catalina
    04-May-2015 18:20:11.481 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.21
    04-May-2015 18:20:11.570 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Despliegue del archivo /home/rizotas/Proyectos/sakai/apache-tomcat-8.0.21/webapps/sakai-sections-tool.war de la aplicación web
    04-May-2015 18:20:13.652 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start: 
     org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/sakai-sections-tool]]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:940)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1738)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.NoClassDefFoundError: Lorg/springframework/context/ApplicationContext;
        at java.lang.Class.getDeclaredFields0(Native Method)
        at java.lang.Class.privateGetDeclaredFields(Class.java:2570)
        at java.lang.Class.getDeclaredFields(Class.java:1903)
        at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106)
        at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:256)
        at org.apache.catalina.startup.WebAnnotationSet.loadApplicationFilterAnnotations(WebAnnotationSet.java:105)
        at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:64)
        at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:334)
        at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:774)
        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:305)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5065)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        ... 10 more
    Caused by: java.lang.ClassNotFoundException: org.springframework.context.ApplicationContext
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1305)
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1157)
        ... 24 more
    
    04-May-2015 18:20:13.654 SEVERE [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Error durante el despliegue del archivo /home/rizotas/Proyectos/sakai/apache-tomcat-8.0.21/webapps/sakai-sections-tool.war de la aplicación web
     java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/sakai-sections-tool]]
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:728)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:940)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1738)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
    
    04-May-2015 18:20:13.671 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive /home/rizotas/Proyectos/sakai/apache-tomcat-8.0.21/webapps/sakai-sections-tool.war has finished in 2.085 ms
    04-May-2015 18:20:13.703 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Despliegue del archivo /home/rizotas/Proyectos/sakai/apache-tomcat-8.0.21/webapps/sakai-site-manage-group-section-role-helper.war de la aplicación web
    04-May-2015 18:20:14.567 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars Al menos un JAR, que se ha explorado buscando TLDs, aún no contenía TLDs. Activar historial de depuración para este historiador para una completa lista de los JARs que fueron explorados y de los que nos se halló TLDs. Saltarse JARs no necesarios durante la exploración puede dar lugar a una mejora de tiempo significativa en el arranque y compilación de JSP .
    04-May-2015 18:20:14.653 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Error listenerStart
    ^C
    

    非常感谢你的帮助。

    萨卢多斯:)

  • 共有1个答案

    端木承业
    2023-03-14

    你的tomcat是8,我看到他们在安装步骤中提到了tomcat 7。对于您的错误,您必须检查您的spring版本是否使用tomcat 8进行了测试,我认为SpringV4支持tomcat 8。

     类似资料:
    • 我正在开发一个应用程序,我用Java和Jersey构建了后端部分,它托管在我的服务器上。我在服务器上使用Tomcat7来调用web服务。 我以前有一台带有Ubuntu的计算机,我曾经将我的项目导出到战争文件,将其放在Tomcat文件夹中,然后它就可以工作了。我现在将我的电脑改成了Mac,我有完全相同的Java项目,当我在电脑上本地运行它时,它就可以工作。但是当我以与以前相同的方式将其上传到服务器时

    • 问题内容: 尝试在64位linux(CentOS)计算机上诊断一些奇怪的Tomcat()和/或JVM错误。 我正在对我们的服务器应用程序进行负载测试,并尝试使用100K消息进行匹配。发射并一直盯着堆。一切看起来都很好*(请参阅下文),直到我收到大约93K的已处理消息,然后Tomcat死了。对Tomcat的PID号运行一个,以确认它已死。 直到此崩溃: 负载测试已经运行了大约90分钟;自从我们达到9

    • 我们希望将SolrCloud与单独的ZooKeeper实例一起使用,但需要一些建议。我们的情况是-多个集合,每个集合都有多个分片在Ubuntu 13、Solr 4.7.0、单独的ZooKeeper 3.4.5、AWS中的OpenJDK 7上运行 Jetty还是Tomcat?Jetty是内置的,需要更少的配置,但是除非指定“nohup”,否则当您退出运行SolrCloud的java命令或断开SSH会

    • 我无法理解从phonegap发送ajax请求时,如果没有使用tomcat处理请求,则返回403错误。如果使用码头嵌入工作冷却。 我的控制器 如何在tomcat中完整记录请求,或者如何从spring修复它。在简单的rest中,客户机工作很酷。 获取返回 主机10.0.0.42:8080连接保持活动接受/x请求-使用com。柠檬酸。planReview用户代理Mozilla/5.0(Linux;U;A

    • 我试图按照headfirst jsp和servlets的书,我遇到了以下错误。HTTP状态404 - /Beer/form.html 我的文件夹组织如下 假猫- 同样在啤酒文件夹中,我还有另一个文件夹 WEB-INF,其中包含 web.xml 文件。 首先我想也许我的雄猫根本不起作用,所以我使用我以前完成的 servlet 对其进行了测试。成功了。 我重新启动了web服务器,但仍然出现此错误。我正

    • 雄猫虚拟目录不起作用。 嗨,我在Tomcat 7上遇到了这个问题,当引用到一个本地文件夹时,它可以正常工作,但是如果引用到另一台计算机上的一个文件夹,这就不能被识别。 这是我正在使用的配置 引用的目录是共享的,如果我可以从浏览器中看到它,则具有读写权限。 Tomcat运行在Windows XP上,另一台计算机是Windows 2003 这是错误: dic 09, 2013 11:33:55 AM