代码找茬4导入运行出现问题
发表在JavaWeb图书答疑 2020-01-14 《JavaWeb项目开发实战入门》第3章 BBS——程序源论坛
是否精华
版块置顶:

严重: Failed to trigger creation of the GC Daemon thread during Tomcat start to prevent possible memory leaks. This is expected on non-Sun JVMs.

java.lang.ClassNotFoundException: sun.misc.GC

at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:436)

at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)

at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)

at java.base/java.lang.Class.forName0(Native Method)

at java.base/java.lang.Class.forName(Class.java:332)

at org.apache.catalina.core.JreMemoryLeakPreventionListener.lifecycleEvent(JreMemoryLeakPreventionListener.java:286)

at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95)

at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)

at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:394)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:99)

at org.apache.catalina.startup.Catalina.load(Catalina.java:580)

at org.apache.catalina.startup.Catalina.load(Catalina.java:603)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:567)

at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:310)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484)


1月 14, 2020 3:08:54 下午 org.apache.coyote.AbstractProtocol init

信息: Initializing ProtocolHandler ["http-nio-8080"]

1月 14, 2020 3:08:55 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector

信息: Using a shared selector for servlet write/read

1月 14, 2020 3:08:55 下午 org.apache.coyote.AbstractProtocol init

信息: Initializing ProtocolHandler ["ajp-nio-8009"]

1月 14, 2020 3:08:56 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector

信息: Using a shared selector for servlet write/read

1月 14, 2020 3:08:56 下午 org.apache.catalina.startup.Catalina load

信息: Initialization processed in 2471 ms

1月 14, 2020 3:08:56 下午 org.apache.catalina.core.StandardService startInternal

信息: Starting service Catalina

1月 14, 2020 3:08:56 下午 org.apache.catalina.core.StandardEngine startInternal

信息: Starting Servlet Engine: Apache Tomcat/8.0.36

1月 14, 2020 3:08:56 下午 org.apache.catalina.loader.WebappLoader buildClassPath

信息: Unknown loader jdk.internal.loader.ClassLoaders$AppClassLoader@15db9742 class jdk.internal.loader.ClassLoaders$AppClassLoader

1月 14, 2020 3:08:57 下午 org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom

信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [772] milliseconds.

1月 14, 2020 3:08:57 下午 org.apache.catalina.loader.WebappLoader buildClassPath

信息: Unknown loader jdk.internal.loader.ClassLoaders$AppClassLoader@15db9742 class jdk.internal.loader.ClassLoaders$AppClassLoader

1月 14, 2020 3:08:58 下午 org.apache.jasper.servlet.TldScanner scanJars

信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

1月 14, 2020 3:08:59 下午 org.apache.catalina.loader.WebappLoader buildClassPath

信息: Unknown loader jdk.internal.loader.ClassLoaders$AppClassLoader@15db9742 class jdk.internal.loader.ClassLoaders$AppClassLoader

1月 14, 2020 3:09:08 下午 org.apache.jasper.servlet.TldScanner scanJars

信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

1月 14, 2020 3:09:09 下午 org.apache.catalina.core.ApplicationContext log

信息: Spring WebApplicationInitializers detected on classpath: [com.mrkj.ygl.config.SpringWebInitializer@2ea7af45]

1月 14, 2020 3:09:09 下午 org.apache.catalina.core.ApplicationContext log

信息: Initializing Spring root WebApplicationContext

log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).

log4j:WARN Please initialize the log4j system properly.

log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

WARNING: An illegal reflective access operation has occurred

WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (file:/C:/Users/user/eclipse-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mrbbs/WEB-INF/lib/spring-core-4.2.4.RELEASE.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)

WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils$1

WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations

WARNING: All illegal access operations will be denied in a future release

1月 14, 2020 3:09:16 下午 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.BeanCreationException: Error creating bean with name 'secondPageController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.mrkj.ygl.service.SecondPageService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.annotation.Resource(shareable=true, lookup="", name="", description="", authenticationType=CONTAINER, type=java.lang.Object.class, mappedName="")}

at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:311)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)

789.png


分享到:
精彩评论 2
根号申
学分:4736 LV12
TA的每日心情
2021-07-16 23:48:46
2020-01-14
沙发
项目已经提示报错了,把报错那行代码的错误提示发出来
java123
学分:19 LV2
2020-01-14
板凳

根号申 发表于2020-01-14 15:28

项目已经提示报错了,把报错那行代码的错误提示发出来

我不知道是哪一行

首页上一页 1 下一页尾页 2 条记录 1/1页
手机同步功能介绍
友情提示:以下图书配套资源能够实现手机同步功能
明日微信公众号
明日之星 明日之星编程特训营
客服热线(每日9:00-17:00)
400 675 1066
mingrisoft@mingrisoft.com
吉林省明日科技有限公司Copyright ©2007-2022,mingrisoft.com, All Rights Reserved长春市北湖科技开发区盛北大街3333号长春北湖科技园项目一期A10号楼四、五层
吉ICP备10002740号-2吉公网安备22010202000132经营性网站备案信息 营业执照