(un)deploy a single component in an .ear File in WLS 6.1

I deployed a .ear File, that contains 25 EJBs and 5 webapplications) in WLS
6.1. Everything is fine. Now i tried to undeploy a single EJB that is
contained in the .ear File. But when i mark this EJB in the WLS admin
console as undeployed, all other EJBs and WARs are marked as undeployed.
Is this becaue of the J2EE specification or is it a weblogic feature /
problem?
alexander

This issue is seen only with IBM JDK 1.6 (any SR) because, IBM packages the xerces version 2.9 as a part of $IBM_JDK_HOME/jre/lib/xml.jar.
I think/understand that, your application is also packaging a xerces impl jar(different version otherthan xerces version 2.9) in WEB-INF/lib of you application.
So, to make sure that the WebLogic Server uses the xerces impl jar that has been packaged, you are trying to use the filtered classloader in weblogic-application.xml
But the filtered classloader would not have any effect, since, the IBM JDK packaged xerces parsers would also be with the same package structure. So, I think you should try with setting the following in WEB-INF/weblogic.xml inside the <weblogic-web-app> tag.
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
I think this should work with WLS 11gR1PS2 (WLS 10.3.3).

Similar Messages

  • Deploying only one component of an EAR file

    Consider this situation. I have an EAR file which contains 3 war files,
    war1.war, war2.war, war3.war. There are situations where I want to deploy the EAR file but want to deploy only war1.war and dont want to deploy the other 2 wars. Is it possible to selectively deploy the contents of the EAR file? Any help is greatly appreciated. Thanks.

    Looks like one way to do this is not reference your WAR in your META-INF/application.xml
    Thanks.

  • 'weblogic.application.ModuleException:'while deploying the EAR file to WLS

    Hi
    i am trying to deploy the ADf11g app on to external WLS 10.3 server.
    My WLS is having the shared libraries .so i didn't include the liibraries in WAR.
    while deploying i am facing errors.
    My domain log:
    Nov 12, 2008 2:40:30 PM EST     J2EE     Warning     BEA-160195     The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application Dep2EARapplication1 is not versioned.
         Nov 12, 2008 2:40:30 PM EST     HTTP     Error     BEA-101371     There was a failure when processing annotations for application F:\oracleWls\user_projects\domains\sailu1base_domain\servers\AdminServer\tmp\_WL_user\Dep2EARapplication1\6e738n\Dep2webapp1.war. Please make sure that the annotations are valid. The error is org.apache.myfaces.trinidad.webapp.ResourceServlet
         Nov 12, 2008 2:40:30 PM EST     Deployer     Error     BEA-149265     Failure occurred in the execution of deployment request with ID '1226518830484' for task '4'. Error is: 'weblogic.application.ModuleException: Failed to load webapp: 'usrDep2Application1-ViewController-context-root'' weblogic.application.ModuleException: Failed to load webapp: 'usrDep2Application1-ViewController-context-root' at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:387) at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176) at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93) at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42) at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191) at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16) at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155) at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:197) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723) at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190) at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) java.lang.ClassNotFoundException: org.apache.myfaces.trinidad.webapp.ResourceServlet at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256) at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:176) at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:35) at weblogic.servlet.internal.WebAnnotationProcessorImpl.processServlets(WebAnnotationProcessorImpl.java:227) at weblogic.servlet.internal.WebAnnotationProcessorImpl.processJ2eeAnnotations(WebAnnotationProcessorImpl.java:211) at weblogic.servlet.internal.WebAnnotationProcessorImpl.processAnnotations(WebAnnotationProcessorImpl.java:107) at weblogic.servlet.internal.WebAppServletContext.processAnnotations(WebAppServletContext.java:1287) at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:412) at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:456) at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:414) at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:910) at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:364) at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176) at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93) at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42) at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191) at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16) at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155) at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:197) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723) at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190) at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
         Nov 12, 2008 2:40:30 PM EST     Deployer     Warning     BEA-149004     Failures were detected while initiating deploy task for application 'Dep2EARapplication1'.
         Nov 12, 2008 2:40:30 PM EST     Deployer     Warning     BEA-149078     Stack trace for message 149004 weblogic.application.ModuleException: Failed to load webapp: 'usrDep2Application1-ViewController-context-root' at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:387) at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176) at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93) at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42) at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191) at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16) at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155) at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:197) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723) at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190) at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) java.lang.ClassNotFoundException: org.apache.myfaces.trinidad.webapp.ResourceServlet at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256) at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:176) at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:35) at weblogic.servlet.internal.WebAnnotationProcessorImpl.processServlets(WebAnnotationProcessorImpl.java:227) at weblogic.servlet.internal.WebAnnotationProcessorImpl.processJ2eeAnnotations(WebAnnotationProcessorImpl.java:211) at weblogic.servlet.internal.WebAnnotationProcessorImpl.processAnnotations(WebAnnotationProcessorImpl.java:107) at weblogic.servlet.internal.WebAppServletContext.processAnnotations(WebAppServletContext.java:1287) at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:412) at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:456) at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:414) at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:910) at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:364) at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176) at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93) at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42) at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191) at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16) at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155) at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:197) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723) at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190) at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
         Nov 12, 2008 2:40:30 PM EST     Console     Error     BEA-240003     init>(WebAppServletContext.java:412) at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:456) at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:414) at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:910) at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:364)
         Nov 12, 2008 2:41:04 PM EST     netuix     Warning     BEA-423420     Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nfpb=true&_pageLabel=DiagnosticsViewDomainLogTablePage&DiagnosticsViewDomainLogTablePortlethandle=com.bea.console.handles.LogDispatchHandle%28%22AdminServer%3BDomainLog%22%29.
    Can anyone plz tell me why i am getting errors.
    what is the 'weblogic.application.ModuleException:' error.
    and the HTTP error.

    Hi,
    My EAR file size is about 25 MB.this size is becoz of libraries.so i decided to make a jar file of all libraries.and i installed that jar as library on wls10.3. so that my ear apps later refer this jar.by this no need to include the libraries in every EAR and also size of ear is reduced.
    In my weblogic-application.xml file i refer this jar using the <library-ref> tag.when i am trying to install ear file i am facing this weblogic.application.ModuleException: error as posted above .
    Can you tell me where i went wrong.
    Is the way i am doing is right or not.

  • Deploying junitee outside of the application ear file

    I have an application that is deployed within an ear file, and I have junitee tests
    within a war file, called test.war. I would like to not have to place the test.war
    within the ear file because the ear may be release code but I still want to test
    it using the junitee tests. Instead I would like to optionally add the test.war
    to the application context and not the ear file. How would I go about doing that?
    I tried to deploy the test.war from the weblogic console, and hand editing the
    config.xml, and adding the test.war as a module to the application.xml (within
    the ear file).
    In all cases when I try to then use classes within the ear file I get ClassNotFoundExceptions.
    Probably because Weblogic is not including the test.war as part of the same application.
    Thank in advance for any help.
    -Fazle

    I'd probably have 2 build targets, debug and production. Your debug
    target could include the unit test war file.
    -- Rob
    Fazle Khan wrote:
    I have an application that is deployed within an ear file, and I have junitee tests
    within a war file, called test.war. I would like to not have to place the test.war
    within the ear file because the ear may be release code but I still want to test
    it using the junitee tests. Instead I would like to optionally add the test.war
    to the application context and not the ear file. How would I go about doing that?
    I tried to deploy the test.war from the weblogic console, and hand editing the
    config.xml, and adding the test.war as a module to the application.xml (within
    the ear file).
    In all cases when I try to then use classes within the ear file I get ClassNotFoundExceptions.
    Probably because Weblogic is not including the test.war as part of the same application.
    Thank in advance for any help.
    -Fazle

  • Deployment plan - can be packing to ear file?

    Hi Lads,
    I successfully deployed application on Application Server 10g Release 3. I'm using hibernate then in deployment plan I had to unselect toplink libraries. I need distribute my application. Is possible to add deployment plan somewhere to ear archive and server will automatically use it during deployment or this file must be distributed separately? Or can be toplink turn off in different config file ex. orion-application.xml?
    Thanks for help
    Robert

    I've had similar issues related to XML libraries. Here's an example orion-application.xml file that removes the "oracle.xml" library:
    <orion-application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                       xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-application-10_0.xsd"
                       schema-major-version="10"
                       schema-minor-version="0">
        <imported-shared-libraries>
            <remove-inherited name="oracle.xml"/>
        </imported-shared-libraries>
    </orion-application>You should be able to do something similar for Toplink...

  • Intermittent 404 error after deploying EAR file

    I deployed my web application to an EAR file and deployed it to OAS 10.1.3 on linux. I deployed it to a separate OC4J container that I created (not home container). During the deployment, I specified an application name and context as usual and did not make any modifications to the deployment. After I deployed (and waited enough time for the application to be uncompressed), I get a 404 error when I access my application. I will then refresh my browser and then my application is accessible. This happens all the time. What am I doing wrong?
    Thanks in advance and please let me know if I need to provide any more detail.
    -Quoc

    We have one OAS instance with 3 containers. We're using OHS too. OHS is in the same OAS instance and no changes were done to mod_oc4j.conf file.
    Here's my mod_oc4j.conf:
    # Oracle iAS mod_oc4j configuration file: mod_oc4j.conf #
    LoadModule oc4j_module libexec/mod_oc4j.so
    <IfModule mod_oc4j.c>
    </IfModule>
    Here's opmn.xml:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <opmn xmlns="http://www.oracle.com/ias-instance">
    <log path="$ORACLE_HOME/opmn/logs/opmn.log" comp="internal;ons;pm" rotation-size="1500000"/>
    <debug path="$ORACLE_HOME/opmn/logs/opmn.dbg" comp="" rotation-size="1500000"/>
    <notification-server interface="ipv4">
    <port local="6100" remote="6202" request="6005"/>
    <ssl enabled="true" wallet-file="$ORACLE_HOME/opmn/conf/ssl.wlt/default"/>
    </notification-server>
    <process-manager>
    <process-modules>
    <module path="$ORACLE_HOME/opmn/lib/libopmnohs">
    <module-id id="OHS"/>
    </module>
    <module path="$ORACLE_HOME/opmn/lib/libopmnoc4j">
    <module-id id="OC4J"/>
    </module>
    <module path="$ORACLE_HOME/opmn/lib/libopmncustom">
    <module-id id="CUSTOM"/>
    </module>
    <module path="$ORACLE_HOME/opmn/lib/libopmniaspt">
    <module-id id="IASPT"/>
    </module>
    </process-modules>
    <ias-instance id="appserv.devportal.sraprod.com" name="appserv.devportal.sraprod.com">
    <environment>
    <variable id="TMP" value="/tmp"/>
    </environment>
    <module-data>
    <category id="start-parameters">
    <data id="routing-id" value="g_rt_id"/>
    </category>
    </module-data>
    <ias-component id="IASPT" status="disabled">
    <environment>
    <variable id="LD_LIBRARY_PATH" value="/oracle/appserv/lib" append="true"/>
    </environment>
    <process-type id="IASPT" module-id="IASPT" working-dir="/oracle/appserv/iaspt/bin">
    <port id="ajp" range="7501-7600"/>
    <process-set id="IASPT" numprocs="1"/>
    </process-type>
    </ias-component>
    <ias-component id="HTTP_Server">
    <process-type id="HTTP_Server" module-id="OHS">
    <module-data>
    <category id="start-parameters">
    <data id="start-mode" value="ssl-enabled"/>
    </category>
    </module-data>
    <process-set id="HTTP_Server" numprocs="1"/>
    </process-type>
    </ias-component>
    <ias-component id="default_group">
    <process-type id="home" module-id="OC4J" status="enabled">
    <module-data>
    <category id="start-parameters">
    <data id="java-options" value="-server -Djava.security.policy=$ORACLE_HOME/j2ee/home/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false -XX:MaxPermSize=128M -Xms512M -Xmx1024M -XX:AppendRatio=3"/>
    </category>
    <category id="stop-parameters">
    <data id="java-options" value="-Djava.security.policy=$ORACLE_HOME/j2ee/home/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false"/>
    </category>
    </module-data>
    <start timeout="600" retry="2"/>
    <stop timeout="120"/>
    <restart timeout="720" retry="2"/>
    <port id="default-web-site" range="12501-12600" protocol="ajp"/>
    <port id="rmi" range="12401-12500"/>
    <port id="jms" range="12601-12700"/>
    <port id="rmis" range="12701-12800"/>
    <process-set id="default_group" numprocs="1"/>
    </process-type>
    <process-type id="WRS_DEV" module-id="OC4J" status="enabled">
    <module-data>
    <category id="start-parameters">
    <data id="java-options" value="-server -Xmx512m -Xms128m -Djava.security.policy=$ORACLE_HOME/j2ee/WRS_DEV/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false -XX:MaxPermSize=128M -XX:AppendRatio=3"/>
    </category>
    <category id="stop-parameters">
    <data id="java-options" value="-Djava.security.policy=$ORACLE_HOME/j2ee/WRS_DEV/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false"/>
    </category>
    </module-data>
    <start timeout="600" retry="2"/>
    <stop timeout="120"/>
    <restart timeout="720" retry="2"/>
    <port id="default-web-site" range="12501-12600" protocol="ajp"/>
    <port id="rmi" range="12401-12500"/>
    <port id="rmis" range="12701-12800"/>
    <port id="jms" range="12601-12700"/>
    <process-set id="default_group" numprocs="1"/>
    </process-type>
    <process-type id="WRS_PROD" module-id="OC4J" status="enabled">
    <module-data>
    <category id="start-parameters">
    <data id="java-options" value="-server -Xmx128m -Xms64m -Djava.security.policy=$ORACLE_HOME/j2ee/WRS_PROD/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false"/>
    </category>
    <category id="stop-parameters">
    <data id="java-options" value="-Djava.security.policy=$ORACLE_HOME/j2ee/WRS_PROD/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false"/>
    </category>
    </module-data>
    <start timeout="600" retry="2"/>
    <stop timeout="120"/>
    <restart timeout="720" retry="2"/>
    <port id="default-web-site" range="12501-12600" protocol="ajp"/>
    <port id="rmi" range="12401-12500"/>
    <port id="rmis" range="12701-12800"/>
    <port id="jms" range="12601-12700"/>
    <process-set id="default_group" numprocs="1"/>
    </process-type>
    <process-type id="WRS_STAG" module-id="OC4J" status="enabled">
    <module-data>
    <category id="start-parameters">
    <data id="java-options" value="-server -Xmx512m -Xms128m -Djava.security.policy=$ORACLE_HOME/j2ee/WRS_STAG/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false -XX:MaxPermSize=128M -XX:AppendRatio=3"/>
    </category>
    <category id="stop-parameters">
    <data id="java-options" value="-Djava.security.policy=$ORACLE_HOME/j2ee/WRS_STAG/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false"/>
    </category>
    </module-data>
    <start timeout="600" retry="2"/>
    <stop timeout="120"/>
    <restart timeout="720" retry="2"/>
    <port id="default-web-site" range="12501-12600" protocol="ajp"/>
    <port id="rmi" range="12401-12500"/>
    <port id="rmis" range="12701-12800"/>
    <port id="jms" range="12601-12700"/>
    <process-set id="default_group" numprocs="1"/>
    </process-type>
    </ias-component>
    <ias-component id="ASG" status="enabled" id-matching="true">
    <process-type id="ASG" module-id="CUSTOM">
    <start timeout="600"/>
    <stop timeout="120"/>
    <process-set id="ASG" numprocs="1">
    <module-data>
    <category id="start-parameters">
    <data id="start-executable" value="/oracle/appserv/dsa/bin/dsaServer.sh"/>
    <data id="start-args" value="/oracle/appserv/dsa/dsa.conf"/>
    <data id="stop-executable" value="/oracle/appserv/dsa/bin/dsaShutdown.sh"/>
    </category>
    </module-data>
    </process-set>
    </process-type>
    </ias-component>
    </ias-instance>
    </process-manager>
    </opmn>
    Here's the mod_oc4j routing table dump:
    mod_oc4j Global Configuration
    hostname : devportal.sraprod.com
    local instance : appserv.devportal.sraprod.com
    select method : Round-Robin
    select affinity : None
    routing mode : Static-Dynamic
    routing ID : g_rt_id
    OC4J Dynamic Routing
    application : datatags
    context : /webapp
    process (Jgroup): 0, 1, 2
    application : default
    context : /jmsrouter, /j2ee, /.rmiTunnel
    process (Jgroup): 0, 1, 2, 3
    application : system
    context : /dmsoc4j, /JMXSoapAdapter
    process (Jgroup): 0, 1, 2, 3
    application : srawrs
    context : /srawrs_stage, /srawrs_dev
    process (Jgroup): 0, 2
    application : ascontrol
    context : /em
    process (Jgroup): 3
    OC4J Static Routing
    IASPT Process List
    OC4J Process List
    process,ias instance,host,port,status
    0 : appserv.devportal.sraprod.com, devportal.sraprod.com, 12502, ALIVE
    1 : appserv.devportal.sraprod.com, devportal.sraprod.com, 12503, ALIVE
    2 : appserv.devportal.sraprod.com, devportal.sraprod.com, 12504, ALIVE
    3 : appserv.devportal.sraprod.com, devportal.sraprod.com, 12501, ALIVE
    Thanks for your help!

  • Having trouble deploying .ear file

    I am having trouble deploying a .ear file in WLS 7.0. The only way that I have found to work every time is by following these steps:
    1. Shutdown the server (if it is running)
    2. Move the ear into the applications directory
    3. Change the extension of the ear file (to .old).
    4. Start WLS 7.0
    5. After startup completes, change the filename back to the .ear extension.
    Simply dragging the ear into the applications directory after startup works sometimes. Other times, the server does not do anything...it seems to not realize that the file was moved.
    Starting the server with the ear already in the applications directory (with the .ear extension) never works. In this case, a "javax.naming.NameNotFoundException" is thrown when trying to resolve the datasource name. Could this be a race condition?
    Any help is appreciated.

    Hi Steve,
    As a quick workaround, can you consider merging that 3rd party
    references into a simple, let's call it 3rdparty.jar, file. Then you
    will be able to overcome this line limit. If you use ANT, it can be
    made a part of the build process and can simplify future additions.
    Hope this helps,
    Regards,
    Slava Imeshev
    "Steve Ebersole" <[email protected]> wrote in message
    news:3e788ce9$[email protected]..
    >
    I am having trouble deploying an EAR file having an ejb module with amanifest
    Class-Path entry. It appears to be directly related to the length of thatClass-Path
    entry. No matter the length of the Class-Path entry, ejbc runs fine butthen
    the problem comes trying to upload the EAR through the console.
    First iteration was just skeletal code and the dependencies were minimal.I was
    able to get this uploaded and deployed correctly. For that EAR, the EJBjar file
    manifest's Class-Path entry had only 2 entries and was no where near the72-character
    line limit.
    Second iteration had some functionality and the dependencies were muchlarger.
    Again ejbc ran fine, but I got errors on upload when the console tries todeploy
    the EAR. The manifest Class-Path entry for that ejb version contained 16jar
    files which, because fo the 72 line limit, spread across 3 lines.
    The complaint I get on deployment is NoClassDefFound for a class that isin a
    jar file listed in the manifest classpath (it found it the first time).
    Is there a bug in WebLogic (6.1 sp3) where it cannot recognize manifestclasspath
    entries over a certain limit? I have seen postings about WebLogic'sissues with
    class loading from manifest classpath entries but thought they had allbeen fixed
    as of 6.1sp3.
    Thanks in advance for any help or suggestions.

  • Deploy Web-Application to Weblogic 8 without ear-file

    Ciao, I've created a connection to
    Weblogic but I just have a war-file I've to deploy. I tried to replace
    ear.file with war.file but it hasn't work.
    Could you help me? Thanks a lot!
    Here is the default:
    ${java} ${jvm.max.heap.size}
    -classpath ${weblogic.jar} weblogic.Deployer
    -adminurl http://${hostname}:${port}
    -user ${username} -password ${password}
    -debug -verbose -activate -upload
    -source ${ear.file} -name ${j2ee.app.name}

    Hi,
    JDeveloper automatically creates an EAR file when you try to deploy a WAR file. What errors are you getting?
    Also,
    - What version of JDev are you using?
    - Is your application jdk 1.4 and J2EE 1.3 compliant to deploy successfully on WebLogic 8.1?
    Thanks
    Prasanth

  • Deploy EAR file into WAS using command line

    hi,
       I have an EAR file and i want to deploy it into WAS using command line interface.
      I have seen the SDM_commandline.doc file in SDM directory ..it talks about deploying SDA's and SCA's :-
    >   sdm deploy file=<...>
    however it is not working for EAR files...is there any way to deploy EAR files directly or should I convert the EAR to SDA and then deploy using this command.
    thanks

    For NW Java releases prior to 7.1, an EAR file needs to be transformed into a SDA file, then it can be deployed. For later releases, an EAR file can be directly deployed.

  • WLST script to activate/decativate MDB in side an EAR file

    Hi
    we have an ear file deployed to a cluster and that ear file has got MDB s inside it.
    I need to disable and enable this MD while the EAR file is in active state.
    I am able to perform the task via console but I need to script it.
    the WLST recording of the actions shows nothing.
    and I am not able to browse through the deployment in the wlst interactive commands.
    any help?

    Hi,
    If you want to dynamicall make any Modifications in your Deployment Descriptors like "application.xml"..."weblogic.xml"...etc then you can use *"Plan.xml"* feature provided bu WebLogic....
    Example : http://jaysensharma.wordpress.com/2009/11/29/shared-library-with-plan-xml/
    Example : http://jaysensharma.wordpress.com/2009/12/16/updating-cookiename-using-plan-xml/
    Thanks
    Jay SenSharma

  • A general question concerning .EAR files?

    Hi All,
    My question is, what should be the file extension of the utility class that
    I will include in my ".ear" file? Should it be filename.jar or
    filename.war? The team that I am on has successfully been able to deploy a
    .ear file that only contains our entity and session beans. We would also
    like to "JAR" up our utility class, so that we may be to use the hot
    deployment feature of the application server and the removal of the
    enviroment variable where the utility classes are located.
    We are currently using the Ant utility to help us build our .ear file.
    When I give the utility file name a ".war" extension and then deploy the
    ".ear" file; the application server boots up successfully without throwing
    any exceptions. When I give the utility file name a ".jar" extension and
    then deploy the ".ear" file, the application server boots up successfully
    with exceptions concerning unable to locate one to several utility classes.
    Thank you in advance,
    Charles
    Charles Jean-Baptiste
    [email protected]

    It sounds like you are having a ClassLoader problem.
    The main advantage of deploying EJBs and WebApps in an ear file is that the
    ClassLoader for the webapp inherrits from the ClassLoader for the EJBs.
    This basicly means that the webapp can see the EJBs...when you put another
    util.jar file in the EAR file this will be in a different ClassLoader and
    not accesible by either the EJBs or the WebApp
    (and visa-versa)....to make this accesible you need to add the entry
    Class-Path: util.jar to the manifest file for the EJB.
    1)Create a text file newmanifest.txt with a one line entry of
    Class-Path: util.jar
    2) When you build the original EJB jar file do like this:
    jar cmf newmanifest.txt MyEJB.jar com META-INF
    -this will create the jar file MyEJB.jar adding directories com and META-INF
    and including the contents of newmanifest.txt in the manifest for the jar
    file.
    3) Build this all into the ear file.
    The EJB will now be able to see the util.jar and because the WebApp can see
    the same as the EJB it will also be able to see the util.jar.
    Gareth
    "Charles Jean-Baptiste" <[email protected]> wrote in message
    news:[email protected]...
    Hi All,
    My question is, what should be the file extension of the utility classthat
    I will include in my ".ear" file? Should it be filename.jar or
    filename.war? The team that I am on has successfully been able to deploya
    .ear file that only contains our entity and session beans. We would also
    like to "JAR" up our utility class, so that we may be to use the hot
    deployment feature of the application server and the removal of the
    enviroment variable where the utility classes are located.
    We are currently using the Ant utility to help us build our .ear file.
    When I give the utility file name a ".war" extension and then deploy the
    ".ear" file; the application server boots up successfully without throwing
    any exceptions. When I give the utility file name a ".jar" extension and
    then deploy the ".ear" file, the application server boots up successfully
    with exceptions concerning unable to locate one to several utilityclasses.
    >
    Thank you in advance,
    Charles
    Charles Jean-Baptiste
    [email protected]

  • Generated EAR file for Hcm Compensation

    We have Hcm Compensation JDeveloper environment. I tried to create EAR file. I cannot see EAR choice. I tried to create deployment profile. I can see EAR file is disabled.
    How to create EAR file?
    Thanks
    Gang Cai

    We tried to customize Hcm Compensation. We got EarHcmCompensation.ear from Unix and ported to local JDeveloper and weblogic.
    I right-clicked on my application -> deploy. I cannot see EAR option.
    I created another testing HRApplication(Not Hcm Compensation). I right-clicked on my application -> deploy. I can see EAR option.
    Thanks

  • Automating/scripting EAR file creation in WLS 6.1

    Has anyone ever automated/created a script to automate the creation of an EAR file in WLS 6.1 SP2 or SP3?
    TIA
    Scott

    I would compare the classpath settings on the 2 machines.
    NoClassDefFoundErrors often occur when you have a class in a parent
    loader (eg the classpath) that depends on a class only found in the
    child loader (eg the application).
    -- Rob
    Raju V wrote:
    Hi, I am trying to deploy an ear (WL6.1 on WIN2K). I am getting java.lang.NoClassDefFoundError:
    error. However we deploy the same ear or in another machine, the deployment works
    file.
    I have the following structure
    MyEjb.jar
    lib/MyUtils.jar
    META-INF/application.xml
    In MyEjb.jar, I have a manifest file with following info Manifest-Version: 1.0
    Created-By: 1.3.1_04 (Sun Microsystems Inc.) Class-Path: ./lib/MyUtils.jar.
    My question is which configuration/startup files should I coompare to find the
    diffrences between the machine that works and machine that doesn't work.
    If I run the application in exploaded version with MyUtils.jar in the weblogic
    class path (set in the startup script), every thing works fine.
    I modified the Class-Path in the manifest to lib/MyUtils.jar and then to ./lib/MyUtils
    jar with out any luck.
    I have two versions of WL in WIN2K machine that doesn't work (5.1 and 6.1). 5.1
    starts on port 7001 and 6.1 on 8001. However I have only 6.1 started and 5.1 is
    not running
    Any help will be greatly appreciated.
    Thanx Raju

  • Error while deploying ear-file to J2EE via NWDS/SDM

    Hi everybody,
    i have a problem deploying an ear-file. I was looking for similar cases in forums, but didn't find anything. My application is developed by jsp/servlets. The deployment aborts with following error-massage:
    Caught exception during application deployment from SAP J2EE Engine's deploy API:
    com.sap.engine.deploy.manager.DeployManagerException: com.sap.engine.services.deploy.container.DeploymentException: Cannot update archive file Docsndownloads.warcom.sap.engine.services.deploy.ear.exceptions.BaseIOException: Error during replacement of substitution values. Reason: java.io.IOException: Stream closed
    I don't know what the reason could be. The application is running on tomcat. And I can deploy other applications to j2ee with nwds/sdm.
    Maybe somebody had or has the same problem. Or somebody knows the answer for the problem. Please help, points will be regarded. Thanks in advance.
    best regards
    Lu

    Hi,
    I checked the log-files, but there are no helpful informations, but:
    07/04/23 12:08:04 -  Start updating EAR file...
    07/04/23 12:08:04 -  start-up mode is lazy
    07/04/23 12:08:20 -  com.sap.engine.deploy.manager.DeployManagerException: com.sap.engine.services.deploy.container.DeploymentException: Cannot update archive file Docsndownloads.war
                         com.sap.engine.services.deploy.ear.exceptions.BaseIOException: Error during replacement of substitution values. Reason:
                          java.io.IOException: Stream closed
    and
    Apr 23, 2007 12:08:20... Error: Aborted: development component 'Dokusunddownloads'/'sap.com'/'localhost'/'2007.04.23.12.07.47'/'0':
    Caught exception during application deployment from SAP J2EE Engine's deploy API:
    com.sap.engine.deploy.manager.DeployManagerException: com.sap.engine.services.deploy.container.DeploymentException: Cannot update archive file Docsndownloads.war
    com.sap.engine.services.deploy.ear.exceptions.BaseIOException: Error during replacement of substitution values. Reason:
    java.io.IOException: Stream closed
    thanks,
    Lu

  • Error while deploying ear file generated from weblogic to ocj4

    Hi All,
    I have an .ear file which has been generated from weblogic server.I tried to deploy it on ocj4 aby created a new project in eclipse and deploying it on ocj4.
    When I try to run my project it gives me an error:
    2008-12-15 19:13:54.811 NOTIFICATION J2EE JSP-0008 Unable to dispatch JSP Page : Exception:oracle.classloader.util.AnnotatedLinkageError: duplicate class definition: javax/xml/rpc/Service
         Invalid class: javax.xml.rpc.Service
         Loader: Test.web.TSOptyQGateWeb:0.0.0
         Code-Source: /C:/OC4J_10.1.3.4/j2ee/home/applications/Test/TSOptyQGateWeb/WEB-INF/lib/jaxrpc.jar
         Configuration: WEB-INF/lib/ directory in C:\OC4J_10.1.3.4\j2ee\home\applications\Test\TSOptyQGateWeb\WEB-INF\lib
         Dependent class: oracle.jsp.runtimev2.JspPageInstFacade$DeclaredAction
         Loader: oc4j:10.1.3
         Code-Source: /C:/OC4J_10.1.3.4/j2ee/home/lib/ojsp.jar
         Configuration: <code-source> in META-INF/boot.xml in C:\OC4J_10.1.3.4\j2ee\home\oc4j.jar
         The original class instance was defined in the shared-library oracle.ws.jaxrpc:1.1, and oc4j:10.1.3 does import that loader. This may be a search-order problem.
    Can anyone help??

    Hi,
    I checked the log-files, but there are no helpful informations, but:
    07/04/23 12:08:04 -  Start updating EAR file...
    07/04/23 12:08:04 -  start-up mode is lazy
    07/04/23 12:08:20 -  com.sap.engine.deploy.manager.DeployManagerException: com.sap.engine.services.deploy.container.DeploymentException: Cannot update archive file Docsndownloads.war
                         com.sap.engine.services.deploy.ear.exceptions.BaseIOException: Error during replacement of substitution values. Reason:
                          java.io.IOException: Stream closed
    and
    Apr 23, 2007 12:08:20... Error: Aborted: development component 'Dokusunddownloads'/'sap.com'/'localhost'/'2007.04.23.12.07.47'/'0':
    Caught exception during application deployment from SAP J2EE Engine's deploy API:
    com.sap.engine.deploy.manager.DeployManagerException: com.sap.engine.services.deploy.container.DeploymentException: Cannot update archive file Docsndownloads.war
    com.sap.engine.services.deploy.ear.exceptions.BaseIOException: Error during replacement of substitution values. Reason:
    java.io.IOException: Stream closed
    thanks,
    Lu

Maybe you are looking for