I am new to JMeter. I believe I have installed it successfully and I am running through the script recorder setup (http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf). When I start the JMeter proxy server which is used to intercept the browser requests a file called ApacheJMeterTemporaryRootCA.crt should be generated in jmeter/bin folder. It isn't. So, I cannot move on to Install the JMeter CA certificate for HTTPS recording, or for that matter configure my browser. Is there any known reason why the JMeter certificate would fail to be generated?
I solved it by removing ApacheJMeterTemporaryRootCA.crt, ApacheJMeterTemporaryRootCA.usr and proxyserver.jks from the bin directory of JMeter.
https://mail-archives.apache.org/mod_mbox/jmeter-issues/201401.mbox/%3Cbug-56057-58895#https.issues.apache.org/bugzilla/%3E
You are probably using Java 6 , in this case no ApacheJMeterTemporaryRootCA is generated.
To know if you are using Java 7:
- If HTTPS Domains is read only you are in JDK6
- If HTTPS Domains is writable you are using JDK7
Ensure you follow this:
https://wiki.apache.org/jmeter/TestRecording210
http://jmeter.apache.org/usermanual/component_reference.html#HTTP%28S%29_Test_Script_Recorder
Need to remove proxyserver.jks to create new certificate if you have removed ApacheJMeterTemporaryRootCA.crt, ApacheJMeterTemporaryRootCA.usr from bin . I did same too and got the certificate.
I was having the same issue - the root certificate was not found under the jmeter/bin directory. It was created in this path
C:\VTRoot\HarddiskVolume3\Users{UserName}\Downloads\apache-jmeter-2.12\bin
I had to import it to firefox
Windows 7 Professional - 64 bit
Java 7 - 64 bit
Jmeter Version 2.12
We had the same problem. It appeared that the keytool.exe file that was being called by JMeter to generate the certificate, was located in a directory that had no write access. Initially the certificate is generated relatively to the location of keytool.exe (which is in java/bin), and then it is moved into the jmeter/bin directory.
We were able to fix it by copying the java installation directory into de jmeter directory and set write access. Then start JMeter with java pointing to the copied version.
Don't forget to remove proxyserver.jks before you try again
I had a similar issue please follow below steps,
1.Reinstall java, update the environment variables JAVA_HOME
2.Check the java version and make sure you don't get anything extra other than
C:>java -version
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) Client VM (build 25.144-b01, mixed mode)
in case if you find anything addition , remove them from environment variables.
5.Run Jmeter , you should be getting root certification
don't go complex solution lets try it easily
check your jdk version java -version> if version is less then jdk6 then update you jdk
2.download the missing file (gist.github.com/9ef114c53b83e553b635.git)
3 and add it however you know
In my case,
I extracted JMeter in C: drive (Windows 10 program files folder).
Running JMeter.bat as Administrator solved that issue for me.
Otherwise extracting in other drives also help.
Related
I have a small issue here. I installed Jboss-6.1.0 and when I run the 'run' bat file, JBoss does not get started and I get this error. (Please refer the attached)
My OS is Windows 8.1.I have set my Path and Java_Home variables correctly.Is there any more configuration to do?
A help is much appreciated.Thanks in advance.
I also had the same problem although with java 1.8. These are the steps I followed.
1.Go to the “bin” directory where you’ve installed JBoss
2.Edit the “run.bat” file
3.Search for the line “
set JAVA_OPTS=-Dprogram.name=%PROGNAME% -Dlogging.configuration=file:%DIRNAME%logging.properties %JAVA_OPTS%“
Change the %DIRNAME%
to your absolute path to the “bin” directory of your installed JBoss.e.g.
set JAVA_OPTS=-Dprogram.name=%PROGNAME% -Dlogging.configuration=file:”C:\Java\jboss-6.1.0-final\bin\logging.properties” %JAVA_OPTS%
I do not think the java version difference would affect the solution. It should work.
for the past several days I've been experiencing this error, while publishing to either JBoss EAP 6.3 or Wildfly 8.2 from Eclipse.
Error renaming D:\Servers\wildfly-8.2.0.Final\standalone\tmp\tmp9064011157118650757.jar
to D:\Servers\wildfly-8.2.0.Final\standalone\deployments\BusinessService.war\WEB-INF\lib\spring-web-4.2.3.RELEASE.jar.
This may be caused by incorrect file permissions, or your server's temporary deploy
directory may be on a different filesystem than the final destination. You may adjust
these settings in the server editor.
The problem occurs when I "Add and Remove..." projects from the server, then try to publish them, so the server can start.
I've experienced this issue on two different machines (home (Wildfly) and work (JBoss EAP)).
I'm using:
Windows 7 / 10
Eclipse Mars / Luna
JBoss Tools plugin 4.3 / 4.2
JDK 1.8.0.66 / 1.8.0.65
Maven
Building with maven from Eclipse and from the command line makes no difference. The server is configured to deploy projects as compressed archives. On both machines my user has administrator rights and has full rights on the server directory.
So far I've tried:
recreating the server multiple times with different configurations
using a newly created workspace
reinstalling JBoss Tools
reinstalling Eclipse
using different JDK versions
I'm really at a loss here and I don't know how to proceed in resolving this issue. Please help.
If you are using Windows, the path could get too long and can cause this error. A simple fix is to move WildFly closer to the root.
I had the same problem and solved it like this:
First of all, stop Server (Servers->WildFly(rigth click)->Stop), than clean. So you can run server again.
I had this problem several times in my new windows 10 machine that my employer gave me. Since I did not have admin rights it was a hectic process to troubleshoot this issue. Simple fix would be moving JBOSS_HOME closer to root. However, you need to do a proper restart of your eclipse. I rather recommend a complete restart of your computer because after all you are going to change JBOSS_HOME in windows environmental variables.
This is related to permissions issue on wildfly folder. Allow full control to the wildfly folder.
https://issues.jboss.org/browse/JBIDE-18697
I have moved the wildfly home to reduce the overall path length, and also removed any non-alphanumeric characters from the folder name (like "-" and "." ) . This worked for me, everything else (removing tmp, deployment, rebooting wildfly, rebooting eclipse, rebooting computer) failed.
I also suspect that the issue was stemming from running Wildfly from a ConEmu and/or git bash shell. Running from a plain CMD shell seems more robust.
I also got stuck with the same problem. I tried the below steps and it worked:
Clear the deployments and tmp folder in standalone folder in wildfly folder.
Delete the server and again add the server
Make a build of the project and start the server after successful build.
This is a terribly annoying error that either the Eclipse team or Redhat need to fix.
The solution is to close Eclipse, right click on the icon -> Run As Administrator. This solved it for me.
I am very new to hadoop. I need to install it and play around with samples.
SO i referred this tutorial . I have installed Sandbox given in that tutorial. I need to configure ECLIPSE in windows mentioning VM location as specified in the image below, which is given in the tutorial.
I have installed eclipse europa and hadoop plugin.
Then in Map/Reduce Locations i gave VM Ip for host name, Linux user name in UserName and 9001 in Map/Reduce port and 9000 in DFS port.
In Advanced Tab I have set value to the mapred.system.dir as /hadoop/mapred/system
and there is no hadoop.job.ugi to give username.
After i click ok, I couldn't get HDFS file system under my DFS locations in ECLIPSE.
Please help me on this
I also got the same problem. The problem here is not related to hadoop configuration but eclipse. To fix this, go to "\workspace\.metadata\.plugins\org.apache.hadoop.eclipse\locations". Here open the XML file and just add the property "hadoop.job.ugi" with value "hadoop-user,ABC" and then restart your eclipse. It worked for me.
I tried by giving just one value i.e. without ABC but it dint work and I dont know the significance of this comma separated value but since I have just started the tutorial I hope to get this answer soon :)
I too ran into the same issue. I installed RedHad cgywin (openssh and openssl packages) and updated the "Path" environment variable with a path to cgywin/bin (c:\rhcygwin\bin). Then my Eclipse DFS location was able to connect to Hadoop on the Virtual Machine. Once that was successful I saw the option "hadoop.job.ugi".
http://v-lad.org/Tutorials/Hadoop/00%20-%20Intro.html describes installing cgywin.
Note: I am running the Hadoop VM on Windows Vista.
I spawned Eclipse from within Cygwin and it worked fine for me (i.e. I could see the "hadoop.job.ugi" parameter). Also, I didn't make any changes to my PATH environment variable.
Im new to Macs and Im having issues trying to run scripts on any browser, let alone IE or Chrome. Here is what Ive done so far:
Installed the latest versions of Eclipse, Selenium standalone server and Selenium IDE
Installed TestNG framework for Eclipse
Installed Selenium web driver and the JAVA libraries
So far all I can do is just run the test scripts Ive created on FF12.
I have created some test scripts on FF12 using Selenium IDE, then exported them to Eclipse with TestNG and when I try to run them I get this error message "Please add the directory containing ''firefox-bin' or 'firefox'' to your PATH environment"
I have a feeling im missing a lot of steps to properly configure Eclipse & Selenium to run scripts on other browsers (ideally IE9 and the latest version of Chrome). And if thats not bad enough, im using a MacBook Pro (Ive been a PC person all my life). Please be gentle and any advice that I can get would be highly appreciated. Thanks
Short answer
Seems like your firefox executable in not in the system path or in the default location. There are multiple ways to fix this
1.Set the firefox binary path in code
You need to set the webdriver.firefox.bin property. In java you can do this by using the following code:
FirefoxProfile profile = new FirefoxProfile();
WebDriver driver = new FirefoxDriver(new FirefoxBinary(new File("path/to/your/firefox.exe")), profile);
2.Find where your firefox is installed and update that path in your path variable
export PATH=/my/firefox/path/bin:$PATH
3.Specify webdriver.firefox.bin as a system property when you start selenium server.
java -jar seleniumserver.jar -D webdriver.firefox.bin = "/path/to/firefox-bin
Once you do one of the above, your issue should be resolved.
Not so short answer - Why it fails?
Per FirefoxDriver javadoc -
org.openqa.selenium.firefox.FirefoxDriver
An implementation of the {#link WebDriver} interface that drives
Firefox. This works through a firefox extension, which gets installed
automatically if necessary. Important system variables are:
webdriver.firefox.bin - Which firefox binary to use (normally
"firefox" on the PATH).
webdriver.firefox.profile - The name of the
profile to use (normally "WebDriver").
Here, webdriver.firefox.bin determines the path of firefox.exe (in windows) or firefox (in mac).
Usually, when you install firefox in your machine the path to firefox file gets added to the path variable. This will allow the user to call firefox from any place.
Webdriver will look for this firefox executable in the path variable and then in the default location. From selenium code, this default path is defined as given below:
case MAC:
if (!binaryName.endsWith(".app"))
binaryName += ".app";
binaryName += "/Contents/MacOS/firefox-bin";
break;
If your firefox file is not available in /Contents/MacOS/firefox-bin then webdriver will not know where to find it. Hence the failure.
Running Ubuntu Oneric 11.10 with 1 GB RAM and 250 GB HDD Dell Inspiron Laptop.
I got some demo code from a tutorial to read XML. When I compile it, I get this message:
"The type or namespace name '.Xml' does not exist in the namespace 'System'. Are you missing an assembly reference?" (using System.Xml;)
I have the library in this path: /usr/lib/mono/gac/System.Xml/4.0.0.0_b77a5c561934e089/System.Xml.dll
Are you using MonoDevelop to build your application? If so, make sure that there is a reference to System.Xml in your project.
In case you are hardcore enough to "manually" use dmcs to build your application (or you are using a Makefile or some other automated build process), make sure you pass /r:/usr/lib/mono/4.0/System.Xml.dll as one of the arguments to your dmcs build command.
Only for didatic purposes, here is the references editing option in MonoDevelop, in which you should choose to add a reference:
Note: your distro could have installed System.Xml.dll in another path, so please verify.
Your monodoc problem is an entirely different issue and probably means either a directory or file is missing from the installed docs or there is a bug in monodoc entirely