Hi Alex, I just quickly tried the same scenario with ESB 4.8.0 on jdk1.7.0_51 and I didn't encounter similar issue. I tried the sample 0 [1] to check.
Could you please list all steps to reproduce this issue? (Starting from unpacking the wso2esb-4.8.0.zip) Thanks! Best Regards, [1] http://docs.wso2.org/display/ESB480/Sample+0%3A+Introduction+to+ESB On Fri, Jan 17, 2014 at 10:58 PM, Alexander Shroyer <[email protected]> wrote: > I installed ESB and its prerequisites, put JAVA_HOME on my $PATH, and try > to start one of the samples as described here: > > http://docs.wso2.org/display/ESB480/ESB+Samples+Setup#ESBSamplesSetup-StartingSampleBack-EndServices > > The first time I run ./axis2server.sh I get a Class Not Found error > (highlighted in *bold* below), but if I Ctrl-C to exit and try again, it > starts normally. Same behavior in Windows 8. > > Thanks, > Alex > > > > ./axis2server.sh > Using JAVA_HOME: /usr/local/jdk1.7.0_51 > Using AXIS2 Repository : > /home/alex/wso2-products/wso2esb-4.8.0/samples/axis2Server/repository > Using AXIS2 Configuration : > /home/alex/wso2-products/wso2esb-4.8.0/samples/axis2Server/repository/conf/axis2.xml > 14/01/17 12:06:11 INFO util.SampleAxis2ServerManager: [SimpleAxisServer] > Starting > [SimpleAxisServer] Using the Axis2 Repository : > /home/alex/wso2-products/wso2esb-4.8.0/samples/axis2Server/repository > [SimpleAxisServer] Using the Axis2 Configuration File : > /home/alex/wso2-products/wso2esb-4.8.0/samples/axis2Server/repository/conf/axis2.xml > 14/01/17 12:06:12 INFO deployment.ModuleDeployer: Deploying module: > rampart - > file:/home/alex/wso2-products/wso2esb-4.8.0/samples/axis2Server/repository/modules/rampart.mar > 14/01/17 12:06:12 INFO deployment.ModuleDeployer: Deploying module: > addressing - > file:/home/alex/wso2-products/wso2esb-4.8.0/samples/axis2Server/repository/modules/addressing.mar > 14/01/17 12:06:12 INFO deployment.ModuleDeployer: Deploying module: > sandesha2 - > file:/home/alex/wso2-products/wso2esb-4.8.0/samples/axis2Server/repository/modules/sandesha2.mar > 14/01/17 12:06:12 INFO deployment.ModuleDeployer: Deploying module: > addressing - > file:/home/alex/wso2-products/wso2esb-4.8.0/repository/components/plugins/org.wso2.carbon.addressing_4.2.0.jar > 14/01/17 12:06:12 INFO deployment.ModuleDeployer: Deploying module: > wso2caching - > file:/home/alex/wso2-products/wso2esb-4.8.0/repository/components/plugins/org.wso2.carbon.caching.core_4.2.0.jar > 14/01/17 12:06:12 INFO deployment.ModuleDeployer: Deploying module: > ComponentMgtModule - > file:/home/alex/wso2-products/wso2esb-4.8.0/repository/components/plugins/org.wso2.carbon.feature.mgt.services_4.2.0.jar > 14/01/17 12:06:12 INFO deployment.ModuleDeployer: Deploying module: > wso2mex - > file:/home/alex/wso2-products/wso2esb-4.8.0/repository/components/plugins/org.wso2.carbon.mex_4.2.0.jar > 14/01/17 12:06:12 INFO deployment.ModuleDeployer: Deploying module: > pagination - > file:/home/alex/wso2-products/wso2esb-4.8.0/repository/components/plugins/org.wso2.carbon.registry.server_4.2.0.jar > 14/01/17 12:06:12 INFO deployment.ModuleDeployer: Deploying module: relay > - > file:/home/alex/wso2-products/wso2esb-4.8.0/repository/components/plugins/org.wso2.carbon.relay.module_4.2.0.jar > 14/01/17 12:06:12 INFO deployment.ModuleDeployer: Deploying module: > sandesha2 - > file:/home/alex/wso2-products/wso2esb-4.8.0/repository/components/plugins/org.wso2.carbon.rm_4.2.0.jar > 14/01/17 12:06:12 INFO deployment.ModuleDeployer: Deploying module: > POXSecurityModule - > file:/home/alex/wso2-products/wso2esb-4.8.0/repository/components/plugins/org.wso2.carbon.security.mgt_4.2.2.jar > 14/01/17 12:06:12 INFO deployment.ModuleDeployer: Deploying module: > ServerAdminModule - > file:/home/alex/wso2-products/wso2esb-4.8.0/repository/components/plugins/org.wso2.carbon.server.admin_4.2.0.jar > 14/01/17 12:06:12 INFO deployment.ModuleDeployer: Deploying module: > wso2statistics - > file:/home/alex/wso2-products/wso2esb-4.8.0/repository/components/plugins/org.wso2.carbon.statistics_4.2.2.jar > 14/01/17 12:06:12 INFO deployment.ModuleDeployer: Deploying module: > wso2throttle - > file:/home/alex/wso2-products/wso2esb-4.8.0/repository/components/plugins/org.wso2.carbon.throttle.core_4.2.0.jar > 14/01/17 12:06:12 INFO deployment.ModuleDeployer: Deploying module: > usagethrottling - > file:/home/alex/wso2-products/wso2esb-4.8.0/repository/components/plugins/org.wso2.carbon.throttling.agent_2.2.0.jar > 14/01/17 12:06:12 INFO deployment.ModuleDeployer: Deploying module: > wso2tracer - > file:/home/alex/wso2-products/wso2esb-4.8.0/repository/components/plugins/org.wso2.carbon.tracer_4.2.0.jar > 14/01/17 12:06:12 INFO deployment.ModuleDeployer: Deploying module: > metering - > file:/home/alex/wso2-products/wso2esb-4.8.0/repository/components/plugins/org.wso2.carbon.usage.agent_2.2.0.jar > 14/01/17 12:06:12 INFO deployment.ModuleDeployer: Deploying module: > wso2xfer - > file:/home/alex/wso2-products/wso2esb-4.8.0/repository/components/plugins/org.wso2.carbon.xfer_4.2.0.jar > 14/01/17 12:06:12 INFO deployment.ModuleDeployer: Deploying module: > rampart - > file:/home/alex/wso2-products/wso2esb-4.8.0/repository/components/plugins/rampart-core_1.6.1.wso2v12.jar > 14/01/17 12:06:12 INFO deployment.ModuleDeployer: Deploying module: rahas > - > file:/home/alex/wso2-products/wso2esb-4.8.0/repository/components/plugins/rampart-trust_1.6.1.wso2v12.jar > 14/01/17 12:06:13 ERROR sandesha2.SandeshaModule: Could not load module > policies. Using default values. > 14/01/17 12:06:13 INFO config.ClientConnFactoryBuilder: HTTPS Loading > Identity Keystore from : ../../repository/resources/security/wso2carbon.jks > 14/01/17 12:06:13 INFO config.ClientConnFactoryBuilder: HTTPS Loading > Trust Keystore from : > ../../repository/resources/security/client-truststore.jks > 14/01/17 12:06:13 INFO nhttp.HttpCoreNIOSender: HTTPS Sender starting > 14/01/17 12:06:13 INFO nhttp.HttpCoreNIOSender: HTTP Sender starting > 14/01/17 12:06:13 INFO jms.JMSSender: JMS Sender started > 14/01/17 12:06:13 INFO jms.JMSSender: JMS Transport Sender initialized... > 14/01/17 12:06:14 INFO deployment.DeploymentEngine: Deploying Web service: > SimpleStockQuoteService.aar - > file:/home/alex/wso2-products/wso2esb-4.8.0/samples/axis2Server/repository/services/SimpleStockQuoteService.aar > 14/01/17 12:06:14 INFO nhttp.HttpCoreNIOListener: HTTPS Listener started > on 0:0:0:0:0:0:0:0:9002 > 14/01/17 12:06:14 INFO nhttp.HttpCoreNIOListener: HTTP Listener started on > 0:0:0:0:0:0:0:0:9000 > 14/01/17 12:06:14 INFO util.SampleAxis2ServerManager: [SimpleAxisServer] > Started > 14/01/17 12:11:41 ERROR engine.AxisEngine: The service cannot be found for > the endpoint reference (EPR) / > org.apache.axis2.AxisFault: The service cannot be found for the endpoint > reference (EPR) / > at > org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:78) > at org.apache.axis2.engine.Phase.invoke(Phase.java:329) > at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261) > at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167) > at > org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:144) > at > org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:139) > at > org.apache.synapse.transport.nhttp.util.RESTUtil.processGetAndDeleteRequest(RESTUtil.java:146) > at > org.apache.synapse.transport.nhttp.DefaultHttpGetProcessor.processGetAndDelete(DefaultHttpGetProcessor.java:464) > at > org.apache.synapse.transport.nhttp.DefaultHttpGetProcessor.process(DefaultHttpGetProcessor.java:144) > at > org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:276) > at > org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:744) > 14/01/17 12:11:41 ERROR nhttp.DefaultHttpGetProcessor: Error processing > GET request for: / > org.apache.axis2.AxisFault: The service cannot be found for the endpoint > reference (EPR) / > at > org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:78) > at org.apache.axis2.engine.Phase.invoke(Phase.java:329) > at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261) > at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167) > at > org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:144) > at > org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:139) > at > org.apache.synapse.transport.nhttp.util.RESTUtil.processGetAndDeleteRequest(RESTUtil.java:146) > at > org.apache.synapse.transport.nhttp.DefaultHttpGetProcessor.processGetAndDelete(DefaultHttpGetProcessor.java:464) > at > org.apache.synapse.transport.nhttp.DefaultHttpGetProcessor.process(DefaultHttpGetProcessor.java:144) > at > org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:276) > at > org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:744) > 14/01/17 12:13:47 ERROR engine.AxisEngine: The service cannot be found for > the endpoint reference (EPR) / > org.apache.axis2.AxisFault: The service cannot be found for the endpoint > reference (EPR) / > at > org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:78) > at org.apache.axis2.engine.Phase.invoke(Phase.java:329) > at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261) > at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167) > at > org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:144) > at > org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:139) > at > org.apache.synapse.transport.nhttp.util.RESTUtil.processGetAndDeleteRequest(RESTUtil.java:146) > at > org.apache.synapse.transport.nhttp.DefaultHttpGetProcessor.processGetAndDelete(DefaultHttpGetProcessor.java:464) > at > org.apache.synapse.transport.nhttp.DefaultHttpGetProcessor.process(DefaultHttpGetProcessor.java:144) > at > org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:276) > at > org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:744) > 14/01/17 12:13:47 ERROR nhttp.DefaultHttpGetProcessor: Error processing > GET request for: / > org.apache.axis2.AxisFault: The service cannot be found for the endpoint > reference (EPR) / > at > org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:78) > at org.apache.axis2.engine.Phase.invoke(Phase.java:329) > at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261) > at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167) > at > org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:144) > at > org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:139) > at > org.apache.synapse.transport.nhttp.util.RESTUtil.processGetAndDeleteRequest(RESTUtil.java:146) > at > org.apache.synapse.transport.nhttp.DefaultHttpGetProcessor.processGetAndDelete(DefaultHttpGetProcessor.java:464) > at > org.apache.synapse.transport.nhttp.DefaultHttpGetProcessor.process(DefaultHttpGetProcessor.java:144) > at > org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:276) > at > org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:744) > ^C14/01/17 12:17:57 INFO util.SampleAxis2Server: Shutting down > SimpleAxisServer ... > 14/01/17 12:17:57 INFO nhttp.HttpCoreNIOListener: HTTPS Listener Shutdown > 14/01/17 12:17:57 INFO nhttp.HttpCoreNIOListener: HTTP Listener Shutdown > 14/01/17 12:17:57 INFO nhttp.HttpCoreNIOSender: HTTPS Sender Shutdown > 14/01/17 12:17:57 INFO nhttp.HttpCoreNIOSender: HTTP Sender Shutdown > 14/01/17 12:17:57 INFO jms.JMSSender: JMS Sender Shutdown > *Exception in thread "Thread-6" java.lang.NoClassDefFoundError: > org/apache/axis2/classloader/JarFileClassLoader* > * at > org.apache.axis2.deployment.DeploymentEngine.cleanup(DeploymentEngine.java:1371)* > * at > org.apache.axis2.engine.AxisConfiguration.cleanup(AxisConfiguration.java:1438)* > * at > org.apache.axis2.context.ConfigurationContext.terminate(ConfigurationContext.java:788)* > * at > samples.util.SampleAxis2ServerManager.stop(SampleAxis2ServerManager.java:127)* > * at samples.util.SampleAxis2Server.stopServer(SampleAxis2Server.java:64)* > * at samples.util.SampleAxis2Server$1.run(SampleAxis2Server.java:49)* > *Caused by: java.lang.ClassNotFoundException: > org.apache.axis2.classloader.JarFileClassLoader* > * 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:425)* > * at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)* > * at java.lang.ClassLoader.loadClass(ClassLoader.java:358)* > ... 6 more > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Isuru Perera Senior Software Engineer | WSO2, Inc. | http://wso2.com/ Lean . Enterprise . Middleware about.me/chrishantha
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
