We are using an ant task to precompile our JSP's. Since we have switched from 5.0.19 to 5.0.25 on our development environment, many JSP files that use the jsp:useBean tag no longer compile.

The error I'm getting is:

BUILD FAILED: /compile/project/build.xml:209: org.apache.jasper.JasperException: file:/tmp/output/ROOT/jsp/monitor/monitor.jsp(6,0) The value for the useBean class attribute com.example.AccountingBean is invalid.

I know that this kind of error occurs when there is no no-argument constructor in the Bean. The AccountingBean does have a constructor, but it is a no-argument constructor. If I remove the constructor from the Bean, the JSP can be compiled normally.

If I use the jasper-compiler.jar from 5.0.19 instead of the one that comes with 5.0.25, everything compiles normally. Am I right to conclude that this is a bug in jasper-compiler?

Michiel



Example code:

monitor.jsp
------------------------------
....
<jsp:useBean id="widget" scope="request" class="nl.bibit.internal.accounting.admin.AccountingWidgetBean" />
....
------------------------------



com.example.AccountingBean.java ----------------------------------------- public class AccountingBean {

   public AccountingBean()
   {
       isTest = true;
   }

   .......

}
-----------------------------------------

--
Michiel Toneman  Software Engineer   Bibit Global Payment Services
Regulierenring 10  3981 LB  Bunnik       [EMAIL PROTECTED]
Tel. +31-30-6595168  Fax +31-30-6564464      http://www.bibit.com/


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



Reply via email to