I try to build a web application using java. The software that I have used Eclipse, mysql workbench, mysql connector/J, jdk-17.0.1. The environment variable that I have set are like
After that I followed How to Connect a MySQL Database to a Tomcat Server in Eclipse video tutorial upto 12:39 min to create a html and jsp page and run the server.
HTML page:
JSP page:
The error in the JSP page is Multiple annotations found at this line:
- The superclass "jakarta.servlet.http.HttpServlet" was not found on the Java
Build Path
- Line breakpoint:P_reg.jsp [line: 1]
Also if I start the server as directed in the video lecture I got the error
I tried to solve this error seeing How do I import the javax.servlet / jakarta.servlet API in my Eclipse project? link.
I went through this link as well. But nothing worked.
How can I fix this problem?
Related
came back to an application based off of this reference app after a little time away from it, but I'm now unable to run the application locally.
With both my version, and the base reference app, trying to connect to localhost:9000 throws me a screen saying "This site can’t provide a secure connection" and the error "crbug/1173575, non-JS module files deprecated."
According to this Stack Overflow post the crbug/1173575 error could be related to the port the application is trying to run on.
Regarding the Hyperion Reference App, we're currently in the process of simplifying it to a "leaner" app using just vanilla HTML/JS/CSS: https://github.com/autodesk-platform-services/aps-iot-extensions-demo. I'd suggest that you give this one a try.
I'm having a specific configuration here. Trying to run JSP on J2EE preview server in a Dynamic Web Project in Eclipse. I'm aware through other answers that it can be made to work by changing to a Maven project, adding dependencies and/or by using a Tomcat server. But I want to know if there's anything to be re-configured to make it work with my configuration or is it simply that a J2EE preview server cannot handle .jsp ?
The error I get on console is:
No JSP support. Check that JSP jars are in lib/jsp and that JSP option has been specified to start.jar
And the error on browser is: `
HTTP ERROR 500 JSP support not configured
The Preview server doesn't support JSPs. You will have to use a full Servlet container like Apache Tomcat.
jsp page is not loaded instead the browser shows "com.mysql.jdbc.Driver". Database is connected to MySQL query browser from Netbeans 8.1. Why the page is not loaded? What is the remedy?
Some of the possible Issues :-
JDBC Driver i.e thin driver seems to be missing or not getting loaded while establishing the connection using JDBC Code in your JSP File.
Try to do the following as mentioned below:-
1.Add your mysql-connector-java-5.1.13-bin.jar in the LIB folder of your Java Project .
2.Right click in you project; click on "Clean and Build";
After that go to the netbeans project folder;
3.Try executing a Your Project and your JSP page should be able to connect to the DB using JDBC API Code.
I'm currently creating a web application through linux OS (debian), using php7, codeIgniter 3, Nginx and Mysql.
Few months ago, all my PHP errors used to be reported in the default nginx log error (located at : /var/log/nginx/)
But recently, I have configured CodeIgniter in purpose to report those errors inside the folder of my application.
It seemed to work, because I noticed that my current errors were repported in this new log file.
However, "some" errors don't seem to be reported. For example, I have a form in my web application, running aswell with Javascript (ajax use). Once I send the form, I can notice in my browser's console an Error 500 (internal server error). However, this error is not reported in my error log file ! (and I already checked in the former log file belonging to Nginx, there's nothing too)
What am I supposed to do ?
Thanks you.
I want to build a website using dreamweaver and mysql. I used mamp on mac to communicate with mysql.But when I try to build database connection with my sql, I got this error:
HTTP Error Code 404 File Not Found. Here are some possible reasons for the problem:
1) There is no testing server running on the server machine.
2) The testing server specified for this site does not map to the "http://localhost/LabelSite/_mmServerScripts/MMHTTPDB.php URL."Verify that the URL Prefix maps to the root of the site.
I googled and try a bunch of ways but none of them work.Here is what I've already tried:
1)copying MMHTTPDB.php and mysql.php to /Applications/MAMP/htdocs/LabelSite/_mmServerScripts
2)changing the web url to "http://localhost/8888/LabelSite"
But none of them worked
Here is how I set my site by dreamweaver:
I did select server model to be "PHP MYSQL" on the advanced tag of Servers
Any advice would be appreciated, thanks!
I solved this by changing Web Url in the site's testing servers to
"http://localhost:8888/LabelSite/"
Now I get rid of the error!