java.lang.ClassNotFoundException: com.sun.tools.internal.xjc.api.XJC [问题点数:50分]

Bbs1
本版专家分:0
结帖率 0%
Bbs2
本版专家分:418
Bbs5
本版专家分:2084
Bbs1
本版专家分:0
Bbs1
本版专家分:0
其他相关推荐
cxf客户端代码调用cxf的webservice接口,报错:XJC,classnotfound,引入了tool.jar,却还是报classnotfound
cxf客户端代码调用cxf的webservice接口: Client client = clientFactory.createClient("http://XX.XX.XX.XX:8080/XX/XXService?wsdl"); 报错: Caused by: java.lang.ClassNotFoundException: com.sun.tools.internal.xjc.
javax.annotation
java.lang.ClassNotFoundException: javax.annotation.ParametersAreNonnullByDefault
commons-dbcp-1.2.2.jar
java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource
geronimo-jta.jar
解决java.lang.ClassNotFoundException: javax.transaction.SystemException
javax.xml.bind jdk1.5缺包
java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory jdk1.5
NotFoundException: org.apache.commons.dbcp.BasicDataSource异常的解决方法
Struts的java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource异常的解决方法
commons-pool-1.3.jar
error:java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource
java.lang.ClassNotFoundException??
【新手求助】 用netbeans写了点代码,清理并构建出了一个jar文件,可是打开就弹窗[img=http://img.bbs.csdn.net/upload/201611/24/1479996334_582712.png][/img]rn用exe4j把这个jar成功生成了一个exe打开弹窗java.lang.ClassNotFoundException[img=http://img.bbs.csdn.net/upload/201611/24/1479996425_545557.png][/img]如何解决rn附上本人敲的代码(新手一枚,勿喷)rn
java.lang.ClassNotFoundException
The problem is :java.lang.ClassNotFoundException: Test_2rnthe jar file is compiled on shell,but if I export the jar from Eclipse,there is no any problem.rnand the job can run normally.rnWhat's the matter???rnrnrnShell record:rnrnrn[hadoop@Client ~]$ hadoop jar test2.jar Test_2 Rtest2 22o hadooprnException in thread "main" java.lang.ClassNotFoundException: Test_2rn 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 java.lang.ClassLoader.loadClass(ClassLoader.java:247)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:247)rn at org.apache.hadoop.util.RunJar.main(RunJar.java:149)rn
java.lang.classnotfoundexception
各位高手,我建了一个static web project 取名为web 下只有一个index.html 页面.代码如下123645645rn在使用run us-run 时出现
java 三个commons
java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource 的问题解决:commons-collections-3.2.1commons-dbcp-1.4commons-pool-1.5.4放入lib
get方法直接访问servlet,找不到servlet类,报异常java.lang.classnotfoundexception和404错误问题
1、这个目录是jsp和servlet的规范! jsp和servlet运行的时候用到的用户自己定义的类都会直接到/web-inf/classes里面找! 即使你在环境变量里面设置了,但是servlet容器是识别不了的!但是java虚拟机是可以找到的! 所以用javac可以编译通过!但是在容器运行的时候是找不到的!其路径位置一般下不能改,否则就加载不到所需类,自然报出classnotfoundexce
java.lang.ClassNotFoundException: .。。。build目录下发现确实没有对应的class文件
参考链接:http://www.cnblogs.com/TTTTT/p/5911732.html 原因是:WEB-INF/lib目录下没有对应的jar 参考:http://bbs.csdn.net/topics/390918460 Java Build Path 顾名思义,它是 Build 的时候用的,也就是只管编译通过,并不管运行的时候是否正常。 那么对于普通命令行程序我们需要明确的在
mysql jar包
mysql-connector-java-5.1.6-bin.jar 不加会遇到问题:java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
xwork-core-2.3.8
取代xwork-2.x.x,解决java.lang.ClassNotFoundException: com.opensymphony.xwork2.config.FileManager问题
SSH2报错xception starting filter struts2
严重: Exception starting filter struts2 java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
Struts2启动过程中报错java.lang.ClassNotFoundException完美解决方案
具体报错部分代码如下 严重: Exception starting filter struts2 java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter at org.apache.catalina.loader.WebappClassLoa
关于Tomcat启动出现java.lang.ClassNotFoundException异常的解决方案
这些天在做一个学校的技能训练项目。   配置好了模版以及项目,想看下模版的效果,结果在浏览器地址栏输入 localhost:8080/项目名称   出现错误404,检查web.xml已设置好welcome节。转向Console发现异常原因是java.lang.ClassNotFoundException。   而找不到的类根本就不存在项目里。此时Tomcat中运行的项目仅仅有这一个新生
启动Tomcat时报监听器类(实现这个 ServletContextListener接口)引起的java.lang.ClassNotFoundException错误
最近在新导入的一个maven项目中,出现以下问题:、 启动Tomcat时监听器类实现这个 ServletContextListener接口引起的java.lang.ClassNotFoundException错误,一直报自己这个类找不到。 说明没有编译成功,可能有以下情况:1.查看是否存在该类2.看环境变量配置是否有问题3.jar包有错误,查看jar是否有漏或者重新导入jar包 4.jdk
第91课:SparkStreaming基于Kafka Direct案例实战和内幕源码解密 java.lang.ClassNotFoundException 踩坑解决问题详细内幕版本
第91课:SparkStreaming基于Kafka Direct案例实战和内幕源码解密    1.启动hdfs 2启动spark   3启动zookeeper root@worker2:~# zkServer.sh start JMX enabled by default Using config: /usr/local/zookeeper-3.4.6/bin/.
org.dom4j.jar
java.lang.ClassNotFoundException: org.dom4j.DocumentException 缺少dom4j.jar包 加进去即可
java反射读取字符创建类是出现 java.lang.ClassNotFoundException 错误
1.java反射读取字符创建类是出现 java.lang.ClassNotFoundException 错误 具体错误如下: 2.错误原因: 在xml文件上没有指明具体的包名。 3.解决方法: 把具体的报名加在路径上即可。
Mac系统下执行hadoop jar 运行在某包内的程序 提示java.lang.ClassNotFoundException的解决方法
背景       最近在写MapReduce程序时,一直在用IDE,发现编译器执行的程序,无论成功还是失败,在http://master:8088/上看不到记录,于是想不靠IDE手动编译运行一下程序,这一试出现了问题。问题       如果编译运行不在任何包中的代码,也就是在代码最上方,不存在package xxxxxx(xxxxxxxx表示代码所述的包名)则按照正常的流程编译、运行一般没什么问题。
Junit运行报错ClassNotFoundException的原因以及解决方案
在maven下使用junit进行单元测试报如下错误:
slf4j-api-1.7.21.jar
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory 缺少此依赖包
java.lang.ClassNotFoundException: net.sf.ezmorph.MorpherRegistry
JSON转化时出现 java.lang.ClassNotFoundException: net.sf.ezmorph.MorpherRegistry
aopalliance和aspectjweaver和javassist
aopalliance-1.0.jar aspectjweaver-1.5.3.jar javassist-3.9.0.GA.jar 解决java.lang.ClassNotFoundException: org.aopalliance.aop.Advice的问题
maven 项目导入后启动报错,java.lang.ClassNotFoundException,亲测有效
Maven项目下update maven后Eclipse报错:java.lang.ClassNotFoundException: ContextLoaderL  严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListenerjava.lang.Clas...
类明明存在,还是报java.lang.ClassNotFoundException的错误
类包明明存在,tomcat运行还是报java.lang.ClassNotFoundException的错误问题   解决方法: 我遇到这个问题是在myeclipse中使用tomcat部署web(maven)项目,http://www.yayihouse.com/yayishuwu/chapter/1460...
dubbo暴露接口失败,报错java.lang.ClassNotFoundException:接口名字
第一,如果你是使用配置文件的 bean注入接口,请检查你的类地址是否正确,如果类地址正确,那么请看第二第二,类上是否使用了注解 @Service并且(敲黑板,很重要)是否import的类为:com.alibaba.dubbo.config.annotation.Service;我找了两天,因为是和spring一起搭建的,所以注解引入的类很可能不小心就引入了spring的类,一定要注意。(这里也想说...
用Java连接sqlserver数据库引包后仍出现“java.lang.ClassNotFoundException”错误解决方法
如上图,我用的是sql server 2014 ,引入了sqljdbc4.jar包,但是仍然出现了“java.lang.ClassNotFoundException”错误。 原因是使用sqljdbc4.jar 类库时,应用程序无需调用 Class.forName 方法来注册或加载驱动程序。调用 DriverManager 类的 getConnection 方法时,会从已注册的 JDBC Driv
iText创建pdf文件里,解决ClassNotFoundException错误
在这里说下我解决的过程。 用了iText的例子程序,并在例子程序里加了itextpdf-5.3.3.jar,iTextAsian.jar,都能正常工作,可以创建带汉字的pdf文件,但一放到自己的RCP程序里,就出错。老是报java.lang.ClassNotFoundException:这样的错误。试了各种方法,都不行,差点崩溃了。 注:我用的例子程序,http://www.vogella.c
编译BurpSuit插件时打包方式不对导致java.lang.ClassNotFoundException问题
在编译Burp插件时,由于导出jar包的姿势不对,在Burp Suit里引用自己导出的jar包,可能会报错:java.lang.ClassNotFoundException:……。举个例子,在编写某个burp插件时,引用了外部jar包:在工程里已经配置好了引用jar包的路径,程序无报错:但下面采用了错误的姿势导出jar包,导致burp中引用jar包时报错:错误的姿势:burp中应用jar包报错:正...
突然所有的jquery ajax都不起作用了,出现java.lang.ClassNotFoundException的异常。
问题: 后台出现java.lang.ClassNotFoundException的异常 前台有时提示:POST http://localhost:8080/Clu/ListSignServlet 404 (Not Found)  有时提示 500 内部服务器错误。 解决方法:将工程从servers上移除,再在servers上重新启动工程 就可以了。
java web 项目 ssh框架使用中的 ClassNotFoundException 异常【找不到**Action】
ERROR DefaultDispatcherErrorHandler:42 - Exception occurred during processing request: Unable to instantiate Action, visitAction, defined for 'visit_findByPage' in namespace '/'visitAction Unable to instantiate Action, visitAction, defined for 'visit_fin
项目启动时,一直报java.lang.ClassNotFoundException(类找不到异常)
web.xml配置文件中一直报java.lang.ClassNotFoundException(类找不到异常),有一方面原因则是在开发时,我们引用maven的pom依赖的jar包,并没有进行与项目绑定,所以部署或者运行是找不到jar包! jar包与绑定方式:项目名>右击选择properties>进去之后选择Deployment Assembly >Add>Java Build Path En
java.lang.ClassNotFoundException但是项目里明明已经导入了需要的类
今天,从svn中下了一个web项目,用的是ssh框架。当一切准备就绪时候,run下项目,结果出现404错误。看了下控制台日志,出现各种 java.lang.ClassNotFoundException 看了下lib文件中,包都在啊,而且已经add进build path里面了啊。坑,怎么会找不到呢。。。 然后看了下tomcat下运行的项目中找下,发现还真的没有那些包。 试了下
xmlbeans-2.3.0.jar
解决 POI 操作2007格式的Excel报错问题:java.lang.ClassNotFoundException: org.apache.xmlbeans.XmlOptionsz
MyEclipse10.1破解补丁
MyEclipse10.1破解补丁,解决Exception in thread "main" java.lang.ClassNotFoundException: com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel错误
Idea 中JDK版本设置问题导致ClassNotFoundException错误的一种原因
今天在使用Idea编写代码测试时,点击Run之后,一直报错ClassNotFoundException,就连最简单的Hello world程序都是如此,一时之间,不知所措。Baidu、Google了一大堆,各种方法都尝试了,还是报一样的错误。甚至,我都把Idea卸载并重新安装了,错误仍然存在。     没办法,还得继续查找原因,于是继续搜索,查看各种可能性,并一个个尝试。忽然,在一个论坛中,看到
spark无法启动
查看logs,错误描述: Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.spark.depl oy.worker.Worker    at java.lang.Class.initializeClass(libgcj.so.10) Caused by: java.lang.ClassNotFoun
log4j-1.2.16.jar+slf4j-api-1.6.1.jar slf4j-log4j12-1.6.1.jar
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory 需要jar log4j-1.2.16.jar slf4j-api-1.6.1.jar slf4j-log4j12-1.6.1.jar
webservice需要的jar包JAX-WS2.1.4.rar
严重: Error configuring application listener of class com.sun.xml.ws.transport.http.servlet.WSServletContextListener java.lang.ClassNotFoundException: com.sun.xml.ws.transport.http.servlet.WSServletContextListener
Struts的java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource异常的解决方法
struts初学者的数据池配置出现java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource异常的解决办法
java10 运行“HelloWorld”错误:找不到或无法加载主类 原因: java.lang.ClassNotFoundException 的方法
我安装的版本是java10,看网上的说法是这个版本配置环境变量的话只需要设置 1.%JAVA_HOME%: jdk的安装目录  我的是D:\javajdk 2.path: %JAVA_HOME%\bin 设置这两个就足够了,不用再设置classpath。   测试的时候,输入“java -version”,“javac”命令都成功了,当运行编写的小白文件“HelloWorld.java”...
Kotlin项目崩溃报 java.lang.ClassNotFoundException异常问题解决思路
今天闲来无事学准备在Android Studio下编译一个Ktolin Demo 运行一下。以为环境配置好了直接运行,编译没有错误,结果运行直接报了这样一个错误:31013-31013/com.yan.newbe E/AndroidRuntime: FATAL EXCEPTION: mainProcess: com.yan.newbe, PID: 31013java.lang.RuntimeExc...
kafka测试
安装完kafka后,做了下简单测试 消息生产端: import java.util.Properties; import kafka.javaapi.producer.Producer; import kafka.producer.KeyedMessage; import kafka.producer.ProducerConfig; /** * Created with Intel
项目新导入jar包之后,运行报错:类没有找到异常(java.lang.ClassNotFoundException)
已经导入了新的jar包了,但是运行项目还是报错,类没有找到异常(java.lang.ClassNotFoundException: org.apache.poi.openxml4j.exceptions.InvalidFormatExceptio)
关于解决 错误: 找不到或无法加载主类 原因: java.lang.ClassNotFoundException 的方法
配置好了jdk,也写好了代码javac Hello.java也执行成功了但是java Hello的时候就会一直出现错误: 找不到或无法加载主类 Hello原因: java.lang.ClassNotFoundException: Hello网上找了很多攻略,发现很多人有这个错误。就把我的解决方法说一下吧设置环境变量时,CLASSPATH后面需要加一个“;”就不会出现异常了...
【项目启动】 tomcat启动,项目无法启动,无法正常访问/项目可以启动,报错:java.lang.ClassNotFoundException: ContextLoaderListener
【项目启动】 tomcat启动,项目无法启动,无法正常访问/项目可以启动,报错:java.lang.ClassNotFoundException: ContextLoaderListener 使用maven搭建项目(这个错误和是不是使用maven搭建项目没有关系),然后部署到tomcat中运行。   出现问题1: tomcat跑起来了,但是启动时间很短,没有报错,项目不能正常访问 项目启
反序列化 动态加载jar的里的类报ClassNotFoundException解决办法
1.背景 自己在写一个RPC框架时,碰到第一个麻烦就是做动态加载加载jar包后,在进行反序列化(不要吐槽为啥用java原生的序列化方案,一步一步来,框架写完能跑后在优化)时报CNF错误,当时感觉应该是原生的序列化方案中使用的ClassLoader是应用加载器AppCloassLoader,而我使用的URLClassLoader加载的外部jar包,导致没有找到。 关于java的类加载器,如果知道...
matlab启动时,命令行中出现“java.lang.​ClassNotFo​undExcepti​on”错误代码
当我在使用pycharm IDE编写Python代码,在打开matlab 2015时,出现错误代码: eption "java.lang.ClassNotFoundException: com.intellij.codeInsight.editorActions.FoldingData"while constructing DataFlavor for: application/x-java-j
Scala学习笔记1——初始Scala
引入最近因为Spark的兴起,Scala也炙手可热,个人并不认为它是一个新兴的编程语言,虽然它提供了全新的语法,本文主要介绍Scala环境和几种运行方式,以及通过实例观察Scala和JAVA的关系,学习Scala主要参考Scala语法手册和Scala实例。Scala环境Linux上可以使用类似于JDK环境安装的方式,下载Scala,设置PATH,不过我在Scala官网上找了半天Linux包才在这里找
Eclipse项目名出现红叉,启动项目报错java.lang.ClassNotFoundException
java.lang.ClassNotFoundException - Stack Overflow
Kafka-storm的开发错吴总结
工程是基于Maven来构建 1、clojure如果是1.4.0会报如下错误,换成1.6.0即可解决 org.clojure clojure 1.6.0 2.Caused by: java.lang.IllegalStateException: Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the clas
JDBC 导入MYSQL驱动方法
解决JDBC异常:Exception in thread "main" java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
org.aspectj.lang.annotation.Around所需要的包
java错误-java.lang.ClassNotFoundException: org.aspectj.lang.annotation.Around Spring的AOP需要上述三个jar包
jbmp4.0 相关的几个包
用于解决JBPM 4.0的问题:Caused by: java.lang.ClassNotFoundException: de.odysseus.el.util.SimpleResolver
WSDL Web服务描述语言
java.lang.ClassNotFoundException: com.sun.xml.ws.transport.http.servlet.WSServletContextListener问题: java.lang.ClassNotFoundException: com.sun.xml.ws.transport.http.servlet.WSServletContextListener
“找不到或无法加载主类”错误的原因
排除环境变量配置错误以后,使用java *** 运行class还是会报同样的错误。 原因应该在于 你的.java文件 是写在某个package下,假设D:/javatest/com/test 这个目录下有你的helloworld.java文件。 正确编译及运行命令应该是: D:\javatest>javac com/test/helloworld.java D:\javatest>ja
JSON学习之XOM的认识
json的对象转换中,一定会碰到的xml序列化问题,其实让我们一筹莫展的,只是缺少了一个包xom
Nutch2.3 + Mysql(错误解决方案)
Nutch2.3 Mysql(错误解决方案)
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
三个项目:rnrnA项目是专门负责处理数据库读写,用到了com.mysql.jdbc.Driver;rnB项目是一个java项目上,B依赖A项目;rnC项目是一个jsp的web项目,依赖A ;rnrn问题:rnrn B项目运行正常;rn C项目运行时抛出java.lang.ClassNotFoundException: com.mysql.jdbc.Driverrnrn求解。。。
java.lang.ClassNotFoundException错误
java.lang.ClassNotFoundException: com.intellij.ide.plugins.PluginManagerrnrnPluginManager这个类是存在的,但是运行的时候就会报找不到这个类,会是什么问题?
java.lang.ClassNotFoundException: daviss.jeff.cellexporter.CellExporte
在报表预览的时候,出现异常。题诗找不到类daviss.jeff.cellexporter.CellExporter,但是从好多地,都没有找到这个类属于,那个包。rn rnExport Supervisor: fail to load exporter (stack trace follows). This warning is only a problem if the exporter that failed to load is supported in a given project.daviss.jeff.cellexporter.CellExporterrnjava.lang.ClassNotFoundException: daviss.jeff.cellexporter.CellExporterrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1355)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)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:164)rn at com.crystaldecisions.reports.formatter.a.c.char(Unknown Source)rn at com.crystaldecisions.reports.formatter.a.c.case(Unknown Source)rn at com.crystaldecisions.reports.formatter.a.c.for(Unknown Source)rn at com.businessobjects.reports.sdk.b.i.do(Unknown Source)rn at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)rn at com.crystaldecisions.proxy.remoteagent.y.a(Unknown Source)rn at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)rn at com.crystaldecisions.sdk.occa.report.application.cf.a(Unknown Source)rn at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)rn at com.crystaldecisions.sdk.occa.report.application.ReportSource.getServerCapabilities(Unknown Source)rn at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.getServerCapabilities(Unknown Source)rn at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.getServerCapabilities(Unknown Source)rn at com.crystaldecisions.report.web.a.a.if(Unknown Source)rn at com.crystaldecisions.report.web.component.o.a(Unknown Source)rn at com.crystaldecisions.report.web.WorkflowController.case(Unknown Source)rn at com.crystaldecisions.report.web.WorkflowController.doLifecycle(Unknown Source)rn at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)rn at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source)rn at org.apache.jsp.View_jsp._jspService(View_jsp.java:67)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)rn at org.apache.jsp.index_jsp._jspService(index_jsp.java:67)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)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)rn- JRCAgent2 received request: refreshDatarn- JRCAgent2 attempting to acquire license
java.lang.ClassNotFoundException: org.hibernate.Session
package com.donghua.hibernate.sessionFactory;rnrnimport org.hibernate.HibernateException;rnimport org.hibernate.Session;rnimport org.hibernate.cfg.Configuration;rnrn/**rn * Configures and provides access to Hibernate sessions, tied to thern * current thread of execution. Follows the Thread Local Sessionrn * pattern, see @link http://hibernate.org/42.html .rn */rnpublic class HibernateSessionFactory rnrn /** rn * Location of hibernate.cfg.xml file.rn * Location should be on the classpath as Hibernate uses rn * #resourceAsStream style lookup for its configuration file. rn * The default classpath location of the hibernate config file is rn * in the default package. Use #setConfigFile() to update rn * the location of the configuration file for the current session. rn */rn private static String CONFIG_FILE_LOCATION = "/hibernate.cfg.xml";rn private static final ThreadLocal threadLocal = new ThreadLocal();rn private static Configuration configuration = new Configuration(); rn private static org.hibernate.SessionFactory sessionFactory;rn private static String configFile = CONFIG_FILE_LOCATION;rnrn static rn try rn configuration.configure(configFile);rn sessionFactory = configuration.buildSessionFactory();rn catch (Exception e) rn System.errrn .println("%%%% Error Creating SessionFactory %%%%");rn e.printStackTrace();rn rn rn private HibernateSessionFactory() rn rn rn /**rn * Returns the ThreadLocal Session instance. Lazy initializern * the SessionFactory if needed.rn *rn * @return Sessionrn * @throws HibernateExceptionrn */rn public static Session getSession() throws HibernateException rn Session session = (Session) threadLocal.get();rnrn if (session == null || !session.isOpen()) rn if (sessionFactory == null) rn rebuildSessionFactory();rn rn session = (sessionFactory != null) ? sessionFactory.openSession()rn : null;rn threadLocal.set(session);rn rnrn return session;rn rnrn /**rn * Rebuild hibernate session factoryrn *rn */rn public static void rebuildSessionFactory() rn try rn configuration.configure(configFile);rn sessionFactory = configuration.buildSessionFactory();rn catch (Exception e) rn System.errrn .println("%%%% Error Creating SessionFactory %%%%");rn e.printStackTrace();rn rn rnrn /**rn * Close the single hibernate session instance.rn *rn * @throws HibernateExceptionrn */rn public static void closeSession() throws HibernateException rn Session session = (Session) threadLocal.get();rn threadLocal.set(null);rnrn if (session != null) rn session.close();rn rn rnrn /**rn * return session factoryrn *rn */rn public static org.hibernate.SessionFactory getSessionFactory() rn return sessionFactory;rn rnrn /**rn * return session factoryrn *rn * session factory will be rebuilded in the next callrn */rn public static void setConfigFile(String configFile) rn HibernateSessionFactory.configFile = configFile;rn sessionFactory = null;rn rnrn /**rn * return hibernate configurationrn *rn */rn public static Configuration getConfiguration() rn return configuration;rn rnrnrnrn上面是HibernateSessionFactory类的代码,当HibernateSessionFactory.getSession()时报java.lang.ClassNotFoundException: org.hibernate.Session异常。请问是哪里出了问题?(myeclipse+struts+hibernate)rn
java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.FilterDispatcher
AIX+weblogic10.3.6+jdk1.6环境。部署一个ssh框架javaweb项目,在web-inf下添加了weblogic.xml文件true指定优先加载项目里的jar包,但是启动时报错如下rn#### <> <> rn#### <> <> rn#### <> <> rn#### <> <> rn#### <> <> (WebAppServletContext.java:450)rn at weblogic.servlet.internal.WebAppServletContext.(WebAppServletContext.java:494)rn at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:418)rn at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:976)rn at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:384)rn at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)rn at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)rn at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)rn at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)rn at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)rn at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)rn at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:648)rn at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)rn at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)rn at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:44)rn at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)rn at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)rn at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:208)rn at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98)rn at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)rn at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)rn at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)rn at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)rn at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)rn at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)rn at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)rn at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)rn at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)rn at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)rn at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)rn查看web-inf下的lib目录下struts的jar包都在,web.xml的相关配置如下rn
(求助)java.lang.ClassNotFoundException
在服务器上有两个项目androidpn-server-bin-tomcat和netoneWebSerivce,其中netoneWebSerivce项目去引用androidpn-server-bin-tomcat项目中的类,编译时候都没错,运行时到rn NotificationManager notificationManager = new NotificationManager();rn这里就报java.lang.ClassNotFoundExceptionrnNotificationManager 是androidpn-server-bin-tomcat项目里的类,大家有没碰到类似的情况帮我想想是哪里出问题了,谢谢啦。
!!~java.lang.ClassNotFoundException:com.microsoft.jdbc.sqlserver.SQLServerDriver
win7系统 sql2008 JBuilder2008 rnrn如下:rnimport java.sql.*;rnpublic class Dao rn public static void main(String args[])rn new Dao();rn rn public Dao()rn tryrn Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");rn Connection conn=DriverManager.getConnection(rn "jdbc:microsoft:sqlserver://localhost:1433;databasename=phoneroot","sa","");rn System.out.println("连接成功");rn catch(Exception e)rn System.out.println("连接失败");rn e.printStackTrace();rn rn rnrnrn提示如下:rnrn连接失败rnjava.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriverrn(这里没用的省略...)rnrnrnrn我下载的是驱动是Microsoft SQL Server JDBC Driver 2.0rnrnCLASSPATH设置如下:rn,;C:\Program Files\Microsoft SQL Server JDBC Driver 2.0\sqljdbc_2.0\chs\sqljdbc.jarrn(这里JDBC设置我是按照MS提供的帮助文件来设置的)rnrn还有,问下JBuiler2008其实用不用设置环境变量的?
java.lang.ClassNotFoundException: org.logicalcobwebs.proxool.ProxoolDataSource
今天刚刚down了个项目下来,部署好tomcat后启动报错:rn[color=#FF0000]2013-04-28 16:58:46 ERROR [color=#FF0000][org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:211)] main - Context initialization failedorg.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Bean class [org.logicalcobwebs.proxool.ProxoolDataSource] not found; nested exception is java.lang.ClassNotFoundException: org.logicalcobwebs.proxool.ProxoolDataSourcejava.lang.ClassNotFoundException: org.logicalcobwebs.proxool.ProxoolDataSource[/color][/color] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340) at org.apache.catalina.loader.WebappClassLoader.loadClass............rn项目本身没有proxool-0.9.1.jar和proxool-cglib.jar,下载后把jar包加入项目,启动tomcat依然报这个错,大侠指点!因为项目别人都在跑,所以配置文件那边肯定是没错的,我查了下网上有不少说删除asm包的,但是项目中没有这个包,还有说jar包冲突但没具体说哪两个包冲突的,求指点 rnrn以下是applicationContext中相关配置文件rnrn rn $jdbcDriverrn rn rn $jdbcUrlrn rn rn $usernamern rn rn $passwordrn rn rn aptradepoolrn rn rn 50rn rn rn 5rn rn rn 600000rn rn rn truern rn rn truern rn
java.lang.ClassNotFoundException: com.mchange.v2.c3p0.ComboPooledDataSource
tomcat报错说找不到com.mchange.v2.c3p0.ComboPooledDataSource类,但我在随便一个类中打com.mchange.v2.c3p0,再点就能点出rnComboPooledDataSource,说明某个包中有这个类,为何还报错rnrn12-01-01 162925 INFO XmlBeanDefinitionReader163 - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]rn 12-01-01 162926 ERROR ContextLoaderPlugIn230 - Context initialization failedrn org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Bean class [com.mchange.v2.c3p0.ComboPooledDataSource] not found; nested exception is java.lang.ClassNotFoundException: com.mchange.v2.c3p0.ComboPooledDataSourcernjava.lang.ClassNotFoundException: com.mchange.v2.c3p0.ComboPooledDataSourcern at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1438)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284)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 org.springframework.util.ClassUtils.forName(ClassUtils.java:109)rn at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition(BeanDefinitionReaderUtils.java:65)rnrnrnrn我是在web-inf下的application.xml里配dataSource:rn[code=HTML]rn rn rn net.sourceforge.jtds.jdbc.Driverrn rn rn jdbc:jtds:sqlserver://localhost:1433/ERP_DBrn rn rn sarn rn rn pwdrn rn[/code]rn
java.lang.ClassNotFoundException:core.servlet.SpringInit
java.lang.ClassNotFoundException:core.servlet.SpringInitrnrnat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3773)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)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:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)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:566)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)
java.lang.ClassNotFoundException:oracle.jdbc.driver.OracleDriver
编译正常,运行时出现java.lang.ClassNotFoundException:oracle.jdbc.driver.OracleDriver rnrnrnclasspath为 rn.;c:\Program Files\Java\jdk1.5.0_15\lib\dt.jar;.;c:\Program Files\Java\jdk1.5.0_15\lib\tools.jar;.;d:\oracle\product\10.2.0\db_1\jdbc\lib\classes12.jar;.;c:\resin\lib; rnrn服务器为resinrnrnrn这个问题出在哪????各位xdjm忘告之
java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet
初学struts,用的是struts(用的版本是1.2.9),开发工具是tomcat6.0,myeclipse7.0rn我明明已经引入了struts包,可是还是在tomcat启动的时候报下列错误:rn但是web应用程序可以正常访问。我的简单的登录验证,从结果看都是没有问题的。rn难道是myclipse。不会吧?前面几个例子还好好的。rn可是自从有发现这个后,把前面的几个例子重新部署,也是这个错误。但是可以运行出来结果。rnrn2009-8-1 20:41:35 org.apache.catalina.core.AprLifecycleListener initrn信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\jdk1.6.0_14\bin;D:\tomcat6.0.18\binrn2009-8-1 20:41:35 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-80rn2009-8-1 20:41:35 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 1129 msrn2009-8-1 20:41:36 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2009-8-1 20:41:36 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.18rn2009-8-1 20:41:37 org.apache.catalina.core.ApplicationContext logrn信息: ContextListener: contextInitialized()rn2009-8-1 20:41:37 org.apache.catalina.core.ApplicationContext logrn信息: SessionListener: contextInitialized()rnIPFilter initrnauthfilter initrnCharsetEncodingFilter initrnencoding=GB18030rnAuthFilter init()rn2009-8-1 20:41:41 org.apache.struts.action.ActionServlet initChainrn信息: Loading chain catalog from jar:file:/D:/tomcat6.0.18/webapps/struts_jstl/WEB-INF/lib/struts-core-1.3.10.jar!/org/apache/struts/chain/chain-config.xmlrn2009-8-1 20:41:43 org.apache.struts.action.ActionServlet initChainrn信息: Loading chain catalog from jar:file:/D:/tomcat6.0.18/webapps/struts_taglib/WEB-INF/lib/struts-core-1.3.10.jar!/org/apache/struts/chain/chain-config.xmlrn2009-8-1 20:41:45 org.apache.catalina.core.ApplicationContext logrn信息: Marking servlet action as unavailablern2009-8-1 20:41:45 org.apache.catalina.core.ApplicationContext logrn严重: Error loading WebappClassLoaderrn delegate: falsern repositories:rn /WEB-INF/classes/rn----------> Parent Classloader:rnorg.apache.catalina.loader.StandardClassLoader@1386918rn org.apache.struts.action.ActionServletrnjava.lang.ClassNotFoundException: org.apache.struts.action.ActionServletrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1094)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4371)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:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)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:578)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)rn2009-8-1 20:41:45 org.apache.catalina.core.StandardContext loadOnStartuprn严重: Servlet /struts_login threw load() exceptionrnjava.lang.ClassNotFoundException: org.apache.struts.action.ActionServletrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1094)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4371)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:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)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:578)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)rn2009-8-1 20:41:46 org.apache.struts.action.ActionServlet initChainrn信息: Loading chain catalog from jar:file:/D:/tomcat6.0.18/webapps/struts_training_calc/WEB-INF/lib/struts-core-1.3.10.jar!/org/apache/struts/chain/chain-config.xmlrn2009-8-1 20:41:48 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-80rn2009-8-1 20:41:49 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2009-8-1 20:41:49 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/62 config=nullrn2009-8-1 20:41:49 org.apache.catalina.startup.Catalina startrn信息: Server startup in 13279 msrn
java.lang.ClassNotFoundException: org.apache.http.config.Lookup
如题,在写发送手机验证码的代码里,用了httpclient,工程用的是httpcilent4.3.6jar包rn[img=http://img.bbs.csdn.net/upload/201706/24/1498285183_328070.png][/img]rnrn代码第80行,CloseableHttpClient httpclient = HttpClients.createDefault();运行时报错rn引的是这个包import org.apache.http.impl.client.CloseableHttpClient;rn在运行时报如下错误,网上看了些方法就是不相关的,请大神们指点一下rn[img=http://img.bbs.csdn.net/upload/201706/24/1498285377_489687.png][/img]rnrn都发挥一下自己的意见吧
java.lang.ClassNotFoundException: sun.misc.GC
根据.xls表中信息在oracle数据库表1中查询数据,将查询的数据处理后插入表2,出现了异常:rn严重: Failed to trigger creation of the GC Daemon thread during Tomcat start to prevent possible memory leaks. This is expected on non-Sun JVMs.rnjava.lang.ClassNotFoundException: sun.misc.GCrn at java.base/java.net.URLClassLoader.findClass(Unknown Source)rn at java.base/java.lang.ClassLoader.loadClass(Unknown Source)rn at java.base/java.lang.ClassLoader.loadClass(Unknown Source)rn at java.base/java.lang.Class.forName0(Native Method)rn at java.base/java.lang.Class.forName(Unknown Source)rn at org.apache.catalina.core.JreMemoryLeakPreventionListener.lifecycleEvent(JreMemoryLeakPreventionListener.java:350)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)rn at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:388)rn at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:101)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:643)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:668)rn at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.base/java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427)rn
报出java.lang.ClassNotFoundException
Servlet.service() for servlet [tomcat.com.MyTestServlet] in context with path [/MyTest] threw exception [Servlet execution threw an exception] with root causernjava.lang.ClassNotFoundException: net.sf.json.JSONObject
java.lang.ClassNotFoundException: org.apache.jasper.tagplugins.jstl.If
在使用Eclipse+Tomcat5.5+jdk1.5,做项目时rn出现这个错误:rnexception rnrnorg.apache.jasper.JasperException: org.apache.jasper.tagplugins.jstl.Ifrn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnroot cause rnrnorg.apache.jasper.JasperException: org.apache.jasper.tagplugins.jstl.Ifrn org.apache.jasper.compiler.TagPluginManager.init(TagPluginManager.java:109)rn org.apache.jasper.compiler.TagPluginManager.apply(TagPluginManager.java:51)rn org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:189)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnroot cause rnrnjava.lang.ClassNotFoundException: org.apache.jasper.tagplugins.jstl.Ifrn java.net.URLClassLoader$1.run(URLClassLoader.java:200)rn java.security.AccessController.doPrivileged(Native Method)rn java.net.URLClassLoader.findClass(URLClassLoader.java:188)rn java.lang.ClassLoader.loadClass(ClassLoader.java:306)rn java.lang.ClassLoader.loadClass(ClassLoader.java:251)rn java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)rn java.lang.Class.forName0(Native Method)rn java.lang.Class.forName(Class.java:164)rn org.apache.jasper.compiler.TagPluginManager.init(TagPluginManager.java:106)rn org.apache.jasper.compiler.TagPluginManager.apply(TagPluginManager.java:51)rn org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:189)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrn--望高手给予解答,在线等
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
菜鸟问题,为设么我的程序不能脸上数据库读数据阿rn提示出错信息是:java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver 但是我已经载入了classes.jar;rn rn程序如下:rnrnrnrnrnrn rnrnrnrn rnrnrn99rn沃阿
运行java程序,环境变量设置不对,导致的问题——错误: 找不到或无法加载主类 Triangle 原因: java.lang.ClassNotFoundException: Triangle
问题: 原因:环境变量设置不对导致 解决办法: 须在CLASSPATH环境变量值后,添加“;”分号,如下 注意:修改环境变量后,需重新打开命令行界面,才生效...
解决Bundle中使用反射时,报ClassNotFoundException异常
项目工程: user-model/
jar包冲突那些事,编译器不报错,启动报错
上周启动项目遇到了错误一,这周启动遇到错误二。       在分布式系统中,那么多复杂繁琐的jar依赖,遇到jar包冲突是常有的事。       假如,你也经常遇到这样的情况——明明编译的时候是好好的,可就是启动的时候不成功,明明jar包是有的,可就是报找不到类,或找不到方法?       为了解决这样的困扰,遂写下此文,顺便聊一聊。 错误一:java.lang.NoCla
spring整合redis的错误
在整合spring和redis的时候出现了如下的错误 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jedisConnectionFactory' defined in class path resource [application-context.xml]:
已经引入jar包并且build path了,还是提示java.lang.ClassNotFoundException之类的错误
自学JSP、Eclipse, 刚在用Eclipse写JSP连接Oracle11G数据库的时候, 已经按照以前用Eclipse写Java代码的时候引入jar包的方法引入jar包了, 并且已经成功build path了, 还是提示java.lang.ClassNotFoundException之类的错误, 百度半天, 关键词都快用完了都, 还是没找到解决方案, 我那叫一个愁啊, 就在我
Akka框架学习中遇到的部分错误和异常及其解决方法
1.Exception in thread "main" java.lang.ClassNotFoundException: akka.remote.RemoteActorRefProvider 原因:缺少akka-remote-2.0.2.jar包 2. Exception in thread "main" java.lang.NoClassDefFoundError: com/go
我们是很有底线的
关闭
关闭