WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Using the wsejbdeploy Task to Build EJB Jars

    Posted Wed August 11, 2010 10:37 AM
    Using the wsejbdeploy Task to Build EJB Jars

    --------------------------------

    Hi,

    I am using the ws_ant wsejbdeploy task to build EJB jars and I cannot get it to generate some of the classes required. The missing classes are the *_Tie and *_Stub ones. If I generate the EJB using RAD 7, it creates the missing classes. When I create an .ear file containing the jars using Ant, I can deploy it to WAS 6.1 and this also generates the missing classes.

    But using the wsejbdeploy task alone does not generate the files. From what I've been able to find out so far, the /"/"rmicOptions/"/" attribute of the wsejbdeploy task should generate these files if I pass it the /"/"-iiop/"/" value. But this does not work. Does anyone know what I should pass this attribute to generate the files?

    I am using the task as follows:



    Is there some other option I must include?

    --------------------------------

    Posted By: Conor at Jun 2 2009 11:55AM


  • 2.  Using the wsejbdeploy Task to Build EJB Jars

    Posted Wed August 11, 2010 10:44 AM
    There is a hick up using the /"regular/" ant during the ejbdeploy section. Using the ws-ant (that comes with WebSphere) it was smooth no issues.

    Basically the wsejbdeploy task was failing to find the setupcmdline.bat.
    On further trouble shooting, I found that the wsejbdeploy task internal is looking for 'user_install_root' variable irrespective of whatever you set as wasHome in the wsejbdeploy task.

    So if you have the user.install.root defined and it's same as the websphere home it works fine.So the regular ant should hold good for successful build.

    What I have in my local build.properties
    websphere.home = C:/Program Files/IBM/WebSphere/6.1/AppServer
    user.install.root = C:/Program Files/IBM/WebSphere/6.1/AppServer

    What I have in the build.xml
    ………….
    ….

    ………….
    ….

    Hope this helps.

    --------------------------------

    Posted By: sphere41 at Jun 9 2009 9:32PM


  • 3.  Using the wsejbdeploy Task to Build EJB Jars

    Posted Wed August 11, 2010 10:52 AM
    I am doing the same thing using Rad 7.x and WAS 6.0. I have investigated this for many hours now. I have found that if I set the user.install.root to my WAS profile directory everything should work. That is not my case, I continue to get unable to parse setupCmdLine: null//bin//setupCmdLine.bat. I assume in RAD when I choose run as ANT Build that RAD is using ws_ant.bat Is my assumption correct? I have set user.install.root every place I can think of, but nothing works. What am I missing?




    Please help, I have been struggling with this for 5 days now.

    --------------------------------

    Posted By: cr6137 at Jan 7 2010 9:03PM


  • 4.  Using the wsejbdeploy Task to Build EJB Jars

    Posted Wed August 11, 2010 10:52 AM
    Thanks for your reply. I was looking for a way to make the wsejbdeploy task run stand-alone (i.e. without having WebSphere Application Server installed on the machine). In the end, it seems that the task won't work without WAS (or a WAS runtime from RAD or WID). With WAS on the build machine, everything is working now. Thanks for your help.

    --------------------------------

    Posted By: Conor at Jun 16 2009 10:52AM