Forums de discussion

How to resolve Error: Could not find mediaLib accelerator wrapper classes?

thumbnail
Anuvab Ghosh, modifié il y a 8 années.

How to resolve Error: Could not find mediaLib accelerator wrapper classes?

Regular Member Publications: 130 Date d'inscription: 18/04/15 Publications récentes
Hi,
I am using liferay 6.2 with jboss server and using jdk1.6.0_45. When I start the jboss server, in server log I have traced an error with an exception, mentioned below.

How to resolve this error?

Please give some suggestion.

Thanks in advance.

12:08:04,448 ERROR [stderr] (MSC service thread 1-6) Error: Could not find mediaLib accelerator wrapper classes. Continuing in pure Java mode.
12:08:04,448 ERROR [stderr] (MSC service thread 1-6) Occurs in: com.sun.media.jai.mlib.MediaLibAccessor
12:08:04,449 ERROR [stderr] (MSC service thread 1-6) java.lang.NoClassDefFoundError: com/sun/medialib/mlib/Image
12:08:04,450 ERROR [stderr] (MSC service thread 1-6) 	at com.sun.media.jai.mlib.MediaLibAccessor$1.run(MediaLibAccessor.java:248)
12:08:04,450 ERROR [stderr] (MSC service thread 1-6) 	at java.security.AccessController.doPrivileged(Native Method)
12:08:04,450 ERROR [stderr] (MSC service thread 1-6) 	at com.sun.media.jai.mlib.MediaLibAccessor.setUseMlib(MediaLibAccessor.java:245)
12:08:04,451 ERROR [stderr] (MSC service thread 1-6) 	at com.sun.media.jai.mlib.MediaLibAccessor.useMlib(MediaLibAccessor.java:177)
12:08:04,451 ERROR [stderr] (MSC service thread 1-6) 	at com.sun.media.jai.mlib.MediaLibAccessor.isMediaLibCompatible(MediaLibAccessor.java:357)
12:08:04,451 ERROR [stderr] (MSC service thread 1-6) 	at com.sun.media.jai.mlib.MediaLibAccessor.isMediaLibCompatible(MediaLibAccessor.java:315)
12:08:04,452 ERROR [stderr] (MSC service thread 1-6) 	at com.sun.media.jai.mlib.MlibMosaicRIF.create(MlibMosaicRIF.java:47)
12:08:04,452 ERROR [stderr] (MSC service thread 1-6) 	at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source)
12:08:04,453 ERROR [stderr] (MSC service thread 1-6) 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
12:08:04,453 ERROR [stderr] (MSC service thread 1-6) 	at java.lang.reflect.Method.invoke(Method.java:597)
12:08:04,453 ERROR [stderr] (MSC service thread 1-6) 	at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
12:08:04,454 ERROR [stderr] (MSC service thread 1-6) 	at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
12:08:04,454 ERROR [stderr] (MSC service thread 1-6) 	at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
12:08:04,454 ERROR [stderr] (MSC service thread 1-6) 	at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
12:08:04,455 ERROR [stderr] (MSC service thread 1-6) 	at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:819)
12:08:04,455 ERROR [stderr] (MSC service thread 1-6) 	at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:867)
12:08:04,455 ERROR [stderr] (MSC service thread 1-6) 	at javax.media.jai.RenderedOp.getColorModel(RenderedOp.java:2242)
12:08:04,456 ERROR [stderr] (MSC service thread 1-6) 	at javax.imageio.ImageTypeSpecifier.<init>(ImageTypeSpecifier.java:113)
12:08:04,456 ERROR [stderr] (MSC service thread 1-6) 	at javax.imageio.ImageTypeSpecifier.createFromRenderedImage(ImageTypeSpecifier.java:918)
12:08:04,457 ERROR [stderr] (MSC service thread 1-6) 	at javax.imageio.ImageIO.write(ImageIO.java:1467)
12:08:04,457 ERROR [stderr] (MSC service thread 1-6) 	at javax.imageio.ImageIO.write(ImageIO.java:1521)
12:08:04,457 ERROR [stderr] (MSC service thread 1-6) 	at com.liferay.portal.image.SpriteProcessorImpl.generate(SpriteProcessorImpl.java:229)
12:08:04,458 ERROR [stderr] (MSC service thread 1-6) 	at com.liferay.portal.kernel.image.SpriteProcessorUtil.generate(SpriteProcessorUtil.java:40)
12:08:04,458 ERROR [stderr] (MSC service thread 1-6) 	at com.liferay.portal.service.impl.PortletLocalServiceImpl._setSpriteImages(PortletLocalServiceImpl.java:2395)
12:08:04,459 ERROR [stderr] (MSC service thread 1-6) 	at com.liferay.portal.service.impl.PortletLocalServiceImpl.initEAR(PortletLocalServiceImpl.java:758)
12:08:04,459 ERROR [stderr] (MSC service thread 1-6) 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:08:04,459 ERROR [stderr] (MSC service thread 1-6) 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
12:08:04,460 ERROR [stderr] (MSC service thread 1-6) 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
12:08:04,460 ERROR [stderr] (MSC service thread 1-6) 	at java.lang.reflect.Method.invoke(Method.java:597)
12:08:04,460 ERROR [stderr] (MSC service thread 1-6) 	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
12:08:04,461 ERROR [stderr] (MSC service thread 1-6) 	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
12:08:04,461 ERROR [stderr] (MSC service thread 1-6) 	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
12:08:04,462 ERROR [stderr] (MSC service thread 1-6) 	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
12:08:04,462 ERROR [stderr] (MSC service thread 1-6) 	at com.sun.proxy.$Proxy81.initEAR(Unknown Source)
12:08:04,462 ERROR [stderr] (MSC service thread 1-6) 	at com.liferay.portal.service.PortletLocalServiceUtil.initEAR(PortletLocalServiceUtil.java:420)
12:08:04,463 ERROR [stderr] (MSC service thread 1-6) 	at com.liferay.portal.servlet.MainServlet.initPortlets(MainServlet.java:885)
12:08:04,463 ERROR [stderr] (MSC service thread 1-6) 	at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:273)
12:08:04,464 ERROR [stderr] (MSC service thread 1-6) 	at javax.servlet.GenericServlet.init(GenericServlet.java:242)
12:08:04,464 ERROR [stderr] (MSC service thread 1-6) 	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)
12:08:04,464 ERROR [stderr] (MSC service thread 1-6) 	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102)
12:08:04,465 ERROR [stderr] (MSC service thread 1-6) 	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655)
12:08:04,466 ERROR [stderr] (MSC service thread 1-6) 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873)
12:08:04,466 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)
12:08:04,466 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
12:08:04,467 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
12:08:04,467 ERROR [stderr] (MSC service thread 1-6) 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
12:08:04,467 ERROR [stderr] (MSC service thread 1-6) 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
12:08:04,468 ERROR [stderr] (MSC service thread 1-6) 	at java.lang.Thread.run(Thread.java:662)
12:08:04,469 ERROR [stderr] (MSC service thread 1-6) Caused by: java.lang.ClassNotFoundException: com.sun.medialib.mlib.Image from [Module "deployment.ROOT.war:main" from Service Module Loader]
12:08:04,469 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
12:08:04,469 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
12:08:04,470 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
12:08:04,470 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
12:08:04,470 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
12:08:04,471 ERROR [stderr] (MSC service thread 1-6) 	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
12:08:04,471 ERROR [stderr] (MSC service thread 1-6) 	... 48 more
</init>
thumbnail
David H Nebinger, modifié il y a 8 années.

RE: How to resolve Error: Could not find mediaLib accelerator wrapper class

Liferay Legend Publications: 14916 Date d'inscription: 02/09/06 Publications récentes
That's a jar from Java Advanced Imaging, JAI. It used to be available as a separate download from java.sun.com.
thumbnail
Anuvab Ghosh, modifié il y a 8 années.

RE: How to resolve Error: Could not find mediaLib accelerator wrapper class

Regular Member Publications: 130 Date d'inscription: 18/04/15 Publications récentes
David H Nebinger:
That's a jar from Java Advanced Imaging, JAI. It used to be available as a separate download from java.sun.com.


Thanks for the reply.
Do I need to replace it with the existing?
If yes then can you tell me about the location?
Otherwise please provide some details about the solution procedure.
thumbnail
Tobias Liefke, modifié il y a 8 années.

RE: How to resolve Error: Could not find mediaLib accelerator wrapper class

Junior Member Publications: 78 Date d'inscription: 23/11/12 Publications récentes
You can find the JAI download including installation instructions here:
http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-java-client-419417.html

But if JAI is nor really necessary, you can simply turn this off by setting the system property com.sun.media.jai.disableMediaLib to true.
thumbnail
Anuvab Ghosh, modifié il y a 8 années.

RE: How to resolve Error: Could not find mediaLib accelerator wrapper class

Regular Member Publications: 130 Date d'inscription: 18/04/15 Publications récentes
Thanks for the reply.

Tobias Liefke:
... But if JAI is nor really necessary, you can simply turn this off by setting the system property com.sun.media.jai.disableMediaLib to true.



Can you told me how to set this?

Will I add this property in portal-ext.properties?

Please explain it.

Thanks in advance
thumbnail
David H Nebinger, modifié il y a 8 années.

RE: How to resolve Error: Could not find mediaLib accelerator wrapper class

Liferay Legend Publications: 14916 Date d'inscription: 02/09/06 Publications récentes
It's a system property, so you'd have to do it at a system level, i.e. by adding "-Dcom.sun.media.jai.disableMediaLib=true" in setenv.bat/sh for tomcat.
thumbnail
Anuvab Ghosh, modifié il y a 8 années.

RE: How to resolve Error: Could not find mediaLib accelerator wrapper class

Regular Member Publications: 130 Date d'inscription: 18/04/15 Publications récentes
Thank you David.