Skip to main content

Problem with simpe JSF page (milestone 3+NB 4.2 dev)

1 reply [Last post]
lynggaard
Offline
Joined: 2003-06-14

Hi

I have a problem with "Hello world" JFS page that netbeans 4.2 generates from a WEbProject.

I did the following:

1. Make a new Web Project,
2. Deploy the project without altering anything
3. from the browser, go to the web app click on the "
Java Server Faces Welcome Page"

Instead of the welcome page I get:

javax.servlet.ServletException: javax.faces.context.FacesContext.getELContext()Ljavax/el/ELContext;
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:307)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:172)
com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:67)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:197)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:550)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:433)
com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:353)
com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:257)
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:258)
com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:71)

root cause

java.lang.AbstractMethodError: javax.faces.context.FacesContext.getELContext()Ljavax/el/ELContext;
javax.faces.component.UIViewRoot.setLocale(UIViewRoot.java:875)
com.sun.faces.application.ViewHandlerImpl.createView(ViewHandlerImpl.java:294)
com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:164)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:181)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:256)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:289)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:172)
com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:67)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:197)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:550)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:433)
com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:353)
com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:257)
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:258)
com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:71)

Using:
Ubuntu lines on amd64
glassfish: milstone 3
netbeans 4.2 build 200509011800

what am I doing wrong ?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ludo
Offline
Joined: 2003-06-10

When you register the JSF via Netbeans to your Web App, the JSF libraries are added in you web app...
Maybe there is a version mismatch between the JSF from your web app, and the one in GlassFish. As you might know JSF is now part of the Java EE 5 spec, so there is no need to bundle these libraries with your web app.

Try to do that:

On your Web App project node ->popup menu, select "Properties" menu item.
In the dialog Properties, select the "Libraries" node, and unselect the "Package" checkBox for the JSF 1.1 Library.
This will remove it from your web app packaging.

Let us know,
Ludo