Tomcat 6 Bug: JspFactory.getDefaultFactory() returns null

2006-04-18 Thread Stan Silvert
I couldn't find the Tomcat 6 bug database, so I am reporting this here.

 

I need to be able to add an ELResolver to the JspApplicationContext
before any JSP is ever called.  So, I do this in a
ServletContextListener:

 

JspFactory factory = JspFactory.getDefaultFactory();

JspApplicationContext appCtx =
factory.getJspApplicationContext(servletContext);

appCtx.addELResolver(myResolver);

 

However, at this point the org.apache.jasper.compiler.JspRuntimeContext
class has not been loaded.  So, getDefaultFactory() returns null.

 

If I add this to my code then everything works:

Class.forName("org.apache.jasper.compiler.JspRuntimeContext");

 

Please let me know where the bug database is and I'll open a report.

 

Thanks,

 

Stan Silvert

JBoss, Inc.

[EMAIL PROTECTED]

callto://stansilvert

 



RE: Tomcat 6 Bug: JspFactory.getDefaultFactory() returns null

2006-04-19 Thread Stan Silvert
> And I think I would mark it as INVALID. This factory field is
> initialized by Jasper, and at this point in time, I see no reason for
> any Jasper code to have been run.
> 
> Rémy

As I said in the original email, I need to add an ELResolver on the 
JspApplicationContext at application startup time.  This is required by the JSF 
1.2 spec section 5.6.1. 

Stan Silvert
JBoss, Inc.
[EMAIL PROTECTED]
callto://stansilvert

> -Original Message-
> From: Remy Maucherat [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 19, 2006 5:13 AM
> To: Tomcat Developers List
> Subject: Re: Tomcat 6 Bug: JspFactory.getDefaultFactory() returns null
> 
> Stan Silvert wrote:
> > Please let me know where the bug database is and I'll open a report.
> 
> And I think I would mark it as INVALID. This factory field is
> initialized by Jasper, and at this point in time, I see no reason for
> any Jasper code to have been run.
> 
> Rémy
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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