Jump to content
We've recently updated our Privacy Statement, available here ×
  • Weblogic deployment of WAR file errors with "Unable to access the selected application. Marshaller failed"


    vchiem
    • Version: v8.0.0 Product: JasperReports® Server

    Issue:

    We are trying to deploy TIBCO JasperReports® Server v8.0.0 application on WebLogic.

    After we have created the datasource connection and trying to select the 'jasperserver-pro' for deployment by selecting the WAR file we have observed the below error on the screen:

    "Unable to access the selected application. Unmarshaller failed"

     


    Solution:

    The adminserver.log captured the error occurring with reference to the jasperserver-pro.war/WEB-INF/web.xml:

    <BEA-2156200> <Unable to load descriptor /home/oracle/middleware/user_projects/domains/base_domain/servers/AdminServer/tmp/.appmergegen_1648446766443_jasperserver-pro.war/WEB-INF/web.xml of module jasperserver-pro.war. The error is weblogic.descriptor.DescriptorException: Unmarshaller failed

    Looking further into the error stack, it generated a cause given:

    Caused by: com.bea.xml.XmlException: weblogic.descriptor.BeanAlreadyExistsException: Bean already exists: "weblogic.j2ee.descriptor.FilterMappingBeanImpl@1a913221(/FilterMappings[[CompoundKey: SessionXssNonceSetterFilter[CompoundKey: ][CompoundKey: /*]]])".

     

    Following this similar post :

    https://www.techpaste.com/2012/10/failed-deploy-application-due-weblogic-descriptor-beanalreadyexistsexception-bean-exists-weblogic/

    There could be a duplicate entry for SessionXssNonceSetterFilter in the FilterMappings of the web.xml.

    The default v8.0.0 web.xml does contain a duplicate filter mapping at lines 305 and 309:

    <filter-mapping>
    <filter-name>SessionXssNonceSetterFilter</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>SessionXssNonceSetterFilter</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>

     

    However, for Weblogic deployments the below step in the TIBCO JasperReports® Server v8.0.0 Installation guide needs to be followed because it will replace the web.xml with the web-version24.xml which does not have duplicate entries :

    23. Replace the default web.xml file with the following commands:
    cd <js-install-dir>/jasperserver-pro/WEB-INF
    mv ./web-version24.xml ./web.xml

     


    User Feedback

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...