(Alrighty, this is actually attempt number 3 to get this note posted.
Gotta get more caffeine to the gerbils powering the email server...)

When I try to use jspc from the command line to compile a JSP page that
uses JSTL (1.0.1), I get a NullPointerException. Here's the setup
(apologies if my email client hoses long lines):

JAVA_HOME=C:\jdk1.3
CATALINA_HOME=D:\jakarta-tomcat-4.1.8
JASPER_HOME=D:\jakarta-tomcat-4.1.8

Here's how jspc gets invoked and the resulting error:

D:\jakarta-tomcat-4.1.8\webapps\jspcTest>%JASPER_HOME%\bin\jspc -v4 -d
WEB-INF\src\jspc -webinc WEB-INF\jspc-web.xml -uriroot . -webapp .
2002-08-09 09:07:44 - ERROR-the file '\index.jsp' generated the
following general exception: java.lang.NullPointerException
error:null

Here's index.jsp:

<%@ page language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
<html>
    <head><title>JSPC Test</title></head>
    <body><h1>Welcome to the JSPC test page</h1></body>
</html>

Here's web.xml:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC
    "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd";>
<web-app>
    <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
</web-app>

The only other components of the app are the JAR files for JSTL that are
installed in WEB-INF\lib. Everything works fine running as an app under
4.1.8. Any ideas about what's going on? Also, does the "v" flag really
do anything? I can't seem to get any verbose output no matter what it's
set to. Thanks for any help.

--
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech       <http://www.dotech.com/>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to