Ok thanks. I've played around more and got a bit further but I think I'm in to work-around territory rather than fixing the problem properly.
Here is my current components.xml | <?xml version="1.0" encoding="UTF-8"?> | <components xmlns="http://jboss.com/products/seam/components" | xmlns:core="http://jboss.com/products/seam/core" | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | xsi:schemaLocation= | "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.1.xsd | http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.1.xsd"> | | <core:init debug="true"/> | | <!-- adding this makes the NPE go away --> | <core:locale-selector/> | | <core:managed-hibernate-session name="referenceSession"/> | | <core:hibernate-session-factory name="hibernateSessionFactory"/> | | </components> | I added the locale-selector component here explicitly which forces it to load and means my web page serves up properly. However I still get a couple of other NPEs. | WARNING: phase(RESTORE_VIEW 1,[EMAIL PROTECTED]) threw exception: java.lang.NullPointerException null | org.jboss.seam.jsf.AbstractSeamPhaseListener.beforePhase(AbstractSeamPhaseListener.java:110) | org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:58) | com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:214) | com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113) | javax.faces.webapp.FacesServlet.service(FacesServlet.java:244) | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:270) | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:191) | org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:227) | org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) | org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) | org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) | org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:211) | org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:817) | org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:623) | org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:444) | java.lang.Thread.run(Thread.java:595) | | 06-Oct-2006 11:03:27 com.sun.faces.lifecycle.LifecycleImpl phase | WARNING: phase(RENDER_RESPONSE 6,[EMAIL PROTECTED]) threw exception: java.lang.IllegalStateException: No Manager could be created, make sure the Component exists in application scope No Manager could be created, make sure the Component exists in application scope | org.jboss.seam.core.Manager.instance(Manager.java:254) | org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:184) | org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:51) | com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:214) | com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140) | javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:270) | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:191) | org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:227) | org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) | org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) | org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) | org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:211) | org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:817) | org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:623) | org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:444) | java.lang.Thread.run(Thread.java:595) | Which are both similar to the locale problem. I found that the Component.forName(name) (which looks up components in the application context) call in Component.getInstance() is returning null. It was doing this for the locale-setting until I included it my components.xml but I don't think I should be putting all the core components in my components file. I will keep investigating but any insight or ideas about why the core components don't seem to be loading automatically would be appreciated. Thanks. Mike. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991600#3991600 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991600 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
