Needless to say, the Java / JSP landscape has changed quite a bit since the year 2000.
I’ve mainly been concentrating my efforts right now on Tomcat. So I’ve started using Netbeans which has a bundled version of Tomcat. Pretty cool stuff. However, there’s quite a few things missing from the Netbeans tutorials.
Frustration # 1
When I launched a basic JSP page, I kept receiving the message: “Starting of tomcat failed, the server port 8084 is already in use”
I thought maybe it was Apache so I shut that down. Then I shutdown Mysql, Postgresql and Oracle express (I like databases). Still nothing. Hmm… it worked at the office, but now not at home. What’s the difference? Ahh… the Norton firewall stuff. Once I disabled that, we were good to go. So, instead of leaving Norton off, I finally added the Tomcat ports (8084, 8081, and 8025) to the Norton rules.
Frustration # 2
When attempting this, I received two main errors:
org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class
The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved
After several minutes of searching, I realized, that you have to add the Tag Library within Netbeans to get this tutorial to work. You’d think they would just tell you that… and tell you how. Big strike agains Sun right there for me.
Anyway, you add the library like this:
- Go to the properties of your project
- go to library
- add library
- jstl 1.1
- then run
Now to work up some basic CRUD functionality with MySQL. More notes as I discover and untangle my frustrations.