JCS-SX: Deploy your first application


Problem description: If you create a minimum ADF application and try deploy it directly on JCS-SX instance your deployment may fail with below error



2017-07-31 19:02:13 CDT: weblogic.application.ModuleException: weblogic.application.ModuleException:

at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1531)

at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:488)

at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)

at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)

at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)

at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)

at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)

at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)

at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)

at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:671)

at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)

at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:59)

at





Solution:

You need to create weblogic.xml file inside WEB-INF and make following entry in it



<?xml version = '1.0' encoding = 'windows-1252'?>

<weblogic-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

      xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd"

      xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app">

   



    <library-ref>

        <library-name>adf.oracle.domain.webapp</library-name>

    </library-ref>

    <library-ref>

        <library-name>jstl</library-name>

        <specification-version>1.2</specification-version>

    </library-ref>

    <library-ref>

        <library-name>jsf</library-name>

        <specification-version>1.2</specification-version>

        <exact-match>true</exact-match>

    </library-ref>





</weblogic-web-app>





Once done you can deploy your application.





Thats all.

0 Response to "JCS-SX: Deploy your first application"

Post a Comment