掲示板

com.liferay.faces.util.component.Component not found

9年前 に Venu Pattamatta によって更新されました。

com.liferay.faces.util.component.Component not found

Junior Member 投稿: 29 参加年月日: 14/05/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.
thumbnail
9年前 に Juan Gonzalez によって更新されました。

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...
9年前 に Venu Pattamatta によって更新されました。

RE: com.liferay.faces.util.component.Component not found

Junior Member 投稿: 29 参加年月日: 14/05/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.
thumbnail
9年前 に Juan Gonzalez によって更新されました。

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.
9年前 に Venu Pattamatta によって更新されました。

RE: com.liferay.faces.util.component.Component not found

Junior Member 投稿: 29 参加年月日: 14/05/29 最新の投稿
Hi,

It was a change in the m2 milestone build number 146. Shifted back to m1-snapshot and it worked.

Thanks,
Venu.
9年前 に Alphonse Van Assche によって更新されました。

RE: com.liferay.faces.util.component.Component not found

New Member 投稿: 4 参加年月日: 14/05/05 最新の投稿
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
thumbnail
9年前 に Juan Gonzalez によって更新されました。

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?
9年前 に Alphonse Van Assche によって更新されました。

RE: com.liferay.faces.util.component.Component not found

New Member 投稿: 4 参加年月日: 14/05/05 最新の投稿
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
9年前 に Alphonse Van Assche によって更新されました。

RE: com.liferay.faces.util.component.Component not found

New Member 投稿: 4 参加年月日: 14/05/05 最新の投稿
Good news Juan, the master branch is working!
thumbnail
9年前 に Juan Gonzalez によって更新されました。

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.
9年前 に Alphonse Van Assche によって更新されました。

RE: com.liferay.faces.util.component.Component not found

New Member 投稿: 4 参加年月日: 14/05/05 最新の投稿
Not a problem, such things happen ;-)

Do you know when the maven repository will be updated?
thumbnail
9年前 に Neil Griffin によって更新されました。

RE: com.liferay.faces.util.component.Component not found

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
The continuous integration server is publishing snapshots again to our Snapshot Repository.