generator集成maven插件时报Root class cannot be loaded 10C

问题:Root class cannot be loaded, checking for member overrides is disabled
使用工具为intelli idea 在使用generator集成maven插件时设置rootClass无法达到预期效果(子类没有根据父类中的字段内容去生成实体),实体类是可以正常生成的。但控制台报 Root class cannot be loaded, checking for member overrides is disable,
有一篇国外的论坛讨论过这个问题,思路似乎很正确,但我无法get到的操作,
国外论坛地址:http://mybatis-user.963551.n3.nabble.com/mybatis-generator-Root-class-xxx-cannot-be-loaded-td3576094.html
国内的论坛中许多文章都是忽略这个问题的。
有解决过这个问题的人么。希望提供帮助,万分感谢!

2个回答

将EntityBase打包在maven项目中 ,将项目添加到生成器任务的依赖项中

IsITMan
IsITMan 迷者是不会因为你这一句话就惊醒的 ,哈哈,好多人也这么告诉我的,但我一直没get到,这次我亲身解决了,终于恍然大悟,已整理博文。
一年多之前 回复

自己的问题自己解决,详细操作已写好博文,多多指教:https://blog.csdn.net/IsITMan/article/details/80363597

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Generator插件Maven模式
课程包含六个部分:nn相关软件和数据库环境准备nGenerator(命令行、maven、eclipse插件)nSpring和mybatis整合nSpring和mybatis整合后测试nSpring mvc整合nSpring mvc整合后测试
mybatis generator maven插件自动生成代码
MyBatis Generator (MBG) 是一个Mybatis的代码生成器,可以自动生成一些简单的CRUD(插入,查询,更新,删除)操作代码,model代码,及mapper配置文件,只需要5步即可实现mybatis代码的自动生成。 添加数据库和mybatis相关依赖 引入mybatis-generator-maven插件 配置数据库连接 配置mybatis-generator代码生成策略 ...
maven mybatis的插件generator问题
"C:\Program Files\Java\jdk1.7.0_80\bin\java" -Dmaven.multiModuleProjectDirectory=E:\IDEAPro\mmall -Dmaven.home=E:\jar\apache-maven-3.3.9 -Dclassworlds.conf=E:\jar\apache-maven-3.3.9\bin\m2.conf -Didea.launcher.port=7533 "-Didea.launcher.bin.path=D:\JetBrains\IntelliJ IDEA 15.0.6\bin" -Dfile.encoding=UTF-8 -classpath "E:\jar\apache-maven-3.3.9\boot\plexus-classworlds-2.5.2.jar;D:\JetBrains\IntelliJ IDEA 15.0.6\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=15.0.6 org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generatern[INFO] Scanning for projects...rn[WARNING] rn[WARNING] Some problems were encountered while building the effective model for com:mmall:war:1.0-SNAPSHOTrn[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 264, column 15rn[WARNING] rn[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.rn[WARNING] rn[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.rn[WARNING] rn[INFO] rn[INFO] ------------------------------------------------------------------------rn[INFO] Building mmall Maven Webapp 1.0-SNAPSHOTrn[INFO] ------------------------------------------------------------------------rn[INFO] rn[INFO] --- mybatis-generator-maven-plugin:1.3.2:generate (default-cli) @ mmall ---rn[INFO] ------------------------------------------------------------------------rn[INFO] BUILD FAILURErn[INFO] ------------------------------------------------------------------------rn[INFO] Total time: 2.772 srn[INFO] Finished at: 2017-07-31T11:31:39+08:00rn[INFO] Final Memory: 7M/134Mrn[INFO] ------------------------------------------------------------------------rn[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate (default-cli) on project mmall: Execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate failed: Cannot resolve classpath entry: /Users/mysql-connector-java-5.1.6.jar -> [Help 1]rn[ERROR] rn[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.rn[ERROR] Re-run Maven using the -X switch to enable full debug logging.rn[ERROR] rn[ERROR] For more information about the errors and possible solutions, please read the following articles:rn[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionExceptionrnrnProcess finished with exit code 1rn[color=#FF0000]在运行插件的时候报这个错[/color]新手学习mybaits请大神帮帮忙rn[img=https://img-bbs.csdn.net/upload/201707/31/1501472279_967448.jpg][/img]
mybatis maven generator 插件自动生成代码
简介:由于MyBatis属于一种半自动的ORM框架,所以主要的工作就是配置Mapping映射文件,但是由于手写映射文件很容易出错,所以可利用MyBatis生成器自动生成实体类、DAO接口和Mapping映射文件。这样可以省去很多的功夫 1.创建maven项目在pom.xml文件中添加如下代码 org.mybatis.generator mybatis-generator-maven
maven集成tomcat插件
第一种方案:在pom.xml文件中添加 <build> <plugins> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.
maven集成tomcat8插件
Maven中央仓库里面没有tomcat8的插件,因此需要配置其它仓库来引入Tomcat8的插件。下面是插件仓库的地址: &lt;pluginRepositories&gt; &lt;pluginRepository&gt; &lt;id&gt;alfresco-public&lt;/id&gt; &lt;url&gt;https:...
maven与Eclipse集成插件
包含maven安装包以及maven与Eclipse插件包文件,下载后直接使用
maven集成单元测试插件
1.maven不可允许忽略单元测试 2.引用jacoco.version 0.7.7.201606060606 3.maven依赖jar包 org.jacoco org.jacoco.agent ${jacoco.version} ch.qos.logback logback-access 1.1.7 ...
maven 集成tomcat插件
1. tomcat-maven-plugin  插件使用配置 在pom.xm 加入以下xml。 &amp;lt;plugin&amp;gt; &amp;lt;groupId&amp;gt;org.codehaus.mojo&amp;lt;/groupId&amp;gt; &amp;lt;artifactId&amp;gt;tomcat-maven-plugin&amp;...
maven插件和eclipse集成
maven跟eclipse插件集成. 1,打开你本地的eclipse根目录,随便新建一个文件夹例如mavenPlugin,把maven离线插件包中两个文件夹复制到这个新建的这个文件夹里边. 2,找到eclipse根目录下的dropins文件夹,进去后,新建一个.link文件,例如maven.link。然后编辑link文件,添加一行参数: path = C:\\Jared\\WeChat\\soft\\eclipse-jee-indigo-SR2-win32-x86_64\\eclipse\\mavenPlugin,这里填写自己eclipse安装目录地址,你把它换成你的,这个参数的意思就是告诉eclipse插件包的地址,启动的时候自动加载进去
eclipse集成maven插件
 1. maven官网下载地址:http://maven.apache.org/download.cgi。现在最高版本是3.1.1 2. 配置maven_home,和java_home配置是一样的,然后加入到系统的path里面 &quot;%maven_home%\bin&quot;,检验是否配置正确.cmd 执行命令mvn -version.输入版本信息,即认为配置maven成功 3.查看maven/con...
Eclipse集成Maven插件
Eclipse集成Maven插件 不知道各位有没有跟我一样,按照网上的教程,一步一步弄,却总是不成功没有。以下是我在Eclipse中集成Maven的过程。 在此过程中,会讲解相关细节。这些细节也是本人,一步一步爬坑爬出来的。 所需文件 Maven文件:链接:https://pan.baidu.com/s/14sWzZYkixXLFCfS3-vxacw提取码:0fjq jdk是1.7 ...
eclipse集成maven的插件
此插件百度一搜全是收费的,先贡献出来供大家免费下载使用。链接:https://pan.baidu.com/s/1A2GRejP9KBojdLrD5F8xhw 密码:63nz
class 'Bean.LoginBean' could not be loaded
以前用Tomcat测试的工程,现在将其导入服务器配置为weblogic的Myeclipse中却无法运行,错误提示如下:rnrn<2012-5-7 下午08时08分56秒 CST> <[ServletContext(id=27928091,name=ShopOnline,context-path=/ShopOnline)] Servlet failed with Exceptionrnrn[b]weblogic.servlet.jsp.JspException: (line 3): class 'Bean.LoginBean' could not be loaded[/b] rn at weblogic.servlet.jsp.JspLexer.jspException(JspLexer.java:712)rn at weblogic.servlet.jsp.JspLexer.processBeanTag(JspLexer.java:1398)rn at weblogic.servlet.jsp.JspLexer.mXML_OPEN_USEBEAN(JspLexer.java:3700)rn at weblogic.servlet.jsp.JspLexer.mXML_THING(JspLexer.java:1999)rn at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1892)rn at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1820)rn at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:963)rn at weblogic.servlet.jsp.JspParser.doit(JspParser.java:106)rn at weblogic.servlet.jsp.JspParser.parse(JspParser.java:234)rn at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:125)rn at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:258)rn at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:396)rn at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:246)rn at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:196)rn at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:598)rn at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:406)rn at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)rn at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6981)rn at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)rn at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)rn at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)rn at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)rn at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)rn at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)rn> rnrn怎么解决啊 纠结了一天了!望大侠赐教!!!
有谁见过这样的错.class cannot be loaded: java.lang.ExceptionInInitializerError - java.lang.ExceptionInInitializerError
请问类不能被加载,这是什么样的错.从来都没有见过.不知道是为什么啊.rn类路径等我检查过,一定正确.rn请大家帮我看看.
Spring Boot集成mybatis generator自动生成代码插件
一、项目准备 1.MyBatis Generator介绍      MyBatis Generator,缩写MBG,是一个Mybatis和iBatis的代码生成器。它支持Mybatis的所有版本,支持iBatis 2.2.0以后的版本。通过MyBatis Generator可以根据数据库表生成相应的实体、sql映射文件、Dao等,能应付简单的CRUD(Create, Retrieve, Upd...
mybatis generator maven插件自动生成代码__个人记录
本文只是对于mybatis generator maven插件使用的个人记录,作个备忘,同时也希望对进来的人有所帮助! 一.pom文件中引入插件 此处我引用的是1.3.5版本的,主要是1.3.4版本及以上可以设置Mapper(Dao)后缀如mapperName="LotteryDao" &lt;plugin&gt; &lt;!-- ...
为eclipse集成maven插件
[u]顺序安装一下插件[/u]: [list=1] [*][b]SVN Subclipse[/b] 1&gt;.访问地址: [url]http://subclipse.tigris.org/servlets/ProjectProcess;jsessionid=745017377065C745A36145529F1C1980?pageID=p4wYuA[...
Maven 集成Tomcat插件常见错误
常见的是为某某类cannot be cast to javax.servlet.Filter 如下面异常: java.lang.ClassCastException: com.alibaba.druid.support.http.WebStatFilter cannot be cast to javax.servlet.Filter Caused by: java.lang.ClassC
关于Eclipse集成jetty插件与maven插件
一、先说在eclipse中安装jetty插件 在help中选择Eclipse Marketplace,则会出现如下弹框。 如果未安装,则会出现Install按钮,点击该按钮,后面顺序是点击confirm按钮,选择I accept the terms of the license agreement,点击Finish。则会进行安装。 选中web工程,点击右键。出现下图所示,安装成功。 安...
generator的插件
MyBatis generator的插件,优势写MyBatis的时候需要自己写一大堆的实体类和映射文件,特别是写sql语句写大量的时间去设计。有了这个插件,MyEclispe可以自动生成相应的实体类和映射文件。里面有安装方法及先关说明。
json class generator
This application generates C# classes from a sample JSON text, so you can use strongly typed programming with JSON. It currently supports typed arrays, typed objects, integers, floats, booleans, strings and nullable types.
jb中运行时报Cannot load driver class:com.borland.datastore.jdbc.DataStoreDriver错误
我想把JB中ESite在WEBLOGIC中运行,WEBLOGIC中 Connection Pool与Data Sources已配置正确,但运行时会报以上错误。不知什么原因?rnrn错误提示如下:rn---------------------------------------------rnrn下午04时49分05秒> <2003-4-2 下午04时49分09秒> rnrn <2003-4-2 下午04时49分12秒rnrn> <2003-4-2 rnrn下午04时49分37秒> <2003-4-2 下午04时49分37秒>
SpringBoot2.1集成Mybatis Generator
SpringBoot2.1集成Mybatis Generator 自动生成DAO 代码 使用之前需要在本地建立测试数据库 使用教程 https://blog.csdn.net/sw69366/article/details/88713392
Cannot find class [com.fh.interceptor.shiro.ShiroRealm]
我在编译项目时,总是报错:rn017-05-21 21:49:55 -955 [localhost-startStop-1] INFO - Bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0' of type [class org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)rn2017-05-21 21:49:56 -1112 [localhost-startStop-1] ERROR - Context initialization failedrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroFilter' defined in class path resource [spring/ApplicationContext.xml]: Cannot resolve reference to bean 'securityManager' while setting bean property 'securityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in class path resource [spring/ApplicationContext.xml]: Cannot resolve reference to bean 'ShiroRealm' while setting bean property 'realm'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.fh.interceptor.shiro.ShiroRealm] for bean with name 'ShiroRealm' defined in class path resource [spring/ApplicationContext.xml]; nested exception is java.lang.ClassNotFoundException: com.fh.interceptor.shiro.ShiroRealmrnrn大概就是说没有找到com.fh.interceptor.shiro.ShiroRealm这个类,可是这个类明明是在src里有的呀rn[img=https://img-bbs.csdn.net/upload/201705/21/1495374843_428196.png][/img]
Cannot instantiate class: org.apache.openejb.client.LocalInitialContextFactory
刚接触java的项目,好多问题找不到原因,求高手指点。rn项目是别人已经开发好的,用maven管理的,好不容易编译过了,在部署到tomcat启动的时候出现如下错误:rn[code=java]rn信息: Quartz scheduler version: 2.2.1rn三月 27, 2015 10:56:15 上午 org.quartz.core.QuartzScheduler startrn信息: Scheduler MyScheduler_$_NON_CLUSTERED started.rn10:56:15,539 INFO SyncDataJob:33 - 执行接口数据同步开始-------------------rnjavax.naming.NoInitialContextException: Cannot instantiate class: org.apache.openejb.client.LocalInitialContextFactory [Root exception is java.lang.ClassNotFoundException: org.apache.openejb.client.LocalInitialContextFactory]rn at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674)rn at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)rn at javax.naming.InitialContext.init(InitialContext.java:242)rn at javax.naming.InitialContext.(InitialContext.java:216)rn at com.ngworld.credit.quartz.SyncDataJob.execute(SyncDataJob.java:40)rn at org.quartz.core.JobRunShell.run(JobRunShell.java:202)rn at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)rnCaused by: java.lang.ClassNotFoundException: org.apache.openejb.client.LocalInitialContextFactoryrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:270)rn at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:72)rn at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:61)rn at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671)rn ... 6 morern10:56:15,549 INFO SyncDataJob:166 - 执行接口数据同步结束--------------------rn三月 27, 2015 10:56:15 上午 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class com.ngworld.credit.listener.SmsRegistListenerrnjava.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)Vrn at org.apache.commons.logging.impl.SLF4JLocationAwareLog.warn(SLF4JLocationAwareLog.java:173)rn at org.apache.axis2.util.Loader.getResourceAsStream(Loader.java:140)rn at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:113)rn at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)rn at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210)rn at org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:151)rn at org.apache.axis2.client.ServiceClient.(ServiceClient.java:144)rn at org.apache.axis2.client.ServiceClient.(ServiceClient.java:251)rn at com.ngworld.credit.util.SmsUtil.registEx(SmsUtil.java:58)rn at com.ngworld.credit.listener.SmsRegistListener.contextInitialized(SmsRegistListener.java:18)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)rn at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1081)rn at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1877)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)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:744)rnrn三月 27, 2015 10:56:15 上午 com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextInitializedrn[/code]rnrnrn在往下还有这些个错误:rn[code=java]rn信息: Illegal access: this web application instance has been stopped already. Could not load org.apache.axis2.description.AxisService. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.rnjava.lang.IllegalStateExceptionrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1612)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)rn at org.apache.axis2.client.ServiceClient.cleanup(ServiceClient.java:821)rn at org.apache.axis2.client.ServiceClient.finalize(ServiceClient.java:805)rn at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)rn at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:101)rn at java.lang.ref.Finalizer.access$100(Finalizer.java:32)rn at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:190)rn三月 27, 2015 10:56:16 上午 org.apache.catalina.loader.WebappClassLoader loadClassrn信息: Illegal access: this web application instance has been stopped already. Could not load java.net.InetAddress. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.rnjava.lang.IllegalStateExceptionrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1612)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)rn at org.quartz.utils.UpdateChecker.getClientId(UpdateChecker.java:149)rn at org.quartz.utils.UpdateChecker.buildParamsString(UpdateChecker.java:120)rn at org.quartz.utils.UpdateChecker.buildUpdateCheckUrl(UpdateChecker.java:114)rn at org.quartz.utils.UpdateChecker.doCheck(UpdateChecker.java:55)rn at org.quartz.utils.UpdateChecker.checkForUpdate(UpdateChecker.java:47)rn at org.quartz.utils.UpdateChecker.run(UpdateChecker.java:39)rn at java.util.TimerThread.mainLoop(Timer.java:555)rn at java.util.TimerThread.run(Timer.java:505)rn三月 27, 2015 10:56:16 上午 org.apache.catalina.loader.WebappClassLoader loadClassrn信息: Illegal access: this web application instance has been stopped already. Could not load java.net.URLEncoder. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.rnjava.lang.IllegalStateExceptionrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1612)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)rn at org.quartz.utils.UpdateChecker.urlEncode(UpdateChecker.java:156)rn at org.quartz.utils.UpdateChecker.buildParamsString(UpdateChecker.java:122)rn at org.quartz.utils.UpdateChecker.buildUpdateCheckUrl(UpdateChecker.java:114)rn at org.quartz.utils.UpdateChecker.doCheck(UpdateChecker.java:55)rn at org.quartz.utils.UpdateChecker.checkForUpdate(UpdateChecker.java:47)rn at org.quartz.utils.UpdateChecker.run(UpdateChecker.java:39)rn at java.util.TimerThread.mainLoop(Timer.java:555)rn at java.util.TimerThread.run(Timer.java:505)rn三月 27, 2015 10:56:16 上午 org.apache.catalina.loader.WebappClassLoader loadClassrn信息: Illegal access: this web application instance has been stopped already. Could not load java.net.URLConnection. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.rnjava.lang.IllegalStateExceptionrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1612)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)rn at org.quartz.utils.UpdateChecker.getUpdateProperties(UpdateChecker.java:98)rn at org.quartz.utils.UpdateChecker.doCheck(UpdateChecker.java:56)rn at org.quartz.utils.UpdateChecker.checkForUpdate(UpdateChecker.java:47)rn at org.quartz.utils.UpdateChecker.run(UpdateChecker.java:39)rn at java.util.TimerThread.mainLoop(Timer.java:555)rn at java.util.TimerThread.run(Timer.java:505)rn三月 27, 2015 10:56:16 上午 org.apache.catalina.startup.HostConfig deployDirectoryrn[/code]rnrn项目里用到了jboss,然后我安装了 jboss-as-7.1.1.Final ,配置了环境变量如:JBOSS_HOME=C:\Program Files\jboss7.11(jboss安装目录),是我的jboss没配好才出的这些错误吗,请高手指点啊,多想!rn
the class torch.CudaByteTensor cannot be indexed
我在Centos7 Torch7 Cuda8.0下跑程序,遇到这样一个错误rn/usr/local/torch7/install/bin/luajit: ./misc/word_level.lua:94: the class torch.CudaByteTensor cannot be indexedrnstack traceback:rn [C]: in function '__newindex'rn ./misc/word_level.lua:94: in function 'forward'rn train.lua:255: in function 'lossFun'rn train.lua:313: in main chunkrn [C]: in function 'dofile'rn ...cal/torch7/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunkrn [C]: at 0x004064d0rn有人遇到过这个坑吗?这个错误找了好久都找不到解决办法,大神求指教啊!rn
javax.naming.NoInitialContextException: Cannot instantiate class:
jboss 部署成功了 但客户端调用出现问题rn报错:rnjavax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfrnaces.Naming ContextFactory [Root exception is java.lang.ClassNotFoundException:rnorg/jnp/interfaces/Naming ContextFactory]rnrn客户端:rnpackage greet;rnimport javax.naming.*;rnimport java.util.Hashtable;rnimport javax.rmi.PortableRemoteObject; rnimport greet.*;rnclass GreetClientrnrn public static void main(String[] args) rn System.setProperty("java.naming.factory.initial", rn"org.jnp.interfaces.Naming ContextFactory");rn System.setProperty("java.naming.provider.url", rn"localhost:1099");rntry rn // Get a naming contextrn InitialContext jndiContext = new InitialContext();rn System.out.println("Got context");rn Object ref = jndiContext.lookup("GreetingEJB");rn System.out.println("Got reference");rn GreetHome home = (GreetHome) rn PortableRemoteObject.narrow (ref, GreetHome.class);rn Greet greet = home.create();rn System.out.print("The magic number from server is ");rnSystem.out.println(greet.calculateMagic(123.456));rn catch(Exception e) rn System.out.println(e.toString());rn rn rnrnejb-jar.xml:rnrnrnrnjBoss test application rnTestrnrnrnGreetEJBrngreet.GreetHomerngreet.Greetrngreet.GreetBeanrnStatelessrnBeanrnrnrnrnrnjboss.xml:rnrnrnrnrnGreetEJBrnGreetingEJBrnrnfalsernrnrnrn
cannot resolve symbol :class
俺是JAVA新手 请大侠赐教:rn我的程序 运行报错rncannot resolve symbol :class Mainframernlocation: class .....rn好像是CLASSPATH有问题。rn我在LINUX下已经设定了 CLASSPATH ,其中有路径和rt.jat 和tools.jarrnrn我用:rnjavac -source Main.java rn出现以上错误rn
the DataWindow server cannot be loaded 出现 DataWindowServerLoadFailedException 异常
这是怎么回事啊??rnrn我安装的是pb10,,dt1.0
Cannot instantiate class: org.jnp.interfaces.NamingContextFactory
错误信息如下:rn[code="java"]rn18:04:02,358 ERROR [STDERR] javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory ]rn18:04:02,359 ERROR [STDERR] at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)rn18:04:02,359 ERROR [STDERR] at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)rn18:04:02,359 ERROR [STDERR] at javax.naming.InitialContext.init(Unknown Source)rn18:04:02,359 ERROR [STDERR] at javax.naming.InitialContext.(Unknown Source)rn18:04:02,359 ERROR [STDERR] at servlet.SampleServlet.initBean(SampleServlet.java:92)rn[/code]rnrn出现错误的代码如下:rn[code="java"]rnpackage servlet;rn......rnpublic class SampleServlet extends HttpServletrn......rn private void initBean()throws ServletExceptionrn tryrn Properties properties = new Properties();rn //这里报错rn properties.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory ");rn properties.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces ");rn properties.setProperty(Context.PROVIDER_URL, "localhost:1099"); rn rn initialContext = new InitialContext(properties);rn Object objref = initialContext.lookup("security-sample/UserManagement");rn Object obj = PortableRemoteObject.narrow(objref,UserManagementHome.class);rn home = (UserManagementHome)obj;rn bean = home.create();rn rn catch (CreateException e1) rn e1.printStackTrace();rn throw new ServletException(e1.getMessage());rn rn catch(NamingException ne)rn ne.printStackTrace();rn throw new ServletException(ne.getMessage());rn rn catch (RemoteException e) rn e.printStackTrace();rn rn rn......rnrn[/code]rnrn在网上找了各种方法,都试过了,都不好使。rnrn1、把javaall-client.jar、jnp-client.jar文件放到Java Build Path里rnrn2、classpath里加%JBoss Home%\client\jbossall-client.jarrnrn都不好使,希望高手能给予帮助
Cannot find class [org.springframework.jdbc.datasource.DriverManagerDataSource]
2009-11-20 12:19:33 org.springframework.context.support.AbstractApplicationContext prepareRefreshrn信息: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@18558d2: display name [org.springframework.context.support.ClassPathXmlApplicationContext@18558d2]; startup date [Fri Nov 20 12:19:33 CST 2009]; root of context hierarchyrn2009-11-20 12:19:34 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitionsrn信息: Loading XML bean definitions from class path resource [spring/chapter4/dao/game.xml]rn2009-11-20 12:19:34 org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactoryrn信息: Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@18558d2]: org.springframework.beans.factory.support.DefaultListableBeanFactory@a8c488rn2009-11-20 12:19:34 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletonsrn信息: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@a8c488: defining beans [dataSource,userDao]; root of factory hierarchyrn2009-11-20 12:19:34 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletonsrn信息: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@a8c488: defining beans [dataSource,userDao]; root of factory hierarchyrnException in thread "main" org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.jdbc.datasource.DriverManagerDataSource] for bean with name 'dataSource' defined in class path resource [spring/chapter4/dao/game.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.jdbc.datasource.DriverManagerDataSourcern at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1141)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524)rn at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1177)rn at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:758)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:422)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)rn at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)rn at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83)rn at spring.chapter4.dao.TestUserDAO.main(TestUserDAO.java:8)rnCaused by: java.lang.ClassNotFoundException: org.springframework.jdbc.datasource.DriverManagerDataSourcern at java.net.URLClassLoader$1.run(Unknown Source)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn at org.springframework.util.ClassUtils.forName(ClassUtils.java:211)rn at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:385)rn at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1138)rn ... 9 morern看配置文件都没错的啊,该怎么解决~
Cannot find class [org.springframework.scheduling.timer.ScheduledTimerTask] for
2014-5-13 12:06:38 org.springframework.context.support.AbstractApplicationContext prepareRefreshrn信息: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@5ffb18: startup date [Tue May 13 12:06:38 CST 2014]; root of context hierarchyrn2014-5-13 12:06:38 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitionsrn信息: Loading XML bean definitions from class path resource [beans.xml]rnException in thread "main" org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.scheduling.timer.ScheduledTimerTask] for bean with name 'scheduledTimerTask' defined in class path resource [beans.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.scheduling.timer.ScheduledTimerTaskrn at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1327)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:594)rn at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1396)rn at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:959)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:683)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)rn at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)rn at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83)rn at com.lyy.test.mask1.main(mask1.java:15)rnCaused by: java.lang.ClassNotFoundException: org.springframework.scheduling.timer.ScheduledTimerTaskrn at java.net.URLClassLoader$1.run(URLClassLoader.java:200)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:188)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:306)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:251)rn at org.springframework.util.ClassUtils.forName(ClassUtils.java:236)rn at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:392)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1348)rn at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1319)rn ... 9 morernrnrn[code=text]rnrnrn rn rn rnrn rn rn rn rn rn rnrn rnrn rn rn rn rn rnrnrnrnrn[/code]rnrn为什么了 已经把所有的spring 都引了还是不行
Generator插件eclipse插件模式
课程包含六个部分:nn相关软件和数据库环境准备nGenerator(命令行、maven、eclipse插件)nSpring和mybatis整合nSpring和mybatis整合后测试nSpring mvc整合nSpring mvc整合后测试
idea 如何配置集成maven插件?
idea集成maven插件的前提是电脑上已经安装并配置好了maven工具。 集成maven插件: 打开idea–&amp;amp;gt;other settings --&amp;amp;gt;default setting.输入maven搜索。出现下图所示: 配置Maven路径。如下图所示: 找到Maven下的Importing。如下图所示: 找到Maven下的Runner。解决创建maven项目慢的情况。 在输入框内输入:...
Maven集成tomcat7插件并进行热部署
tomcat版本:apache-tomcat-7.0.33,maven版本:apache-maven-3.0.5 1、Tomcat7的用户及权限配置 在conf目录下,找到tomcat-users.xml,添加manager权限的用户。这里我把所用的权限都添加给admin用户了,具体代码如下: 2、Maven的server的配置
hibernate generator class="uuid.hex" 的问题
hibernate 中的配置文件 rn rn rn rn rnrnrn我在保存时 又手工赋值了rn Table t= new Table();rn t.setId("aaaaaaa");rnrn保存时是正确应该保存的哪个id?rn 数据库里的是 32位idrnrn我想 t.setId("aaaaaaa"); 写这个的时候就用自己的id,如果不写空着的时候就用32位,能这样吗?
maven插件用来分布式集成开发的
maven插件 用来分布式集成开发用的 可以和eclipse集成 也可以和myeclipse集成
maven集成tomcat插件发布web项目
tomcat用户及相关权限的配置 在tomcat安装路径下找到conf/tomcat-users.xml配置文件,添加manager权限的用户,具体配置如下: &amp;lt;tomcat-users&amp;gt; &amp;lt;role rolename=&quot;admin-gui&quot;/&amp;gt; &amp;lt;role rolename=&quot;admin-script&quot;/&amp;gt; &amp;lt;ro...
Maven集成tomcat7插件部署Web项目
前言:最近在复习SSM,自己用Maven搭了个项目。然而要在tomcat上面运行,必须进行部署。网上查了一些资料,试了很久才成功。现在把自己部署的过程写下来,希望可以帮助到大家。版本信息:apache-tomcat-7.0.84  ;  apache-maven-3.5.0我是用本地安装的tomcat部署项目,这种方法可以实现远程部署项目。在eclipse中部署tomcat的时候,默认的serve...
相关热词 c# 标准差 计算 c#siki第五季 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池

相似问题

7
maven项目mybatis generator运行报错 求帮忙!!
0
keras.util.sequence + fit_generator 如何实现多输出model
2
Missing artifact com.snailf:code-generator:jar:1.0.1
1
org.beetl.core.cache.LocalCache cannot be cast to org.beetl.core.cache.Cache
2
使用mybatis generator生成java代码报错
1
如何做图像分类的recall—precision曲线??
3
启redis服务时报错,帮忙看下
1
伪随机数的生成的一个算法的问题,怎么才能采用C程序的语言的办法来实现这个程序的设计的呢?
0
SSM项目pom.xml引用jar包爆红 kaptcha.wso2 就是他
1
【mybatis generator的报错】前期配置问题!!!!!官方文件看了一直也一头雾水
1
运行Python,解释器给出如下输出:<generator object <genexpr> at 0x000001B66C1799A8>,请问什么意思?
1
python 生成器的输出问题
1
org.springframework.beans.factory.UnsatisfiedDependencyException
1
python运行有错误:这是对数据进行分析生成可视化界面的程序(我是小白,请说下解决方法)
0
用springboot+mybatis取出数据contant字段总是显示null(查了一下午debug没找出来)
1
在集成hibernate之后,springboot再次启动失败(个人怀疑是@EntityScan没扫描的实体类)
3
关于mybatis-generator自动生成代码的问题
1
关于 keras 中用ImageDataGenerator 做 data augmentation 的问题
4
maven项目打成war包部署到阿里云上,jsp访问跳转没问题,访问后端控制器报404怎么解决?
1
SSH框架搭建过程中遇到jsp页面的值无法传到action中的情况,求大神解答