facebook

Hot-deployment issues with WAS7 (java file changes)

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
  • This topic is empty.
Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #316603 Reply

    Hot-deployment issues with WAS7 (java file changes aren’t reflecting)
    ============================
    For any Java file changes, hot deployment is not occurring and need to restart the application for the new changes reflect in the application.
    a)Have to restart the application for a single line of change in Action class
    b) JSP & JS file changes are reflecting immediately.

    Server Setup
    ==========
    a) Added WAS7 server and it is running on Classic Mode (Exploded mode).
    b) Also server is running on Debug mode.

    MyEclipse Blue Details
    ==================

    *** Date:
    Friday, May 6, 2011 12:47:44 PM IST

    ** System properties:
    OS=WindowsXP
    OS version=5.1.0
    Java version=1.6.0_13

    *** MyEclipse details:
    MyEclipse Blue Edition
    Version: 9.0 Blue
    Build id: 9.0-Blue-20110318

    *** Eclipse details:
    MyEclipse Blue Edition

    Version: 9.0 Blue
    Build id: 9.0-Blue-20110318

    Eclipse Platform

    Version: 3.6.1.r361_v20100909-9gF78GrkFqw7GrsZnvz0JWNTeb6fue6896L
    Build id: M20100909-0800

    Eclipse Java Development Tools

    Version: 3.6.1.r361_v20100714-0800-7z8XFUSFLFlmgLc5z-Bvrt8-HVkH
    Build id: M20100909-0800

    Eclipse Plug-in Development Environment

    Version: 3.6.1.r361_v20100727-7b7mFL-FET3dhESDgE5_bkJ
    Build id: M20100909-0800

    Eclipse Graphical Editing Framework GEF

    Version: 3.6.1.v20100908-1100-777B181A3Bz-6B663E7974242
    Build id: 201009132020

    Eclipse RCP

    Version: 3.6.1.r361_v20100827-9OArFLdFjY-ThSQXmKvKz0_T
    Build id: M20100909-0800

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    D:\Program Files\MyEclipse Blue Edition\MyEclipse Blue Edition 9\myeclipse-blue.exe
    -name
    Myeclipse-blue
    –launcher.library
    D:\Program Files\MyEclipse Blue Edition\MyEclipse Blue Edition 9\../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_3.2.0.v201102231800\eclipse_3213.dll
    -startup
    D:\Program Files\MyEclipse Blue Edition\MyEclipse Blue Edition 9\../Common/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
    -install
    D:\Program Files\MyEclipse Blue Edition\MyEclipse Blue Edition 9
    -configuration
    D:\Program Files\MyEclipse Blue Edition\MyEclipse Blue Edition 9\configuration
    -vm
    D:\Program Files\MyEclipse Blue Edition\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\client\jvm.dll

    Thanks,,
    Karthik

    #316652 Reply

    support-swapna
    Moderator

    muthumia,

    1) How big is you web project in MBs?

    2) How long does it take to deploy your EAR to the websphere?

    3) Here is a thread which discusses the same issue on WAS 6.
    https://www.genuitec.com/forums/topic/changes-not-reflected-java-code-change/

    Let me know how it helps you.

    #316706 Reply

    Swapna,

    1) Our web project size is 164 MB
    2) It takes 10 minutes to re-deploy our EAR
    3) I followed the thread you mentioned and recreated the profile as suggested on that forum. But still I can see the same problem occur again.
    I already spent two days on these and can you please provide me a concrete solution for this issue?
    Thanks,
    Karthik

    #316746 Reply

    support-swapna
    Moderator

    muthumia,

    Thank you for the details. I have escalated it to the dev team for further investigation.

    #316749 Reply

    support-piotr
    Participant

    Muthumia,

    Please provide us details about server version you are working this. Execute {WAS location}/bin/versionInfo.bat script from the console and copy your output details here.

    #316830 Reply

    Piotrek,
    Please find the server version details from the command output,

    WVER0010I: Copyright (c) IBM Corporation 2002, 2005, 2008; All rights reserved.
    WVER0012I: VersionInfo reporter version 1.15.1.26, dated 8/9/08

    ——————————————————————————–
    IBM WebSphere Application Server Product Installation Status Report
    ——————————————————————————–

    Report at date and time May 16, 2011 12:23:21 PM IST

    Installation
    ——————————————————————————–
    Product Directory C:\Program Files\IBM\WebSphere\AppServer
    Version Directory C:\Program Files\IBM\WebSphere\AppServer\properties\version
    DTD Directory C:\Program Files\IBM\WebSphere\AppServer\properties\version\dtd
    Log Directory C:\Program Files\IBM\WebSphere\AppServer\logs
    Backup Directory C:\Program Files\IBM\WebSphere\AppServer\properties\version\nif\backup
    TMP Directory C:\DOCUME~17222\LOCALS~1\Temp

    Product List
    ——————————————————————————–
    BASE installed

    Installed Product
    ——————————————————————————–
    Name IBM WebSphere Application Server
    Version 7.0.0.0
    ID BASE
    Build Level r0835.03
    Build Date 8/31/08

    ——————————————————————————–
    End Installation Status Report
    ——————————————————————————–

    #316834 Reply

    support-piotr
    Participant

    Muthumia,

    Thank you very much, you are working with supported version of WAS 7. Can you please check if you have turned on build automatically? Check if Project -> Build Automatically is checked.

    #316878 Reply

    Yes.
    “Build Automatically” is always turned on.
    Thanks,
    Karthik

    #316898 Reply

    support-piotr
    Participant

    Karthik,

    This issue is very strange. Could you paste here deployment log? It is located under directory .myeclipse/logs in EAR project. Before sending, please delete that file, perform deployment and hot-syncing. The issue may be specific to your project configuration. Will you be able to prepare project which also suffers from this issue?

    #317105 Reply

    ———————————————————————————————————————————-
    MyEclipse: deployment START exploded project: rentalnet-web server: websphere7Server#WebSphere7 time: Mon May 02 12:13:09 IST 2011
    ———————————————————————————————————————————-
    WASX7209I: Connected to process “server1” on node chndlf717222Node01 using SOAP connector; The type of process is: UnManagedProcess
    WASX7303I: The following options are passed to the scripting environment and are available as arguments that are stored in the argv variable: “[rentalnet-web]”
    rentalnet-web
    WASX7017E: Exception received while running file “D:\Program Files\MyEclipse Blue Edition\Common\plugins\com.genuitec.eclipse.blue.websphere7_9.0.0.me201103140131\uninstallApplication.jacl”; exception information: com.ibm.ws.scripting.ScriptingException: WASX7280E: An application with name “rentalnet-web” does not exist.

    ———————————————————————————————————————–
    MyEclipse: deployment END project: rentalnet-web server: websphere7Server#WebSphere7 time: Mon May 02 12:14:09 IST 2011
    ———————————————————————————————————————–
    ———————————————————————————————————————————-
    MyEclipse: deployment START packaged project: rentalnet-web server: websphere7Server#WebSphere7 time: Mon May 02 16:49:53 IST 2011
    ———————————————————————————————————————————-
    WASX7357I: By request, this scripting client is not connected to any server process. Certain configuration and application operations will be available in local mode.
    WASX7303I: The following options are passed to the scripting environment and are available as arguments that are stored in the argv variable: “[rentalnet-web]”
    rentalnet-web
    WASX7017E: Exception received while running file “D:\Program Files\MyEclipse Blue Edition\Common\plugins\com.genuitec.eclipse.blue.websphere7_9.0.0.me201103140131\uninstallApplication.jacl”; exception information: com.ibm.ws.scripting.ScriptingException: WASX7280E: An application with name “rentalnet-web” does not exist.

    ———————————————————————————————————————–
    MyEclipse: deployment END project: rentalnet-web server: websphere7Server#WebSphere7 time: Mon May 02 16:50:04 IST 2011
    ———————————————————————————————————————–
    ——————————————————————————————————————————–
    MyEclipse: undeploy START packaged project: rentalnet-web server: websphere7Server#WebSphere7 time: Mon May 02 17:43:22 IST 2011
    ——————————————————————————————————————————–
    ADMA5011I: The cleanup of the temp directory for application rentalnet-web is complete.
    ADMA5107E: The application rentalnet-web cannot be uninstalled.
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.genuitec.eclipse.blue.websphere.admin.WebsphereAdminProxyFactory$PassThroughProxyHandler.invoke(WebsphereAdminProxyFactory.java:74)
    at $Proxy10.undeployApplication(Unknown Source)
    at com.genuitec.eclipse.blue.websphere.deploy.JMXDeploymentStrategy.undeploy(JMXDeploymentStrategy.java:229)
    at com.genuitec.eclipse.blue.websphere.WebsphereServer.beforeUndeployment(WebsphereServer.java:530)
    at com.genuitec.eclipse.ast.deploy.core.Deployment.?(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.Deployment.undeploy(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ModuleDeployment.undeploy(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.Deployment.undeploy(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.jobs.C.run(Unknown Source)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    Caused by: com.genuitec.eclipse.blue.websphere.admin.DeploymentException: ADMA5107E: The application rentalnet-web cannot be uninstalled.
    at com.genuitec.eclipse.blue.websphere.admin.WebsphereAdmin.doAdminTask(WebsphereAdmin.java:200)
    at com.genuitec.eclipse.blue.websphere.admin.WebsphereAdmin.undeployApplication(WebsphereAdmin.java:81)
    … 14 more
    ———————————————————————————————————————
    MyEclipse: undeploy END project: rentalnet-web server: websphere7Server#WebSphere7 time: Mon May 02 17:43:32 IST 2011
    ———————————————————————————————————————

    #317106 Reply

    support-piotr
    Participant

    Those logs are all about unsuccessful undeployment. App have not been successfully deployed to the server, so there is nothing to remove. Can you paste log of deployment process?

    #317447 Reply

    WASX7357I: By request, this scripting client is not connected to any server process. Certain configuration and application operations will be available in local mode.
    WASX7303I: The following options are passed to the scripting environment and are available as arguments that are stored in the argv variable: “[rentalnetNewEAR]”
    rentalnetNewEAR
    ADMA5017I: Uninstallation of rentalnetNewEAR started.
    ADMA5104I: The server index entry for WebSphere:cell=chndlf717222Node01Cell,node=chndlf717222Node01 is updated successfully.
    ADMA5102I: The configuration data for rentalnetNewEAR from the configuration repository is deleted successfully.
    ADMA5011I: The cleanup of the temp directory for application rentalnetNewEAR is complete.
    ADMA5106I: Application rentalnetNewEAR uninstalled successfully.

    WASX7357I: By request, this scripting client is not connected to any server process. Certain configuration and application operations will be available in local mode.
    WASX7303I: The following options are passed to the scripting environment and are available as arguments that are stored in the argv variable: “[C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\installableApps\rentalnetNewEAR.ear, chndlf717222Node01Cell, chndlf717222Node01, server1, rentalnetNewEAR, {{“rentalnet-web.war” “rentalnet-web.war,WEB-INF/web.xml” default_host}}, {{.* .* AppDeploymentOption.Yes 1}}, false, false, true, D:/Program Files/MyEclipse Blue Edition/MyEclipse Blue Edition 9/configuration/org.eclipse.osgi/bundles/15/1/.cp/scriptutil/scriptutil.jar, 1.4, true]”
    C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\installableApps\rentalnetNewEAR.ear
    chndlf717222Node01Cell
    chndlf717222Node01
    server1
    rentalnetNewEAR
    {“rentalnet-web.war” “rentalnet-web.war,WEB-INF/web.xml” default_host}
    {.* .* AppDeploymentOption.Yes 1}
    -nopreCompileJSPs -distributeApp -useMetaDataFromBinary -nodeployejb -appname “rentalnetNewEAR” -createMBeansForResources -reloadEnabled -reloadInterval 1 -deployws -validateinstall off -processEmbeddedConfig -filepermission .*.dll=755#.*.so=755#.*.a=755#.*.sl=755 -buildVersion Unknown -noallowDispatchRemoteInclude -noallowServiceRemoteInclude -MapWebModToVH {{“rentalnet-web.war” “rentalnet-web.war,WEB-INF/web.xml” default_host}} -JSPReloadForWebMod {{.* .* AppDeploymentOption.Yes 1}}
    false
    false
    true
    D:/Program Files/MyEclipse Blue Edition/MyEclipse Blue Edition 9/configuration/org.eclipse.osgi/bundles/15/1/.cp/scriptutil/scriptutil.jar
    1.4
    -nodeployejb
    true
    -processEmbeddedConfig
    ADMA5016I: Installation of rentalnetNewEAR started.
    ADMA5058I: Application and module versions are validated with versions of deployment targets.
    WSWS0041I: Web services deploy task completed successfully.
    ADMA5005I: The application rentalnetNewEAR is configured in the WebSphere Application Server repository.
    ADMA5053I: The library references for the installed optional package are created.
    ADMA5005I: The application rentalnetNewEAR is configured in the WebSphere Application Server repository.
    ADMA5001I: The application binaries are saved in C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\wstemp\Script130887eed0f\workspace\cells\chndlf717222Node01Cell\applications\rentalnetNewEAR.ear\rentalnetNewEAR.ear
    ADMA5005I: The application rentalnetNewEAR is configured in the WebSphere Application Server repository.
    SECJ0400I: Successfully updated the application rentalnetNewEAR with the appContextIDForSecurity information.
    ADMA5005I: The application rentalnetNewEAR is configured in the WebSphere Application Server repository.
    CWSAD0040I: The application rentalnetNewEAR is configured in the Application Server repository.
    ADMA5113I: Activation plan created successfully.
    ADMA5011I: The cleanup of the temp directory for application rentalnetNewEAR is complete.
    ADMA5013I: Application rentalnetNewEAR installed successfully.

    TCL_CLASSPATH = TCL_CLASSPATH {{D:/Program Files/MyEclipse Blue Edition/MyEclipse Blue Edition 9/configuration/org.eclipse.osgi/bundles/15/1/.cp/scriptutil/scriptutil.jar}}

    Exploding jars: 1.4
    Exploding jar file:1.4

    #317538 Reply

    support-piotr
    Participant

    Thank you for response. We will look into the issue ASAP.

    #317646 Reply

    Any updates on this task?

    #317800 Reply

    Any updates on this task?

Viewing 15 posts - 1 through 15 (of 17 total)
Reply To: Hot-deployment issues with WAS7 (java file changes)

You must be logged in to post in the forum log in