Topic
  • 6 replies
  • Latest Post - ‏2013-06-27T14:11:55Z by ivyho
ivyho
ivyho
67 Posts

Pinned topic Tips for resolving ejbdeploy issues

‏2013-06-24T13:37:41Z | ejbdeploy rad

If your ejbdeploy was working all along, nothing much has changed in your applications

After you upgrade your websphere application server to a newer version, when you are using admin console with Deploy EJB box checked  results in error , or you run the ejbdpeloy command on the command line results into the same issues.

You can check the following technote for reference.

One quick try is to clear the OSGI cache.

http://www-01.ibm.com/support/docview.wss?uid=swg21382867

 

This is the ejbdeploy command for reference

http://publib.boulder.ibm.com/infocenter/rtnlhelp/v6r0m0/index.jsp?topic=%2Fcom.ibm.etools.ejbdeploy.doc%2Ftopics%2Fregenc.html

  • OctavioGonzalez
    OctavioGonzalez
    12 Posts
    ACCEPTED ANSWER

    Re: Tips for resolving ejbdeploy issues

    ‏2013-06-27T14:04:57Z  
    • ivyho
    • ‏2013-06-26T21:44:16Z

    If running on the command line also fails, what is the best way to tell if it is due to a corrupted environment? or that is the issue with the product?   If the issue starts to occur after an upgrade to  newer websphere application fixpacks and no other changes to the application,  also we have tried to clear the cache and that does not help.

    To be sure if the problem is because of a messed installation you could install another WAS on the same level (another instance won't do since the instance goes to the installation to run ejbdeploy) and test the comand there, if it works fine then the problem is a messed installation

  • OctavioGonzalez
    OctavioGonzalez
    12 Posts

    Re: Tips for resolving ejbdeploy issues

    ‏2013-06-26T21:20:19Z  

    Eclipse is kind of tricky with the OSGi cache, sometimes changes even for the user that runs the command. when running ejbdeploy it says the configuration path, that is the one you want to clean.

    If you use the -Dosgi.clean=true in the script could help to clean the cache for the user running the command, however the cache could help improving the time of the deploy in the next runs of the command, so it is better to clear it after you have cleaned the cache.

  • ivyho
    ivyho
    67 Posts

    Re: Tips for resolving ejbdeploy issues

    ‏2013-06-26T21:28:34Z  

    Eclipse is kind of tricky with the OSGi cache, sometimes changes even for the user that runs the command. when running ejbdeploy it says the configuration path, that is the one you want to clean.

    If you use the -Dosgi.clean=true in the script could help to clean the cache for the user running the command, however the cache could help improving the time of the deploy in the next runs of the command, so it is better to clear it after you have cleaned the cache.

    Thanks for the tips.  Normally what steps /tips would you suggest to isolate any ejbdeploy issue? e.g. There is an EJBDeploy option in the 

    websphere application server admin console, and there are also command line scripts we can use..

  • OctavioGonzalez
    OctavioGonzalez
    12 Posts

    Re: Tips for resolving ejbdeploy issues

    ‏2013-06-26T21:33:17Z  
    • ivyho
    • ‏2013-06-26T21:28:34Z

    Thanks for the tips.  Normally what steps /tips would you suggest to isolate any ejbdeploy issue? e.g. There is an EJBDeploy option in the 

    websphere application server admin console, and there are also command line scripts we can use..

    The best thing to isolate if there's a problem with the ejbdeploy tool is to run it as command line, outside of ant or admin console.

  • ivyho
    ivyho
    67 Posts

    Re: Tips for resolving ejbdeploy issues

    ‏2013-06-26T21:44:16Z  

    The best thing to isolate if there's a problem with the ejbdeploy tool is to run it as command line, outside of ant or admin console.

    If running on the command line also fails, what is the best way to tell if it is due to a corrupted environment? or that is the issue with the product?   If the issue starts to occur after an upgrade to  newer websphere application fixpacks and no other changes to the application,  also we have tried to clear the cache and that does not help.

  • OctavioGonzalez
    OctavioGonzalez
    12 Posts

    Re: Tips for resolving ejbdeploy issues

    ‏2013-06-27T14:04:57Z  
    • ivyho
    • ‏2013-06-26T21:44:16Z

    If running on the command line also fails, what is the best way to tell if it is due to a corrupted environment? or that is the issue with the product?   If the issue starts to occur after an upgrade to  newer websphere application fixpacks and no other changes to the application,  also we have tried to clear the cache and that does not help.

    To be sure if the problem is because of a messed installation you could install another WAS on the same level (another instance won't do since the instance goes to the installation to run ejbdeploy) and test the comand there, if it works fine then the problem is a messed installation

  • ivyho
    ivyho
    67 Posts

    Re: Tips for resolving ejbdeploy issues

    ‏2013-06-27T14:11:55Z  

    To be sure if the problem is because of a messed installation you could install another WAS on the same level (another instance won't do since the instance goes to the installation to run ejbdeploy) and test the comand there, if it works fine then the problem is a messed installation

    Perfect! Thanks