After installing Jhipster and getting my application running using yarn, the application is running on terminal but on my browser nothing apears, there's an error message in the Console which is the following:
ERROR Error: The selector "jhi-main" did not match any elements
at DefaultDomRenderer2.selectRootElement (platform-browser.es5.js?41b7:2791)
at DebugRenderer2.selectRootElement (core.es5.js?de3d:13633)
at createElement (core.es5.js?de3d:9172)
at createViewNodes (core.es5.js?de3d:12146)
at createRootView (core.es5.js?de3d:12075)
at callWithDebugContext (core.es5.js?de3d:13458)
at Object.debugCreateRootView [as createRootView] (core.es5.js?de3d:12775)
at ComponentFactory_.create (core.es5.js?de3d:9858)
at ComponentFactoryBoundToModule.create (core.es5.js?de3d:3333)
at ApplicationRef_.bootstrap (core.es5.js?de3d:4763)
What can I do to fix it?
Check your index.html file.
src->main->webapp->index.html
<jhi-main></jhi-main>
screenshot from my workspace / index.html
Related
The application in which i work needs file upload. The code works fine when the code is run from Eclipse. When I run the same code in Jenkins (Windows Service). I get, org.openqa.selenium.WebDriverException: invalid argument: File not found error message
The reason we had to use Jenkins as a service is because, of Network Group Policy and there is no way we can ask Jenkins to run from Command Prompt.
I am unable to fix the issue because, I am not sure whats going on the background as the browser is not visible
Here is the Code snipped to upload file and the error message when we run it from Jenkins.
Code :
wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(".//*[#id='textfield']")));
WebElement filePath = driver.findElement(By.xpath(".//*[#id='textfield']"));
filePath.sendKeys("\\\\XXXXXFOLDER\\data\\SHARED\\PCDEV\\STAFF\\QA_Staff\\ITL
\\FileForXXXXX\\XXX_XXXX_XXXXAPPS.txt");
Thread.sleep(5000);
//Step 8 - Verify user can click the Add File button and display the file name in the text box on the Send Files page
driver.findElement(By.xpath(".//*
[#id='wrapper']/table[2]/tbody/tr[1]/td/table[1]/tbody/tr[4]/td[2]
/input[2]")).click();
Error Message:
org.openqa.selenium.WebDriverException: invalid argument:
File not found:
\\XXXXXFOLDER\data\SHARED\PCDEV\STAFF\QA_Staff\ITL\FileForXXXXX\XXX_XXXX_XXXXAPPS.txt
After WebDriver creation, just add the below line of code in your script.
driver.setFileDetector(new LocalFileDetector());
It helps to upload the expected file from the local environment to the remote environment.
I got same issue, I tried with AutoIT and robot enter also, not worked for me also, but by using sendKeys working fine, give xpath or id of input tag, may be it works
driver.findElement(By.xpath("//input[#type='file']")).sendKeys(filePath);
I am new to java servlets. I have installed apache-tomcat-9.0.0.M21.
When I run the project containing servlet in eclipse browser, sometimes I get the error-
Error resolving 'localhost': Name or service not known.
Other times the error is -
Error resolving 'localhost' : Temporary failure in name resolution.
This project runs fine in my web browser.
Also, after I add <servlet>...</servlet> and <servlet-mapping>...<servlet-mapping> in web.xml, I get the error - Server Tomcat v9.0 Server at localhost failed to start.
One more thing, I use Ubuntu operating system (if it has to do something with the question).
Please help. I googled for the solution but I am not able to resolve the error.
Try adding the below to your /etc/hosts file.
127.0.0.1 localhost
**while running solr 4.10.3 solr\examples i ran following command on cmd java -jar start.jar
after this when i go on http://localhost:8983/ i got this error
Error 404 - Not Found.
No context on this server matched or handled this request.
Contexts known to this server are:
/solr ---> o.e.j.w.WebAppContext{/solr,null},D:\solr-4.10.3\exampleD:/solr-4.10.3/example/webapps/solr.war
try http://localhost:8983/solr. By this you are provding the web application within which it might need to find index.* i.e. welcome file.
I am new to solr. Following the tutorial from here i Can't Get Past Step 2 in the Tutorial. After running java -jar start.jar and then connecting to http://localhost:8983/solr/
i get this error page which says:
HTTP ERROR: 404
Problem accessing /solr/. Reason:
Not Found
Powered by Jetty://
I changed the port from 8983 to 8080 but the problem persisted.
On running ant ant example i get this error message build.xml does nto exist
I am working with windows 7 and the downloaded version of solr is solr-4.9.0.zip.
Please check wheather the port(8983) is already in use or not. You can start solr in alternate port(like 4983) by using the following command
java -Djetty.port=4983 -jar start.jar
And now hit your browser with your doamin name or localhost:port as shown below:
http://yourdoamin.com:4983/solr
If you are still unable to start solr ,then solr log at the follwoing path
../solr-4.9.0/example/logs
Can you please post your solr.log?
Also when you start the solr with: java -Djetty.port=4983 -jar start.jar
Are you able to see server started in the console from where you are executing this?
How are you changing jetty port in solr? Through commands i mentioned above or by changing jetty.xml.
Note: changing port in jetty.xml dont work properly.
I have developed an java ear that i deploy from my local eclipse to my local websphere 8.5 by using the publish button in eclipse. When I try to deploy my ear from command line I get an error after I try to access the webpage.
I update my ear from common line like this:
${was.dir}/profiles/${was.profile}/bin/wsadmin.sh -lang jython -username ${was.username} -password ${was.password} -c AdminApplication.updateApplicationUsingDefaultMerge('${was.app.name}', '${build.dir}/${ear.name}')
The deployment is successful but when I access my application thru my web browser I get the following message instead of seeing my application:
Error 404: com.ibm.ws.webcontainer.servlet.exception.NoTargetForURIException: No target servlet configured for uri: /wwww/index.html
I have verified that the ear is ok by updating it thru the web admin interface of websphere without any configuration.
What am I doing wrong or what additional steps do I need to do to successfully update my ear?
You are using wrong command. You should use something like this:
AdminApp.update('MyAppEAR', 'app', '[ -operation update -contents
MyApp.ear -nopreCompileJSPs -installed.ear.destination C:\WAS\MyAppEAR
-nodistributeApp -useMetaDataFromBinary -nodeployejb -createMBeansForResources -noreloadEnabled -nodeployws -validateinstall warn -noprocessEmbeddedConfig -filepermission ..dll=755#..so=755#..a=755#..sl=755
-noallowDispatchRemoteInclude -noallowServiceRemoteInclude -asyncRequestDispatchType DISABLED -nouseAutoLink -noenableClientModule -clientMode isolated -novalidateSchema -MapModulesToServers [[ MyApp MyApp.war,WEB-INF/web.xml WebSphere:cell=Node02Cell,node=Node02,server=server1 ]]]' )
Also, in WebSphere Application Server you can log every command you issue through Administrative Console.
Steps
login to admin console with administrative user (e.g. wasadmin)
click "System Administration" -> "Console Preferences"
check "Enable command assistance notifications" and "Log command assistance commands"
click Apply button to save changes
You can see commands in help portlet on the upper-right side of admin console:
If you checked "Log command assistance commands", you can also see jython commands in a log file "<WAS_HOME>\profiles\<PROFILE_NAME>\logs\server1\commandAssistanceJythonCommands.log"
I'm not sure about updateApplicationUsingDefaultMerge vs update (the latter is what I use), but don't forget you also have to AdminConfig.save() after you're finished.