java.lang.NoClassDefFoundError, java.lang.ClassNotFoundException
When you add a dependency reference to a Java project, it may compile without any errors, but runtime you may get an error message similar to this: HTTP Status 500 – Internal Server Error Type Exception Report Message An exception occurred processing JSP…
Java Spring MVC web application configuration in NetBeans 8
When you create a Java Spring MVC web application or make changes to an existing one, it is important to know the location of configuration values. Java package name The Java package name is stored in Every .java file package MY_PACKAGE_NAME pom.xml file…
org.apache.jasper.JasperException: java.lang.IllegalStateException: No output folder
This error can happen on Linux and Windows, and the cause could be the same. On Windows Server 2012R2 I opened a command prompt. To be able to delete a directory from the Tomcat webapps folder, I have issued the shutdown command. When I started the…
Only persistence units with transaction type JTA can be used as a container managed entity manager
NetBeans can use multiple deployment servers. When your web application uses the Entity Framework and you select the Glassfish server as the deployment server, you can get the error message when you try to run your application in the IDEÉ Severe:…
Deploy a WAR file of a Java web application on the Apache Tomcat web server
There are two ways to deploy a WAR file of a Java web application on the Apache Tomcat web server Using the command line Copy the WAR file into the webapps folder of the Tomcat installation directory, Make sure the CATALINA_HOME environment variable…
Create a WAR file for a Java web application in NetBeans
Configure the web application Add the web.xml file The wb.xml file contains the web application configuration values for the webserver. I has to be in the WEB-INF directory of the web applicaion. To add the web.xml file to your NetBeans Java web…
java.sql.SQLException: Incorrect string value: ‘\xF0\x9F\x96\xA4\xE2\x9C…’ for column
When your application tries to store 4-byte Unicode characters in a MySQL database you may get the error rmessage java.sql.SQLException: Incorrect string value: ‘\x..\x..\x..\x..\x..\x…’ for column To store…
Package dependent Java JAR files into the project JAR file
When you execute your Java JAR file, you need to include all dependent JAR files in the “fat jar” file, so the Java virtual machine can find them at runtime. Set up NetBeans to include the JAR files from the library In NetBeans you need to…
Start a new Spring MVC Java Web application development in NetBeans
When you create your first Spring MVC Java web application in the base installation of NetBeans follow the steps below Create a project In the File menu select New Project… Select the Java Web category, select the Web Application project, and click…
Configure NetBeans for Java Web development
The base installation of NetBeans does not include the web development category. To add the Java web development tools to NetBeans Start the NetBeans IDE, In the Tools menu select Plugins, On the Available Plugins tab select the Java EE Base…