Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Help with JSP pre-compiling

843838Apr 23 2007 — edited Apr 25 2007
We have a web application using Jboss4.0.5, jdk 1.6 and And 1.6.5, and now we try to do a pre-compiling as part of our build procedure.

That is the first time I am going to do a pre-comp of a major application, which includes about 1700 jsp files.

The directory tree of the application is as follows:
/project 
    |--- > /web_pre-comp/pages/jsp ( it contains all the jsp files ) 
    |----> /web_pre-comp/WEB-INF ( it contains the web.xml file.) 
    |----> /web_pre-comp/WEB-INF/tld ( it contains the tld files) 
    |----> /web_pre-comp/WEB-INF/src ( it coutains the generated src file from jsp ) 
    |---->/web_pre-comp/WEB-INF/classes ( it contains the compiled classes once the jsp java files are generated.   )
    |----> build.xml ( the ant script )
And there is my build.xml file looks like:
<project> 
   ...
      <target name="pro.jsp.generate" depens="init">
       <java classname="org.apache.jasper.JspC" fork="yes">
          <classpath refid="tomcat.jsp.classpath"/>
          <arg line=" -d "/>
          <arg value="${jsp.generated.src.dir}"/>
          <arg line="-p"/>
          <arg value="${jsp.package.name}"/>
          <arg line="-webapp"/>
          <arg value="${jsp.src.dir}"/>
       </java>
   </target>
 ... 
</project>
When I was running the ant script, I received such message:
"...

[java] org.apache.jasper.JasperException: The absolute uri: http://www.prounlimited.com/wandappconfig.tld cannot be resolved in either web.xml or the jar files deployed with this application
".


We do have suh messages included in the web.xml file.


  <taglib>
        <taglib-uri>http://www.prounlimited.com/wandappconfig.tld</taglib-uri>
        <taglib-location>/WEB-INF/tld/wandappconfig.tld</taglib-location>
    </taglib>
Any Ideas how to make it working ?


Another side questions is when some java file are created from JSP, I see some "005f" included in the java file name, such as "inc_sup_princing_view.jsp" creats a
"inc_005fsup_005fpricing_005fview_jsp.java" file. Does someone know why this happen ?


Thanks a lot !



Charlie
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 23 2007
Added on Apr 23 2007
4 comments
216 views