NoClassDefDoundErr与ClassNotFoundException区别

     在读这篇文章之前,你最好了解一下Java的Exception机制。

       也许你在开发的过程中经常地见到ClassNotFoundException和NoClassDefFoundErr这两个异常,每每看到之后,都会一概而论的是类没有找到,但有些时候见到他们的时候又有些疑惑(至少我是这样),为什么Java要用两个异常来表示类定义没有找到那?他们之间有什么区别那?

       正巧今天我又碰到了这个问题,顺便的仔细研究了一下这两个异常的区别。

       首先:
        ClassNotFoundException直接继承与Exception,它是一个checked的异常。
        NoClassDefFoundErr 继承自Error->LinkageError ,它是一个unchecked的异常。

       下面让我们看一下两个异常在API文档中的说明

ClassNotFoundException:
     当应用尝试用字符串名称通过下面的方法装载一个类时这个类的定义却没有找到时会抛出的异常。

              Class.forName
ClassLoader.findSystemClass

ClassLoader.loadClass

 NoClassDefFoundErr:
     当JVM或者ClassLoader实例尝试装载一个类的定义(这通常是一个方法调用或者new表达式创建一个实例过程的一部分)而这个类定义并没有找时所抛出的错误。

当编译的时候可以找到这个类的定义,但是以后这个类不再存在。

 
       这比较显而易见了吧,读好文档是很重要的事情。这里我就说一下我对这两个类的区别的理解。

       ClassNotFoundException异常只出现在你的应用程序主动的装载类的过程中,这个异常很多时候出现在我们的应用框架在初始化或者运行中动态装载已配置的类的过程中。这种情况下我们应该首先检查我们的配置或者参数是否错误,是否企图装载一个并不存在的类,如果配置没有错误,我们就应该查看Classpath是否配置错误而导致ClassLoader无法找到这个类,也应该检查要装载的类是否在一个jar包中而我们在引入这个jar包的过程中是否有遗漏或错误(这里jar包的版本也是一个需要格外注意的问题,很多时候混乱的jar包版本会造成太多的麻烦)。      

       NoClassDefFoundErr异常一般出现在我们编译环境和运行环境不一致的情况下,就是说我们有可能在编译过后更改了Classpath或者jar包所以导致在运行的过程中JVM或者ClassLoader无法找到这个类的定义(我曾经在编译后作了一次jar包的清理,然后应用就送给了我一个这样的礼物)。

       我们经常用SDK开发应用,开发的过程中要引入很多jar包,有些SDK也会设定自己的Classpath。编译过程结束后在运行的过程中就要将已开发的应用和所有引入的jar包拷贝到应用服务器的相应目录下才可以运行,而应用服务器使用的Classpath也很有可能与SDK的不同,在这个过程中就有很大的几率造成双方环境不一致。所以很多开发者就会遇到在SDK中可以编译,运行也没有问题,但是同样的程序放到应用服务器上就出现NoClassDefFoundErr这个异常这种情况,这是让初学者很挠头的一个问题。

 
       以上就是我对这两个异常的一点个人理解,希望对各位开发者有所帮助,可以让各位开发者在以后的开发过程中能够更快的找到问题所在。祝开发顺利

展开阅读全文

ClassNotFoundException

07-20

就是我通过JUnit测试代码是没有任何问题的,但是当请求到达之后就报classNotFound,rn贴代码,结和代码说明:rnrn ApplicationContext ac;rn UserService us;rn @Beforern public void init() rn ac=new ClassPathXmlApplicationContext("spring/spring-mvc.xml","spring/spring-mybatis.xml");rn us=ac.getBean("userService",UserService.class);rn rn @Testrn public void testLogin() rn User user=us.login("18888888888", "1234");rn System.out.println(user);rn rn rn这样一个JUnit的方法测试是可以得到User对象的,先说明我这里采用的是ssm框架,rn但是如下:rnrn @Resourcern private UserService us;rn @ResponseBodyrn @RequestMapping("/login.shop")rn /**rn * 登录,成功是败都返回数据rn * @param username 可以是邮箱,昵称,手机号rn * @param password 登录密码rn * @returnrn */rn public JSONResult login(String username,String password) rn User user=null;rn try rn user=us.login(username, password);rn catch(UserNameException e) rn return new JSONResult("001",e);rn catch(PasswordException e) rn return new JSONResult("002",e);rn rn return new JSONResult(user);rn rn rn rn rn这里执行的时候那个login方法会抛出异常,已验证us,username,password是有被赋值的。异常信息如下:rnrn 严重: Servlet.service() for servlet [shop] in context with path [/MobileShop] threw exception [Request processing failed; nested exception is org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'oracle.jdbc.OracleDriver'] with root causern java.lang.ClassNotFoundException: oracle.jdbc.OracleDriverrn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1333)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167)rn at org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1420)rn at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371)rn at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)rn at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:203)rn at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:372)rn at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:417)rn at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:255)rn at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)rn at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)rn at com.sun.proxy.$Proxy18.registByTel(Unknown Source)rn at com.chanct.shop.personal.controller.Regist.registByTel(Regist.java:52)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215)rn at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)rn at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:745)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:686)rn at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)rn at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:855)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)rn at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)rn at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1533)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1489)rn rn感觉我都是用的同一个方法,但是关系导spring就报错了,测试就蛮好rn搞了半天了,实在弄不懂是哪里错了,跪求指点rnrn大家都说驱动。。。。附图rn![图片说明](https://img-ask.csdn.net/upload/201707/20/1500544254_983255.png)![图片说明](https://img-ask.csdn.net/upload/201707/20/1500544315_581941.png)rnrn求能真正解决问题的 问答

ClassNotFoundException:

01-13

问题描述:rn昨天下午开始复习javaweb时候 准备重温一遍LoginServlet 遇到了一个之前没遇到的问题rn点击登陆按钮后 提示错误500rnrnMyeclipse 错误信息如下:rnrn严重: Allocate exception for servlet Loginrnjava.lang.ClassNotFoundException: com.servlet.Loginrn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)rn at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:520)rn at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:501)rn at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:118)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1050)rn at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:779)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:133)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:474)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)rn at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)rn at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:783)rn at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)rn at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:789)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1437)rn at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Thread.java:745)rn rnrn 问题已经解决 根源是class没有立刻生成 XML文件配置正确 但是class在servlet创建后没有生成rn 解决方法 在Myeclipse 界面的 projecet 选项里面的 Build Automatically 打上对勾即可rn rn 问答

ClassNotFoundException: org.hibernate.hql.ast.HqlToken

05-12

我写的程序在自己机子上运行没有任何问题,可是移植到同事的机器上,却发生如下的问题,请问是怎么回事呀?rnorg.hibernate.QueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken [from com.exam.bean.Teachers as model where model.name= ?]rn org.hibernate.hql.ast.HqlLexer.panic(HqlLexer.java:57)rn antlr.CharScanner.setTokenObjectClass(CharScanner.java:340)rn org.hibernate.hql.ast.HqlLexer.setTokenObjectClass(HqlLexer.java:31)rn antlr.CharScanner.(CharScanner.java:51)rn antlr.CharScanner.(CharScanner.java:60)rn org.hibernate.hql.antlr.HqlBaseLexer.(HqlBaseLexer.java:56)rn org.hibernate.hql.antlr.HqlBaseLexer.(HqlBaseLexer.java:53)rn org.hibernate.hql.antlr.HqlBaseLexer.(HqlBaseLexer.java:50)rn org.hibernate.hql.ast.HqlLexer.(HqlLexer.java:26)rn org.hibernate.hql.ast.HqlParser.getInstance(HqlParser.java:44)rn org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:232)rn org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:155)rn org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:109)rn org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:75)rn org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:54)rn org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:71)rn org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)rn org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)rn org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1583)rn com.exam.bean.TeachersDAO.findByProperty(TeachersDAO.java:121)rn com.exam.bean.TeachersDAO.findByName(TeachersDAO.java:135)rn com.exam.servlet.login.doGet(login.java:34)rn com.exam.servlet.login.doPost(login.java:121)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:709)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn com.exam.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:32)rn 论坛

ClassNotFoundException:com.mysql.jdbc.Driver

11-25

连接不上mysql数据库,我的驱动包是从官网下的最新版本的,java文件是在jcreator中写的,只是一个测试数据库连接的文件,我的做法是这样的:rn把下载的驱动放在C:\Java\jre6\lib目录下,这是jcreator使用的jdk,然后再classpath中加入了数据库驱动的路径,但是执行时依然提示找不到驱动!从网上找了半天,一直都没找到答案,不知道是怎么回事?rn测试数据库连接的代码如下:rnimport java.sql.*;rnpublic class Test rnpublic static Connection getConnection() throws SQLException ,rnjava.lang.ClassNotFoundExceptionrnString url = "jdbc:mysql://localhost:3306/studentinfo";rnClass.forName("com.mysql.jdbc.Driver");rnString userName = "root";rnString password = "123";rnConnection con = DriverManager.getConnection(url,userName,password);rnreturn con;rnrnpublic static void main(String[] args) rntryrnConnection con = getConnection();rnStatement sql = con.createStatement();rnsql.execute("drop table if exists student");rnsql.execute("create table student(id int not null auto_increment,name varchar(20) not null default 'name',math int not null default 60,primary key(id));");rnsql.execute("insert student values(1,'AAA','99')");rnsql.execute("insert student values(2,'BBB','77')");rnsql.execute("insert student values(3,'CCC','65')");rnString query = "select * from student";rnResultSet result = sql.executeQuery(query);rnSystem.out.println("Student 表数据如下:");rnSystem.out.println("---------------------------------");rnSystem.out.println(" 学号"+" "+"姓名"+" "+"数学成绩");rnSystem.out.println("---------------------------------");rnint number;rnString name;rnString math;rnwhile(result.next())rnnumber = result.getInt("id");rnname = result.getString("name");rnmath = result.getString("math");rnSystem.out.println(number + " " + name + " " + math);rnrnsql.close();rncon.close();rncatch(java.lang.ClassNotFoundException e)rnSystem.err.println("ClassNotFoundException:" + e.getMessage());rncatch(SQLException ex)rnSystem.err.println("SQLException:" + ex.getMessage());rnrnrn 论坛

classNotFoundException JSP

07-01

[code=Java]严重: Servlet.service() for servlet jsp threw exceptionrnjava.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Unknown Source)rn at bean.querySpecialBean.setConnection(querySpecialBean.java:36)rn at org.apache.jsp.updateSpecial_jsp._jspService(updateSpecial_jsp.java:115)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Unknown Source)[/code]rn代码出错如下:rn1.rnpublic void setConnection(String driverName,String jdbcURL,String username,String passwd) throws Exception rn rn rn rn Connection conn1; rn Class.forName(driverName); rn conn1=DriverManager.getConnection(jdbcURL,username,passwd); rn conn1.setAutoCommit(false); rn this.conn = conn1; rnrn 2.rnrn specialUpdate.setConnection("sun.jdbc.odbc.JdbcOdbcDriver","jdbc:odbc:music","sa",""); rn 论坛

WebSphere was ClassNotFoundException

09-01

环境为:rn************ Start Display Current Environment ************rnWebSphere Platform 6.0 [ND 6.0.2.15 cf150636.04] running with process name ibm630-05aCell01\ibm630-05aNode01\server1 and process id 1011782rnHost Operating System is AIX, version 5.2rnJava version = J2RE 1.4.2 IBM AIX build ca142-20050609 (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Classic VMrnwas.install.root = /usr/IBM/WebSphere/AppServerrnuser.install.root = /usr/IBM/WebSphere/AppServer/profiles/AppSrv01rnJava Home = /usr/IBM/WebSphere/AppServer/java/bin/../jrernws.ext.dirs = /usr/IBM/WebSphere/AppServer/java/lib:/usr/IBM/WebSphere/AppServer/profiles/AppSrv01/classes:/usr/IBM/WebSphere/AppServer/classes:/usr/IBM/WebSphere/AppServer/lib:/usr/IBM/WebSphere/AppServer/installedChannels:/usr/IBM/WebSphere/AppServer/lib/ext:/usr/IBM/WebSphere/AppServer/web/help:/usr/IBM/WebSphere/AppServer/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtimernClasspath = /usr/IBM/WebSphere/AppServer/profiles/AppSrv01/properties:/usr/IBM/WebSphere/AppServer/properties:/usr/IBM/WebSphere/AppServer/lib/bootstrap.jar:/usr/IBM/WebSphere/AppServer/lib/j2ee.jar:/usr/IBM/WebSphere/AppServer/lib/lmproxy.jar:/usr/IBM/WebSphere/AppServer/lib/urlprotocols.jarrnJava Library path = /usr/IBM/WebSphere/AppServer/java/bin/../jre/bin:/usr/IBM/WebSphere/AppServer/java/jre/bin/classic:/usr/IBM/WebSphere/AppServer/java/jre/bin:/usr/IBM/WebSphere/AppServer/bin:/usr/mqm/java/lib:/usr/opt/wemps/lib:/usr/librnrnrn错误为:rn[8/28/09 16:41:19:682 GMT+08:00] 0000001b ServletWrappe E SRVE0026E: [Servlet Error]-[org.apache.struts.action.ActionServlet]: java.lang.ClassNotFoundException: org.apache.struts.action.ActionServletrnrn[8/28/09 16:41:19:784 GMT+08:00] 0000001b WebExtensionP W Servlet action is currently unavailable: SRVE0200E: Servlet [org.apache.struts.action.ActionServlet]: Could not find required servlet class - org.apache.struts.action.ActionServletrn[8/28/09 16:41:19:885 GMT+08:00] 0000001b WebExtensionP E SRVE0026E: [Servlet Error]-[javax.servlet.UnavailableException: SRVE0200E: Servlet [org.apache.struts.action.ActionServlet]: Could not find required servlet class - org.apache.struts.action.ActionServletrnrn[8/28/09 16:41:20:289 GMT+08:00] 0000001b WebExtensionP W Servlet InitSystem is currently unavailable: SRVE0203E: Servlet [InitSystem]: SystemServlet was found, but is missing another required class.rnSRVE0206E: This error typically implies that the servlet was originally compiled with classes which cannot be located by the server.rnSRVE0187E: Check your classpath to ensure that all classes required by the servlet are present.SRVE0210I: This problem can be debugged by recompiling the servlet using only the classes in the application's runtime classpathrnrn[8/28/09 16:44:35:449 GMT+08:00] 00000030 WebApp E SRVE0026E: [Servlet Error]-[Filter [operatorLoginFilter]: AdminLoginFilter was found, but is missing another required class.rn]: java.lang.NoClassDefFoundError: org/apache/log4j/Loggerrnrnrn好像WebSphere找不到应用中的jar包rnrn谁能告诉我怎么解决啊 论坛

Class.forName ClassNotFoundException

01-14

这是程序:rn[code=Java]rnpublic class Test rn public static void main(String args[])rn try rn System.out.println([color=#FF0000]Huntress.class[/color].getName());rn System.out.println(([color=#FF0000]Class.forName[/color]("[color=#FF0000]Huntress[/color]").getName()));rn catch (ClassNotFoundException e) rn e.printStackTrace();rn rn rnrn[/code]rn这是运行结果:rn"C:\Program Files\Java\jdk1.6.0_10\bin\java" -Didea.launcher.port=7555 "-Didea.launcher.bin.path=E:\Program Files\JetBrains\IntelliJ IDEA 9.0\bin" -Dfile.encoding=GBK -classpath "D:\myproject\p\target\class;C:\Program Files\Java\jdk1.6.0_10\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_10\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.6.0_10\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.6.0_10\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_10\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_10\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.6.0_10\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.6.0_10\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_10\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_10\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.6.0_10\jre\lib\ext\jai_codec.jar;C:\Program Files\Java\jdk1.6.0_10\jre\lib\ext\jai_core.jar;C:\Program Files\Java\jdk1.6.0_10\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.6.0_10\jre\lib\ext\mlibwrapper_jai.jar;C:\Program Files\Java\jdk1.6.0_10\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.6.0_10\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.6.0_10\jre\lib\ext\sunpkcs11.jar;E:\Program Files\JetBrains\IntelliJ IDEA 9.0\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain pattern.flyweight.Testrnjava.lang.[color=#FF0000]ClassNotFoundException[/color]: [color=#FF0000]Huntress[/color]rn 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:307)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:252)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn[color=#FF0000]pattern.flyweight.Huntress[/color]rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:169)rn at pattern.flyweight.Test.main(Test.java:12)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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:110)rnrnProcess finished with exit code 0rnrnide为IntelliJ IDEA 9.0rn帮忙看看。。。 论坛

ClassNotFoundException的疑惑

09-03

小弟初学webservice,碰到一个错误:rnrnE:\test\apache-tomcat-6.0.14\webapps\stove\WEB-INF\classes>java cn.com.pansky.wernbservice.xfire.study.SayHiClientrnException in thread "main" java.lang.NoClassDefFoundError: org/codehaus/xfire/sernrvice/binding/ObjectServiceFactoryrn at cn.com.pansky.webservice.xfire.study.SayHiClient.main(SayHiClient.javrna:14)rnCaused by: java.lang.ClassNotFoundException: org.codehaus.xfire.service.binding.rnObjectServiceFactoryrn at java.net.URLClassLoader$1.run(URLClassLoader.java:202)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:190)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:306)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:247)rn ... 1 morernrnrn我完全是手写开发,没用到eclipse,直接在tomcat的webapp目录下建的项目,出现上面错误后,我找到了ObjectServiceFactory这个类,是在xfire-core-1.2.6.jar这个包中,而我已经把这个包放到了lib目录下,为什么会出现上面的错误呢?为什么会找不到类?rnrn还有就是在手写程序的时候,如果有些类是在jar包中的,而类SayHiClient.java中用到了jar包中的几个类,rnimport org.codehaus.xfire.client.Client; rnimport org.codehaus.xfire.client.XFireProxyFactory; rnimport org.codehaus.xfire.service.Service; rnimport org.codehaus.xfire.service.binding.ObjectServiceFactory; rnimport org.codehaus.xfire.transport.http.CommonsHttpMessageSender; rn我该如何让其通过编译呢? (我编译老是出错,所以编译放到了eclipse中做的)rnrn恳请各位高手指教 论坛

ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource

07-25

贴上代码:rn  rn rn rn com.mysql.jdbc.Driverrn rn rn jdbc:mysql://localhost:3306/bbsrn rn rn rootrn rn rn 123456rn rn rn  rn 我用到的包:rn rn rn rn 启动tomacat报异常:rn  rn  rn 严重: Context initialization failedrn org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.apache.commons.dbcp.BasicDataSource] for bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSourcern 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.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)rn at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)rn at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:583)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:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn Caused by: java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSourcern at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)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 ... 33 morern 2010-7-25 15:27:02 org.apache.catalina.core.StandardContext listenerStartrn 严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrn org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.apache.commons.dbcp.BasicDataSource] for bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSourcern 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.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)rn at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)rn at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:583)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:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn Caused by: java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSourcern at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)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 ... 33 morern 2010-7-25 15:27:02 org.apache.catalina.core.StandardContext startrn 严重: Error listenerStartrn 2010-7-25 15:27:02 org.apache.catalina.core.StandardContext startrn 严重: Context [] startup failed due to previous errorsrn 问答

ClassNotFoundException的问题

07-14

部署时碰到了这个异常,求大神给看看该怎么弄!!rnjava.lang.ClassNotFoundException: com.wondersgroup.tyyymh.workspace.listener.InitCodeListApplicationListenerrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4149)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)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:754)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(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rn2016-7-14 9:29:45 org.apache.catalina.core.StandardContext listenerStartrn严重: Error configuring application listener of class com.wondersgroup.tyyymh.workspace.listener.ApplicationContextListenerrnjava.lang.ClassNotFoundException: com.wondersgroup.tyyymh.workspace.listener.ApplicationContextListenerrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4149)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)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:754)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(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) 论坛

重现:classNotFoundException

11-20

(在Eclipse中)rnpackage ch2;rnrnimport java.sql.*;rn//import com.mysql.jdbc.Driver;rnpublic class TestConn rnrn rn rn public static void main(String[] args)rn String username = "root";rn String password = "kevoo";rn Connection conn = null;rn Statement stat = null;rn ResultSet rs = null;rn rn tryrn Class.forName("com.mysql.jdbc.Driver");rn conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/login",username,password);rn stat = conn.createStatement();rn rs = stat.executeQuery("select * from user_info");rn int id = rs.getInt(1);rn System.out.print(id);rn catch(Exception e)rn e.printStackTrace();rn finallyrn tryrn rs.close();rn stat.close();rn conn.close();rn catch(Exception e)rn rn rn rn rn rnrnrnrn运行时提示java.lang.ClassNotFoundException: com.mysql.jdbc.Driverrn 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 java.lang.ClassLoader.loadClassInternal(Unknown Source)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Unknown Source)rn at ch2.TestConn.main(TestConn.java:17)rnrnrn但我已经在项目的lib目录下加进了mysql-connector-java-5[1].0.0-beta-bin.jar包,并且也在项目属性-->构建路径-->库中添加了这个jar包。(mysql-connector-java-3.1.7-bin.jar也没有用!)rnrnrn请高手帮忙了。。。rn 论坛

weblogic8.13+JDK1.4.2_13 报ClassNotFoundException

09-01

javax.servlet.ServletException: [HTTP:101249][ServletContext(id=15288634,name=admin,context-path=/admin)]: Servlet classrn com.aspire.oasyn.config.Init for servlet oasyninit could not be loaded because the requested class was not found in thern classpath D:\bea\user_projects\domains\mydomain\applications\admin\WEB-INF\classes;D:\bea\user_projects\domains\mydomairnn\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\activation591.jar;D:\bea\user_projects\domainsrn\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\ant592.jar;D:\bea\user_projects\domainrns\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\classes12593.jar;D:\bea\user_projectsrn\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\cog-jglobus594.jar;D:\bea\userrn_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\commons-beanutils595.rnjar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\commonrns-collections596.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WrnEB-INF\lib\commons-dbcp597.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\rnjarfiles\WEB-INF\lib\commons-digester598.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myservernr_admin_admin\jarfiles\WEB-INF\lib\commons-fileupload599.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdeletern\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\commons-httpclient-3.0.1600.jar;D:\bea\user_projects\domains\mydomainrn\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\commons-lang601.jar;D:\bea\user_projects\domainrns\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\commons-logging602.jar;D:\bea\user_prrnojects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\commons-pool603.jar;D:\brnea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\commons-resourrnces604.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\librn\commons-validator605.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfirnles\WEB-INF\lib\CR196963_81sp3.2606.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admrnin_admin\jarfiles\WEB-INF\lib\ftp607.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_adrnmin_admin\jarfiles\WEB-INF\lib\ibatis-db608.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\mysernrver_admin_admin\jarfiles\WEB-INF\lib\jakarta-oro609.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extrnract\myserver_admin_admin\jarfiles\WEB-INF\lib\jar4admin610.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelrnete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\jaxen-1.1-beta-2611.jar;D:\bea\user_projects\domains\mydomain\mysernrver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\jaxen-core612.jar;D:\bea\user_projects\domains\mydomrnain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\jaxen-full613.jar;D:\bea\user_projects\domairnns\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\jaxen-jdom614.jar;D:\bea\user_projecrnts\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\jcommon-0.9.5615.jar;D:\bea\rnuser_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\jdom616.jar;D:\berna\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\jfreechart-0.9.rn20617.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\rnjspsmartupload618.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\rnWEB-INF\lib\jstl619.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfilerns\WEB-INF\lib\junit620.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfrniles\WEB-INF\lib\jxl621.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarrnfiles\WEB-INF\lib\log4j622.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\rnjarfiles\WEB-INF\lib\mail623.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admirnn\jarfiles\WEB-INF\lib\miscJar624.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_adminrn_admin\jarfiles\WEB-INF\lib\ojdbc14625.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_rnadmin_admin\jarfiles\WEB-INF\lib\patbin626.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserrnver_admin_admin\jarfiles\WEB-INF\lib\quartz627.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\mrnyserver_admin_admin\jarfiles\WEB-INF\lib\saxpath628.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extrrnact\myserver_admin_admin\jarfiles\WEB-INF\lib\servlet-api629.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdernlete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\sims630.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotrndelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\simsportal631.jar;D:\bea\user_projects\domains\mydomain\myservernr\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\standard632.jar;D:\bea\user_projects\domains\mydomain\mrnyserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\struts633.jar;D:\bea\user_projects\domains\mydomarnin\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\xalan634.jar;D:\bea\user_projects\domains\mydrnomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\xbean635.jar;D:\bea\user_projects\domains\rnmydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\xbean_xpath636.jar;D:\bea\user_projectsrn\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\xerces637.jar;D:\bea\user_projrnects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\xercesImpl638.jar;D:\bea\urnser_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\xml-apis639.jar;D:rn\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\xmlParserAPIrns640.jar.rnjava.lang.ClassNotFoundException: com.aspire.oasyn.config.Init.rn at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:824)rn at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3281)rn at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3238)rn at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3224)rn at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3207)rn at weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java:694)rn at weblogic.servlet.internal.WebService.preloadResources(WebService.java:483)rn at weblogic.servlet.internal.ServletInitService.resume(ServletInitService.java:30)rn at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)rn at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)rn at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)rn at weblogic.Server.main(Server.java:32)rn> rnrn明明在D:\bea\user_projects\domains\mydomain\applications\admin\WEB-INF\classes;里面有这个类rn并且如果使用weblogic8.14确可以正常使用,没有问题rnrn请教!!! 论坛

hadoop+hbase:ClassNotFoundException:org.apache.hadoop.hbase.HBaseConfiguration

08-30

我手里有一份自动生成的模拟登录数据,里面的格式为id#password#email,大概300W条,我想利用hadoop的集群处理优势将这些数据存入到HBase中,以user+i为row key,然后columnFamily包含id,password,email的信息。rn下面是代码:(写的经验不足,请多指点)rn[code=java]public class SaveToHBase rn public static int userNumber = 0;rn public static String tableName = "UserData";rn public static String columnFamily = "userinfo";rn public static Configuration cfg = HBaseConfiguration.create();rn rn public static class Map extends Mapperrn public void map(LongWritable key,Text value,Context context) throws IOException, InterruptedExceptionrn context.write(new Text("user"+userNumber), value);rn userNumber++;rn rn rn rn public static class Reduce extends Reducerrn public void reduce(Text key,Text value,Context context) throws IOException, InterruptedExceptionrn String[] data = value.toString().trim().split("#");rn SaveToHBase.put(tableName, key.toString(), columnFamily, "id", data[0]);rn SaveToHBase.put(tableName, key.toString(), columnFamily, "password", data[1]);rn SaveToHBase.put(tableName, key.toString(), columnFamily, "email", data[2]);rn context.write(key,value);rn rn rn rn public static void put(String tableName,String row,String columnFamily,String column,String data) throws IOExceptionrn HTable table = new HTable(cfg, tableName);rn Put put = new Put(Bytes.toBytes(row));rn put.add(Bytes.toBytes(columnFamily),Bytes.toBytes(column),Bytes.toBytes(data));rn table.put(put);rn rn rn public static void create(String tableName, String columnFamily) throws Exceptionrn HBaseAdmin admin = new HBaseAdmin(cfg);rnrn HTableDescriptor tableDescriptor = new HTableDescriptor(tableName);rn tableDescriptor.addFamily(new HColumnDescriptor(columnFamily));rn admin.createTable(tableDescriptor);rn rn rn public static boolean delete(String tableName) throws Exceptionrn HBaseAdmin admin = new HBaseAdmin(cfg);rn if(admin.tableExists(tableName))rn try rn admin.disableTable(tableName);rn admin.deleteTable(tableName);rn catch (Exception e) rn // TODO: handle exceptionrn e.printStackTrace();rn return false;rn rn rn return true;rn rn rn public static void main(String[] args) throws Exception rn Configuration conf = new Configuration();rn// SaveToHBase.delete(tableName);rn SaveToHBase.create(tableName, columnFamily);rn Job job = new Job(conf, "Save ");rn job.setJarByClass(SaveToHBase.class);rn job.setMapperClass(Map.class);rn job.setReducerClass(Reduce.class);rn job.setOutputKeyClass(Text.class);rn job.setOutputValueClass(Text.class);rn job.setInputFormatClass(TextInputFormat.class);rn job.setOutputFormatClass(TextOutputFormat.class);rn FileInputFormat.addInputPath(job, new Path(args[0]));rn FileOutputFormat.setOutputPath(job, new Path(args[1]));rn System.exit(job.waitForCompletion(true) ? 0 : 1);rn rnrn[/code]rn从这个工程中导出jar包,然后指定输入输出目录,然后就遇到ClassNotFoundException:org.apache.hadoop.hbase.HBaseConfiguration这个错误了,我已经做了一些调整:rn1,导入了hbase-site.xml文件rn2,导入了hbase-0.94.13.jarrn根据http://blog.csdn.net/zwx19921215/article/details/21531015这里的提示,放到hadoop/lib下也没有起作用,请问各位大神,这个问题是出在哪里呢?虽然是简单的classnotfound,但是需要的我导入了啊。。。自己琢磨好几天了,不过还没想通,先谢谢大家了 论坛

SparkPi 报错 ClassNotFoundException

05-11

安装了Spark之后运行 rn[code=java]bin/run-example SparkPi local[/code]rn报错rn[code=java]java.lang.ClassNotFoundException: org.apache.spark.examples.SparkPirn at java.net.URLClassLoader$1.run(URLClassLoader.java:366)rn at java.net.URLClassLoader$1.run(URLClassLoader.java:355)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:354)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:425)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:358)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:270)rn at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:538)rn at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:166)rn at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:189)rn at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:110)rn at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)[/code]rnrnrnspark-env.sh配置如下:rnexport SCALA_HOME=/usr/lib/scala/scala-2.10.5 rnexport JAVA_HOME=/usr/java/default rnexport HADOOP_HOME=/usr/hadoop-2.6.0 rnexport SPARK_MASTER_IP=10.91.230.74 --主机IP地址rnexport HADOOP_CONF_DIR=/usr/ hadoop-2.6.0/etc/hadooprnexport SPARK_MASTER_PORT= 7077 rnrnrn谁能告诉我这究竟是为什么!!![img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/1.gif][/img]rn跪求![img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/3.gif][/img] 论坛

急!!! weblogic8.13+JDK1.4.2_13 报ClassNotFoundException

09-01

javax.servlet.ServletException: [HTTP:101249][ServletContext(id=15288634,name=admin,context-path=/admin)]: Servlet classrncom.aspire.oasyn.config.Init for servlet oasyninit could not be loaded because the requested class was not found in thernclasspath D:\bea\user_projects\domains\mydomain\applications\admin\WEB-INF\classes;D:\bea\user_projects\domains\mydomairnn\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\activation591.jar;D:\bea\user_projects\domainsrn\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\ant592.jar;D:\bea\user_projects\domainrns\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\classes12593.jar;D:\bea\user_projectsrn\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\cog-jglobus594.jar;D:\bea\userrn_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\commons-beanutils595.rnjar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\commonrns-collections596.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WrnEB-INF\lib\commons-dbcp597.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\rnjarfiles\WEB-INF\lib\commons-digester598.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myservernr_admin_admin\jarfiles\WEB-INF\lib\commons-fileupload599.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdeletern\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\commons-httpclient-3.0.1600.jar;D:\bea\user_projects\domains\mydomainrn\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\commons-lang601.jar;D:\bea\user_projects\domainrns\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\commons-logging602.jar;D:\bea\user_prrnojects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\commons-pool603.jar;D:\brnea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\commons-resourrnces604.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\librn\commons-validator605.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfirnles\WEB-INF\lib\CR196963_81sp3.2606.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admrnin_admin\jarfiles\WEB-INF\lib\ftp607.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_adrnmin_admin\jarfiles\WEB-INF\lib\ibatis-db608.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\mysernrver_admin_admin\jarfiles\WEB-INF\lib\jakarta-oro609.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extrnract\myserver_admin_admin\jarfiles\WEB-INF\lib\jar4admin610.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelrnete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\jaxen-1.1-beta-2611.jar;D:\bea\user_projects\domains\mydomain\mysernrver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\jaxen-core612.jar;D:\bea\user_projects\domains\mydomrnain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\jaxen-full613.jar;D:\bea\user_projects\domairnns\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\jaxen-jdom614.jar;D:\bea\user_projecrnts\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\jcommon-0.9.5615.jar;D:\bea\rnuser_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\jdom616.jar;D:\berna\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\jfreechart-0.9.rn20617.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\rnjspsmartupload618.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\rnWEB-INF\lib\jstl619.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfilerns\WEB-INF\lib\junit620.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfrniles\WEB-INF\lib\jxl621.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarrnfiles\WEB-INF\lib\log4j622.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\rnjarfiles\WEB-INF\lib\mail623.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admirnn\jarfiles\WEB-INF\lib\miscJar624.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_adminrn_admin\jarfiles\WEB-INF\lib\ojdbc14625.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_rnadmin_admin\jarfiles\WEB-INF\lib\patbin626.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserrnver_admin_admin\jarfiles\WEB-INF\lib\quartz627.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\mrnyserver_admin_admin\jarfiles\WEB-INF\lib\saxpath628.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extrrnact\myserver_admin_admin\jarfiles\WEB-INF\lib\servlet-api629.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotdernlete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\sims630.jar;D:\bea\user_projects\domains\mydomain\myserver\.wlnotrndelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\simsportal631.jar;D:\bea\user_projects\domains\mydomain\myservernr\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\standard632.jar;D:\bea\user_projects\domains\mydomain\mrnyserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\struts633.jar;D:\bea\user_projects\domains\mydomarnin\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\xalan634.jar;D:\bea\user_projects\domains\mydrnomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\xbean635.jar;D:\bea\user_projects\domains\rnmydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\xbean_xpath636.jar;D:\bea\user_projectsrn\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\xerces637.jar;D:\bea\user_projrnects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\xercesImpl638.jar;D:\bea\urnser_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\xml-apis639.jar;D:rn\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_admin_admin\jarfiles\WEB-INF\lib\xmlParserAPIrns640.jar.rnjava.lang.ClassNotFoundException: com.aspire.oasyn.config.Init.rnat weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:824)rnat weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3281)rnat weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3238)rnat weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3224)rnat weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3207)rnat weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java:694)rnat weblogic.servlet.internal.WebService.preloadResources(WebService.java:483)rnat weblogic.servlet.internal.ServletInitService.resume(ServletInitService.java:30)rnat weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)rnat weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)rnat weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)rnat weblogic.Server.main(Server.java:32)rn>rnrn明明在D:\bea\user_projects\domains\mydomain\applications\admin\WEB-INF\classes;里面有这个类rn并且如果使用weblogic8.14却可以正常使用,没有问题rnrn请教!!! 论坛

hibernate.QueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken

07-22

各位大侠。我的项目环境是WebLogic10 + Hibernate3 ,rnrn 在做查询的时候,报出 org.hibernate.QueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken这 个错误(是通过数据源连接的),rnrn 通过在网上找的解决办法,我把 antlr-2.7.6rc1.jar 放到WebLogic的service/lib目录下,然后在daomainS/base_domain/bin/startWeblogic.cmd中的set classpath 的上下分别增加了两句话,如下:rn set PRE_CLASSPATH=%WL_HOME%\server\lib\antlr-2.7.6rc1.jarrnrn set CLASSPATH=%SAVE_CLASSPATH%rnrn set CLASSPATH=%PRE_CLASSPATH%;%CLASSPATH%rnrnrn然后启动WebLogic,系统正常运行(只能通过数据源方式,如果直连的还是报上面的错误)rn 。。但是。。但是。。。。 可怕的事情来了。rnrn 我把WebLogic做成了本地服务形式,也就是不通过黑窗口启动,而是写了两个脚本,生成一个服务。rn 脚本如下:rn------------------------------------------------------------------------rnrun.bat:rn rnecho offrnSETLOCALrnset DOMAIN_NAME=base_domainrnset USERDOMAIN_HOME=E:\bea\user_projects\domains\base_domainrnset SERVER_NAME=AdminServerrnset PRODUCTION_MODE=truernset JAVA_OPTIONS=-Dweblogic.Stdout="E:\bea\user_projects\domains\base_domain\stdout.txt" -Dweblogic.Stderr="E:\bea\user_projects\domains\teller_domain\stderr.txt"rnset MEM_ARGS=-Xms512m -Xmx1024mrnset WLS_USER=weblogicrnset WLS_PW=weblogicrncall "E:\bea\wlserver_10.3\server\bin\installSvc.cmd"rncall "net start beasvc teller_domain_AdminServer"rnENDLOCALrnrn------------------------------------------------------------------------rnrn------------------------------------------------------------------------rnrnstop.batrnecho offrnSETLOCALrnset DOMAIN_NAME=base_domainrnset SERVER_NAME=AdminServerrncall "E:\bea\wlserver_10.3\server\bin\uninstallSvc.cmd"rnENDLOCALrn-----------------------------------------------------------------------rnrnrn启动服务,通过查看后台日志,仍然报 org.hibernate.QueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken 这个异常。rnrnrn rnrn 问题描述如上,问题如下,为什么通过前台黑窗口启动WebLogic可以正常运行,反而通过服务就不行了呢? 同样是启动WebLogic,差别就那么大么??? 论坛

spring : ClassNotFoundException 求救

05-14

报错如下:rnorg.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'login' defined in resource [/WEB-INF/Config.xml] of ServletContext: Bean class [action.LoginAction] not found; nested exception is java.lang.ClassNotFoundException: action.LoginActionrnjava.lang.ClassNotFoundException: action.LoginActionrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:242)rn at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition(BeanDefinitionReaderUtils.java:50)rn at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinition(DefaultXmlBeanDefinitionParser.java:303)rn at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinition(DefaultXmlBeanDefinitionParser.java:263)rn at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.registerBeanDefinition(DefaultXmlBeanDefinitionParser.java:229)rn at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.registerBeanDefinitions(DefaultXmlBeanDefinitionParser.java:180)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:164)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:128)rn at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:124)rn at org.springframework.context.support.AbstractXmlApplicationContext.refreshBeanFactory(AbstractXmlApplicationContext.java:64)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:239)rn at org.springframework.web.context.support.XmlWebApplicationContext.refresh(XmlWebApplicationContext.java:131)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:282)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:230)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:200)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:102)rn at javax.servlet.GenericServlet.init(GenericServlet.java:211)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)rn at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:130)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)rn at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)rn at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)rn at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)rn at java.lang.Thread.run(Thread.java:595)rnrn====================================================================================================================================rnConfig.xml如下:rnrnrnrn rn rn rn action.LoginInforn rn rn rn fail_viewrn rn rn rn success_viewrn rn rn rn rn rn rn org.springframework.web.servlet.view.JstlViewrn rn rn /WEB-INF/view/ rn rn rn .jsprn rn rn rn rn rn rn rn loginrn rn rn rnrnrn=====================================================================================================================================rnrnaction.LoginAction明明有,为什么找不到?是什么地方配置错了?rn 论坛

ClassNotFoundException: org.springframework.web.context.ContextLoaderListener异常!

08-17

web.xml使用如下监听方式加载spring时。报错。rn[code=XML]rn rn org.springframework.web.context.ContextLoaderListener rn rnrn rn contextConfigLocationrn classpath:example.xmlrn rn[/code]rnrn目前使用的spring-framework-3.1.2.RELEASE-with-docs下的jar.如下。rncommons-logging-1.1.1.jarrnorg.springframework.asm-3.1.2.RELEASE.jarrnorg.springframework.beans-3.1.2.RELEASE.jarrnorg.springframework.context-3.1.2.RELEASE.jarrnorg.springframework.core-3.1.2.RELEASE.jarrnorg.springframework.expression-3.1.2.RELEASE.jarrnorg.springframework.web-3.1.2.RELEASE.jarrnorg.springframework.web.servlet-3.1.2.RELEASE.jarrn当然我也试过把spring-framework-3.1.2.RELEASE\dist目录下的所有包。也报上面那个错。rntomcat启动就报错说:说找不到org.springframework.web.context.ContextLoaderListener这个类。rn之前我是使用User Library加包方式。网上查一下,直接把包放到lib下。但还是一样的报错。rnrn大侠们,怎么解决呢。我是使用spring3.1.2和tomcat6.0rnrn但我使用下面这个方式加载.却可以正常访问。rn[code=XML]rn rn springMVCrn org.springframework.web.servlet.DispatcherServletrn rn contextConfigLocationrn classpath*:/example.xmlrn rn 1rn rn rn springMVCrn /rn rn[/code]rnrn请大侠们给给意见。这两种加载方式有什么区别。那种方式比较好。还有为什么我使用listener方式加载,出错????? 论坛

Tomcat5.0 连接池 ClassNotFoundException:com.mysql.jdbc.Driver

04-21

目前正在初学连接池 发生了个奇怪的问题 使用正常连接jdbc没有问题 但是用连接池就出现ClassNotFoundException:com.mysql.jdbc.Driver 错误rn我jar包已经放入工程的lib目录内 请朋友们帮忙rnrn我的部分原文:rnjava代码中:rntry rn rn[color=#99CC00]// Class.forName("com.mysql.jdbc.Driver"); rn// con=DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root","root");[/color] rn rn InitialContext ic=new InitialContext();rn DataSource ds=(DataSource)ic.lookup("java:comp/env/jdbc/dateTest");rn rn [color=#FF6600]con=ds.getConnection();[/color]rn st=con.createStatement();rn rs=st.executeQuery("SELECT * FROM menu");rn while(rs.next())rn Item i=new Item(rs.getInt(1),rs.getString(2));rn al.add(i);rn rn catch (Exception e) rn e.printStackTrace();rn rn结果[color=#FF0000]st=con.createStatement();[/color]出错rnrn我的工程名是:dateSourcernC:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\Catalina\localhost\dateSource.xml:rnrnrnrn rnrn rn rn maxWaitrn 5000rn rn rn maxActivern 10rn rn rn passwordrn rootrn rn rn urlrn jdbc:mysql://localhost:3306/testrn rn rn driverClassNamern com.mysql.jdbc.Driverrn rn rn maxIdlern 2rn rn rn usernamern rootrn rn rnrnrn工程的web.xml中:rn rn jdbc/dateTestrn javax.sql.DataSourcern Containerrn rnrn错误信息为:rnrg.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'rn at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:766)rn at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)rn at com.wish.dao.ItemDAO.getAll(ItemDAO.java:35)rn at com.wish.contorlly.ItemServlet.doGet(ItemServlet.java:30)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)rn at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)rn at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)rn at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)rn at java.lang.Thread.run(Thread.java:619)rnCaused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driverrn at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:854)rn at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:721)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:169)rn at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:760)rn ... 29 morernrn我在强调一下:工程的lib目录下有[color=#FF6600]mysql-connector-java-5.0.3-bin.jar[/color]rn而且在rnC:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\dateSource\WEB-INF\lib也有rnmysql-connector-java-5.0.3-bin.jar rnrn为什么还是ClassNotFoundException错误呢??rnrn因为是新人暂无分数 所以请各位现帮忙 谢谢了 论坛

求助:ClassNotFoundException: com.mysql.jdbc.Dirver

11-01

不好意思,总共只有40分了。希望大家帮帮忙rnSpring2.0 + Hibernate3.2 + Struts2.5.6集成时候出现了这个异常rnrn驱动用的是mysql-connector-java-5.1.6-bin.jar,已经放在项目的lib和tomcat的lib目录里rnrnrnCannot load JDBC driver class 'com.mysql.jdbc.Dirver'rnjava.lang.ClassNotFoundException: com.mysql.jdbc.Dirverrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:169)rn at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1130)rn at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)rn at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81)rn at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)rn at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:805)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:745)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1203)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:285)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:189)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:519)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:581)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)rnCannot load JDBC driver class 'com.mysql.jdbc.Dirver'rnjava.lang.ClassNotFoundException: com.mysql.jdbc.Dirverrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:169)rn at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1130)rn at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)rn at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81)rn at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)rn at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)rn at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:94)rn at org.hibernate.id.insert.AbstractSelectingDelegate.performInsert(AbstractSelectingDelegate.java:30)rn at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2158)rn at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2638)rn at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:48)rn at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)rn at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:298)rn at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181)rn at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:107)rn at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)rn at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33)rn at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)rn at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)rn at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)rn at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535)rn at org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)rn at org.hibernate.impl.SessionImpl.save(SessionImpl.java:519)rn at org.springframework.orm.hibernate3.HibernateTemplate$12.doInHibernate(HibernateTemplate.java:635)rn at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:372)rn at org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:632)rn at com.test.dao.impl.UserDAOImpl.addUser(UserDAOImpl.java:22)rn at com.test.service.impl.UserServiceImpl.save(UserServiceImpl.java:35)rn at com.test.action.user.SaveUserAction.execute(SaveUserAction.java:21)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 com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:452)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:291)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:254)rn at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)rn at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn at com.opensymphony.xwork2.interceptor.MethodFilrnrnrn 论坛

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