It's not clear what you are doing. Are you building s4r with packaged dependencies, making it available somewhere (share file system or http), referring to it when you deploy the app and starting the nodes with "s4 node -c=<cluster name>" ?
Matthieu On Jun 5, 2013, at 11:10 , ?????? wrote: > Hi??I build a java project.when it runs in cluster of 4 nodes,only one node > works well while the other 3 nodes runs with below error: > > 02:04:04.894 [itoa] ERROR org.apache.s4.core.S4Node - Uncaught exception in > thread itoa > java.lang.NoClassDefFoundError: Could not initialize class > org.jnetpcap.packet.PcapPacket > at hello.AbstractPE.onEvent(AbstractPE.java:53) > ~[fishApp.jar:unspecified] > at OverloadDispatcher2409.dispatchEvent(Unknown Source) ~[na:na] > at > org.apache.s4.core.ProcessingElement.handleInputEvent(ProcessingElement.java:461) > ~[s4-core-0.6.0-incubating.jar:0.6.0-incubating] > at > org.apache.s4.core.Stream$StreamEventProcessingTask.run(Stream.java:333) > ~[s4-core-0.6.0-incubating.jar:0.6.0-incubating] > at > org.apache.s4.comm.staging.BlockingThreadPoolExecutorService$RunnableWithPermitRelease.run(BlockingThreadPoolExecutorService.java:178) > ~[s4-comm-0.6.0-incub > ating.jar:0.6.0-incubating] > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > ~[na:1.7.0_17] > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > ~[na:1.7.0_17] > at java.lang.Thread.run(Thread.java:722) ~[na:1.7.0_17] > > The .jar file which includes PcapPacket class is exactly in the lib > directory.However,it still says NoClassDefFoundError. > I guess java configuration is wrong in the other 3 machines.But I don't konw > where is wrong exactly.Can someone help me? > Thanks very much.