1 2 Previous Next 28 Replies Latest reply: Oct 21, 2012 7:37 PM by vladodias RSS

    War file deployment to Test env not working

    Tarak
      Hi All,

      i am using war file as scheduler for calling bpel process. Now i need to move the same war to test environment. For this i followed this site http://biemond.blogspot.ca/2009/04/using-weblogic-deployment-plan-to.html. But it is not working.

      even i update the generated deployment plan to weblogic console, but still this is not working.

      here is the my web.xml file
      <?xml version = '1.0' encoding = 'windows-1252'?>
      <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
               version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
        <description>Empty web.xml file for Web Application</description>
          <context-param>  
              <param-name>wsdlUrl</param-name>  
              <param-value>http://sasoah91.corp.gdglobal.ca:8001/soa-infra/services/TarakTest/TSStoRMSScheduler/tsstormsschedulerproject_client_ep?WSDL</param-value>  
           </context-param> 
        <servlet>
          <servlet-name>SOASchedulerServlet</servlet-name>
          <servlet-class>sample.oracle.otn.soascheduler.SOASchedulerServlet</servlet-class>
           <init-param>
            <param-name>cronExpr</param-name>
            <param-value>0 0,5,10,15,20,25,30,35,40,45,50,55 * * * ?</param-value>
          </init-param>
        </servlet>
        <servlet-mapping>
          <servlet-name>SOASchedulerServlet</servlet-name>
          <url-pattern>/soaschedulerservlet</url-pattern>
        </servlet-mapping>
        <welcome-file-list>
          <welcome-file>/soaschedulerservlet</welcome-file>
        </welcome-file-list>
      </web-app>
      My deployment plan is
      <?xml version='1.0' encoding='UTF-8'?>
      <deployment-plan xmlns="http://xmlns.oracle.com/weblogic/deployment-plan" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/deployment-plan http://xmlns.oracle.com/weblogic/deployment-plan/1.0/deployment-plan.xsd" global-variables="false">
        <application-name>TSSScheduler.war</application-name>
        <variable-definition>
        <!--  add the wsdl var   -->
          <variable>
              <name>wsdlUrl</name>
              <value>http://sasoah81.corp.gdglobal.ca:8001/soa-infra/services/TSStoRMS/TSStoRMSScheduler/tsstormsschedulerproject_client_ep?WSDL/</value>
           </variable>
          </variable-definition>
        <module-override>
          <module-name>TSSScheduler.war</module-name>
          <module-type>war</module-type>
          <module-descriptor external="false">
            <root-element>weblogic-web-app</root-element>
            <uri>WEB-INF/web.xml</uri>
                <variable-assignment>
               <name>wsdlUrl</name>
               <xpath>/web-app/context-param/[param-name="wsdlUrl"]/param-value</xpath>
               <operation>replace</operation>
             </variable-assignment>
            </module-descriptor>
        </module-override>
        <!--<config-root>/u01/textdata/SOATST/Tarak/TsstoRmsSchedulerProject/deploy</config-root>-->
       <config-root>/u01/textdata/SOATST/Tarak/deploymentplan</config-root>
      </deployment-plan>
      I ran below code
      export ORACLE_HOME="/u01/app/soadev/product/fmw11/middleware"
      echo "ORACLE_HOME=$ORACLE_HOME"
      ls -l $MW_HOME/wlserver_10.3/server/bin/setWLSEnv.sh
      . $MW_HOME/wlserver_10.3/server/bin/setWLSEnv.sh
      export JAVA_HOME="/usr/java/jdk1.6.0_24"
      export planname="TSSScheduler.xml"
      export warfile="/u01/textdata/SOATST/Tarak/TsstoRmsSchedulerProject/deploy/TSSScheduler.war"
      
      echo "---------------------------------------"
      echo "THE CLASSPATH=$CLASSPATH"
      echo "---------------------------------------"
      java weblogic.Deployer -adminurl t3://sasoah81.corp.gdglobal.ca:7001 -username weblogic -password Soatst_s132 -deploy -name TsstoRmsSchedulerProject -source $warfile -targets AdminServer -stage -plan $planname
      Can some one please let me know where i am going...

      Also can some one tell me any other way to change the endpoint in war file. this is very urgent so kindly request all to let me know how to go with it.

      Regards,
      Tarak.
        1 2 Previous Next