zoukankan      html  css  js  c++  java
  • Java Web项目(Extjs)报错二

    1、Java Web项目(Extjs)报错二

         具体报错如下:

    usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ]  { -help | start | stop }
    2014-3-26 22:46:18 org.apache.catalina.core.AprLifecycleListener init
    信息: Loaded APR based Apache Tomcat Native library 1.1.27 using APR version 1.4.6.
    2014-3-26 22:46:18 org.apache.catalina.core.AprLifecycleListener init
    信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
    2014-3-26 22:46:19 org.apache.catalina.core.AprLifecycleListener initializeSSL
    信息: OpenSSL successfully initialized (OpenSSL 1.0.1d 5 Feb 2013)
    2014-3-26 22:46:20 org.apache.coyote.AbstractProtocol init
    信息: Initializing ProtocolHandler ["http-apr-8686"]
    2014-3-26 22:46:20 org.apache.coyote.AbstractProtocol init
    信息: Initializing ProtocolHandler ["ajp-apr-8009"]
    2014-3-26 22:46:20 org.apache.catalina.startup.Catalina load
    信息: Initialization processed in 5017 ms
    2014-3-26 22:46:20 org.apache.catalina.core.StandardService startInternal
    信息: Starting service Catalina
    2014-3-26 22:46:20 org.apache.catalina.core.StandardEngine startInternal
    信息: Starting Servlet Engine: Apache Tomcat/7.0.41
    2014-3-26 22:46:21 org.apache.catalina.loader.WebappClassLoader validateJarFile
    信息: validateJarFile(D:MyEclipseworkspacegwtjs_frameworkwebWEB-INFlibjuel-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/el/Expression.class
    2014-3-26 22:46:21 org.apache.catalina.loader.WebappClassLoader validateJarFile
    信息: validateJarFile(D:MyEclipseworkspacegwtjs_frameworkwebWEB-INFlibservlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    2014-3-26 22:46:36 org.apache.catalina.startup.TaglibUriRule body
    信息: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
    2014-3-26 22:46:36 org.apache.catalina.startup.TaglibUriRule body
    信息: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
    2014-3-26 22:46:36 org.apache.catalina.startup.TaglibUriRule body
    信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
    2014-3-26 22:46:36 org.apache.catalina.startup.TaglibUriRule body
    信息: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
    2014-3-26 22:46:36 org.apache.catalina.startup.TaglibUriRule body
    信息: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
    2014-3-26 22:46:36 org.apache.catalina.startup.TaglibUriRule body
    信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
    2014-3-26 22:46:36 org.apache.catalina.startup.TaglibUriRule body
    信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
    2014-3-26 22:46:36 org.apache.catalina.startup.TaglibUriRule body
    信息: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
    2014-3-26 22:46:36 org.apache.catalina.startup.TaglibUriRule body
    信息: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
    2014-3-26 22:46:36 org.apache.catalina.startup.TaglibUriRule body
    信息: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
    2014-3-26 22:46:36 org.apache.catalina.startup.TaglibUriRule body
    信息: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
    2014-3-26 22:46:36 org.apache.catalina.startup.TaglibUriRule body
    信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
    2014-3-26 22:46:36 org.apache.catalina.startup.TaglibUriRule body
    信息: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
    2014-3-26 22:46:36 org.apache.catalina.startup.TaglibUriRule body
    信息: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
    2014-3-26 22:46:36 org.apache.catalina.startup.TaglibUriRule body
    信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
    2014-3-26 22:46:36 org.apache.catalina.core.ApplicationContext log
    信息: No Spring WebApplicationInitializer types detected on classpath
    2014-3-26 22:46:36 org.apache.catalina.core.ApplicationContext log
    信息: Set web app root system property: 'log.root' = [D:MyEclipseworkspacegwtjs_frameworkweb]
    2014-3-26 22:46:36 org.apache.catalina.core.ApplicationContext log
    信息: Initializing log4j from [D:MyEclipseworkspacegwtjs_frameworkwebWEB-INFclasseslog4j.properties]
    2014-3-26 22:46:36 org.apache.catalina.core.ApplicationContext log
    信息: Initializing Spring root WebApplicationContext
    SLF4J: Class path contains multiple SLF4J bindings.
    SLF4J: Found binding in [jar:file:/D:/MyEclipse/workspace/gwtjs_framework/web/WEB-INF/lib/slf4j-jdk14-1.6.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
    SLF4J: Found binding in [jar:file:/D:/MyEclipse/workspace/gwtjs_framework/web/WEB-INF/lib/slf4j-log4j12-1.6.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
    SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
    SLF4J: Actual binding is of type [org.slf4j.impl.JDK14LoggerFactory]
    2014-3-26 22:46:39 org.apache.catalina.core.StandardContext listenerStart
    严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
    org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'sessionFactory' defined in URL [file:/D:/MyEclipse/workspace/gwtjs_framework/web/WEB-INF/classes/applicationContext.xml]: Could not resolve placeholder 'spring.security.mapping.directory' in string value [${spring.security.mapping.directory}]
    	at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:209)
    	at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:220)
    	at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:84)
    	at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:686)
    	at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:661)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)
    	at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
    	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
    	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
    	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887)
    	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
    	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
    	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    	at java.lang.Thread.run(Thread.java:619)
    2014-3-26 22:46:39 org.apache.catalina.core.StandardContext startInternal
    严重: Error listenerStart
    2014-3-26 22:46:39 org.apache.catalina.core.StandardContext startInternal
    严重: Context [/gwtjs_framework] startup failed due to previous errors
    2014-3-26 22:46:39 org.apache.catalina.core.ApplicationContext log
    信息: Closing Spring root WebApplicationContext
    2014-3-26 22:46:39 org.apache.catalina.core.ApplicationContext log
    信息: Shutting down log4j
    2014-3-26 22:46:39 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
    严重: The web application [/gwtjs_framework] appears to have started a thread named [Thread-1] but has failed to stop it. This is very likely to create a memory leak.
    2014-3-26 22:46:39 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory D:MyEclipseapache-tomcat-7.0.41webappsdocs
    2014-3-26 22:46:39 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory D:MyEclipseapache-tomcat-7.0.41webappsexamples
    2014-3-26 22:46:40 org.apache.catalina.core.ApplicationContext log
    信息: ContextListener: contextInitialized()
    2014-3-26 22:46:40 org.apache.catalina.core.ApplicationContext log
    信息: SessionListener: contextInitialized()
    2014-3-26 22:46:40 org.apache.catalina.core.ApplicationContext log
    信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@1978b94')
    2014-3-26 22:46:40 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory D:MyEclipseapache-tomcat-7.0.41webappshost-manager
    2014-3-26 22:46:40 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory D:MyEclipseapache-tomcat-7.0.41webappsmanager
    2014-3-26 22:46:40 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory D:MyEclipseapache-tomcat-7.0.41webappsROOT
    2014-3-26 22:46:40 org.apache.coyote.AbstractProtocol start
    信息: Starting ProtocolHandler ["http-apr-8686"]
    2014-3-26 22:46:40 org.apache.coyote.AbstractProtocol start
    信息: Starting ProtocolHandler ["ajp-apr-8009"]
    2014-3-26 22:46:40 org.apache.catalina.startup.Catalina start
    信息: Server startup in 19976 ms
    

    2、分析原因

         由于项目中配有权限控制,只有在权限范围内的用户才能登录,故出现这个问题


    3、解决办法

         如果数据库中没有这个权限控制这块,就将权限模块注释

    <!-- <value>${spring.security.mapping.directory}</value> -->


  • 相关阅读:
    c++函数学习-关于c++函数的林林总总
    STL学习笔记(七) 程序中使用STL
    STL学习笔记(六) 函数对象
    本学期总结与课程建议
    12.19
    12.18Tomcat相关知识
    12.17
    12.16
    12.15
    12.14
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13315260.html
Copyright © 2011-2022 走看看