Caused by: java.lang.ClassNotFoundException: backtype.storm.topology.IRichSpout

1:初次运行Strom程序出现如下所示的错误,贴一下,方便脑补,也希望帮助到看到的小伙伴:

错误如下所示,主要问题是刚开始使用maven获取jar包的时候需要写<scope>provided</scope>,运行的时候需要把这行注释了即可,这是作用域的问题,开始需要在本地下载jar包,但是在虚拟机运行的时候已经存在这些jar包了,所以再写这句话就冲突了:

 1 java.lang.NoClassDefFoundError: backtype/storm/topology/IRichSpout
 2     at java.lang.Class.getDeclaredMethods0(Native Method)
 3     at java.lang.Class.privateGetDeclaredMethods(Class.java:2625)
 4     at java.lang.Class.getMethod0(Class.java:2866)
 5     at java.lang.Class.getMethod(Class.java:1676)
 6     at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
 7     at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
 8 Caused by: java.lang.ClassNotFoundException: backtype.storm.topology.IRichSpout
 9     at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
10     at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
11     at java.security.AccessController.doPrivileged(Native Method)
12     at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
13     at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
14     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
15     at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
16     ... 6 more
17 Exception in thread "main"
18 Process finished with exit code 1

解决方法如下所示:

停更......

原文地址:https://www.cnblogs.com/biehongli/p/8316885.html

时间: 2024-10-28 12:09:09

Caused by: java.lang.ClassNotFoundException: backtype.storm.topology.IRichSpout的相关文章

Caused by: java.lang.ClassNotFoundException: javax.persistence.Entity

1.错误描写叙述 usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] { -help | start | stop } 2014-7-12 19:41:17 org.apache.catalina.core.AprLifecycleListener init 信息: Loaded APR based Apache Tomcat Native library 1.1.29 usi

Caused by: java.lang.ClassNotFoundException: org.hibernate.annotations.common.reflection.MetadataPro

1.错误描写叙述 信息: MLog clients using java 1.4+ standard logging. 2014-7-12 19:29:20 com.mchange.v2.c3p0.C3P0Registry banner 信息: Initializing c3p0-0.9.2.1 [built 20-March-2013 10:47:27 +0000; debug? true; trace: 10] 2014-7-12 19:29:21 org.springframework.w

Caused by: java.lang.ClassNotFoundException: org.apache.shiro.spring.LifecycleBeanPostProcessor

1.错误描述 Caused by: java.lang.ClassNotFoundException: org.apache.shiro.spring.LifecycleBeanPostProcessor at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRe

Android项目编译的时候出现:Caused by: java.lang.ClassNotFoundException: com.example.aaa.MainActivity

错误类型: 04-28 06:10:15.508: E/AndroidRuntime(849): Caused by: java.lang.ClassNotFoundException: com.example.aaa.MainActivity 04-28 06:10:15.508: E/AndroidRuntime(849): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61) 04-28 06:1

Caused by: java.lang.ClassNotFoundException: org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWo

1.错误描述 usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] { -help | start | stop } 2014-7-12 14:19:28 org.apache.catalina.core.AprLifecycleListener init 信息: Loaded APR based Apache Tomcat Native library 1.1.29 using

maven项目出现:Caused by: java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

今天安装和部署maven项目的时候一直都出现这样的错误:  maven项目出现:Caused by: java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener  按照网上的好多都是说spring.jar包什么的问题,但是我这个项目修改了也没有效果的样子,后来自己尝试了一下,发现是maven的包没成功导入项目中: 在eclipse中:如果在这样:右击 Maven project -

Caused by: java.lang.ClassNotFoundException: flex.messaging.io.BeanProxy

1.错误描写叙述 2014-7-13 1:34:46 org.apache.catalina.startup.HostConfig undeploy 信息: Undeploying context [/blazeds] 2014-7-13 1:34:46 org.apache.catalina.core.ApplicationContext log 严重: Servlet MessageBrokerServlet threw unload() exception javax.servlet.Se

Caused by: java.lang.ClassNotFoundException: org.hibernate.engine.FilterDefinition

1.错误描述 java.lang.NoClassDefFoundError: [Lorg/hibernate/engine/FilterDefinition; at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2570) at java.lang.Class.getDeclaredMethods(Class.java:1855)

Caused by: java.lang.ClassNotFoundException: org.hibernate.impl.SessionImpl

1.错误描述 2015-09-20 23:02:58 [main] WARN org.springframework.context.support.GenericApplicationContext - Exception encountered during context initialization - cancelling refresh attempt org.springframework.beans.factory.BeanCreationException: Error cre