How to deploy *.jar in WebLogic by Hudson and WLST

Hi everybody!
I have the server (hostname - server0), where:
1. Developers works. He create the build JAR-files and put this file in special local directory:
/home/build/test1/jar/ - jar-file for test envorement 1 of weblogic (hostname - server1)
/home/build/test2/jar/ - jar-file for test envorement 2 of weblogic (hostname - server2)
2. I have the directories with WLST scripts for deploing the build JAR-files:
2.1. Script files for deploing the jar-files in test envorement 1 of weblogic (hostname - server1)
/home/build/test1/scripts/deploy.sh
/home/build/test1/scripts/deploy.py
2.2. Script files for deploing the jar-files in test envorement 2 of weblogic (hostname - server2)
/home/build/test2/scripts/deploy.sh
/home/build/test2/scripts/deploy.py
3. Hudson (Hudson ver. 2.1.2) is intsalled.
Could you please tell me, how to automatic deploy *.jar in WebLogic by Hudson and WLST, if take into consideration the email-notification about problem in deploing?

I've never used WLST inconjunction with Hudson.
What I have done is use Maven to do this.
We have a WebLogic Server Maven Plugin which can perform deployment operations.
Hudson has support for Maven, so you create a Maven project which does the deployment from the project and configure a job using that on Hudson -- if you can get your developer to upload their artifacts to some form of SCM system so Hudson watches for the changes, grabs the new file and does the deployment, that would work.
If you want to use your scripts, then you could perhaps use the Hudson SSH plugin which can execute "shell" scripts on a server. Theoretically here you would create wrapper shell scripts for your WLST execution/script, then configure a Hudson job which executes the scripts. I've never used the plugin so not sure how it is activated, but you could configure a job to run on a periodic basis, and have the wrapper script itself do the check to see if the directory contains a jar/ear file to deploy -- if it does, execute the WLST scripts; if not, simply return.
Let us know how you get on!
-steve-

Similar Messages

  • How to deploy axis on weblogic 5.10 sp13

    Could anyone please help us find documents on how we can install axis (Apache
    SOAP engine) on weblogic 5.10 sp13?
    Thanks
    Insoo

    Hello,
    You might try taking a look [1] at this reply from Michael Wooten.
    HTH,
    Bruce
    [1]
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.webservices&item=1957
    Insoo Lee wrote:
    >
    Hello,
    or, it doesn't have to be weblogic 5.10.
    any pointers on how to deploy axis on weblogic in general?
    Thanks
    "Insoo Lee" <[email protected]> wrote:
    Could anyone please help us find documents on how we can install axis
    (Apache
    SOAP engine) on weblogic 5.10 sp13?
    Thanks
    Insoo

  • How to deploy jar file in WLS using ant script

    Hi,
    Im trying to deploy a jar file in weblogic 10.3 using ant script and am running into the below error.
    +[wldeploy] weblogic.management.DeploymentException: [J2EE:160177]The application at "/u01//RSJBObjects.jar" was not recognized as a valid application type. If this is an EAR file, please ensure the META-INF/application.xml exists. EJB-JARs should have a META-INF/ejb-jar.xml or corresponding annotations exist. If this is an exploded WAR, the name of directory must be end with ".war". RARs require a META-INF/ra.xml. A JMS deployment should be an XML file whose name ends with "-jms.xml". A JDBC deployment should be an XML file whose name ends with "-jdbc.xml". For other application types, please consult the WebLogic Server documentation.+
    When i try to deploy the same manually from the console, i get a warning stating that WLS thought this as a library and hence proceeding to deploy as a library. After this warning the deployment continues and completes.
    Problem is when i try to deploy using ant, it breaks at this point.
    Is there any means that we can deploy a jar to WLS using ant script. This has to be deployed as a library as other apps would be using this jar.
    Im unable to create a ear file for this single jar file.
    If there is any suggestion on can this be done, please share.
    Thanks,
    Vijay.

    Hi Sunil,
    Thanks for the reply, it worked.
    Another doubt on the same lines. Now that the jar has been deployed as a library in WLS, when i try to deploy a WAR which refers to this deployed jar library, im unable to. I run into and error stating that the library is inaccessible.
    I have to bounce the server and before doing that, i have to manually copy the library.jar from <WLS_domain>/servers/AdminServer/upload/ directory to <WLS_domain>/lib/ directory, once copied i then try to deploy the WAR, then the deployment goes fine.
    Is there any means that this deployed library jar be made available soon after deployment and also to avoid copying the file.
    Thanks,
    Vijay.

  • How TO DEPLOY JAR FILES INTO XI Server using SDM

    Hi XI Gurus,
       im working on adapter development. we have created jar file in NWDS.
       now going ahead to deploy into XI server through SDM.
       can we deploy jar files directly into xiserver through SDM. or it needs to convert to any other formate like EAR, SDA. then how would i convert to SDA.
      i any have clear idea on this... pls throw the ways how to convert........
               JAR File to EAR format
               JAR file to SDA format
               EAR file to SDA format         
       can any one explain the procedure step by step how to convert jar file into deployment archive file in order to succesfully into XI server.
              thanks  i advance. points will be rewarded.
      Regards
      Rajesh

    Hi Rajesh,
    JAR file in itself in not deployable.
    So v need to envelop this jar file into an EAR file and then v deploy this EAR file on SDM.
    Creating Jar
    Inside NWDS --> Windows --> Open perspective --> J2EE Development --> right click on ur proj --> Build EJB Archive
    Converting .EAR file to .SDA
    Converting .EAR file to .SDA
    Regards,
    Prateek

  • How to deploy jar file in ebs12?

    hi, now I want deploy a jar file in ebs12.
    for example, my oaf code using jdom to parse xml file. so I need to deploy jdom.jar
    into ebs12 server.
    Where shall I put this jdom.jar.
    Does I need change some configuration.
    btw, in ebs11i, I can change Jserv.properties to support this.
    thanks
    tamsun

    Hi Sunil,
    Thanks for the reply, it worked.
    Another doubt on the same lines. Now that the jar has been deployed as a library in WLS, when i try to deploy a WAR which refers to this deployed jar library, im unable to. I run into and error stating that the library is inaccessible.
    I have to bounce the server and before doing that, i have to manually copy the library.jar from <WLS_domain>/servers/AdminServer/upload/ directory to <WLS_domain>/lib/ directory, once copied i then try to deploy the WAR, then the deployment goes fine.
    Is there any means that this deployed library jar be made available soon after deployment and also to avoid copying the file.
    Thanks,
    Vijay.

  • How to deploy jar file for use within mapping user-defined fcn

    Hi all,
    I have a java class I'd like to called from a mapping user-defined function.
    Here's what I've done (but hasn't worked)
    1. Added 'package com.<mycompany>.xi.util.base64 to the source class file and compiled it.
    2. Created a sda with a plain provider.xml file, i.e. no references were made to any other library files.
    3.  Deployed the sda to the xi 3.0 j2ee server successfully using SDM.
    4.  Under the Visual Admin tool, I see that the library was deployed successfully.
    5.  In the import text box in the user-defined function (design time), I enter com.<mycompany>.xi.util.base64.*.
    A syntax check returns an error indicating the package could not be found. 
    Can anyone give me pointers as to how I can get this working?
    Thanks,
    --jtb

    Hey James,
    No! That's not the right way!
    What you have done is for accessing external JMS & JDBC drivers in their corresponding adapters. For the access inside a mapping user defined function, it's enough if you import the jar files.
    Look at this blog and you will be very clear!
    /people/divya.vidyanandanprabhu/blog/2005/06/28/converting-xml-to-pdf-using-xi
    regards,
    Felix

  • How to deploy jar to non-java platform

    Hi,
    I am using netbeans 5.5 to develop some GUI application.
    I need to deploy it to some machine that may not have jdk installed at all. i.e can someone run my application w/o install jdk or jre specifically?
    I have myapp.jar built in dist/ folder. the readme said it will include all jar to dist\lib, but I don't even see the dist\lib folder.
    please help!!!

    Thanks!!!
    For now How can I make one executable that include
    both myapp.jar and the jre? So that users only need
    one click and the program runs?With a lot of effort, and I'm not sure it would actually be legal anyway. Just get 'em to install a JRE, it's not like it's difficult, no more so than installing any other program

  • How to deploy webservices in weblogic 90

    I am tryiong to find a way to deploy a set of web service endpoints
    represented by stateless session beans in WL9.0. I know that 9.0 best
    practice recommendation is using JSR181 and jwsc tool, but for various
    reasons I cannot use that approach. So, what is the alternate approach?
    Basically, I will have a generic ear file, where I have most of the JSR921
    artifacts generated by XDoclet. I want to deploy this EAR in WL after
    creating a set of new WSDLs (and replacing the corresponding WSDLs in the
    EAR) using the WL tools. What is the best approach here?
    It seems that only wldeploy is supported in 9.0. How can I use that to do
    what I want? Also, which tool do I use to generate WSDL's from the session
    bean service endpoints in WL 9.0?
    Thanks for any pointers.
    Shantanu Sen

    Pack the servlet in a web application packaging fashion and then go to the weblogic admin console...you can find the application by browsing the folder
    when you click on the "deploy web application" link (which searches for the web.xml file and a valid package structure)

  • How to deploy JAR as a Web Service

    Hi,
    I am new to BPEL and interested in building Web Services using BPEL. For this I am using Oracle BPEL Process Manager(JDeveloper).
    I have a standalone Java application (which I run from command prompt) and ant script which generates the JAR file. Can I deploy this JAR as a web service using Oracle BPEL.
    I have seen the examples given by Oracle BPEL and it was mentioned that using WSIF we can create WSDL file for our java class and call this WSDL as a partner link in my BPEL process. But how should I replicate it to my application.
    Can you please direct me in proceeding further.
    Thanks
    /Kiran.

    Hi,
    This is a forum for BI Beans questions - your question seems to be purely related to ADF and BC4J, not to BI Beans..

  • How to deploy jsp in Weblogic 7.0

    Hi,
    I would appreciate, if anyone can help me out.
    I'm new to weblogic.
    I have installed Weblogic in my system.[vers.7.0]
    i want to deploy my jsp file and run the jsp file.
    can anyone tell me where to deploy the jsp file and how to run it.
    do i need to create a war file to deploy jsp?
    can anyone tell the procedure in doing so...........................
    regds
    venkatraman.P

    use your console to create a web-app from the directory with the web-inf and your jsp. Hit deploy and it should work.
    War files are not necesary, for fast jsp development its even better to not use wars.

  • How to deploy jar file into oc4j

    Hi,
    I am new to jdeveloper.
    I deployed a application as .ear file by creating new coneection from the Connection navigator which is having web, ejbs amd client progrms. I dont have any problem with that.
    But for my feature modification on my ejbs or client programs, i want to deploy only its related jar file in the existing application in the server. But when i try to do the same, the client module or ejb module is deploying as new .ear file in to the server insterd of .jar file.
    How to overcome this in jdeveloper?
    Thanfully,
    Satish KC.

    I consider complete EAR deployment as a feature, because you can build self-contained versions, archive them and redeploy them in case of support situations.
    However, if you like to develop in incrementally you can run, test, show your complete application within JDeveloper. No extra deployment is necessary for that.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to deploy .jar ?

    hi,
    i developed jclient swing and i want deploy file jar.
    #### Deployment incomplete. #### Jan 27, 2009 12:10:13 AM
    *** Error: Caught class java.util.zip.ZipException while trying to process jar entry whose URL of origin is 'jar:file:/C:/Oracle/Middleware/jdeveloper/modules/oracle.mds_11.1.1/mdsrt.jar!/META-INF/MANIFEST.MF'.
    ---- Deployment started. ---- Jan 27, 2009 12:12:22 AM
    thanks

    I consider complete EAR deployment as a feature, because you can build self-contained versions, archive them and redeploy them in case of support situations.
    However, if you like to develop in incrementally you can run, test, show your complete application within JDeveloper. No extra deployment is necessary for that.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to deploy custom JSP file in reporting and analysis workspace extented services?

    Hi All,
    We are using Oracle EPM 11.2.3 Interactive reporting.  We need add on functionality on the existing workspace and developed a JAVA code for that. Now we are facing challenges with deploying JSP file with existing weblogic server. does anybody did it before? we followed oracle doc but not useful.
    The task of JSP file would get the user information from the existing session then list the file which user has access and follow.
    Do we have any doc related to this? Your help is highly appreciated.
    Thanks
    Venkatesh

    Hi,
    After deployed inside the OC4J server. Run the index page by
    Calling like http://hostname:port/earname/index.jsp
    While deploying the ear file you would have given a name for the ear file use that name in the URL.
    If so then you can see the provider displayed on the index page. Then click on the provider name it will take you to the next page where it will display all the portlet inside the provider.
    Please copy the URL and paste it while registering the Provider with the portal server.
    Because the server will try to navigate to the URL mentioned while registering if the server dint find the proper URL then registration fails.
    Try this and let me know.
    Regards,
    Vijay.B

  • EPMA 11.1.1.3 manual deployment issues with WEBLOGIC in EAS and WEBANALYSIS

    Hi all,
    As we are working on 64 bit machines, we have to deploy hyperion products manually with WEBLOGIC. other than EAS and WEBANALYSIS, all the products are working fine.
    we have followed all the steps related to manual deployment. but still we r getting JAVA related error. so if anything else that we need to perform other than normal manual deployment steps, please let me know.
    NOTE: EASDOCS, HBRLAUNCHER, are working but EAS is not been deployed.
    Regards

    Is your WebLogic 32-bit or 64-bit WebLogic? What specific O/S and version are you using? Some of the products make use of 32-bit native libraries's for JNDI and there are not 64-bit native libraries available unless you are using the AIX or Solaris Platform and even then not all products are supported for 64-bit.
    If you were to use 11.1.2 it supports most of the product suite in 64-bit on most platforms.
    Refer to support matrices at: http://www.oracle.com/technetwork/middleware/bi-foundation/hyperion-supported-platforms-085957.html
    Regards,
    John A. Booth
    http://www.metavero.com

  • How to deploy BP ERP05 ESS 1.41 and BP ERP05 MSS 1.41

    Hi
    I want to deploy the components :
    Business Package for Employee Self-Service (SAP ERP) 1.41
    Business Package for Manager Self-Service (BP ERP05 MSS 1.41)
    On Portal,Can anybody please guide me with this
    As far as I have read and understand I will need SAP MSS,SAP PCUI GP and SAP ESS apart from BP ERP05 ESS 1.41 and BP ERP05 MSS 1.41
    Now the question is :
    do I have to install the previous versions of BP ERP05 ESS 1.41 BP ERP05 MSS 1.41?
    or just download the files that I have said above and install it
    Rohit

    Hi,
    As far as i know you can directly go with 1.41 ad java is not Patch Level dependent.you can directly go with the leel you want you dont require the sequence patch.
    Thanks
    Rishi Abrol

Maybe you are looking for

  • HP Photosmart Premium C309g-m on wireless for a wired PC

    I have a Photosmart Premium C309g-m connected wirelessly to the LAN, as also are several other computers (both Windows and Mac). No problem here, all connect and print fine. I also have an older desktop (windows) connected to the access point wired.

  • HELP!! SQL query performance bad!!

    This is a very simple query, but it takes too long to process. I have tried changing the orders of everything to no avail. table RBN_MINUTE has 85 million records tabe RBN_LOGS has 12 million RBN_MINUTE has these indexes PK - Start_datetime, RBN_Log_

  • Formula IF in transformation

    Hi Gurus, I am trying to write a formula in transformation for a charecterstic. IF( ( UMSKZ = 'E' OR UMSKZ = 'X' ), ( LEFT( ZUONR, 10 ) ), 'null' ) check if spl. GL = E or X, then split the assignment number and update document number. It says formul

  • I have a Compaq Proliant 1600 PII 450. the installation hangs. any ideas ?

     

  • SAP Connect - SCOT/SMTP Config Clarifications

    Dear Global Colleagues, even though enough information is available in Google & in Help.sap.com about SAPConnect configuration, SCOT settigs with detailed snapshots I unable to figure it out the flow & stuck up with couple of confusions. Requesting y