Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Precompile Failing

 
Paul Bourdeaux
Ranch Hand
Posts: 783
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an annoying situation...

I have a web app with several jsps that use custom tags. They use this line to call the taglib:If I don't precompile the web app, it works perfectly. However, if I try to precompile it, the precompile fails saying tht it cannot open the tag class. This failure occurs in both Tomcat 3.3.2 and iPlanet. Any suggestions? Thanks in advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65227
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
uri="/WEB-INF/tlds/pathway.tld"


Not sure if this is an issu or not, but is this really the URI that's declared within the TLD? Or just its file path?
 
Paul Bourdeaux
Ranch Hand
Posts: 783
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, it is both the uri and the file path (not my choice of naming conventions, but it was in place before I was ).

I don't however, think that this is an issue, as the compiler seems to be able to find the tld... For instance, in my tld I have the following tagAnd the error generated by the precompiler says that it "cannot open class org.cait.usdlc.tags.PathwayTag".

It baffels me because it works just fine if I let it tranlate and compile with the first request...
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65227
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like it may be a classpath issue with the pre-compiler. Are you sure that the classes are available to the pre-compile process?
 
Paul Bourdeaux
Ranch Hand
Posts: 783
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good call. No, I am not sure that the class is available to the precompiler... I will have to look into that. Although that would explain why it worked when the server was running...

Do you think it would be enough to simply set the classpath enivornment variable before running the precompiler? (i.e. setenv CLASSPATH ~/subversion/webapps... )
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65227
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most probably -- assuming that the pre-compiler program uses the CLASSPATH variable. (Tomcat, for example, does not).
 
Paul Bourdeaux
Ranch Hand
Posts: 783
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That seems to have done the trick. Thanks Bear.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic