facebook

Automatically build for Enhanced RAD project not working

  1. MyEclipse IDE
  2.  > 
  3. WebSphere Development
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #322481 Reply

    ductranfid
    Member

    Hi Team,

    Upon importing a web project and the EAR referenced to it from RAD into MyEclipse Blue 10, I followed the guide and enhanced these two RAD projects to work with MyEclipse successfully by using the option “Fix Automatically using Standard J2EE 1.4”. My projects now have no errors and have been deployed to Websphere successfully. However when I made changes to any file (java, properties, xml) and saved, nothing happened even though “Build Automatically” option is checked. Only when I cleaned the projects the build process started.

    Please help,
    Thanks
    10.0-Blue-20111028
    Duc

    #322492 Reply

    support-swapna
    Moderator

    ductranfid ,

    Sorry that you are seeing this issue with MyEclipse.

    Can you answer some more questions for us ?

    1) Can you clarify if you have enhanced the project first and then fixed the errors using “Fix Automatically using Standard J2EE 1.4”?Please import the unmodified RAD projects into your workspace, then enhance them. If there are still errors, you can attempt to fix them only after the enhancement process and/or can let us know what problems you experience so we can help.

    2) Are all subsequent changes to the the files requiring a clean to start the build process or is it just a one time issue?

    3) Switch to a new workspace , import the unmodified RAD project, enhance it and check if you still see the issue. Also check the .log file which is located at <workspace dir>/.metadata/.log for any errors of interest. Paste the errors here if any.

    4) Create a sample project in the MyEclipse IDE and check if you see the same behavoir.

    #322511 Reply

    ductranfid
    Member

    Thanks for your response and sorry about the confusion on my post. Here is my problem when I deployed the EAR project into Websphere7, I expected my change in the referenced project published automatically into the deployed app. But nothing happened

    1. I did not encounter any error during and after enhancement and deployment process. When I started the enhancement process, it prompt me to fix the classpath by either pointing to an existing Websphere folder or “Fix Automatically using Standard J2EE 1.4”. So I chose “Fix Automatically using Standard J2EE 1.4”.

    2. The changes I made are on properties and xml files, which require automatically build and republish for the change to take effect.

    3. At first I deployed my app using in-workspace mode but the changes are not automatically published so I switch to classic mode and I tried deploy both EAR project and reference project. It still didn’t apply my changes.

    Side note: EAR project is created because RAD only allow EAR project to be deployed. Do I need this EAR project when working with ME?

    #322559 Reply

    support-swapna
    Moderator

    ductranfid ,

    1) Can you clarify if the WAS is started in Debug mode ?

    2) Are you seeing the JSP/JS changes reflect immediately ?

    3) 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.

    4) The issue may be specific to your project configuration. Will you be able to prepare a project which also suffers from this issue and send it?

    #322621 Reply

    ductranfmr
    Member

    My apology, I have problem logging in with the old account so I have to create a new account.

    1. I always started WAS in debug mode
    2. JSP/JS changes are reflect immediately when I click refresh the page, but not when I save the project.
    3. Deployment log in classic mode:
    ——————————————————————————————————————————-
    MyEclipse: deployment START exploded project: FWAProcEngineEAR server: websphere7Server#AppSrv01 time: Mon Jan 23 10:48:23 EST 2012
    ———————————————————————————————————————————–
    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:\IBM\WebSphere\AppServer\profiles\AppSrv01\installableApps\FWAProcEngineEAR.ear, LA921116Node02Cell, LA921116Node02, server1, FWAProcEngineEAR, {{“FWAProcEngine.war” “FWAProcEngine.war,WEB-INF/web.xml” default_host}}, {{.* .* AppDeploymentOption.Yes 1}}, false, false, true, C:/MyEclipse Blue Edition/MyEclipse Blue Edition 10/configuration/org.eclipse.osgi/bundles/15/1/.cp/scriptutil/scriptutil.jar, 1.4, true]”
    C:\IBM\WebSphere\AppServer\profiles\AppSrv01\installableApps\FWAProcEngineEAR.ear
    LA921116Node02Cell
    LA921116Node02
    server1
    FWAProcEngineEAR
    {“FWAProcEngine.war” “FWAProcEngine.war,WEB-INF/web.xml” default_host}
    {.* .* AppDeploymentOption.Yes 1}
    -nopreCompileJSPs -distributeApp -server “server1” -useMetaDataFromBinary -nodeployejb -appname “FWAProcEngineEAR” -createMBeansForResources -reloadEnabled -reloadInterval 1 -deployws -validateinstall off -processEmbeddedConfig -filepermission .*.dll=755#.*.so=755#.*.a=755#.*.sl=755 -buildVersion Unknown -noallowDispatchRemoteInclude -noallowServiceRemoteInclude -MapWebModToVH {{“FWAProcEngine.war” “FWAProcEngine.war,WEB-INF/web.xml” default_host}} -JSPReloadForWebMod {{.* .* AppDeploymentOption.Yes 1}}
    false
    false
    true
    C:/MyEclipse Blue Edition/MyEclipse Blue Edition 10/configuration/org.eclipse.osgi/bundles/15/1/.cp/scriptutil/scriptutil.jar
    1.4
    -nodeployejb
    true
    -processEmbeddedConfig
    ADMA5016I: Installation of FWAProcEngineEAR started.
    ADMA5058I: Application and module versions are validated with versions of deployment targets.
    WSWS0041I: Web services deploy task completed successfully.
    ADMA5005I: The application FWAProcEngineEAR is configured in the WebSphere Application Server repository.
    ADMA5053I: The library references for the installed optional package are created.
    ADMA5005I: The application FWAProcEngineEAR is configured in the WebSphere Application Server repository.
    ADMA5001I: The application binaries are saved in C:\IBM\WebSphere\AppServer\profiles\AppSrv01\wstemp\Script1350b4109f1\workspace\cells\LA921116Node02Cell\applications\FWAProcEngineEAR.ear\FWAProcEngineEAR.ear
    ADMA5005I: The application FWAProcEngineEAR is configured in the WebSphere Application Server repository.
    SECJ0400I: Successfully updated the application FWAProcEngineEAR with the appContextIDForSecurity information.
    ADMA5005I: The application FWAProcEngineEAR is configured in the WebSphere Application Server repository.
    CWSAD0040I: The application FWAProcEngineEAR is configured in the Application Server repository.
    ADMA5113I: Activation plan created successfully.
    ADMA5011I: The cleanup of the temp directory for application FWAProcEngineEAR is complete.
    ADMA5013I: Application FWAProcEngineEAR installed successfully.

    TCL_CLASSPATH = TCL_CLASSPATH {{C:/MyEclipse Blue Edition/MyEclipse Blue Edition 10/configuration/org.eclipse.osgi/bundles/15/1/.cp/scriptutil/scriptutil.jar}}

    Exploding jars: 1.4
    Exploding jar file:1.4
    ————————————————————————————————————————
    MyEclipse: deployment END project: FWAProcEngineEAR server: websphere7Server#AppSrv01 time: Mon Jan 23 10:50:53 EST 2012
    ————————————————————————————————————————

    4. I can provide setting files and build.xml but not java code.

    Also, one more thing I notice is that when I choose clean and let it build automatically, the changes won’t reflect either unless I hit Rebuild All. The changes I made are mostly in the properties file which require a few java class related to recompile.

    Thanks

    #322648 Reply

    support-swapna
    Moderator

    ductranfmr ,

    I have escalated it to a dev team member. They will get back to you.
    Sorry for the inconvenience caused.

    #322706 Reply

    support-tony
    Keymaster

    duc,

    I’m not a dev team member but I wonder if you could try creating and deploying a minimal project to see if that works. I don’t have RAD, to try the exact steps you did but I created a new Enterprise Application project and had ME create a Web project for it. In the web project, I created a package and simple Java class that has one method and returns a string. In the generated JSP file, I added some code to get the string from the simple class and display it on the page. I then deployed the EAR project and ran the server, in debug mode. The web page displayed fine. I changed the string returned by the class and saved the class. When I refreshed the web page, the change was there. I also just changed the JSP file and, again, the change was shown after a page refresh.

    I’ve attached my simple projects in a zip file. Could you import them and then deploy and test them, including changes? If it doesn’t work then we know that there is something different about your set-up. Can you check that you have the WebSphere 7 JDK specified on the JDK screen of the WebSphere 7 connector for the profile you’re using (just edit your profile and click Next until you get to the JDK page)?

    By the way, to answer an earlier question of yours, no, you don’t need an EAR project if you want to deploy a Web project, the Web project is all that is needed, though you won’t be able to use the In-Workspace deployment mode, in this case. You can check this by choosing the Classic deployment mode and trying to deploy just the Web project in the sample I attached. Changes to classes and JSPs should also be reflected in the deployment, as when deploying a EAR. You can try this too.

    Let us know the outcome.

    Attachments:
    You must be logged in to view attached files.
Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Automatically build for Enhanced RAD project not working

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