exploded deployment issue - Weblogic

This is a discussion on exploded deployment issue - Weblogic ; Hi, I'm running weblogic 8.1 with .ear deployment file (it works fine) But I think to convert it to exploded deployment and face some problem during the deployment (see ERROR_LOG) below. based on instruction found in this documentation: http://e-docs.bea.com/wls/docs81/dep...w.html#1036326 I ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: exploded deployment issue

  1. exploded deployment issue

    Hi,

    I'm running weblogic 8.1 with .ear deployment file (it works fine)
    But I think to convert it to exploded deployment and face some problem
    during the deployment (see ERROR_LOG) below.

    based on instruction found in this documentation:
    http://e-docs.bea.com/wls/docs81/dep...w.html#1036326

    I have extracted my uob.ear file and they are:
    -uob.war
    -uobEjb.jar

    Here are my directories:
    1)%WLSHOME%\server\bin\applications\uob\META-INF
    this has application.xml file

    2)%WLSHOME%\server\bin\applications\uob\uob.war
    this has the complete *.war jsp files + \WEB_INFO + \lib

    3)%WLSHOME%\server\bin\applications\uob\uobEjb.jar
    this contains the ejb classes + \META-INF\ejb-jar.xml +
    \META-INF\weblogic-ejb-jar.xml

    my application.xml is straight forward:
    -------------------------------

    UOB FX
    UOB Online Forex Trading


    uob.war
    uob



    uobEjb.jar


    -------------------------------

    Can anyone help me to solve this issue?

    thanks.



    ---------------------------
    ERROR LOG:



    <[ServletContext(id=366 1289,name=console,context-path=/console)] actions:
    init>
    looking f or web services files: can't read WEB-INF/web-services.xml
    java.io.FileNotFoundException:
    C:\bea\weblogic81\server\bin\applications\uob\uob. war (Access is denied)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.(FileInputStream.java:103)
    at
    weblogic.utils.jars.BaseExplodedJarFile.getInputSt ream(BaseExplodedJa
    rFile.java:43)
    at
    weblogic.j2ee.dd.WebModuleDescriptor.isWebService( WebModuleDescriptor
    ..java:149)
    at
    weblogic.j2ee.dd.WebModuleDescriptor.getAdminMBean Type(WebModuleDescr
    iptor.java:125)
    at
    weblogic.j2ee.J2EEApplicationContainerFactory.crea teMBeansForEar(J2EE
    ApplicationContainerFactory.java:581)
    at
    weblogic.j2ee.J2EEApplicationContainerFactory.init ializeDeployment(J2
    EEApplicationContainerFactory.java:481)
    at
    weblogic.management.deploy.DeployerRuntime.unprote ctedActivate(Deploy
    erRuntime.java:830)
    at
    weblogic.management.deploy.DeployerRuntime.access$ 000(DeployerRuntime
    ..java:64)
    at
    weblogic.management.deploy.DeployerRuntime$1.run(D eployerRuntime.java
    :1499)
    at
    weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(Authenticate
    dSubject.java:317)
    at
    weblogic.security.service.SecurityManager.runAs(Se curityManager.java:
    97)
    at
    weblogic.management.deploy.DeployerRuntime.checkAn dPerformDeployerAct
    ions(DeployerRuntime.java:1490)
    at
    weblogic.management.deploy.DeployerRuntime.activat e(DeployerRuntime.j
    ava:187)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
    java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at
    weblogic.management.internal.DynamicMBeanImpl.invo keLocally(DynamicMB
    eanImpl.java:747)
    at
    weblogic.management.internal.DynamicMBeanImpl.invo ke(DynamicMBeanImpl
    ..java:726)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBea nServerImpl.java:15
    57)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBea nServerImpl.java:15
    25)
    at
    weblogic.management.internal.RemoteMBeanServerImpl .invoke(RemoteMBean
    ServerImpl.java:763)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBe anProxy.java:946)
    at
    weblogic.management.internal.MBeanProxy.invokeForC achingStub(MBeanPro
    xy.java:481)
    at
    weblogic.management.runtime.DeployerRuntimeMBean_S tub.activate(Deploy
    erRuntimeMBean_Stub.java:1064)
    at
    weblogic.management.console.actions.mbean.Applicat ionDeployAction.pre
    Perform(ApplicationDeployAction.java:177)
    at
    weblogic.management.console.actions.mbean.DoMBeanW izardAction.perform
    (DoMBeanWizardAction.java:215)
    at
    weblogic.management.console.actions.internal.Actio nServlet.doAction(A
    ctionServlet.java:173)
    at
    weblogic.management.console.actions.internal.Actio nServlet.doPost(Act
    ionServlet.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
    at
    weblogic.servlet.internal.ServletStubImpl$ServletI nvocationAction.run
    (ServletStubImpl.java:1053)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeSe rvlet(ServletStubIm
    pl.java:387)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeSe rvlet(ServletStubIm
    pl.java:305)
    at
    weblogic.servlet.internal.WebAppServletContext$Ser vletInvocationActio
    n.run(WebAppServletContext.java:6291)
    at
    weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(Authenticate
    dSubject.java:317)
    at
    weblogic.security.service.SecurityManager.runAs(Se curityManager.java:
    97)
    at
    weblogic.servlet.internal.WebAppServletContext.inv okeServlet(WebAppSe
    rvletContext.java:3575)
    at
    weblogic.servlet.internal.ServletRequestImpl.execu te(ServletRequestIm
    pl.java:2573)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThrea d.java:178)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.ja va:151)
    >

    invocat
    ion while executing action activate on
    mydomain:Location=myserver,Name=DeployerR
    untime,ServerRuntime=myserver,Type=DeployerRuntime MBean instance failed.
    The me
    thod activate with signature [java.lang.String, java.lang.String,
    java.lang.Stri
    ng, weblogic.management.deploy.DeploymentData, java.lang.String, boolean]
    was in
    voked with parameters as [C:\bea\weblogic81\server\bin\applications\uob,
    uob, no
    stage, Delete Files:false
    Timeout :3600000
    Targets:
    myserver: (Modules: null)

    Files:
    null
    , null, false].
    java.lang.NullPointerException
    at
    weblogic.j2ee.dd.WebModuleDescriptor.isWebService( WebModuleDescriptor
    ..java:156)
    at
    weblogic.j2ee.dd.WebModuleDescriptor.getAdminMBean Type(WebModuleDescr
    iptor.java:125)
    at
    weblogic.j2ee.J2EEApplicationContainerFactory.crea teMBeansForEar(J2EE
    ApplicationContainerFactory.java:581)
    at
    weblogic.j2ee.J2EEApplicationContainerFactory.init ializeDeployment(J2
    EEApplicationContainerFactory.java:481)
    at
    weblogic.management.deploy.DeployerRuntime.unprote ctedActivate(Deploy
    erRuntime.java:830)
    at
    weblogic.management.deploy.DeployerRuntime.access$ 000(DeployerRuntime
    ..java:64)
    at
    weblogic.management.deploy.DeployerRuntime$1.run(D eployerRuntime.java
    :1499)
    at
    weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(Authenticate
    dSubject.java:317)
    at
    weblogic.security.service.SecurityManager.runAs(Se curityManager.java:
    97)
    at
    weblogic.management.deploy.DeployerRuntime.checkAn dPerformDeployerAct
    ions(DeployerRuntime.java:1490)
    at
    weblogic.management.deploy.DeployerRuntime.activat e(DeployerRuntime.j
    ava:187)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
    java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at
    weblogic.management.internal.DynamicMBeanImpl.invo keLocally(DynamicMB
    eanImpl.java:747)
    at
    weblogic.management.internal.DynamicMBeanImpl.invo ke(DynamicMBeanImpl
    ..java:726)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBea nServerImpl.java:15
    57)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBea nServerImpl.java:15
    25)
    at
    weblogic.management.internal.RemoteMBeanServerImpl .invoke(RemoteMBean
    ServerImpl.java:763)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBe anProxy.java:946)
    at
    weblogic.management.internal.MBeanProxy.invokeForC achingStub(MBeanPro
    xy.java:481)
    at
    weblogic.management.runtime.DeployerRuntimeMBean_S tub.activate(Deploy
    erRuntimeMBean_Stub.java:1064)
    at
    weblogic.management.console.actions.mbean.Applicat ionDeployAction.pre
    Perform(ApplicationDeployAction.java:177)
    at
    weblogic.management.console.actions.mbean.DoMBeanW izardAction.perform
    (DoMBeanWizardAction.java:215)
    at
    weblogic.management.console.actions.internal.Actio nServlet.doAction(A
    ctionServlet.java:173)
    at
    weblogic.management.console.actions.internal.Actio nServlet.doPost(Act
    ionServlet.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
    at
    weblogic.servlet.internal.ServletStubImpl$ServletI nvocationAction.run
    (ServletStubImpl.java:1053)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeSe rvlet(ServletStubIm
    pl.java:387)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeSe rvlet(ServletStubIm
    pl.java:305)
    at
    weblogic.servlet.internal.WebAppServletContext$Ser vletInvocationActio
    n.run(WebAppServletContext.java:6291)
    at
    weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(Authenticate
    dSubject.java:317)
    at
    weblogic.security.service.SecurityManager.runAs(Se curityManager.java:
    97)
    at
    weblogic.servlet.internal.WebAppServletContext.inv okeServlet(WebAppSe
    rvletContext.java:3575)
    at
    weblogic.servlet.internal.ServletRequestImpl.execu te(ServletRequestIm
    pl.java:2573)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThrea d.java:178)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.ja va:151)
    >


    anges for the domain have been saved to the repository.>






  2. Re: exploded deployment issue

    First off, if you're in development, I'd strongly recommend you have a
    look at:

    http://e-docs.bea.com/wls/docs81/pro....html#SplitDir
    http://e-docs.bea.com/wls/docs81/pro...litDirAntTasks

    You see an access denied error on the WAR file, but it's not clear to me
    why reading is failing.

    Does it work if you restart the server? What about if you explode the
    war and jar files as well?

    Finally, you might consider moving your application out of the
    applications directory and deploying with weblogic.Deployer. That's
    generally what we recommend these days.

    -- Rob

    Harris wrote:
    > Hi,
    >
    > I'm running weblogic 8.1 with .ear deployment file (it works fine)
    > But I think to convert it to exploded deployment and face some problem
    > during the deployment (see ERROR_LOG) below.
    >
    > based on instruction found in this documentation:
    > http://e-docs.bea.com/wls/docs81/dep...w.html#1036326
    >
    > I have extracted my uob.ear file and they are:
    > -uob.war
    > -uobEjb.jar
    >
    > Here are my directories:
    > 1)%WLSHOME%\server\bin\applications\uob\META-INF
    > this has application.xml file
    >
    > 2)%WLSHOME%\server\bin\applications\uob\uob.war
    > this has the complete *.war jsp files + \WEB_INFO + \lib
    >
    > 3)%WLSHOME%\server\bin\applications\uob\uobEjb.jar
    > this contains the ejb classes + \META-INF\ejb-jar.xml +
    > \META-INF\weblogic-ejb-jar.xml
    >
    > my application.xml is straight forward:
    > -------------------------------
    >
    > UOB FX
    > UOB Online Forex Trading
    >
    >
    > uob.war
    > uob
    >

    >

    >
    > uobEjb.jar
    >

    >

    > -------------------------------
    >
    > Can anyone help me to solve this issue?
    >
    > thanks.
    >
    >
    >
    > ---------------------------
    > ERROR LOG:
    >
    >
    >
    > <[ServletContext(id=366 1289,name=console,context-path=/console)] actions:
    > init>
    > > looking f or web services files: can't read WEB-INF/web-services.xml
    > java.io.FileNotFoundException:
    > C:\bea\weblogic81\server\bin\applications\uob\uob. war (Access is denied)
    > at java.io.FileInputStream.open(Native Method)
    > at java.io.FileInputStream.(FileInputStream.java:103)
    > at
    > weblogic.utils.jars.BaseExplodedJarFile.getInputSt ream(BaseExplodedJa
    > rFile.java:43)
    > at
    > weblogic.j2ee.dd.WebModuleDescriptor.isWebService( WebModuleDescriptor
    > .java:149)
    > at
    > weblogic.j2ee.dd.WebModuleDescriptor.getAdminMBean Type(WebModuleDescr
    > iptor.java:125)
    > at
    > weblogic.j2ee.J2EEApplicationContainerFactory.crea teMBeansForEar(J2EE
    > ApplicationContainerFactory.java:581)
    > at
    > weblogic.j2ee.J2EEApplicationContainerFactory.init ializeDeployment(J2
    > EEApplicationContainerFactory.java:481)
    > at
    > weblogic.management.deploy.DeployerRuntime.unprote ctedActivate(Deploy
    > erRuntime.java:830)
    > at
    > weblogic.management.deploy.DeployerRuntime.access$ 000(DeployerRuntime
    > .java:64)
    > at
    > weblogic.management.deploy.DeployerRuntime$1.run(D eployerRuntime.java
    > :1499)
    > at
    > weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(Authenticate
    > dSubject.java:317)
    > at
    > weblogic.security.service.SecurityManager.runAs(Se curityManager.java:
    > 97)
    > at
    > weblogic.management.deploy.DeployerRuntime.checkAn dPerformDeployerAct
    > ions(DeployerRuntime.java:1490)
    > at
    > weblogic.management.deploy.DeployerRuntime.activat e(DeployerRuntime.j
    > ava:187)
    > at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    > at
    > sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
    > java:39)
    > at
    > sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
    > sorImpl.java:25)
    > at java.lang.reflect.Method.invoke(Method.java:324)
    > at
    > weblogic.management.internal.DynamicMBeanImpl.invo keLocally(DynamicMB
    > eanImpl.java:747)
    > at
    > weblogic.management.internal.DynamicMBeanImpl.invo ke(DynamicMBeanImpl
    > .java:726)
    > at
    > com.sun.management.jmx.MBeanServerImpl.invoke(MBea nServerImpl.java:15
    > 57)
    > at
    > com.sun.management.jmx.MBeanServerImpl.invoke(MBea nServerImpl.java:15
    > 25)
    > at
    > weblogic.management.internal.RemoteMBeanServerImpl .invoke(RemoteMBean
    > ServerImpl.java:763)
    > at
    > weblogic.management.internal.MBeanProxy.invoke(MBe anProxy.java:946)
    > at
    > weblogic.management.internal.MBeanProxy.invokeForC achingStub(MBeanPro
    > xy.java:481)
    > at
    > weblogic.management.runtime.DeployerRuntimeMBean_S tub.activate(Deploy
    > erRuntimeMBean_Stub.java:1064)
    > at
    > weblogic.management.console.actions.mbean.Applicat ionDeployAction.pre
    > Perform(ApplicationDeployAction.java:177)
    > at
    > weblogic.management.console.actions.mbean.DoMBeanW izardAction.perform
    > (DoMBeanWizardAction.java:215)
    > at
    > weblogic.management.console.actions.internal.Actio nServlet.doAction(A
    > ctionServlet.java:173)
    > at
    > weblogic.management.console.actions.internal.Actio nServlet.doPost(Act
    > ionServlet.java:85)
    > at javax.servlet.http.HttpServlet.service(HttpServlet .java:760)
    > at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
    > at
    > weblogic.servlet.internal.ServletStubImpl$ServletI nvocationAction.run
    > (ServletStubImpl.java:1053)
    > at
    > weblogic.servlet.internal.ServletStubImpl.invokeSe rvlet(ServletStubIm
    > pl.java:387)
    > at
    > weblogic.servlet.internal.ServletStubImpl.invokeSe rvlet(ServletStubIm
    > pl.java:305)
    > at
    > weblogic.servlet.internal.WebAppServletContext$Ser vletInvocationActio
    > n.run(WebAppServletContext.java:6291)
    > at
    > weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(Authenticate
    > dSubject.java:317)
    > at
    > weblogic.security.service.SecurityManager.runAs(Se curityManager.java:
    > 97)
    > at
    > weblogic.servlet.internal.WebAppServletContext.inv okeServlet(WebAppSe
    > rvletContext.java:3575)
    > at
    > weblogic.servlet.internal.ServletRequestImpl.execu te(ServletRequestIm
    > pl.java:2573)
    > at weblogic.kernel.ExecuteThread.execute(ExecuteThrea d.java:178)
    > at weblogic.kernel.ExecuteThread.run(ExecuteThread.ja va:151)
    >
    > > invocat
    > ion while executing action activate on
    > mydomain:Location=myserver,Name=DeployerR
    > untime,ServerRuntime=myserver,Type=DeployerRuntime MBean instance failed.
    > The me
    > thod activate with signature [java.lang.String, java.lang.String,
    > java.lang.Stri
    > ng, weblogic.management.deploy.DeploymentData, java.lang.String, boolean]
    > was in
    > voked with parameters as [C:\bea\weblogic81\server\bin\applications\uob,
    > uob, no
    > stage, Delete Files:false
    > Timeout :3600000
    > Targets:
    > myserver: (Modules: null)
    >
    > Files:
    > null
    > , null, false].
    > java.lang.NullPointerException
    > at
    > weblogic.j2ee.dd.WebModuleDescriptor.isWebService( WebModuleDescriptor
    > .java:156)
    > at
    > weblogic.j2ee.dd.WebModuleDescriptor.getAdminMBean Type(WebModuleDescr
    > iptor.java:125)
    > at
    > weblogic.j2ee.J2EEApplicationContainerFactory.crea teMBeansForEar(J2EE
    > ApplicationContainerFactory.java:581)
    > at
    > weblogic.j2ee.J2EEApplicationContainerFactory.init ializeDeployment(J2
    > EEApplicationContainerFactory.java:481)
    > at
    > weblogic.management.deploy.DeployerRuntime.unprote ctedActivate(Deploy
    > erRuntime.java:830)
    > at
    > weblogic.management.deploy.DeployerRuntime.access$ 000(DeployerRuntime
    > .java:64)
    > at
    > weblogic.management.deploy.DeployerRuntime$1.run(D eployerRuntime.java
    > :1499)
    > at
    > weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(Authenticate
    > dSubject.java:317)
    > at
    > weblogic.security.service.SecurityManager.runAs(Se curityManager.java:
    > 97)
    > at
    > weblogic.management.deploy.DeployerRuntime.checkAn dPerformDeployerAct
    > ions(DeployerRuntime.java:1490)
    > at
    > weblogic.management.deploy.DeployerRuntime.activat e(DeployerRuntime.j
    > ava:187)
    > at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    > at
    > sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
    > java:39)
    > at
    > sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
    > sorImpl.java:25)
    > at java.lang.reflect.Method.invoke(Method.java:324)
    > at
    > weblogic.management.internal.DynamicMBeanImpl.invo keLocally(DynamicMB
    > eanImpl.java:747)
    > at
    > weblogic.management.internal.DynamicMBeanImpl.invo ke(DynamicMBeanImpl
    > .java:726)
    > at
    > com.sun.management.jmx.MBeanServerImpl.invoke(MBea nServerImpl.java:15
    > 57)
    > at
    > com.sun.management.jmx.MBeanServerImpl.invoke(MBea nServerImpl.java:15
    > 25)
    > at
    > weblogic.management.internal.RemoteMBeanServerImpl .invoke(RemoteMBean
    > ServerImpl.java:763)
    > at
    > weblogic.management.internal.MBeanProxy.invoke(MBe anProxy.java:946)
    > at
    > weblogic.management.internal.MBeanProxy.invokeForC achingStub(MBeanPro
    > xy.java:481)
    > at
    > weblogic.management.runtime.DeployerRuntimeMBean_S tub.activate(Deploy
    > erRuntimeMBean_Stub.java:1064)
    > at
    > weblogic.management.console.actions.mbean.Applicat ionDeployAction.pre
    > Perform(ApplicationDeployAction.java:177)
    > at
    > weblogic.management.console.actions.mbean.DoMBeanW izardAction.perform
    > (DoMBeanWizardAction.java:215)
    > at
    > weblogic.management.console.actions.internal.Actio nServlet.doAction(A
    > ctionServlet.java:173)
    > at
    > weblogic.management.console.actions.internal.Actio nServlet.doPost(Act
    > ionServlet.java:85)
    > at javax.servlet.http.HttpServlet.service(HttpServlet .java:760)
    > at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
    > at
    > weblogic.servlet.internal.ServletStubImpl$ServletI nvocationAction.run
    > (ServletStubImpl.java:1053)
    > at
    > weblogic.servlet.internal.ServletStubImpl.invokeSe rvlet(ServletStubIm
    > pl.java:387)
    > at
    > weblogic.servlet.internal.ServletStubImpl.invokeSe rvlet(ServletStubIm
    > pl.java:305)
    > at
    > weblogic.servlet.internal.WebAppServletContext$Ser vletInvocationActio
    > n.run(WebAppServletContext.java:6291)
    > at
    > weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(Authenticate
    > dSubject.java:317)
    > at
    > weblogic.security.service.SecurityManager.runAs(Se curityManager.java:
    > 97)
    > at
    > weblogic.servlet.internal.WebAppServletContext.inv okeServlet(WebAppSe
    > rvletContext.java:3575)
    > at
    > weblogic.servlet.internal.ServletRequestImpl.execu te(ServletRequestIm
    > pl.java:2573)
    > at weblogic.kernel.ExecuteThread.execute(ExecuteThrea d.java:178)
    > at weblogic.kernel.ExecuteThread.run(ExecuteThread.ja va:151)
    >
    >
    > > anges for the domain have been saved to the repository.>
    >
    >
    >
    >
    >



+ Reply to Thread