users@grizzly.java.net

Re: ServletAdapter Issue

From: Jason Lee <jasondlee_at_sun.com>
Date: Fri, 23 Jan 2009 12:20:54 -0600

On Jan 23, 2009, at 12:04 PM, Jeanfrancois Arcand wrote:
> So far so good. Now you want to embed a JSF application, which is
> something we never experimented. Fist, is the JSF application uses
> the following:

Yes. That is my goal. :)

> + RequestDispatcher/NameDispatcher
> + Error page mechanism

Yes

> + Authentication

Yes

> + No JSP

Yes. All JSFTemplating-based JSF views.

> Grizzly Servlet Container is not yet compliant, being developed
> mainly by the community.

OK. Good to keep in mind.

>> and here's the stack trace I'm getting:
>> Jan 23, 2009 11:09:57 AM com.sun.faces.config.ConfigureListener
>> $WebXmlProcessor scanForFacesServlet
>> WARNING: Unable to process deployment descriptor for context '/'
>> java.lang.IllegalArgumentException: InputStream cannot be null
>> at javax.xml.parsers.SAXParser.parse(SAXParser.java:194)
>> at com.sun.faces.config.ConfigureListener
>> $WebXmlProcessor.scanForFacesServlet(ConfigureListener.java:705)
>> at com.sun.faces.config.ConfigureListener
>> $WebXmlProcessor.<init>(ConfigureListener.java:676)
>> at
>> com
>> .sun
>> .faces
>> .config.ConfigureListener.contextInitialized(ConfigureListener.java:
>> 164)
>> at
>> com
>> .sun
>> .grizzly
>> .http
>> .servlet.ServletContextImpl.initListeners(ServletContextImpl.java:
>> 150)
>> at
>> com
>> .sun
>> .grizzly
>> .http
>> .servlet.ServletAdapter.configureServletEnv(ServletAdapter.java:322)
>> at
>> com
>> .sun.grizzly.http.servlet.ServletAdapter.start(ServletAdapter.java:
>> 198)
>> at
>> com
>> .sun.grizzly.http.SelectorThread.initEndpoint(SelectorThread.java:
>> 1084)
>> at
>> com.sun.grizzly.http.SelectorThread.listen(SelectorThread.java:1135)
>> at
>> com
>> .sun
>> .grizzly.http.embed.GrizzlyWebServer.start(GrizzlyWebServer.java:544)
>> at com.steeplesoft.grizzlyfaces.Main.main(Main.java:40)
>> Jan 23, 2009 11:09:57 AM com.sun.faces.config.ConfigureListener
>
> Can you point me to the code that is doing that? I guess I can find
> it in the JSF project....

https://mojarra.dev.java.net/svn/mojarra/trunk/jsf-ri/src/com/sun/faces/config/ConfigureListener.java

>> contextInitialized
>> INFO: Initializing Mojarra 2.0.0 (SNAPSHOT 20090123) for context '/'
>> Jan 23, 2009 11:09:58 AM com.sun.faces.spi.InjectionProviderFactory
>> createInstance
>> INFO: JSF1048: PostConstruct/PreDestroy annotations present.
>> ManagedBeans methods marked with these annotations will have said
>> annotations processed.
>> Jan 23, 2009 11:09:58 AM com.sun.faces.config.ConfigManager
>> initialize
>> INFO: Unsanitized stacktrace from failed start...
>> java.lang.ClassCastException: java.io.File cannot be cast to
>> java.lang.String
>> at com.sun.faces.application.resource.ResourceCache
>> $WebappResourceMonitor.createSnapshot(ResourceCache.java:534)
>
> Same here.

https://mojarra.dev.java.net/svn/mojarra/trunk/jsf-ri/src/com/sun/faces/application/resource/ResourceCache.java

> I guess I need to see what JSF is trying to do. Can you file an issue:
>
> https://grizzly.dev.java.net/issues/

I can do that. I'll have to verify with Ryan Lubke what we're doing
here.

> so we can work on it. BTW You want to run the admin gui on Grizzly?
> This is great .... and scary as well :-)


That's my goal. *If* I can achieve that, we'll have to wait and see
if it goes anywhere. If nothing else, this might make an interesting
unit test approach. I'm still tinkering... :)

Thanks!

         Jason Lee
Senior Java Developer
GlassFish Administration Console

Sun Microsystems, Inc.
Phone x31197/+1 405-343-1964
Email jasondlee_at_sun.com
Blog http://blogs.sun.com/jasondlee
Blog http://blogs.steeplesoft.com