We are unable to a basic HTTP GET to any URL with Camel. Even the simplest GET to a localhost never returns an answer.
from("timer://foo?period=5000")
.to("http4://localhost:8888")
.log("Never get here...");
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/ssl/SSLContexts
at org.apache.camel.component.http4.HttpComponent.createConnectionRegistry(HttpComponent.java:379)
at org.apache.camel.component.http4.HttpComponent.createConnectionManager(HttpComponent.java:346)
at org.apache.camel.component.http4.HttpComponent.createEndpoint(HttpComponent.java:276)
at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:126)
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:706)
at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:80)
at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:227)
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:116)
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:122)
at org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:62)
at org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:56)
at org.apache.camel.model.ProcessorDefinition.makeProcessorImpl(ProcessorDefinition.java:569)
at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:530)
at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:240)
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1349)
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:212)
at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:1140)
at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:3735)
at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3440)
at org.apache.camel.impl.DefaultCamelContext$4.call(DefaultCamelContext.java:3248)
at org.apache.camel.impl.DefaultCamelContext$4.call(DefaultCamelContext.java:3244)
at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:3267)
at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:3244)
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:3160)
at marc.Main.main(Main.java:59)
Caused by: java.lang.ClassNotFoundException: org.apache.http.ssl.SSLContexts
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 26 more
Windows 10, JDK 1.8. Camel 2.23.1
716 [main] DEBUG org.apache.camel.impl.DefaultCamelContext - timer://foo?period=5000 converted to endpoint: timer://foo?period=5000 by component: org.apache.camel.component.timer.TimerComponent#71809907
732 [main] DEBUG org.apache.camel.management.DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=camel-1,type=endpoints,name="timer://foo\?period=5000"
747 [main] DEBUG org.apache.camel.impl.DefaultCamelContext - Using ComponentResolver: org.apache.camel.impl.DefaultComponentResolver#20deea7f to resolve component with name: http4
747 [main] DEBUG org.apache.camel.util.ResolverHelper - Lookup Component with name http4 in registry. Found: null
747 [main] DEBUG org.apache.camel.util.ResolverHelper - Lookup Component with name http4-component in registry. Found: null
747 [main] DEBUG org.apache.camel.impl.DefaultComponentResolver - Found component: http4 via type: org.apache.camel.component.http4.HttpComponent via: META-INF/services/org/apache/camel/component/http4
Related
Server - WildFly - 10.1.0
JSF version - 2.2
Primefaces - 5.0
I am trying to deploy .war file in WildFly 10.1.0 server. Earlier I was running it on JBoss 7.1 and we had it working fine. But now when I try to deploy the application in WildFly server and am getting below set of exceptions which makes to failed deployment.
09:05:02,630 SEVERE [javax.enterprise.resource.webcontainer.jsf.application.view] (MSC service thread 1-3) Unable to obtain CDI 1.1 utilities for Mojarra
09:05:02,650 SEVERE [javax.enterprise.resource.webcontainer.jsf.flow] (MSC service thread 1-3) Unable to obtain CDI 1.1 utilities for Mojarra
09:05:02,897 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."MyApplication.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."MyApplication.war".WeldStartService: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001414: Bean name is ambiguous. Name csfFLOWDISCOVERYCDIHELPER resolves to beans:
- Managed Bean [class com.sun.faces.flow.FlowDiscoveryCDIHelper] with qualifiers [#Default #Named #Any],
- Managed Bean [class com.sun.faces.flow.FlowDiscoveryCDIHelper] with qualifiers [#Default #Named #Any]
at org.jboss.weld.bootstrap.ConcurrentValidator$5.doWork(ConcurrentValidator.java:134)
at org.jboss.weld.bootstrap.ConcurrentValidator$5.doWork(ConcurrentValidator.java:130)
at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
at org.jboss.threads.JBossThread.run(JBossThread.java:320)
09:05:02,971 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "MyApplication.war")]) - failure description: {
"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"MyApplication.war\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"MyApplication.war\".WeldStartService: Failed to start service
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001414: Bean name is ambiguous. Name csfFLOWDISCOVERYCDIHELPER resolves to beans:
- Managed Bean [class com.sun.faces.flow.FlowDiscoveryCDIHelper] with qualifiers [#Default #Named #Any],
- Managed Bean [class com.sun.faces.flow.FlowDiscoveryCDIHelper] with qualifiers [#Default #Named #Any]"},
"WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"MyApplication.war\".WeldStartService"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
}
09:05:03,041 INFO [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0010: Deployed "MyApplication.war" (runtime-name : "MyApplication.war")
09:05:03,068 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0186: Services which failed to start: service jboss.deployment.unit."MyApplication.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."MyApplication.war".WeldStartService: Failed to start service
I am not really getting where this exception is pointing to. The error isn't clear too. I have found other SO Post regarding this error but those were with GlassFish server. Have anyone come across similar type of issue and got this resolved. I would be really thankful if someone points me in the proper direction or has any resolution for the same.
Having jsf-api and jsf-impl jar versions in the application which are different from the versions of the app server implementation causes this problem. Removing application provided jars from the WEB-INF/lib folder and using the server provided jars solves the problem.
I converted my Dynamic Web Project to a Maven Project since I want to run it on a Wildfly on a Raspberry Pi 2.
The problem is that after I converted and tried to Run as Maven build it started to pop up errors and errors..
I spent some time working on them and it seems like stoped, Maven could initiate. The problem now is that when I try to run Wildfly on it it is outputting the following error:
14:02:35,247 INFO [org.jboss.modules] (main) JBoss Modules version 1.5.2.Final
14:02:35,415 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
14:02:35,475 INFO [org.jboss.as] (MSC service thread 1-8) WFLYSRV0049: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) starting
14:02:35,999 ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration
at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:131)
at org.jboss.as.server.ServerService.boot(ServerService.java:357)
at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:299)
at java.lang.Thread.run(Thread.java:745)
Caused by: javax.xml.stream.XMLStreamException: WFLYCTL0083: Failed to load module org.jboss.as.weld
at org.jboss.as.controller.parsing.ExtensionXml.parseExtensions(ExtensionXml.java:155)
at org.jboss.as.server.parsing.StandaloneXml$DefaultExtensionHandler.parseExtensions(StandaloneXml.java:126)
at org.jboss.as.server.parsing.StandaloneXml_4.readServerElement(StandaloneXml_4.java:218)
at org.jboss.as.server.parsing.StandaloneXml_4.readElement(StandaloneXml_4.java:141)
at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:103)
at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:49)
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:123)
... 3 more
Caused by: java.util.concurrent.ExecutionException: javax.xml.stream.XMLStreamException: WFLYCTL0083: Failed to load module
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.jboss.as.controller.parsing.ExtensionXml.parseExtensions(ExtensionXml.java:147)
... 11 more
Caused by: javax.xml.stream.XMLStreamException: WFLYCTL0083: Failed to load module
at org.jboss.as.controller.parsing.ExtensionXml.loadModule(ExtensionXml.java:196)
at org.jboss.as.controller.parsing.ExtensionXml.access$000(ExtensionXml.java:69)
at org.jboss.as.controller.parsing.ExtensionXml$1.call(ExtensionXml.java:127)
at org.jboss.as.controller.parsing.ExtensionXml$1.call(ExtensionXml.java:124)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jboss.threads.JBossThread.run(JBossThread.java:320)
Caused by: org.jboss.modules.ModuleLoadException: Error loading module from C:\Users\jose\Documents\Wildfly\รณ\wildfly-10.1.0.Final\wildfly-10.1.0.Final\modules\system\layers\base\com\sun\xml\messaging\saaj\main\module.xml
at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:228)
at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:204)
at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:170)
at org.jboss.modules.LocalModuleFinder.lambda$findModule$0(LocalModuleFinder.java:149)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.modules.LocalModuleFinder.findModule(LocalModuleFinder.java:144)
at org.jboss.modules.ModuleLoader.findModule(ModuleLoader.java:439)
at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:342)
at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:289)
at org.jboss.modules.Module.addExportedPaths(Module.java:1230)
at org.jboss.modules.Module.addPaths(Module.java:1122)
at org.jboss.modules.Module.link(Module.java:1449)
at org.jboss.modules.Module.relinkIfNecessary(Module.java:1477)
at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:225)
at org.jboss.as.controller.parsing.ExtensionXml.loadModule(ExtensionXml.java:178)
... 8 more
Caused by: org.jboss.modules.xml.XmlPullParserException: Unexpected content of type 'element start' named 'path', text is: '<path name="com/sun/xml/messaging/saaj"/>' (position: START_TAG seen ...</properties>\n\t<path name="com/sun/xml/messaging/saaj"/>... #29:43)
at org.jboss.modules.xml.ModuleXmlParser.unexpectedContent(ModuleXmlParser.java:257)
at org.jboss.modules.xml.ModuleXmlParser.parseModuleContents(ModuleXmlParser.java:538)
at org.jboss.modules.xml.ModuleXmlParser.parseDocument(ModuleXmlParser.java:340)
at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:226)
... 22 more
14:02:36,001 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
14:02:36,018 INFO [org.jboss.as] (MSC service thread 1-6) WFLYSRV0050: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) stopped in 9ms
Any help would be really apreciated. I've tried everything I found on google and nothing seemed to work.
Thank you very much!
One of your configuration xml files in your application could have an typo
look at the exception trace
org.jboss.modules.xml.XmlPullParserException: Unexpected content of type 'element start' named 'path', text is: '' (position: START_TAG seen ...\n\t... #29:43) at
This question already has answers here:
java.rmi.ServerException: RemoteException occurred in server thread (ClassNotFoundException)
(5 answers)
Closed 5 years ago.
I'm new in Jmeter and I try to run distributed tests using this tool with next configuration:
client(master) - Windows 7
Java version - 1.8.0_92 (7u79 is tried too)
JMeter, version - 2.13
server(slave) - VM Ubuntu 14 (with using VirtualBox)
Jave version - 1.7.0_95
Jmeter version - 2.8.20130705
I've done and tried everything I found in official tutorial and on other posts, including stackoverflow posts, but any success as a result.
I get the next error all the time, when I try to run test on server via client:
java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: org.apache.jmeter.engine.RemoteJMeterEngineImpl_Stub (no security manager: RMI class loader disabled)
What I've tried in different combinations:
disable firewall on Ubuntu and Windows
using the same subnet
setting hostname in jmeter-server file:
RMI_HOST_DEF=-Djava.rmi.server.hostname=172.29.148.49
creating .java.policy file with granting all permissions in jmeter/bin directory:
grant {
permission java.security.AllPermission;
};
setting in jmeter-server file:
-Djava.security.policy=file:/usr/share/jmeter/bin/.java.policy
setting all permissions in java.policy file (usr/lib/jvm/java-7-openjdk-amd64/jre/lib/security/java.policy)
In results, when I start jmeter-server on VM Ubuntu, it seems that everything is fine. I get:
log_file=jmeter-server.log java.io.FileNotFoundException: jmeter-server.log (Permission denied)
[log_file-> System.out]
2016/04/25 17:13:52 INFO - jmeter.util.JMeterUtils: Setting Locale to en_US
2016/04/25 17:13:52 INFO - jmeter.JMeter: Loading user properties from: /usr/share/jmeter/bin/user.properties
2016/04/25 17:13:52 INFO - jmeter.JMeter: Loading system properties from: /usr/share/jmeter/bin/system.properties
2016/04/25 17:13:52 INFO - jmeter.JMeter: Setting System property: java.net.preferIPv4Stack=true
2016/04/25 17:13:52 INFO - jmeter.JMeter: Setting System property: java.rmi.server.hostname=172.29.148.49
2016/04/25 17:13:52 INFO - jmeter.JMeter: Setting System property: server_port=1099
2016/04/25 17:13:52 INFO - jmeter.JMeter: Copyright (c) 1998-2012 The Apache Software Foundation
2016/04/25 17:13:52 INFO - jmeter.JMeter: Version 2.8.20130705
2016/04/25 17:13:52 INFO - jmeter.JMeter: java.version=1.7.0_95
2016/04/25 17:13:52 INFO - jmeter.JMeter: java.vm.name=OpenJDK 64-Bit Server VM
2016/04/25 17:13:52 INFO - jmeter.JMeter: os.name=Linux
2016/04/25 17:13:52 INFO - jmeter.JMeter: os.arch=amd64
2016/04/25 17:13:52 INFO - jmeter.JMeter: os.version=4.2.0-35-generic
2016/04/25 17:13:52 INFO - jmeter.JMeter: file.encoding=UTF-8
2016/04/25 17:13:52 INFO - jmeter.JMeter: Default Locale=English (United States)
2016/04/25 17:13:52 INFO - jmeter.JMeter: JMeter Locale=English (United States)
2016/04/25 17:13:52 INFO - jmeter.JMeter: JMeterHome=/usr/share/jmeter
2016/04/25 17:13:52 INFO - jmeter.JMeter: user.dir =/usr/share/jmeter/bin
2016/04/25 17:13:52 INFO - jmeter.JMeter: PWD =/usr/share/jmeter/bin
2016/04/25 17:13:52 INFO - jmeter.JMeter: IP: 127.0.1.1 Name: ubuntu FullName: ubuntu
Created remote object: UnicastServerRef [liveRef: [endpoint:[172.29.148.49:45755](local),objID:[-1533104d:1544dc4ef79:-7fff, 2602978299635569139]]]
2016/04/25 17:13:52 INFO - jmeter.engine.RemoteJMeterEngineImpl: Starting backing engine on 1099
2016/04/25 17:13:52 INFO - jmeter.engine.RemoteJMeterEngineImpl: IP address=172.29.148.49
2016/04/25 17:13:52 INFO - jmeter.engine.RemoteJMeterEngineImpl: IP address is a site-local address; this may cause problems with remote access.
Can be overridden by defining the system property 'java.rmi.server.hostname' - see jmeter-server script file
2016/04/25 17:13:52 INFO - jmeter.engine.RemoteJMeterEngineImpl: Creating RMI registry (server.rmi.create=true)
2016/04/25 17:13:52 INFO - jmeter.engine.RemoteJMeterEngineImpl: Bound to registry on port 1099
But when I'm tryting to run Jmeter from client(master) on Windows, regardless GUI or non-GUI mode, I get the next error log trace:
2016/04/25 13:15:58 INFO - jmeter.engine.DistributedRunner: Configuring remote engine: 172.29.148.49:1099
2016/04/25 13:15:58 ERROR - jmeter.engine.DistributedRunner: Failed to create engine at 172.29.148.49:1099 java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: org.apache.jmeter.engine.RemoteJMeterEngineImpl_Stub (no security manager: RMI class loader disabled)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Unknown Source)
at org.apache.jmeter.engine.ClientJMeterEngine.getEngine(ClientJMeterEngine.java:54)
at org.apache.jmeter.engine.ClientJMeterEngine.<init>(ClientJMeterEngine.java:67)
at org.apache.jmeter.engine.DistributedRunner.createEngine(DistributedRunner.java:237)
at org.apache.jmeter.engine.DistributedRunner.getClientEngine(DistributedRunner.java:213)
at org.apache.jmeter.engine.DistributedRunner.init(DistributedRunner.java:91)
at org.apache.jmeter.gui.action.RemoteStart.doAction(RemoteStart.java:81)
at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:81)
at org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:40)
at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:63)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.apache.jmeter.engine.RemoteJMeterEngineImpl_Stub (no security manager: RMI class loader disabled)
at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
at java.rmi.server.RMIClassLoader$2.loadClass(Unknown Source)
at java.rmi.server.RMIClassLoader.loadClass(Unknown Source)
at sun.rmi.server.MarshalInputStream.resolveClass(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at Java. I. ObjectInputStream. readObject0 (Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
... 25 more
Can anyone help with this issue.
Thank you a lot.
What I've tried in different combinations:
disable firewall on Ubuntu and Windows
Irrelevant
using the same subnet
Irrelevant.
setting hostname in jmeter-server file:
RMI_HOST_DEF=-Djava.rmi.server.hostname=172.29.148.49
Irrelevant.
creating .java.policy file with granting all permissions in jmeter/bin directory:
grant { permission java.security.AllPermission; };
Irrelevant.
setting in jmeter-server file:
-Djava.security.policy=file:/usr/share/jmeter/bin/.java.policy
Irrelevant.
setting all permissions in java.policy file (usr/lib/jvm/java-7-openjdk-amd64/jre/lib/security/java.policy)
Irrelevant.
Your course of action is baffling. Neither the firewall nor the subnet nor the hostname nor the .policy file nor its name nor its contents have anything whatsoever to do with ClassNotFoundExceptions, either singly or in any combination, and it is mystifying why anybody could ever think otherwise: especially in relation to the security-policy actions, when the error message notes explicitly that a security manager is not installed.
The solution to a ClassNotFoundException is to deploy the class concerned, to the JVM concerned. In this case, the client. Jmeter provides this class in some JAR file and it is required on the CLASSPATH of the client.
I create jar file from my selenium code , my code is to test web site so i surround with junit, now I am trying to run this with jmeter and i get the next error :
2016/01/17 11:06:19 WARN -
jmeter.gui.util.MenuFactory: Missing jar? Could not create com.googlecode.jmeter.plugins.webdriver.sampler.gui.WebDriverSamplerGui.
java.lang.NoClassDefFoundError: jsyntaxpane/DefaultSyntaxKit
2016/01/17 11:06:19 INFO - jmeter.util.BSFTestElement: Registering
JMeter version of JavaScript engine as work-round for BSF-22
2016/01/17 11:06:19 INFO -
jmeter.protocol.http.sampler.HTTPSamplerBase: Cannot find .className
property for htmlParser, using default 2016/01/17 11:06:19 INFO -
jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/html is
2016/01/17 11:06:19 INFO -
jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for
application/xhtml+xml is 2016/01/17 11:06:19 INFO -
jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for
application/xml is 2016/01/17 11:06:19 INFO -
jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/xml is
2016/01/17 11:06:19 INFO -
jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for
text/vnd.wap.wml is
org.apache.jmeter.protocol.http.parser.RegexpHTMLParser 2016/01/17
11:06:19 INFO - jmeter.gui.util.MenuFactory: Skipping
org.apache.jmeter.protocol.http.control.gui.WebServiceSamplerGui
2016/01/17 11:06:19 INFO - jmeter.gui.util.MenuFactory: Skipping
org.apache.jmeter.protocol.http.modifier.gui.ParamModifierGui
2016/01/17 11:06:19 INFO - jorphan.exec.KeyToolUtils: keytool found
at 'C:\Program Files\Java\jre1.8.0_66\bin\keytool' 2016/01/17
11:06:19 INFO - jmeter.protocol.http.proxy.ProxyControl: HTTP(S) Test
Script Recorder SSL Proxy will use keys that support embedded 3rd
party resources in file
C:\Users\orela\Desktop\apache-jmeter-2.13\apache-jmeter-2.13\bin\proxyserver.jks
2016/01/17 11:06:23 INFO - jmeter.samplers.SampleResult: Note: Sample
TimeStamps are START times 2016/01/17 11:06:23 INFO -
jmeter.samplers.SampleResult: sampleresult.default.encoding is set to
ISO-8859-1 2016/01/17 11:06:23 INFO - jmeter.samplers.SampleResult:
sampleresult.useNanoTime=true 2016/01/17 11:06:23 INFO -
jmeter.samplers.SampleResult: sampleresult.nanoThreadSleep=5000
2016/01/17 11:06:33 ERROR - jmeter.gui.GuiPackage: Problem
retrieving gui java.lang.NullPointerException at
org.apache.jmeter.gui.GuiPackage.getTestElementCheckSum(GuiPackage.java:853)
at
org.apache.jmeter.gui.GuiPackage.updateCurrentNode(GuiPackage.java:435)
at
org.apache.jmeter.gui.GuiPackage.getCurrentGui(GuiPackage.java:272)
at
org.apache.jmeter.gui.action.EditCommand.doAction(EditCommand.java:45)
at
org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:81)
at
org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:40)
at
org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:63)
at java.awt.event.InvocationEvent.dispatch(Unknown Source) at
java.awt.EventQueue.dispatchEventImpl(Unknown Source) at
java.awt.EventQueue.access$500(Unknown Source) at
java.awt.EventQueue$3.run(Unknown Source) at
java.awt.EventQueue$3.run(Unknown Source) at
java.security.AccessController.doPrivileged(Native Method) at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at
java.awt.EventDispatchThread.run(Unknown Source)enter image description here
have you added the selenium-->libs (copy all the jars in the libs) into jmeter/lib and also in the jmeter/lib/ext (and delete the duplicate old versions of jars)
First you have an issue with your setup as some jar is missing:
jmeter.gui.util.MenuFactory: Missing jar? Could not create com.googlecode.jmeter.plugins.webdriver.sampler.gui.WebDriverSamplerGui. java.lang.NoClassDefFoundError: jsyntaxpane/DefaultSyntaxKit
This one ? :
https://code.google.com/p/jsyntaxpane/
But you are also facing a bug fixed in nightly build:
https://bz.apache.org/bugzilla/show_bug.cgi?id=58795
Try using nightly build and fix the first issue:
http://jmeter.apache.org/nightly.html
Installing JMeter runtime
Download the _bin and _lib files
Unpack the archives into the same directory structure
The other archives are not needed to run JMeter.
i tried to compile and run my application code but i get a class not found exception i will print the stack trace i hope there is someone can help me .
236 [main] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext#37eaab: startup date [Sat May 03 21:15:12 CEST 2014]; root of context hierarchy
472 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - L oading XML bean definitions from URL [file:/C:/Users/housseminfo/workspace/ERP_PCD/target/classes/META- INF/applicationContext.xml]
1017 [main] INFO org.springframework.context.annotation.ClassPathBeanDefinitionScanner - JSR-330 'javax.inject.Named' annotation found and supported for component scanning
1242 [main] INFO org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
1272 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory#59727ed4: defining beans [datasource,persistenceUnitManager,entityManagerFactory,entityManager,transactionManager,o g.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annot ation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.Tr ansactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,op manager,metier,org.springframework.context.annotation.internalConfigurationAnnotationProces sor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springf ramework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context .annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.intern alPersistenceAnnotationProcessor,org.springframework.context.annotation.ConfigurationClassP ostProcessor.importAwareProcessor]; root of factory hierarchy
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.config.internalAutoProxyCreator': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/core/io/support/SpringFactoriesLoader
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(A bstractAutowireCapableBeanFactory.java:532)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(Abs tractAutowireCapableBeanFactory.java:461)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFacto ry.java:295) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(Default SingletonBeanRegistry.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.j ava:198)
at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(A bstractApplicationContext.java:741) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationC ontext.java:464)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init> (ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init> (ClassPathXmlApplicationContext.java:83)
at com.ensi.dao.Maintest.main(Maintest.java:13)
Caused by: java.lang.NoClassDefFoundError: org/springframework/core/io/support/SpringFactoriesLoader
at org.springframework.beans.CachedIntrospectionResults.<clinit> (CachedIntrospectionResults.java:65)
at org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.jav a:321)
at org.springframework.beans.BeanWrapperImpl.getPropertyDescriptors(BeanWrapperImpl.java:328)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.filterProperty DescriptorsForDependencyCheck(AbstractAutowireCapableBeanFactory.java:1279)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.filterProperty at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(A bstractAutowireCapableBeanFactory.java:1117)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(A bstractAutowireCapableBeanFactory.java:522)
.. 10 more
Caused by: java.lang.ClassNotFoundException: org.springframework.core.io.support.SpringFactoriesLoader
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 17 more
Hi its very clear from your exception that , you dont have all spring jars in your classpath.
if you are using maven add all dependencies in pom.xml.
otherwise download the jars from spring source and add them into project classpath.
once you add and run , it will work properly.
i don't see any aplication related errors over there. its only jar problem.
either missing jars or version mismatch. check it properly.