>From my experience, the easiest thing is to delete the tag's tld file in the jar if 
>you're using jakarta jsp1.1 tags.  in my project we are using a couple jakarta jsp1.1 
>tags, which caused NPE when using jspc.  If your problems with jspc is due to tld 
>file conflicts, do the following:
1. place a copy of the tag tld file in mywebapp/WEB-INF/
2. delete all .tld files in your jar
3. make sure you don't have any tld files in META-INF/ or any place else in WEB-INF
As far as I can tell, jasper2 is delegating to the tld in jar file. but rather than 
just use the tld file, it differs between jsp 1.1 and jsp 1.2 taglibs. With jsp 1.2 
taglibs, it uses the tld in jar and completely ignores all other tld files. In jsp 
1.1, jasper seems to use the jar version. The problem only crops up using jspc for 
jasper2 with jsp 1.1 taglibs with multiple copies of tld file.  I discovered the 
problem a month back and submitted a bug to bugzilla, but no one has fixed it yet.  I 
have an itch to track it down and submit a patch, but I'm already sleep deprived as it 
is.
 
hope that helps.
 
peter
 Eddie Liang <[EMAIL PROTECTED]> wrote:Perter,
I have the similar problem. How can I make sure the jsp1.1 tag libraries
is not in either jar or WEH-INF/.

Eddie Liang
Database Architect
Phone: 630-810-9669 x253


-----Original Message-----
From: peter lin [mailto:peter.lin@;labs.gte.com] 
Sent: Monday, October 28, 2002 2:59 PM
To: Tomcat Users List
Subject: Re: jspc


if you're using jsp1.1 tag libraries, make sure you only have the tag
tld file in either jar or WEB-INF/. if you have it in both, it will
cause null pointer errors.

peter


Max wrote:
> 
> Hello,
> 
> I use tomcat 4.1.10
> 
> /usr/local/tomcat/bin#./jspc.sh ../webapps/myapp/test.jsp
> 2002-10-28 03:51:38 - ERROR-the file '/test.jsp' generated the following
general exception: java.lang.NullPointerException
> error:null
> 
> This error with every jsp ...
> 
> somebody know another way than jspc to compile all jsp recursivly ?
> 
> thanks

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



---------------------------------
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site

Reply via email to