<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>when i upgrade poi.jar from 3.15 to 4.12 , portal started failed</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122252883" />
  <subtitle>when i upgrade poi.jar from 3.15 to 4.12 , portal started failed</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122252883</id>
  <updated>2026-04-04T21:48:06Z</updated>
  <dc:date>2026-04-04T21:48:06Z</dc:date>
  <entry>
    <title>RE: RE: when i upgrade poi.jar from 3.15 to 4.12 , portal started failed</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122266250" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122266250</id>
    <updated>2023-12-01T09:49:17Z</updated>
    <published>2023-12-01T09:49:16Z</published>
    <summary type="html">&lt;p&gt;You've mentioned the poi version earlier, just not the Liferay
  version (other than &amp;quot;earlier&amp;quot;)&lt;/p&gt;
&lt;p&gt;But either way: You're placing the library in a really unusual
  directory (don't!) and you're not mentioning anything about transitive
  dependencies that you originally brought (and that require update) or
  that the new version might need.&lt;/p&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2023-12-01T09:49:16Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: when i upgrade poi.jar from 3.15 to 4.12 , portal started failed</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122265161" />
    <author>
      <name>du kun</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122265161</id>
    <updated>2023-12-01T09:47:17Z</updated>
    <published>2023-11-30T09:49:13Z</published>
    <summary type="html">&lt;p&gt;Thanks for your answer and the poi version that i want to use is 4.12.&lt;/p&gt;
&lt;p&gt;You are right , the portal which i used is customized and I have
  asked my working paterner for advice.&lt;/p&gt;
&lt;p&gt;My paterner is working on it.&lt;/p&gt;
&lt;p&gt;I have no more info with his process so far &#x1f602;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>du kun</dc:creator>
    <dc:date>2023-11-30T09:49:13Z</dc:date>
  </entry>
  <entry>
    <title>RE: when i upgrade poi.jar from 3.15 to 4.12 , portal started failed</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122253601" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122253601</id>
    <updated>2023-11-20T11:20:57Z</updated>
    <published>2023-11-20T11:20:56Z</published>
    <summary type="html">&lt;blockquote&gt;
  &lt;p&gt;i use earlier portal.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Please give some more precise information: Which version are you using?&lt;/p&gt;
&lt;p&gt;AFAIK Liferay does not come with poi, so this would be your custom
  version to begin with, so anything that you did for including it to
  begin with is 100% custom. And in case any earlier version of Liferay
  ever came with poi, then it has been compiled with exactly the version
  that's found there, and there's no guarantee that you can just replace
  it with a new one - especially with a different major version number.&lt;/p&gt;
&lt;p&gt;Also, note that WEB-INF/lib is a really bad place for custom files to
  live to begin with. They should be local to your plugin (if you're on
  6.x) or shared through OSGi.&lt;/p&gt;
&lt;p&gt;Randomly updating major versions of any embedded component (built-in
  or custom) can be expected to require additional code changes. You
  might also be missing transitive dependencies, as packaging of poi
  might have changed from a single jar to multiple ones.&lt;/p&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2023-11-20T11:20:56Z</dc:date>
  </entry>
  <entry>
    <title>when i upgrade poi.jar from 3.15 to 4.12 , portal started failed</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122252882" />
    <author>
      <name>du kun</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122252882</id>
    <updated>2023-11-20T11:15:19Z</updated>
    <published>2023-11-20T07:16:38Z</published>
    <summary type="html">&lt;p&gt;i use earlier portal.&lt;/p&gt;
&lt;p&gt;i want to upgrade poi.jar from 3.15 to 4.1.2 or higher.&lt;/p&gt;
&lt;p&gt;poi.jar located in /liferay/tomcat/webapps/ROOT/WEN-INF/lib/.&lt;/p&gt;
&lt;p&gt;after i replace a new jar, portal start failed with info:&lt;/p&gt;
&lt;p&gt;org.springframework.beans.factory.BeanCreationException: Error
  creating bean with name
  'com.liferay.portal.kernel.metadata.RawMetadataProcessor' defined in
  class path resource [META-INF/util-spring.xml]: Cannot create inner
  bean 'org.apache.tika.parser.AutoDetectParser#7181cdd9' of type
  [org.apache.tika.parser.AutoDetectParser] while setting bean property
  'parser'; nested exception is
  org.springframework.beans.factory.BeanCreationException: Error
  creating bean with name
  'org.apache.tika.parser.AutoDetectParser#7181cdd9' defined in class
  path resource [META-INF/util-spring.xml]: Cannot create inner bean
  'org.apache.tika.config.TikaConfig#78d8c42f' of type
  [org.apache.tika.config.TikaConfig] while setting constructor
  argument; nested exception is
  org.springframework.beans.factory.BeanCreationException: Error
  creating bean with name 'org.apache.tika.config.TikaConfig#78d8c42f'
  defined in class path resource [META-INF/util-spring.xml]:
  Instantiation of bean failed; nested exception is
  org.springframework.beans.BeanInstantiationException: Failed to
  instantiate [org.apache.tika.config.TikaConfig]: Constructor threw
  exception; nested exception is java.lang.NoClassDefFoundError:
  org/apache/poi/poifs/filesystem/NPOIFSFileSystem&lt;br&gt;     at
  org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:313)&lt;br&gt;
      at
  org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)&lt;br&gt;
      at
  org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1475)&lt;br&gt;
      at
  org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1220)&lt;br&gt;
      at
  org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)&lt;br&gt;
      at
  org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)&lt;br&gt;
      at
  org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)&lt;br&gt;
      at
  org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)&lt;br&gt;
      at
  org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)&lt;br&gt;
      at
  org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)&lt;br&gt;
      at
  org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)&lt;br&gt;
      at
  org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)&lt;br&gt;
      at
  org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)&lt;br&gt;
      at
  org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:434)&lt;br&gt;
      at
  org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)&lt;br&gt;
      at
  org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)&lt;br&gt;
      at
  com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:294)&lt;br&gt;
      at
  org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4763)&lt;br&gt;
      at
  org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5232)&lt;br&gt;
      at
  org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)&lt;br&gt;
      at
  org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753)&lt;br&gt;
      at
  org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:727)&lt;br&gt;
      at
  org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695)&lt;br&gt;
      at
  org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:673)&lt;br&gt;
      at
  org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1881)&lt;br&gt;
      at
  java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)&lt;br&gt;
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)&lt;br&gt;   
   at
  java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)&lt;br&gt;
      at
  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)&lt;br&gt;
      at java.lang.Thread.run(Thread.java:748)&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;what should i do?&lt;/p&gt;
&lt;p&gt;or skip check the poi.jar and so i can delete poi.jar&lt;/p&gt;</summary>
    <dc:creator>du kun</dc:creator>
    <dc:date>2023-11-20T07:16:38Z</dc:date>
  </entry>
</feed>
