Java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory [duplicate]

BugkuCTF-Misc实战:从WPA握手包到密码字典的精准爆破 本文详细介绍了在BugkuCTF-Misc中如何从WPA握手包到密码字典进行精准爆破的实战流程。通过使用Wireshark分析握手包、Crunch生成针对性字典以及Aircrack-ng进行高效爆破,帮助读者掌握无线密码破解的核心技术。文章还分享了字典优化和性能调优的实用技巧,适合CTF选手和网络安全爱好者学习参考。 阅读详情

This question already has an answer here:

Seem to have a problem starting my Java app:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory at org.apache.catalina.util.LifecycleBase.(LifecycleBase.java:37) Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ... 1 more

Tried the solution here: java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory

But I see tomcat-juli.jar already. Also I'm using Tomcat 7. What might be wrong?

share improve this question

marked as duplicate by BalusC eclipse Mar 7 '16 at 21:48

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

 

7 Answers

up vote 15 down vote accepted

Your vm does not find the class org/apache/juli/logging/LogFactory check if this class is present in the tomcat-juli.jar that you use (unzip it and search the file), if it's not present download the library from apache web site else if it's present put the tomcat-juli.jar in a path (the lib directory) that Tomcat use to load classes. If your Tomcat does not find it you can copy the jar in the lib directory of the JRE that you are using.

share improve this answer
 

If you are using jsvc to run tomcat as tomcat (run /etc/init.d/tomcat as root), edit /etc/init.d/tomcat and add $CATALINA_HOME/bin/tomcat-juli.jar to CLASSPATH.

share improve this answer
 

This happened to me because I was using a Tomcat 5.5 catalina.sh file with a Tomcat 7 installation. Using the catalina.sh that came with the Tomcat 7 install fixed the problem.

share improve this answer
 
 
This is not an answer. This should have been in comments. –  Aditya Singh  Oct 6 '14 at 10:52
4  
@AdityaSingh This is an answer. it includes diagnosis of the problem and specification of a resolution. It happens to be succint - which in no way disqualifies it. –  javadba  Mar 8 '16 at 2:02 

I ran into this problem when using tomcat-embed-core::7.0.47, from Maven. I'm not sure why they didn't add tomcat-util as a runtime dependency, so I added my own runtime dependency to my own project.

<dependency>
  <groupId>org.apache.tomcat</groupId>
  <artifactId>tomcat-util</artifactId>
  <version><!-- version from tomcat-embed-core --></version>
  <scope>runtime</scope>
</dependency>
share improve this answer
 
 
Helped a lot, using Spring Boot with a Servlet 3.0 compatible version of Tomcat. I had to add this, thanks! (Mine is at scope "provided" currently though). –  electrotype  Nov 3 '16 at 19:42

I had the same problem, What helped me was:

  1. Right click on the project.
  2. Click 'Properties'
  3. Go to 'Java Build Path'
  4. And then: 'Libraries'
  5. In there, Click: Add External Jars
  6. Add: ''Path/To/Tomcat/Bin/tomcat-juli.jar

Done .

share improve this answer
 

In our case, the wrong version of the Sysdeo Tomcat plugin for Eclipse 3.5 was being used. The fix:

  • Use tomcatPluginV33 instead of tomcatPluginV321 (extract to C:\eclipse\dropins)
  • Ensure that DevloaderTomcat7.jar was placed in the tomcat lib folder
  • In Window > Preferences > Tomcat, set the Tomcat version to 7.x

This problem may have been unique to our environment; but, I'll record it here anyway, for posterity's sake.

share improve this answer
 

On Ubuntu 14.04 LTS

/usr/share# mv /opt/tomcat/apache-tomcat-7.0.56/ tomcat7

fixed the issue for me. There was a symbolic link there to /opt. Inside that opt directory there where ../../java links that would not point to /usr/share/java since the files physically were in /opt

share improve this answer
 
monocle使用sct整合数据integration还是rna中的counts数据 轨迹分析 拟时序 【代码】monocle使用sct整合数据integration还是rna中的counts数据 轨迹分析 拟时序。 阅读详情

相关推荐

告别远程控制弹窗:免Root实现投射与录制敏感信息自动授权

本文针对Android远程控制中频繁出现的‘在投射和录制时显示敏感信息’弹窗问题,提供了一套免Root的自动化解决方案。通过结合Shizuku与App Ops两款工具,无需破解系统即可静默授予屏幕投射与录制权限,从而实现稳定、无干扰的远程协助、家庭监控或自动化测试,彻底告别手动授权弹窗的烦恼。

qsc9012345的博客 716

解决Exception in thread “main“ java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory错误

解决Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory错误 1.错误原因:缺少对应的jar包(tomcat-juli.jar) 2.解决方法:在项目的webroot----web-inf----lib目录下粘贴tomcat-juli.jar包,该包位于在安装的tomcat目录的bin下面 。 ...

qq_44460466的博客 7823

从零开始:用这些公开数据集搞定电力AI项目(含鸟巢、绝缘子、负荷预测等33个实战资源)

本文系统梳理了电力AI领域33个精选公开数据集,涵盖目标检测、负荷预测等关键场景,如鸟巢检测、绝缘子缺陷识别等。通过实战案例解析数据预处理、模型选型及性能优化策略,帮助工程师快速构建端到端解决方案,解决电力AI项目中的数据获取与处理难题。

weixin_42522552的博客 216

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/juli/l

用自己的tomcat是后保错。main ....Paths 里面链接tomcat/bin/ 下的tomcat-juli.jar

黄昏的大树 1万+

别再瞎调参数了!分子动力学模拟新手必看的力场选择与验证实战指南

本文为分子动力学模拟新手提供力场选择与验证的实战指南,详细解析主流力场特性及适用场景,并通过水分子案例演示完整的验证流程。文章重点对比SPC/E、TIP3P和OPLS-AA三种力场在GROMACS中的表现,帮助读者避免常见参数调整误区,提升模拟准确性。

weixin_26934905的博客 425

机械臂学习:视觉引导——绪论

视觉引导 = 定位 + 引导定位:视觉系统定位到待引导的物体引导:视觉系统引导机械臂按需要的轨迹实现一定的工艺流程(过度点:人为指定机械臂的轨迹防止碰撞)(点云匹配:解决位姿估计姿态估计的问题)无序抓取的三个核心技术:3d识别(图中的点云匹配) 抓取方法路径规划(防止机械臂的碰撞,如自身碰撞等)如果只有同一高度的平移和旋转,其实并不需要点云,用单目就可以做,但是如果涉及到物体的倾斜以及高度的变换,那就是单目力所不能及,所以就是第三种情况:平移旋转加垫高。

2303_80018785的博客 4046

java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory的解决

自己前一段时间出现了这个问题,通过在网上搜索,大概知道了原因,整理下一,以供大家参考。 将项目部署好后,启动tomcat后报错,java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory 报这个错说明你用的是tomcat7。 目前的MyEclipse的内核为Eclipse3.5.* 尚不能提供直接对tomcat 7...

xjt2316229的博客 1220

纯JS实现SM3加密算法(兼容IE浏览器)

纯JS实现SM3加密,IE、谷歌、火狐等浏览器可以直接使用。

qianpou的博客 7353

【Question】——在myeclipse中启动server是提示异常

一、问题描述:  今天,安装Tomcat7.0.21后,单独用D:\apache-tomcat-7.0.21\bin\startup.bat启动web服务正常。但在MyEclipse8.5中集成配置Tomcat7后,在MyEclipse启动Tomcat服务则出现如下错误提示:  Exception in thread “main” java.lang.NoClassDefFoundError:

Louis 651

基于OpenAI Agents构建多智能体工作流:从原理到实战

多智能体系统(Multi-Agent System)是人工智能领域的重要分支,它通过多个智能体(Agent)的协作与交互,解决单一智能体难以处理的复杂任务。其核心原理在于将任务分解、分配与协调,每个智能体具备特定能力,通过通信机制实现信息共享与决策协同。在工程实践中,多智能体框架的价值在于提升任务处理效率、增强系统鲁棒性,并支持模块化开发。典型的应用场景包括自动化工作流编排、复杂问题求解以及人机协同交互。本文以OpenAI Agents SDK为例,深入探讨如何利用其提供的智能体(Agent)、会话(Ses

weixin_28725959的博客 603

STM32Cube高效开发教程<基础篇>(一)----概述

一、 STM32系列器件和开发工具发展历史声明:本人水平有限,博客可能存在部分错误的地方,请广大读者谅解并向本人反馈错误。本专栏博客参考《STM32Cube高效开发教程(基础篇)》,有意向的读者可以购买正版书籍辅助学习,本书籍由王维波老师、鄢志丹老师、王钊老师倾力打造,书籍内容干货满满。一、 STM32系列器件和开发工具发展历史。

我的博客 187

Exception in thread “main“ java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory at or

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:50) Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory ...

m0_50744317的博客 1244

Winform从入门到精通(1)——Label(史上最全)

本篇文章是对专栏《winform控件从入门到精通》的详细介绍

qq_34059233的博客 4万+

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory at org.apache.catalina.startup.Bootstrap.(Bootstrap.java:60) Caused by: java.lang.ClassNotFoundException

wangrong10567的博客 6134

蓝牙模块HM-10手册

蓝牙模块HM-10手册,该手册对蓝牙模块HM-10进行了详细的介绍和使用方法以及一些AT指令。

Devexpress16.2.6破解工具

Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具

java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory

如果最近你也在学习SpringBoot,当项目运行时,你有可能会遇到这样的异常:java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory 一、异常描述: 1 org.springframework.context.ApplicationContextException: Unable to start...

weixin_30387663的博客 3512

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

Exception in thread main java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFacto

报错: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory at com.google.gwt.dev.shell.tomcat.EmbeddedTomcatServer.&lt;init&gt;(EmbeddedTomcatServer.java:190)...

weixin_34301132的博客 1082

jdk-8u144-linux-x64.tar.gz.

该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包

运行错误:Exception in thread "main" java.lang. NoClassDefFoundError: org/apache/commons/logging/LogFac

错误提示项目中没有日志相关的类,原因是这个项目并没有引入相关的JAR包 因此,我引入commons-logging-1.2.jar之后,运行正常 如果Spring项目中只是进行IOC(控制反转)和DI(依赖注入),那么,引入以上三个JAR即可:commons-logging 、 spring-beans 、 spring-core ,三个缺一不可。 ...

NCHUtianlin的博客 9573

SpringBoot启动报错:NoClassDefFoundError: org/apache/juli/logging/LogFactory

SpringBoot在运行的时候会出现NoClassDefFoundError: org/apache/juli/logging/LogFactory的错误,具体错误内容如下:  .   ____          _            __ _ _ /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \( ( )\___ | '_ | '_| | '_ \/ _` |...

weixin_37577564的博客 4317

Exception in thread "main" java.lang.NoClassDef...

为什么80%的码农都做不了架构师?>>> ...

weixin_33831196的博客 422

java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory解决方式

    码农不是在报错的路上,就是在调错的路上,这也许是上天的“眷顾”,今天运行在myeclipse关联Tomcat出错了: java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory at org.apache.catalina.startup.Bootstrap.&lt;clinit&gt;(Bootstrap.j...

大鱼的博客 2万+

【转】MyEclipse8.5集成Tomcat7时的启动错误:Exception in thread “main” java.lang.NoClassDefFoundError org/apache/...

http://www.cnblogs.com/newsouls/p/4021198.html 今天,安装Tomcat7.0.21后,单独用D:\apache-tomcat-7.0.21\bin\startup.bat启动web服务正常。但在MyEclipse8.5中集成配置Tomcat7后,在MyEclipse启动Tomcat服务则出现如下错误提示:Exception in thr...

weixin_30682127的博客 189

java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory的解决办法

转自:https://blog.csdn.net/yixiaoping/article/details/9988635  Tomcat7早就出来正式版,但是一直都没有用过,尤其是针对于我还一直在用Myeclipse6.5的人来说,它在配置tomcat的时候没有tomcat7的选项,所以就报了错误信息。   [java] view plain copy java.lang.No...

weixin_33737134的博客 533
上一篇: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory解决办法
下一篇: 用webSocket发送消息怎么确定用户收到消息了呢
javaPie
博客等级 码龄16年 1171粉丝 43原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值