留言板
com.liferay.faces.util.component.Component not found
Venu Pattamatta,修改在9 年前。
com.liferay.faces.util.component.Component not found
Junior Member 帖子: 29 加入日期: 14-5-29 最近的帖子
Hi
I am getting this strange exception while running liferay faces.
java.lang.ClassNotFoundException: com.liferay.faces.util.component.ComponentResourceFactory
the below is the stack trace:
13:27:56,927 ERROR [http-bio-18080-exec-34][render_portlet_jsp:132] null
java.lang.ClassNotFoundException: com.liferay.faces.util.component.ComponentResourceFactory
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
at com.liferay.faces.bridge.renderkit.html_basic.HeadRendererBridgeImpl.encodeBegin(HeadRendererBridgeImpl.java:161)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:869)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1854)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:443)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)
at com.liferay.faces.bridge.application.ViewHandlerCompatImpl.renderView(ViewHandlerCompatImpl.java:52)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)
at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:229)
at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:84)
at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:117)
at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:255)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:204)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
Using liferay faces 4.2.0 m2 and faces 2.2.0.
Can anyone please assist.
Thanks,
Venu Pattamatta.
I am getting this strange exception while running liferay faces.
java.lang.ClassNotFoundException: com.liferay.faces.util.component.ComponentResourceFactory
the below is the stack trace:
13:27:56,927 ERROR [http-bio-18080-exec-34][render_portlet_jsp:132] null
java.lang.ClassNotFoundException: com.liferay.faces.util.component.ComponentResourceFactory
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
at com.liferay.faces.bridge.renderkit.html_basic.HeadRendererBridgeImpl.encodeBegin(HeadRendererBridgeImpl.java:161)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:869)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1854)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:443)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)
at com.liferay.faces.bridge.application.ViewHandlerCompatImpl.renderView(ViewHandlerCompatImpl.java:52)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)
at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:229)
at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:84)
at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:117)
at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:255)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:204)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
Using liferay faces 4.2.0 m2 and faces 2.2.0.
Can anyone please assist.
Thanks,
Venu Pattamatta.
Juan Gonzalez,修改在9 年前。
RE: com.liferay.faces.util.component.Component not found
Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
Hi Venu,
are you adding liferay-faces-util to your project? Seems you didn't...
are you adding liferay-faces-util to your project? Seems you didn't...
Venu Pattamatta,修改在9 年前。
RE: com.liferay.faces.util.component.Component not found
Junior Member 帖子: 29 加入日期: 14-5-29 最近的帖子
Hi,
I did add liferay-faces-util. But the class for ComponentResourceFactory has different package structure.
com/liferay/faces/util/component/ComponentResourceFactory is not available but
com/liferay/faces/util/application/ComponentResourceFactory is available.
Thanks,
Venu.
I did add liferay-faces-util. But the class for ComponentResourceFactory has different package structure.
com/liferay/faces/util/component/ComponentResourceFactory is not available but
com/liferay/faces/util/application/ComponentResourceFactory is available.
Thanks,
Venu.
Juan Gonzalez,修改在9 年前。
RE: com.liferay.faces.util.component.Component not found
Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
Mmm seems that your liferay-faces-bridge-impl jar isn't updated with latest version.
First update until the latest version from github all liferay-faces-* projects and clean all your liferay-faces-* packages and install. Then do the same with your portlet.
First update until the latest version from github all liferay-faces-* projects and clean all your liferay-faces-* packages and install. Then do the same with your portlet.
Venu Pattamatta,修改在9 年前。
RE: com.liferay.faces.util.component.Component not found
Junior Member 帖子: 29 加入日期: 14-5-29 最近的帖子
Hi,
It was a change in the m2 milestone build number 146. Shifted back to m1-snapshot and it worked.
Thanks,
Venu.
It was a change in the m2 milestone build number 146. Shifted back to m1-snapshot and it worked.
Thanks,
Venu.
Alphonse Van Assche,修改在9 年前。
RE: com.liferay.faces.util.component.Component not found
New Member 帖子: 4 加入日期: 14-5-5 最近的帖子
Hi,
The same problem appear here yesterday, unfortunately I have take the entire day to understand that the jar file was simply modified.
The bug was introduced in 4.2.0-m2-20140926.221715-146 (26/9)
Now the question is, how to force maven to temporarily use the 4.2.0-m2-20140926.221715-145 version without hacking the repository?
Best regards,
Alphonse
The same problem appear here yesterday, unfortunately I have take the entire day to understand that the jar file was simply modified.
The bug was introduced in 4.2.0-m2-20140926.221715-146 (26/9)
Now the question is, how to force maven to temporarily use the 4.2.0-m2-20140926.221715-145 version without hacking the repository?
Best regards,
Alphonse
Juan Gonzalez,修改在9 年前。
RE: com.liferay.faces.util.component.Component not found
Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
Hi Alphonse,
did you try removing previous liferay faces 4.2.0 m2 jars from your local repository (liferay-faces-util, liferay-faces-bridge-*, etc) downloading latest liferay faces master branch from github, then installing whith Maven?
did you try removing previous liferay faces 4.2.0 m2 jars from your local repository (liferay-faces-util, liferay-faces-bridge-*, etc) downloading latest liferay faces master branch from github, then installing whith Maven?
Alphonse Van Assche,修改在9 年前。
RE: com.liferay.faces.util.component.Component not found
New Member 帖子: 4 加入日期: 14-5-5 最近的帖子
Hi Juan,
Thanks for your quick reply. I'have switch back to 4.2.0-m1-SNAPSHOT to unblock other team members. Now that anything seem to be up-and-running again, I would try to build the master branch to see if it fix the problem,.
Anyway, it look like liferay-faces-bridge-* artifacts of the maven repository[1] were not updated on 26/9 and seems no more compatible with the rest of the stack.
[1] https://oss.sonatype.org/content/repositories/snapshots/com/liferay/faces
Thanks for your quick reply. I'have switch back to 4.2.0-m1-SNAPSHOT to unblock other team members. Now that anything seem to be up-and-running again, I would try to build the master branch to see if it fix the problem,.
Anyway, it look like liferay-faces-bridge-* artifacts of the maven repository[1] were not updated on 26/9 and seems no more compatible with the rest of the stack.
[1] https://oss.sonatype.org/content/repositories/snapshots/com/liferay/faces
Alphonse Van Assche,修改在9 年前。
RE: com.liferay.faces.util.component.Component not found
New Member 帖子: 4 加入日期: 14-5-5 最近的帖子
Good news Juan, the master branch is working!
Juan Gonzalez,修改在9 年前。
RE: com.liferay.faces.util.component.Component not found
Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子Alphonse Van Assche:
Good news Juan, the master branch is working!
Great! We have been checking some things lately and didn't come across your problem, so it sounded weird.
Thanks for confirming Alphonse.
Alphonse Van Assche,修改在9 年前。
RE: com.liferay.faces.util.component.Component not found
New Member 帖子: 4 加入日期: 14-5-5 最近的帖子
Not a problem, such things happen ;-)
Do you know when the maven repository will be updated?
Do you know when the maven repository will be updated?
Neil Griffin,修改在9 年前。