You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Jane Pereira Soares <ja...@cpm.com.br> on 2006/08/24 16:43:03 UTC

Problem running myfaces on Websphere 6

Hi, 

I have a problem when I run my application on Websphere 6. On tomcat all works fine, but on websphere not.

I followed the instructions on http://wiki.apache.org/myfaces/Websphere_Installation <http://wiki.apache.org/myfaces/Websphere_Installation>  to install myfaces without remove the IBM jars, but if I don´t put the sun RI jar (jsf-api-1.1.jar) on my web-inf/lib application, I get the following error:

java.lang.IllegalStateException: parent is null?

at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:367)

at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:219)

 

I saw on the myfaces source that there is the following comment on source of the method UIComponentTag.findComponent:

UIComponent parent = parentTag.getComponentInstance();

//TODO: what if parent == null?

if (parent == null) throw new IllegalStateException("parent is null?");

 

Sun Ri there is the following source to the same method UIComponentTag.findComponent:

if (parentTag != null) {

      parentComponent = parentTag.getComponentInstance();

} else {

// Special case. The component to be found is the UIViewRoot.

// see if this is the first time this tag instance is trying to be bound to the UIViewRoot

...

I don´t know why my application get a null parent, but this situation is catch on sun ri and on myfaces not. This is a bug? 

Anyone have idea what is wrong on my application? 

Thanks in advance and apologise for my english.