I need help with JspC

2004-01-07 Thread Ikonne, Ike

Hi all,


I am new to this group, but I have a problem:  I am trying to compile my
jsps using the following command

 java -classpath
javax.servlet.jar:jasper-compiler.jar:jasper-runtime.jar:commons-logging.jar

 org.apache.jasper.JspC -v8 newAccount.jsp 

But I am getting the following error messages:

2004-01-01 09:21:43 - uriRoot implicitly set to
"/home/nis02/iikon1/ceu2200/ceunix/src/ceuadmin" 
2004-01-01 09:21:43 - ERROR-the file '/jsp/newAccount.jsp' generated the 
 following general exception: java.lang.NullPointerException 
 error:null 


What am I doing wrong?  


Thanks,


Ike


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



Help with jspc

2002-04-08 Thread Jay Gardner

Hello all,

I am trying to pre-compile my jsp using jspc.bat on win2K. The reason I want
to do this is so that JSP code can’t be changed on the fly in production. I
am using TC4.0.3.

Here is how I try to do this from an ANT build script:


 
  




This does build all of the .java files in
d:/jboss/tomcat/webapps/smartjobs/WEB-INF/classes/jsp, but the package name
in them is actually as follows:

package jsp.;

It is the dot that is being appended to the end of the package name. This
same dot has found its way into the web.inc file as well.


jsp..index
jsp..index



jsp..index
/index.jsp


I went and looked at the CommandLineContext class and saw that
getFullClassName() seems to append a . for some reason.

Anyway, has anyone else run into this?? I there something obvious that I am
doing wrong? Is more info needed before someone can help me?

Thanks in advance!

--Jay Gardner