AS运行新建项目报错问题

展开阅读全文

小白求问AndroidStudio新建项目报错问题

01-19

新建了一个Android项目,然后新建了一个虚拟机。虚拟机是可以正常启动的,但是run新建项目的时候就会报如下错:rn[color=#FF0000]Invalid escape sequence at line 1 column 29 path $[0].name[/color]rnrn具体错误如下:rn[color=#FF0000]org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.rn at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:110)rn at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:77)rn at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)rn at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59)rn at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)rn at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59)rn at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101)rn at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44)rn at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91)rn at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62)rn at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59)rn at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)rn at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)rn at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)rn at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.run(EventFiringTaskExecuter.java:51)rn at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)rn at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)rn at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)rn at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)rn at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)rn at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:46)rn at org.gradle.execution.taskgraph.LocalTaskInfoExecutor.execute(LocalTaskInfoExecutor.java:42)rn at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:277)rn at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:262)rn at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:135)rn at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:130)rn at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.execute(DefaultTaskPlanExecutor.java:200)rn at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.executeWithWork(DefaultTaskPlanExecutor.java:191)rn at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.run(DefaultTaskPlanExecutor.java:130)rn at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)rn at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Invalid escape sequence at line 1 column 29 path $[0].namern at com.google.gson.Gson.fromJson(Gson.java:902)rn at com.google.gson.Gson.fromJson(Gson.java:852)rn at com.android.build.gradle.internal.pipeline.SubStream.loadSubStreams(SubStream.java:129)rn at com.android.build.gradle.internal.pipeline.IntermediateFolderUtils.(IntermediateFolderUtils.java:66)rn at com.android.build.gradle.internal.pipeline.IntermediateStream.init(IntermediateStream.java:218)rn at com.android.build.gradle.internal.pipeline.IntermediateStream.asNonIncrementalInput(IntermediateStream.java:153)rn at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)rn at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1376)rn at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)rn at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)rn at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)rn at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)rn at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)rn at com.android.build.gradle.internal.pipeline.TransformTask.computeNonIncTransformInput(TransformTask.java:299)rn at com.android.build.gradle.internal.pipeline.TransformTask.access$500(TransformTask.java:69)rn at com.android.build.gradle.internal.pipeline.TransformTask$1.call(TransformTask.java:213)rn at com.android.build.gradle.internal.pipeline.TransformTask$1.call(TransformTask.java:174)rn at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:102)rn at com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:169)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:498)rn at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)rn at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:50)rn at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)rn at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)rn at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:131)rn at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)rn at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)rn at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)rn at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)rn at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)rn at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:120)rn at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:99)rn ... 34 morernCaused by: com.google.gson.stream.MalformedJsonException: Invalid escape sequence at line 1 column 29 path $[0].namern at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1559)rn at com.google.gson.stream.JsonReader.readEscapeCharacter(JsonReader.java:1550)rn at com.google.gson.stream.JsonReader.nextQuotedValue(JsonReader.java:1004)rn at com.google.gson.stream.JsonReader.nextString(JsonReader.java:815)rn at com.android.build.gradle.internal.pipeline.SubStream$SubStreamAdapter.read(SubStream.java:242)rn at com.android.build.gradle.internal.pipeline.SubStream$SubStreamAdapter.read(SubStream.java:194)rn at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:41)rn at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:82)rn at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:61)rn at com.google.gson.Gson.fromJson(Gson.java:887)rn ... 68 more[/color]rn[img=https://img-bbs.csdn.net/upload/201901/19/1547827885_979609.png][/img]rnrn求大神指点!不胜感激!rnrn 论坛

android 运行项目报错

11-30

Android Lanunchrn Your project contains error(s) please fix them before running your applicationrn--------------------------------\rn下面是控制台报错rn[2011-11-30 14:54:27 - TestIO] ------------------------------rn[2011-11-30 14:54:27 - TestIO] Android Launch!rn[2011-11-30 14:54:27 - TestIO] adb is running normally.rn[2011-11-30 14:54:27 - TestIO] Performing com.EX01.Ex_11 activity launchrn[2011-11-30 14:54:28 - TestIO] Automatic Target Mode: using device '11223344'rn[2011-11-30 14:54:28 - TestIO] Uploading TestIO.apk onto device '11223344'rn[2011-11-30 14:54:28 - TestIO] Installing TestIO.apk...rn[2011-11-30 14:54:29 - TestIO] Installation failed due to invalid APK file!rn[2011-11-30 14:54:29 - TestIO] Please check logcat output for more details.rn[2011-11-30 14:54:29 - TestIO] Launch canceled!rn[2011-11-30 14:54:48 - TestIO] ERROR: Unknown option '--no-crunch'rn[2011-11-30 14:54:48 - TestIO] Android Asset Packaging Toolrn[2011-11-30 14:54:48 - TestIO] rn[[2011-11-30 14:54:48 - TestIO] Package the android resources. It will read assets and resources that arern[2011-11-30 14:54:48 - TestIO] supplied with the -M -A -S or raw-files-dir arguments. The -J -P -F and -Rrn[2011-11-30 14:54:48 - TestIO] options control which files are output.rn[2011-11-30 14:54:48 - TestIO] rn[2011-11-30 14:54:48 - TestIO] aapt r[emove] [-v] file.zip,jar,apk file1 [file2 ...]rn[2011-11-30 14:54:48 - TestIO] Delete specified files from Zip-compatible archive.rn[2011-11-30 14:54:48 - TestIO] rn[2011-11-30 14:54:48 - TestIO] aapt a[dd] [-v] file.zip,jar,apk file1 [file2 ...]rn[2011-11-30 14:54:48 - TestIO] Add specified files to Zip-compatible archive.rn[2011-11-30 14:54:48 - TestIO] rn[2011-11-30 14:54:48 - TestIO] aapt v[ersion]rn[2011-11-30 14:54:48 - TestIO] Print program version.rn[2011-11-30 14:54:48 - TestIO] rn[2011-11-30 14:54:48 - TestIO] Modifiers:rn[2011-11-30 14:54:48 - TestIO] -a print Android-specific data (resources, manifest) when listingrn[2011-11-30 14:54:48 - TestIO] -c specify which configurations to include. The default is allrn[2011-11-30 14:54:48 - TestIO] configurations. The value of the parameter should be a commarn[2011-11-30 14:54:48 - TestIO] separated list of configuration values. Locales should be specifiedrn[2011-11-30 14:54:48 - TestIO] as either a language or language-region pair. Some examples:rn[2011-11-30 14:54:48 - TestIO] enrn[2011-11-30 14:54:48 - TestIO] port,enrn[2011-11-30 14:54:48 - TestIO] port,land,en_USrn[2011-11-30 14:54:48 - TestIO] If you put the special locale, zz_ZZ on the list, it will performrn[2011-11-30 14:54:48 - TestIO] pseudolocalization on the default locale, modifying all of thern[2011-11-30 14:54:48 - TestIO] strings so you can look for strings that missed thern[2011-11-30 14:54:48 - TestIO] internationalization process. For example:rn[2011-11-30 14:54:48 - TestIO] port,land,zz_ZZrn[2011-11-30 14:54:48 - TestIO] -d one or more device assets to include, separated by commasrn[2011-11-30 14:54:48 - TestIO] -f force overwrite of existing filesrn[2011-11-30 14:54:48 - TestIO] -g specify a pixel tolerance to force images to grayscale, default 0rn[2011-11-30 14:54:48 - TestIO] -j specify a jar or zip file containing classes to includern[2011-11-30 14:54:48 - TestIO] -k junk path of file(s) addedrn[2011-11-30 14:54:48 - TestIO] -m make package directories under location specified by -Jrn[2011-11-30 14:54:48 - TestIO] -u update existing packages (add new, replace older, remove deleted files)rn[2011-11-30 14:54:48 - TestIO] -v verbose outputrn[2011-11-30 14:54:48 - TestIO] -x create extending (non-application) resource IDsrn[2011-11-30 14:54:48 - TestIO] -z require localization of resource attributes marked withrn[2011-11-30 14:54:48 - TestIO] localization="suggested"rn[2011-11-30 14:54:48 - TestIO] -A additional directory in which to find raw asset filesrn[2011-11-30 14:54:48 - TestIO] -G A file to output proguard options into.rn[2011-11-30 14:54:48 - TestIO] -F specify the apk file to outputrn[2011-11-30 14:54:48 - TestIO] -I add an existing package to base include setrn[2011-11-30 14:54:48 - TestIO] -J specify where to output R.java resource constant definitionsrn[2011-11-30 14:54:48 - TestIO] -M specify full path to AndroidManifest.xml to include in ziprn[2011-11-30 14:54:48 - TestIO] -P specify where to output public resource definitionsrn[2011-11-30 14:54:48 - TestIO] -S directory in which to find resources. Multiple directories will be scannedrn[2011-11-30 14:54:48 - TestIO] and the first match found (left to right) will take precedence.rn[2011-11-30 14:54:48 - TestIO] -0 specifies an additional extension for which such files will notrn[2011-11-30 14:54:48 - TestIO] be stored compressed in the .apk. An empty string means to notrn[2011-11-30 14:54:48 - TestIO] compress any files at all.rn[2011-11-30 14:54:48 - TestIO] --debug-modern[2011-11-30 14:54:48 - TestIO] inserts android:debuggable="true" in to the application node of thern[2011-11-30 14:54:48 - TestIO] manifest, making the application debuggable even on production devices.rn[2011-11-30 14:54:48 - TestIO] --min-sdk-versionrn[2011-11-30 14:54:48 - TestIO] inserts android:minSdkVersion in to manifest. If the version is 7 orrn[2011-11-30 14:54:48 - TestIO] higher, the default encoding for resources will be in UTF-8.rn[2011-11-30 14:54:48 - TestIO] --target-sdk-versionrn[2011-11-30 14:54:48 - TestIO] inserts android:targetSdkVersion in to manifest.rn[2011-11-30 14:54:48 - TestIO] --max-res-versionrn[2011-11-30 14:54:48 - TestIO] ignores versioned resource directories above the given value.rn[2011-11-30 14:54:48 - TestIO] --valuesrn[2011-11-30 14:54:48 - TestIO] when used with "dump resources" also includes resource values.rn[2011-11-30 14:54:48 - TestIO] --version-codern[2011-11-30 14:54:48 - TestIO] inserts android:versionCode in to manifest.rn[2011-11-30 14:54:48 - TestIO] --version-namern[2011-11-30 14:54:48 - TestIO] inserts android:versionName in to manifest.rn[2011-11-30 14:54:48 - TestIO] --custom-packagern[2011-11-30 14:54:48 - TestIO] generates R.java into a different package.rn[2011-11-30 14:54:48 - TestIO] --auto-add-overlayrn[2011-11-30 14:54:48 - TestIO] Automatically add resources that are only in overlays.rn[2011-11-30 14:54:48 - TestIO] --rename-manifest-packagern[2011-11-30 14:54:48 - TestIO] Rewrite the manifest so that its package name is the package namern[2011-11-30 14:54:48 - TestIO] given here. Relative class names (for example .Foo) will bern[2011-11-30 14:54:48 - TestIO] changed to absolute names with the old package so that the codern[2011-11-30 14:54:48 - TestIO] does not need to change.rn[2011-11-30 14:54:48 - TestIO] --rename-instrumentation-target-packagern[2011-11-30 14:54:48 - TestIO] Rewrite the manifest so that all of its instrumentationrn[2011-11-30 14:54:48 - TestIO] components target the given package. Useful when used inrn[2011-11-30 14:54:48 - TestIO] conjunction with --rename-manifest-package to fix tests againstrn[2011-11-30 14:54:48 - TestIO] a package that has been renamed.rn[2011-11-30 14:54:48 - TestIO] --productrn[2011-11-30 14:54:48 - TestIO] Specifies which variant to choose for strings that havern[2011-11-30 14:54:48 - TestIO] product variantsrn[2011-11-30 14:54:48 - TestIO] --utf16rn[2011-11-30 14:54:48 - TestIO] changes default encoding for resources to UTF-16. Only useful when APIrn[2011-11-30 14:54:48 - TestIO] level is set to 7 or higher where the default encoding is UTF-8.rn[2011-11-30 14:54:48 - TestIO] --non-constant-idrn[2011-11-30 14:54:48 - TestIO] Make the resources ID non constant. This is required to make an R java classrn[2011-11-30 14:54:48 - TestIO] that does not contain the final value but is used to make reusable compiledrn[2011-11-30 14:54:48 - TestIO] libraries that need to access resources.rn 论坛

Tomcat运行项目报错:org.apache.tomcat.util.bcel.classfile.ClassFormatException

03-10

[color=#FF0000]org.apache.tomcat.util.bcel.classfile.ClassFormatException: It is not a Java .class file[/color]rn at org.apache.tomcat.util.bcel.classfile.ClassParser.readID(ClassParser.java:202)rn at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:80)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2123)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1985)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1946)rn at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1931)rn at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1330)rn at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:889)rn at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5472)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1572)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1562)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)rn at java.util.concurrent.FutureTask.run(FutureTask.java:166)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:722)rn怎么改正啊 急求 论坛

springmvc集成mybaits运行项目报错

12-12

Context initialization failedrnorg.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.apache.commons.dbcp2.BasicDataSource] for bean with name 'basicDataSource' defined in class path resource [applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: org/apache/commons/dbcp2/BasicDataSource : Unsupported major.minor version 51.0 (unable to load class org.apache.commons.dbcp2.BasicDataSource)rn at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1265)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:576)rn at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1331)rn at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:897)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:566)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)rn at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:631)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:588)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:645)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:508)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:449)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1213)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4425)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4738)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:802)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:583)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1080)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1003)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:507)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1322)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:325)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1068)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:759)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:595)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: java.lang.UnsupportedClassVersionError: org/apache/commons/dbcp2/BasicDataSource : Unsupported major.minor version 51.0 (unable to load class org.apache.commons.dbcp2.BasicDataSource)rn at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2858)rn at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)rn at org.springframework.util.ClassUtils.forName(ClassUtils.java:257)rn at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:417)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1283)rn at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1254)rn ... 39 morern2015-12-12 9:52:07 org.apache.catalina.core.ApplicationContext logrn严重: StandardWrapper.Throwablernorg.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.apache.commons.dbcp2.BasicDataSource] for bean with name 'basicDataSource' defined in class path resource [applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: org/apache/commons/dbcp2/BasicDataSource : Unsupported major.minor version 51.0 (unable to load class org.apache.commons.dbcp2.BasicDataSource)rn at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1265)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:576)rn at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1331)rn at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:897)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:566)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)rn at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:631)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:588)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:645)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:508)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:449)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1213)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4425)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4738)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:802)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:583)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1080)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1003)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:507)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1322)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:325)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1068)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:759)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:595)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: java.lang.UnsupportedClassVersionError: org/apache/commons/dbcp2/BasicDataSource : Unsupported major.minor version 51.0 (unable to load class org.apache.commons.dbcp2.BasicDataSource)rn at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2858)rn at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)rn at org.springframework.util.ClassUtils.forName(ClassUtils.java:257)rn at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:417)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1283)rn rn rn 论坛

没有更多推荐了,返回首页