Redeploy a war in cluster

          I have cluster of two managed servers.
          1. machine A run Admin Server.
          2. Machine MS1 run ManagedServer 1.
          3. Machine MS2 run ManagedServer 2.
          My managed servers are running in production mode.
          When i redeploy a war file, I do place war file on MS1 and MS2 (At appropriate
          place) then i rebounce ManagedServer1 andManagedServer2 one after another.
          Now my question, Do i need to rebounce Admin server also?
          Thanks.
          Rahul
          

hi ziku,
I am facing the same problem here and the difference is I am using Net Beans IDE 4.1.
It compiles and deplioys fine also .. but while running it throws an internal server error, in the init method of the servlet.... says
HTTP 500 Internal server error
class BonusCalculatorHome not found.
Did u come across any solutins for this ... is this anything to do with the JNDI stuff. From
net beans IDE there is no way I can mention any JNDI name... this is the code snippet for my Servlet's init method..
protected BonusCalculatorRemoteHome bonusCalculatorRemoteHome;
public void init(ServletConfig config) throws ServletException{
System.out.println("Servlet Init");
try{
Context context = new InitialContext();
Object homeObject = context.lookup("BonusCalculatorRemoteHome");
bonusCalculatorRemoteHome = (BonusCalculatorRemoteHome)PortableRemoteObject.narrow(homeObject,
BonusCalculatorRemoteHome.class);
catch(Exception e){
e.printStackTrace();
throw new ServletException("BonusCalculatorRemoteHome could not be created due to : "+
e.getMessage());
It goes to the catch block and throws exception there....
Any ideas ......

Similar Messages

  • JSP is not updated after redeploying new war file

    Hi
    I have a simple code change in JSP in a war file. When I redeploy the war file, I do not see modified JSP. Very strange.
    I am using Weblogic 8.1 and copying new war file under Admin/upload folder.
    Thank you
    RM

    Here are the steps:
    1. Modify JSP
    2. Run ant to create new war file
    3. Copy war file to Weblogic's Admin/upload/web_module_name folder
    Redeploy Application from console or restarting admin and appserver does not seem to unjar modified war file into Admin/upload and Stage folders. Can someone tell me how to force weblogic to take this new war file to deploy into Stage area?

  • Failed to redeploy cardcath.war with error 256.

    The last time there was a code promotion for an application I was working on, an
    email with the following error message was sent:
    Failed to redeploy cardcath.war with error 256.
    Can anyone give me some information on 'error 256'? I need to find out why the
    application 'failed to redeploy'.

    How did you create your datasource, can you post the content, without passwords of course.
    Greetings.

  • Configuring WAR-Scoped Cluster Nodes Error

    I did a test following the guide: http://download.oracle.com/docs/cd/E15357_01/coh.360/e15829/cweb_wls.htm#BABCDJGC
    2.2.5.3 Configuring WAR-Scoped Cluster Nodes
    i deploy coherece.jar and active-cache.jar, the following errors occurs at weblogic console
    "Issues were encountered while parsing this deployment to determine module type. Assuming this is a library deployment."
    but I can deploy them successfuly and ignore errors.
    but then I deploy the test war app, deployment will be failed with following errors:
    Caused By: weblogic.management.DeploymentException: Error: Unresolved Webapp Lib
    rary references for "ServletContext@1391083548[app:CoherenceWeb module:Coherence
    Web.war path:/CoherenceWeb spec-version:2.5]", defined in weblogic.xml [Extensio
    n-Name: coherence, exact-match: false], [Extension-Name: active-cache, exact-mat
    ch: false]
    My question is how to fix it?

    Unfortunately, a WAR cannot refer a jar deployed as a share library in WebLogic. This is a limitation that will hopefully be fixed in future versions of WebLogic.
    For no you will have to either package your application as an EAR, or bundle the coherence.jar inside your WAR under WEB-INF/lib/.
    Hope that helps.
    Regards,
    Torkel

  • Redeploying a war file in tomcat 6.0.16 Options

    Hi All,
    Tomcat is undeployed the application and trying to deploy the new war file.
    But tomcat did not able to redeploy the war file and no errors in to log file also.
    I am using tomcat 6.0.16. Msg in the log file is as follows
    INFO: Undeploying context [evpn]
    Nov 17, 2008 3:21:21 PM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive evpn.war
    Nov 17, 2008 3:22:59 PM org.apache.catalina.core.StandardService stop
    INFO: Stopping service Catalina
    Nov 17, 2008 3:23:00 PM org.apache.catalina.core.StandardContext stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[examples] has not been started
    Nov 17, 2008 3:23:00 PM org.apache.coyote.http11.Http11Protocol destroy
    INFO: Stopping Coyote HTTP/1.1 on http-8080
    your help values more to me.
    Thanq very much..............

    Hi all,
    I don't want to restart the tomcat to redeploy this war file.
    Plz help me out ......

  • Replacing class file instead of redeploying whole WAR package

    Hi,
    This may sound very silly question, but I thought to post it just as to confirm.
    I have an application deployed in websphere ver 5. Usually when there are any changes to any class files, we rebuild the entire package, and then redeploy it using the admin console.
    Now, this time I've got only a couple of classes modified...my question is that can I just replace the modified classes directly instead of rebuilding the entire package and redeploying it?
    I'd assume that this is different from hot deployment, as I am prepared to start the server again if needed be. Please advise folks.
    Thanks

    The problem is that this particular class (servlet) can run only in production environment...there is no test environment to run it..but thanks...I did see IBM's take on this.
    http://publib.boulder.ibm.com/infocenter/wasinfo/v5r0/index.jsp?topic=/com.ibm.websphere.zseries.doc/info/zseries/ae/trun_app_hotupgrade_war.html
    I think it does answer the question, I can replace the .class file directly in the expanded version of the war package, and then restart the application. It should be picked up automatically.
    Thanks for your response.

  • ERROR while redeploying war file

    Hi ,
    I am redeploying a war file for jsp application after doing modification in code on Wblogic server. But when i am clicking on Activate changes button i am getting below error in logs:
    java.io.IOException: [DeploymentService:290066]Error occurred while downloading files from admin server for deployment request "1,343,372,309,744". Underlying error is: "[DeploymentService:290015]Domain wide secret mismatch"
         at weblogic.deploy.service.datatransferhandlers.HttpDataTransferHandler.getDataAsStream(HttpDataTransferHandler.java:86)
         at weblogic.deploy.service.datatransferhandlers.DataHandlerManager$RemoteDataTransferHandler.getDataAsStream(DataHandlerManager.java:153)
         at weblogic.deploy.internal.targetserver.datamanagement.AppDataUpdate.doDownload(AppDataUpdate.java:39)
         at weblogic.deploy.internal.targetserver.datamanagement.DataUpdate.download(DataUpdate.java:56)
         at weblogic.deploy.internal.targetserver.datamanagement.Data.prepareDataUpdate(Data.java:97)
         at weblogic.deploy.internal.targetserver.BasicDeployment.prepareDataUpdate(BasicDeployment.java:682)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepareDataUpdate(AbstractOperation.java:898)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.stageFilesFromAdminServer(AbstractOperation.java:264)
         at weblogic.deploy.internal.targetserver.DeploymentManager.createOperations(DeploymentManager.java:1409)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleUpdateDeploymentContext(DeploymentManager.java:162)
    I have to take restart my managed server to activate the changes .Though i was able to redeploy the war file without restarting server some days back.Please help what is wrong and why i have to take restart .
    Thanks

    Any idea ??? I am still struggling.I have bounce back my server again to activate changes .If anyone can help it would be great .

  • Redeploy war files XI 3.1?

    Looks like I need to "redeploy" my war files...   is there a document for XI3.1 to do this???
    getting the following errors:
    HTTP Status 404 - /AnalyticalReporting/WebiView.do
    HTTP Status 404 - /AnalyticalReporting/FullClientCreate.do
    HTTP Status 404 - /AnalyticalReporting/User_WebiPreferences.do
    HTTP Status 404 - /AnalyticalReporting/User_DeskiPreferences.do
    Thanks in advance ?

    Dear All,
          I have the same problem , when i want to create or view a web intelligence doc this errors appear :
    1- While creating a web intelligence doc :
          HTTP status 404 -/AnalyticalReporting/webicreate.do
          Type: status report
          Mesaage:/AnalyticalReporting /webicreate.do
          Description: The requested resource(/AnalyticalReporting /webicreate.do) is not available
    2- While viewing a web intelligence report :
         HTTP status 404 -/ AnalyticalReporting/webiview.do
         Type: status report
         Message:/AnalyticalReporting/webiview.do
         Description:the requested resource (/AnalyticalReporting/webiview.do) is not available
    3 - while creating a desktop intelligence doc :
          HTTP status 404 -/AnalyticalReporting/fullclientcreate.do
         Type:status report
         Message:/AnalyticalReporting/fullclientcreate.do
         Description: the requested resource (/AnalyticalReporting/fullclientcreate.do) is not
    I tried to check for the error form the CMC but when i click to the QaaWS folder this error appeared :
        HTTP status 404 -/ AnalyticalReporting/jsp/QaaWS_organise/QaaWS_organise.faces
        Type: status report
        Message:/AnalyticalReporting/jsp/QaaWS_organise/QaaWS_organise.faces
        Description: the requested resource (/AnalyticalReporting/jsp/QaaWS_organise/QaaWS_organise.faces)is not availabe
    So, please if anyone has a solution please send as fast as you can

  • Partial redeployment in exploded EAR gets blown away on restart

    I have an exploded EAR with an (exploded) WAR and a JSP inside the WAR. On the filesystem it looks like this:
    /.../foo.ear/blah.war/my.jsp
    The EAR was initially deployed in stage mode, then I switched to nostage. my.jsp is still under development and continues to change. I wrote a simple script that has two steps: 1) copy my.jsp from /some/dir to /.../foo.ear/blah.war/ 2) do a partial deployment/update with weblogic.Deployer -targets <cluster> -name foo -redeploy blah.war/my.jsp .
    The cluster is WL 10.3.3 in Production mode. I start the managed server, run the script that deploys changed JSPs and test the app. Everything is good. Then I restart the managed server...and my changed JSP is no longer there. I have to run the script again in order to make the managed server update the JSP.
    I can't run the deploy script on every server restart. What am I missing here?

    No one here is going to do anything about it. Send feedback to Apple.
    http://www.apple.com/feedback/ipad.html
    Basic troubleshooting steps. 
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 

  • EclipseLink-Redeploying a DBWS WS on PL/SQL package after changing return

    Issue concerning: EclipseLink 2.4.1 (DBWS) on WebLogic
    Hi,
    I've created a DBWS webservice based on a Oracle (10g) PL/SQL package, by using EclipseLink DBWS builder. The PL/SQL function exposed as a webservice call has a Object type return type, e.g.:
    create or replace type eclipse_type as
    object
    num number
    create or replace package test_eclipselink_pkg as
    function test return eclipse_type;
    end;
    As I understand it, EclipseLink-DBWS translates this Oracle object type to an Java type when calling the PL/SQL function over JDBC and translates the Java object to XML to be encapsulated in a SOAP message.
    The problem is that when changing the specification of the return type (e.g. changing the name of the field num to nmb in the Oracle type eclipse_type) of the Oracle PL/SQL function, regenerating the webservice (WAR-file) with DBWS builder and redeploying it on WebLogic 10.3.6, calling the webservice results in a java.lang.reflect.InvocationTargetException.
    Restarting the WebLogic server (or the appropriate managed server) resolves the problem, what shouldn't be a problem in a development environment, but is not always possible in a production environment.
    The problem seems to be that redeploying the webservice doesn't result in the XR Operations/Queries being recreated and as a result the old result type definition is used.
    Has anybody a solution for this problem?
    Kind regards,
    Jan

    Hi,
    I checked the logging while redeploying the WAR file. This part of the output seems to indicate, as you suggested, that the EcliipseLink session is not correctly logged of (InstanceAlreadyExistsException):
    *** <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating redeploy operation for application, PLUS_WS [archive: P:\WS-I\eclipselink-2.4.0\runtime\eclipselink-2.4.1.v20120712-r11838\eclipselink\utils\dbws\output\PLUS_WS.war], to AdminServer .>
    *** <Notice> <Stdout> <BEA-000000> <[EL Warning]: server: 2012-09-03 16:40:16.598--ServerSession(28419523)--Thread(Thread[[ACTIVE] ExecuteThread: '22' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Problem while unregistering MBean: weblogic.management.NoAccessRuntimeException: Access not allowed for subject: principals=[], on ResourceType: Configuration Action: unregister, Target: null>
    *** <Notice> <Stdout> <BEA-000000> <[EL Config]: connection: 2012-09-03
    *** <Notice> <Stdout> <BEA-000000> <[EL Info]: connection: 2012-09-03 16:40:16.599--ServerSession(28419523)--Thread(Thread[[ACTIVE] ExecuteThread: '22' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--schapkaarten-dbws-or-session logout successful>
    *** <Info> <Deployer> <BEA-149060> <Module PLUS_WS.war of application PLUS_WS successfully transitioned from STATE_PREPARED to STATE_NEW on server AdminServer.>
    *** <Notice> <Stdout> <BEA-000000> <[EL Info]: connection: 2012-09-03 16:40:17.07--ServerSession(9455819)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--schapkaarten-dbws-or-session login successful>
    *** <Notice> <Stdout> <BEA-000000> <[EL Warning]: server: 2012-09-03 16:40:17.071--ServerSession(9455819)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Problem while registering MBean: javax.management.InstanceAlreadyExistsException: TopLink:Name=Development-schapkaarten-dbws-or-session,Type=Configuration>
    *** <Notice> <Stdout> <BEA-000000> <[EL Warning]: server: 2012-09-03 16:40:17.071--ServerSession(9455819)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Problem while registering MBean: javax.management.InstanceAlreadyExistsException: TopLink:Name=Session(schapkaarten-dbws-or-session)>
    What I cannot see, is: who is responsible for this logout? This must be clear so I know I have to log a bug for WebLogic or for EclipseLink.
    Anyone a suggestion how to determine this?
    Thanks,
    Jan

  • Partial redeployment of archived app

    Hello.
    So, as in subj:
    What I have: deployed war on weblogic, with a single jsp inside
    What I want: to redeploy only that jsp without redeploying entire war.
    When I try to use partial redeployment task with deltaFiles specified, I get DeploymentException: A partial update of an archived application is not allowed.
    It is fully described here
    http://download.oracle.com/docs/cd/E11035_01/wls100/messages/DeployerRuntime.html
    But
    I wonder if there is some walkaround of this situation, maybe somebody has done smth similar.
    Thanks in advance

    Hi Frf,
    You can partially deploy some part of your applications on the Server like following: http://jaysensharma.wordpress.com/2010/02/08/redeploying-a-single-jsp/
    In your ANT Task you can write then following to update new resources (Classes) in your WAR ...:
    <target name=”reBuildWAR”>
    <font color=maroon>
    <war destfile=”YourWarArchieve.war” update=”true”>
    <classes dir="dest/"/>
    </war>
    </font>
    </target>
    To Change the Library of your App:
    <target name=”reBuildWAR”>
    <font color=maroon>
    <war destfile=”YourWarArchieve.war” update=”true”>
    <lib dir="someLocation/jars">
    <exclude name="ojdbc14.jar"/>
    </lib>
    </war>
    </font>
    </target>
    To Change the JSPs of your App:
    <target name="reBuildWAR">
    <font color=maroon>
    <war destfile="${war.name}" update=”true”>
    <fileset dir="${jsps}"/>
    </war>
    </font>
    </target>
    .Thanks
    Jay SenSharma

  • Deploying a new war: ViewState, page, & bean versions

    When a new war is deployed reflecting changed JSF pages & managed beans, what happens when users interact with old JSF pages? Is the best practice to piggyback a version check on the logged-in check so the user can be redirected to a fresh page?

    user3935812 wrote:
    When a new war is deployed reflecting changed JSF pages & managed beans, what happens when users interact with old JSF pages? Is the best practice to piggyback a version check on the logged-in check so the user can be redirected to a fresh page?He/she doesn't. The user interacts with the client side content generated by a JSP. When you redeploy the war on the server, the user will be 'talking' to the newly installed version of the JSP as soon as a server roundtrip is performed. In the general case, this will trip a 'logged in' session check that fails and sends the user to the login page, but of course that depends on the application.
    question back: when do you ever think this 'problem' will occur? Are you going to be redeploying live applications frequently and during busy hours? I hope not!

  • Missing data-sources.xml deploying war with jdeveloper 9i RC

    When deploying a war file to an OC4J 1.0.2.2.1 server and error reports during the deployment that data-sources.xml is missing in the application-deployments/xxxx directory. Only the orion-application.xml file is present - which references a data-sources.xml file in the same directory. The problem is : it isn't there.
    When I copy the xml files from the applications/xxxx directory to the application-deployments/xxxx directory and redeploy the war file everything works fine.
    Is this a configuration issue or a bug ? Anyway, can somebody tell me how I can work around this problem ?
    Thanks !

    this is a bug and you have already found the workaround.

  • Partial redeployment problem for J2EE module update

    hi, all
    I have one application file (.ear) composed of three EJB modules. I tried to paritally redeploy one of them, but it didn't work.
    Here is the command-line for partial redeployment: java weblogic.Deployer -adminurl t3://XX.XX.XX.XX:XXXX -username XXXX -password XXXX -name XA_MOrderEAR -source XAMOrderEAR -targets MOrderBM.jar@SquadA_N1 -redeploy, where XAMOrderEAR is the name of the exploded archive, MOrderBM.jar is the EJB module to be partially redeployed, SquadA_N1 is a cluster.
    Here is the result:
    <2010/2/22 下午02時10分06秒 GMT+08:00> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating redeploy operation for appl
    ication, XA_MOrderEAR [archive: null], to SquadA_N1 .>
    Task 29 initiated: [Deployer:149026]redeploy application XA_MOrderEAR on SquadA_N1.
    Task 29 failed: [Deployer:149026]redeploy application XA_MOrderEAR on SquadA_N1.
    Target state: redeploy failed on Cluster SquadA_N1
    weblogic.application.CannotRedeployException: Module 'MOrderBM.jar' has the same ClassLoader as the Application 'XA_MOrd
    erEAR'. Consider redeploying the entire application.
    Please tell me how to solve the problem. I tried to set enable-bean-class-redeploy to true in weblogic-ejb-jar.xml. It didn't work too.
    thanks
    Blithe Meng

    Hiya
    You can debug this quite easily yourself.
    Enable the SQL Trace for that session and see the Last SQL in the raw trace file.
    You can also run the trace with the option to view bind variables.
    This way you can find out why the SQL is returning no_data_found
    thanks
    anil passi

  • Weblogic Integration Application - Redeploy

    While using Weblogic Integration 7,is redeploy possible for the "Weblogic Integration"
    Application or of components within it. I have a war and a jar file inside this
    application, and running in Development mode iam able to redeploy the WAR, but
    while i redeploy the JAR i have the face the exception that say "bean already
    undeployed". But the deployment status for the JAR reads "Deployed" as true.
    Any information on this would be appreciated
    Thanks
    Raja

    If the application is worklist not sure you can deploy it through console. you can deploy using
    weblogic.Deployer -adminurl t3://<HOST>:7001 -username weblogic -password weblogic -deploy -name WorklistTest -source WorklistTest.ear ?upload

Maybe you are looking for