Jump to content
We've recently updated our Privacy Statement, available here ×
  • How to fix the installation problem with JasperReports Server 6.0 and Oracle WebLogic 12c


    akonkin
    • Features: JasperReports Server Version: v6.0.0 Product: JasperReports® Server

    Description:

    This problem is related to JasperReports Server v6.0 and Oracle WebLogic 12c.

    - all installation steps according to the recommendations in the chapter related to the installation of JasperReports Server 6.0 to WebLogic are done correctly.

    Please see the chapter JasperReports Server 6.0 Install Guide/CHAPTER 8 INSTALLING THE WAR FILE FOR WEBLOGIC

    - the inslallation fails on the step (Procedure for Installing the WAR File for WebLogic) Deploy JasperReports Server to WebLogic

    ...

    7. Review your choices and click Finish.

    After you click the Finish button, jasperserver-pro.war file should be uploaded to the Application Server, but instead of this after a while there appears the error window and the stack trace that you can see below:

    WebLogic12c_error_during_the_installation.png.c39fb81b95c113e31bbbe0f8ea4bd010.png

    Quoting the stack trace (it should help you to find this article via the search engine):

    Caused By:
    org.springframework.beans.BeanInstantiationException: Could not
    instantiate bean class [com.jaspersoft.ji.jaxrs.adhoc.MetadataService]:
    Constructor threw exception; nested exception is
    java.lang.NoSuchMethodError:
    org.codehaus.jackson.map.ObjectMapper.setSerializationInclusion(Lorg/codehaus/jackson/map/annotate/JsonSerialize$Inclusion;)Lorg/codehaus/jackson/map/ObjectMapper;
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:162)
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:990)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:943)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
    Truncated. see log file for complete stacktrace
    Caused By: java.lang.NoSuchMethodError:
    org.codehaus.jackson.map.ObjectMapper.setSerializationInclusion(Lorg/codehaus/jackson/map/annotate/JsonSerialize$Inclusion;)Lorg/codehaus/jackson/map/ObjectMapper;
    at com.jaspersoft.ji.adhoc.service.SessionAttributeManager.<init>(SessionAttributeManager.java:65)
    at com.jaspersoft.ji.adhoc.service.SessionAttributeManager.<clinit>(SessionAttributeManager.java:48)
    at com.jaspersoft.ji.jaxrs.adhoc.MetadataService.<init>(MetadataService.java:97)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    

    To workaround this problem

    • Unpack jasperserver-pro.war archive.

    • Open the configuration file that I quote below in your favorite editor:

      jasperserver-proWEB-INFweblogic.xml

    • Find the part that I quote below:

      <!-- START: added for weblogic 12-->
      <package-name>org.antlr.runtime.*</package-name>
      <package-name>com.sun.jersey.*</package-name>
      <!-- END: added for weblogic 12-->
      
    • Update its definition, add to this definition 2 lines.

      <package-name>org.codehaus.*</package-name>
      <package-name>com.google.*</package-name>
      

      After update the configuration file should look like the sample that I quote below:

      <!-- START: added for weblogic 12-->
      <package-name>org.antlr.runtime.*</package-name>
      <package-name>com.sun.jersey.*</package-name>
      <package-name>org.codehaus.*</package-name>
      <package-name>com.google.*</package-name>
      <!-- END: added for weblogic 12-->
      
    • Save configuration file

    • Repackage jasperserver-pro.war archive

    I have attached a weblogic.xml to the article.

    After the changes above you should repeat the deployment step.

    deployment_with_corrected_weblogic_xml_file.png.85052d9749178e35b91eb8a716ee35ae.png

    The steps above should help you to fix this problem.

    WebLogic12c_error_during_the_installation.png.9f0053897505fa216e07aa94c6a57238.png

    deployment_with_corrected_weblogic_xml_file.png.27eb65081e204daa19146a734e965a11.png

    weblogic.xml


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...