Troubleshooting

Tomcat Problems

Why do I just see the source code for my JSP?

Did you remember to put the port number for Tomcat in the URL? Unless you change the configuration, Tomcat runs on port 8080, so you must add :8080 after the host name in the URL.

Why can’t Tomcat compile my JavaServer Pages?

If Tomcat doesn’t even try to compile your pages, it probably can’t find the Java compiler. Be sure you have installed the complete Java Development Kit and not just the Java Runtime Environment. Try typing javac from the command prompt and see whether the command is recognized.

XSLT Problems

Why do I get a ClassNotFoundException when I try to apply a style sheet?

You probably don’t have an XSLT implementation. The main jaxp.jar file contains ...

Get Special Edition Using XSLT now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.