The archive: which is referenced by the classpath, does not exist.

In this video I have shown how you can solve the error like the one shown below, The archive: C:/Users/MIRITPC/Desktop/New folder (5)/New folder/mysql-connector-java-5.0.0-beta-bin.jar which is referenced by the classpath, does not exist. This error comes if when the jar file is dislocated from the path you added to the class path. To get the error …

Continue reading

The goal you specified requires a project to execute but there is no POM in this directory

On executing the mvn generate the below error will come sometimes mvn archetype:generate -DgroupId = com.chillyfacts.helloworld -DartifactId = helloworld -DarchetypeArtifactId = maven-archetype-webapp -DinteractiveMode = false [INFO] Scanning for projects… [INFO] ———————————————————————— [INFO] BUILD FAILURE [INFO] ———————————————————————— [INFO] Total time: 0.147 s [INFO] Finished at: 2017-11-26T21:08:47+03:00 [INFO] Final Memory: 7M/116M [INFO] ———————————————————————— [ERROR] The goal you …

Continue reading

sun.net.www.protocol.http.HttpURLConnection cannot be cast to javax.net.ssl.HttpsURLConnection

Error java.lang.ClassCastException: sun.net.www.protocol.http.HttpURLConnection cannot be cast to javax.net.ssl.HttpsURLConnection at com.chillyfacts.com.Send_HTTP_Request.call_me(Send_HTTP_Request.java:21) at com.chillyfacts.com.Send_HTTP_Request.main(Send_HTTP_Request.java:13) You might be using URL obj = new URL(url); HttpsURLConnection con = (HttpsURLConnection) obj.openConnection(); Solution,Convert it to http protocol URL obj = new URL(url); HttpURLConnection con = (HttpURLConnection) obj.openConnection(); See the Example shown in this link, https://chillyfacts.com/java-send-http-getpost-request-and-read-json-response/

Continue reading

JSF Error Failed to parse the expression [#{navController.go_to_index()}]

JSF Page load Error javax.faces.view.facelets.TagAttributeException: /tab.xhtml @12,84 action=”#{navController.go_to_index()}” Failed to parse the expression [#{navController.go_to_index()}] An error comes on running code as shown below. <html xmlns=”http://www.w3.org/1999/xhtml” xmlns:h=”http://xmlns.jcp.org/jsf/html”> <h:head> <title>Facelet Title</title> </h:head> <h:body> <h:form> <h:commandButton value=”Index” action=”#{navController.go_to_index()}”></h:commandButton> <h:commandButton value=”About Us” action=”#{navController.go_to_about()}”></h:commandButton> <h:commandButton value=”Contact Us” action=”#{navController.go_to_contact()}”></h:commandButton> </h:form> </h:body> </html> Solution. Remove the Braces () of the call function. …

Continue reading