users@grizzly.java.net

Re: ServletAdapter Issue

From: Jason Lee <jasondlee_at_sun.com>
Date: Wed, 28 Jan 2009 17:10:48 -0600

On Jan 28, 2009, at 3:49 PM, Jeanfrancois Arcand wrote:
> Jason Lee wrote:
>> Hey, Jeanfracois. I got passed the original issue (the null
>> InputStream). When Mojarra initializes, it tries to get context
>> params from web.xml unless told not to. Since web.xml wasn't in
>> the classpath[1], I told Mojarra not to search for it. Problem
>> "solved." When I run my test app now, it starts up with no errors
>> and starts taking requests. The problem I'm seeing now is that
>> either I'm not setting up the servlet-mapping correctly, or it's
>> not being honored. Here's my code:
>> sa.setServletInstance(new FacesServlet());
>>
>> sa
>> .addContextParameter
>> (BooleanWebContextInitParameter
>> .ForceLoadFacesConfigFiles.getQualifiedName(), "true");
>> ws.addGrizzlyAdapter(sa, new String[] {"*.jsf"});
>> ws.start();
>> When I request, say, http://localhost:8080/index.jsf, I get this
>> error:
>
> Hum difficult to say, but can you try adding just / instead (all
> requests will be mapped to your ServletAdapter no matter what) and
> see if that help?
>
> Or push me your code so I can try :-)


I'm working on that now. Trying to get a bit more data for you, but
I'm running into an unexpected issue...

         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