How to deploy app level JMS resource using DeployerRuntime?

I have an app level (described in the app, not global) JMS module. And inside this module I have several different resources.
          Here is my question: when using weblogic.management.deploy.DeployerRuntime (or WLST) what syntax should I use in case I need to set target for each JMSResource?
          Here is my code:
          DeploymentData info = new DeploymentData();
          info.addTarget("Server",null);
          String[] mods = { "JMSModule" };
          info.addTarget("Server",mods);
          String[] jRes = { "JMSModule@JMSResources" };
          info.addTarget("JMS_Server",jRes);
          ObjectName task = ( ObjectName )
          connection.invoke ( deployer, "deploy",
          new Object[] { path, APP_NAME, "nostage", null, info, new Boolean(true)},
          new String[] {"java.lang.String", "java.lang.String", "java.lang.String",
          "java.lang.String", "weblogic.management.deploy.DeploymentData", "java.lang.Boolean"} );
          I tried different combinations of
          String[] jRes = { "JMSModule@JMSResources" };
          String[] jRes = { "JMSModule/JMSResources" };
          String[] jRes = { "JMSModule\\JMSResources" };
          but nothing seems to work.
          Thank you.

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.

Similar Messages

  • 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.

  • BEST PRACTICES: How to deploy apps with public and private content & data?

    Can anyone recommend a guide, blog post, etc. on best practices for:
    - designing & deploying apps that have publicly-accessible (http + https) content, and
    - content and data for which users must be authenticated and authorized?
    NOTE: In our environment users are authenticated via OID. We're using Apex 4.

    Hi,
    Have a look at this Sample App for getting Auth Token from Instagram in windows phone app. 
    Also read the api documentation for more details from
    here.
    Pradeep AJ

  • How to create two level dynamic list using JSP , Java Script and Oracle

    I am new in JSP. And i am facing problem in creating two level dynamic list using JSP ,Java Script where the listdata will come from Oracle 10g express edition database. Is there any easy way in JSP that is available on in ASP.NET.
    Plz response with details.

    1) Learn JDBC API [http://java.sun.com/docs/books/tutorial/jdbc/index.html].
    2) Create DAO class which contains JDBC code and do all SQL queries and returns or takes ID's or DTO objects.
    3) Learn Servlet API [http://java.sun.com/javaee/5/docs/tutorial/doc/].
    4) Create Servlet class which calls the DAO class, gets the list of DTO's as result, puts it as a request attribute and forwards the request to a JSP page.
    5) Learn JSP and JSTL [http://java.sun.com/javaee/5/docs/tutorial/doc/]. Also learn HTML if you even don't know it.
    6) Create JSP page which uses the JSTL c:forEach tag to access the list of DTO's and iterate over it and prints a HTML list out.
    You don't need Javascript for this.

  • How to add app to " complete action using "?

    I cant seem to find any setting to change apps in complete action using app list...I want to add another app while editing photos to the dialogue &quot;complete action using &quot;.... Plz help

    So you want to be asked to open a specific media file with other apps? Try settings-apps-all,tap on 3 dots(settings) and reset app preferences.
    All we have to decide is what to do with the time that is given to us - J.R.R. Tolkien

  • Deploying app in public domain using tomcat on unix

    I am using windows and I have deployed my app to a local instance of tomcat 5.5.9 and it runs perfectly. However I am trying to get my app running on my web host using tomcat 5.5.9 on unix but it has problems.
    As stated in other threads my host provides a public_html folder for my site however *.war files do not run or unpack from this folder and my web host won�t allow deploying of *.war files elsewhere in their system. So instead I upload all the folders/files in my app build which should give the same result as deploying the *.war anyway.
    Unfortunately the app won�t run at all when entering the domain www.<mydomain>.com due to following error:
    javax.servlet.jsp.JspException: Cannot find FacesContext
    When I enter the URL www.<mydomain>.com/faces/index.jsp the page loads but has problems with referencing styles and scripts that are generated dynamically at runtime such as:
    <script type="text/javascript" src="/theme/com/sun/rave/web/ui/defaulttheme/javascript/formElements.js"></script>
    <link rel="stylesheet" type="text/css" href="/theme/com/sun/rave/web/ui/defaulttheme/css/css_master.css" />
    <link rel="stylesheet" type="text/css" href="/theme/com/sun/rave/web/ui/defaulttheme/css/css_ie55up.css" />
    <script type="text/javascript">
    var sjwuic_ScrollCookie = new sjwuic_ScrollCookie('/index.jsp', '/faces/index.jsp');
    </script>
    I think this problem is because the path to my webapp is not standard. I asked my web host for the absolute path to my domain and they said it is �/home/<account name>/public_html�. However I want to avoid having to enter faces/index.jsp into the url if possible. It works like this locally so why not on web host? The welcome file in web.xml points to �faces/index.jsp� so it should come up automatically just by entering the domain. But even when I run my app locally I can enter localhost:8080/<webapp>/faces/index.jsp and it renders correctly.
    So my questions are�
    Does anyone know how I can get my app working properly under my public domain? Does my problem relate to the pathing of my app and if so is it possible to specify the absolute path to my app so that tomcat registers it properly. If so where and how would this be done?
    Obviously all configuration must be handled within my app as I have no access to modify settings on the web host.
    Please help!
    Thanks

    Hi, i managed to work out a solution with my web host.
    The problem was that they are using Apache to process all incoming http requests then only forwarding specific requests to tomcat.
    So by entering the port number after the domain ie www.mydomain.com:8080/ the http request went directly to tomcat and was processed correctly.
    Furthermore my web host configured apache so all requests go straight to tomcat so now the port number isn't even required and all is well with the world again!
    except... navigating to different pages in my site does not update the url correctly.
    For example the site loads index.jsp when entering www.mydomain.com/ but when navigating to another page (i.e. photo.jsp) the photo.jsp page loads ok but the url is updated to www.mydomain.com/faces/index.jsp which is not correct. When refreshing the photo.jsp page it reloads the index.jsp page because of the incorrect url.
    any ideas...

  • How to update apps when another person used their apple id instead of mine

    Another person set up my mac 3 years ago and used their apple id to download apps but I no longer know them. How do I do updates for my apps with my id?

    You cannot. You will need to Purchase those Apps using Your Apple ID.
    Anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID
    Apple ID FAQs  >  http://support.apple.com/kb/HT5622

  • How to Read Message from JMS Queue using Business Service(ALSB3.0)

    Hi,
     My Project Set up is as follows(using ALSB3.0).
    1>One Proxy Service with transport as HTTP.
    2>The Proxy service is calling another Business Service.
    3>The Business Service has transport layer as JMS.
    So here the business service is posting Request Message into the JMS queue.
    I want at the same time it(The Business Service) should listen to another queue and from there it should read Response Message and forward back to the caller proxy service.
    Can any one help me regarding this...
    Thanks in advance...
    Deba

    Hi ,
    Problem in : Reading / writing messages to the JMS Queue -
    I am stuck with the same problem and I am not able to proceed futher, Can you please help me out in sending an example of how to do right configurations in ALSB and on the server. I read the documentation but still I dont see messages in the queues.
    please help me out. can you post a small sample example
    thanks
    adi

  • Setting App level Items and using it.

    Hi all
    I am setting the application level item value by application level process which is working good.
    application level process : select get_dbname into env_str from dual.
    But when I use this variable value, its not working.
    In logout URL,, I am trying to put &env_str. but that is not working.
    Any idea?
    pb

    Scott,
    Its working, but for some reason this whole thing (using item in logout url) wasnt working for this particular application.
    Thanks for the reply.
    pb

  • How can i create Level Based Hierarchy using multiple logical table.

    Hi All,
    in my use case i have two master logical table.
    Division_Mst(divncd,DivnName)
    Department_Mst(deptcd,DeptName)
    and one logical table which contain both column Header (divncd,deptcd)
    and fact table detail where one measure column(empcd) using aggregation count on it.
    so i want to create levelbased hierarchy like this.
    DivnName
              |------DeptName
    which are come from(Division_Mst,Department_Mst) .
    so user can see no of employees division wise and drill down to Department wise.
    How can i achieved this?
    thanks
    Manish

    Check out Shay's blog https://blogs.oracle.com/shay/entry/adf_faces_dynamic_tags_-fora
    Timo

  • How to deploy EAR on CE server using Java Support Package Manager

    Hello,
    I am using CE server where I want to deploy EAR file by using JSPM. I run this program in Drive:\usr\sap\CE1\J00\j2ee\JSPM\go.bat
    I have also put the EAR file into the inbox folder Drive:\usr\sap\CE1\SYS\EPS\in but still It does not show me any file to proceed further for deployment.
    Does any one has idea?
    Regards,
    NK

    Hi,
    The Java Support Package Manager is not able to deploy a single .ear file.
    If the *.EAR file is placed inside an SCA (Software Component Archive) then JSPM is able to deploy it.
    You have to create a .SCA from an .EAR file
    SAP note 1223957 contains an attachment (nwpacktool.zip) which can be used to create a .SCA file from the .EAR file.
    Gerd

  • How to import into ALSB a resource using WLST

    Hi all,
    I've an ALSB project that contains my templates (proxy, business services, xsd, etc) and I use a WLST script for creating a new project, reading additional info from a xml file, cloning ALSB stuff from my templates.
    The cloning process is working very well and now I'm trying to import xq, xsd, etc in order to replace the old with the new ones.
    As starting example I've already download the code sample created by Gregory Haardt.
    During the import phase I got an error:
    [java] #### [EventBus-DummyEvent] cloning the TransformIntoConsumerEvent proxy template
    [java] template : EventBusCore/template/[ConsumerEvent]-[ConsumerName]-TransformIntoConsumerEvent
    [java] template cloned into : EventBus-DummyEvent/consumers/Consumer1/resource/DummyEvent-Consumer1-TransformIntoConsumerEvent
    [java] #### read resource Zip file: /products/software/terraferma/release3/EventBus/repository/events/DummyEvent/DummyEvent-resources.zip
    [java] New XQuery Ref Xquery EventBus-DummyEvent/DummyEvent-IPEventConfig
    [java] #### loaded resources in project: EventBus-DummyEvent
    [java] Diagnostics for Policy EventBus-DummyEvent/DummyEvent-IPEventConfig
    [java] ERROR: <0> invalid ws-policy: policy must have a 'wsu:Id' attribute.
    [java] ================================================
    [java] #### ERROR - creation error: IPEvent project <EventBus-DummyEvent>, one or more files could not be imported properly
    [java] ================================================
    [java] No stack trace available.
    [java] Unexpected error: defClass.CreationFailure
    [java] No stack trace available.
    [java] Problem invoking WLST - Traceback (innermost last):
    [java] File "/products/software/terraferma/release3/EventBus/scripts/cloning.py", line 662, in ?
    [java] File "/products/software/terraferma/release3/EventBus/scripts/cloning.py", line 131, in cloning
    [java] File "/products/software/terraferma/release3/EventBus/scripts/cloning.py", line 621, in loadResources
    [java] CreationFailure: 'IPEvent project <EventBus-DummyEvent>, one or more files could not be imported properly'
    The zip contains the new xquery:
    jar tvf .../DummyEvent-resources.zip
    7575 Fri Sep 21 14:22:20 CEST 2007 DummyEvent-IPEventConfig.xml
    and the script is:
    # create the new XQuery ref
    queryName = IPEventProjectName + '/' + IPEventType + '-IPEventConfig'
    newXQueryName = queryName.split("/")
    newXQueryRef = Ref(TypeIds.XQUERY_REF, newXQueryName)
    print "New XQuery Ref", newXQueryRef
    bytes = readBinaryFile(resourceZip)
    result = ALSBConfigurationMBean.importZip(projectRef, bytes, None)
    print "#### loaded resources in project:", IPEventProjectName
    # check for errors
    diags = result.getFailed()
    if diags != None and diags.isEmpty() == false:
    printDiagMap(diags)
    failed = 'IPEvent project <' + IPEventProjectName + '>, one or more files could not be imported properly'
    raise CreationFailure(failed)
    Do I need to create a Ref object for any resource to be imported? What is the meaning of 'invalid ws-policy'?
    Thanks
    ferp

    solved ...
    I changed the file extension of the xquery inside the zip file from .xml to .xquery:
    jar tvf /.../DummyEvent-resources.zip
    0 Fri Sep 28 14:07:36 CEST 2007 resource/
    548 Fri Sep 28 14:09:44 CEST 2007 resource/DummyEvent-IPEvent.xsd
    7575 Fri Sep 21 14:22:20 CEST 2007 resource/DummyEvent-IPEventConfig.xquery
    I've also noted that if I organize the artifacts inside the zip within folders that structure is preserved in ALSB:
    [java] #### loaded resources in project: EventBus-DummyEvent
    [java] #### ... XMLSchema EventBus-DummyEvent/resource/DummyEvent-IPEvent
    [java] #### ... Xquery EventBus-DummyEvent/resource/DummyEvent-IPEventConfig
    Best
    ferp

  • HT201269 Can anyone assist me to solve this issue? how to purchase apps from Apple Store using in Afghanistan?

    Dear All,
       I use my iPhone here in Afghanistan, and location of my Apple ID is set to US, I want to purchase some apps from Apple Store but when i enter my credit card details so it ask me for US's Credit Card, Even i could not find Afghanistan in the list of countries.
    Can anyone assist me to solve this issue?
    Thank You.

    Sorry, but there is no iTunes Store for Afghanistan and you are not allowed to use the iTunes Store of any other country, so unless you physically go to another country and have a valid payment method issued in that country (an Afghani credit card will not be accepted), you cannot purchase apps.
    Regards.

  • HT4623 Since I updated to iOS 7 I don't know how to close apps the way I used to do it no longer works..any ideas

    See question

    double click the home button while on the home screen.. thats your multi task.. swipe the apps up off the screen and that kills it

  • How to set values in JMS Adapter using Adanced specific Message Attributes

    Hi Frnds,
    in my scenarios i have to add extra header information MQ Message,
    using Adanced specific Message Attributes i defined 7 parameters(Transaction,Environment,shema......) all are type Interger.But i have to set values ( Transaction type,Enviroment,shema....).
    Where i can set values ??
    help me on this...
    Regards,
    Raja Sekhar

    Hi Vijay,
    Thanks for your replay,as per your input i creted dynamic configuration method,
    i taget structure  luks like this
       <Data>
           <Mesage>
                 <gl_update>
                      <header>
                            <ean1>
                            <ean2>
                      </header>
                  <gl_update>
           <Message>
    i written UDF and mapped to header element gl_update,
    but i am getting  below error message in MONI
    SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_ ffjms_</SAP:P1>
      <SAP:P2>com.sap.aii.mappingtool.tf7.IllegalInstanceExcepti</SAP:P2>
      <SAP:P3>on: Cannot create target element /ns0:MT_jms_ _a</SAP:P3>
      <SAP:P4>sync_out/Data/Message/ GLUpdate. Values missi~</SAP:P4>
      <SAP:AdditionalText />
      <SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MM_ ffjms_; com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot create target element /ns0:MT_jms_ asyncout/Data/Message/ GLUpdate. Values missi~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    i want to know i mapped to UDF to GL_Update is is correct, to which element i have to map.
    i think there is no prob with UDF,its executing ,giving warning messages
    help me on this,
    Regaards
    Raj

Maybe you are looking for

  • Iphone 5 error 9

    I was playing a puzzle game on my iphone when all of a sudden the screen darkened and went black, I could not turn the phone on or off. it is locked solid. I plugged it in to itunes and I received a message saying it was trying to recover, then I got

  • Q'S struck  in ECC 6.0

    Hello Guru's We have a Q struck in ECC 6.0 in which  the Q name R3AD_OBJCL destination CRM, status waitupdate  i want to know wht is this Q all abt , and what r the reason why it  is struck in ECC How to over come this q Thanks in advance Regards Sre

  • Different page appearance

    I have 2 pages, one is at http://www.salleboise.com/confirmed.cfm and the other is http://www.salleboise.com/club_tournaments.htm I'm trying to figure out why the http://www.salleboise.com/club_tournaments.htm page has extra white space after the tex

  • Drag & Relate Relation Editor ins't accessiable for source and destination

    Dear all, we've install a EP 7 SPS 15 and want to use the relationship editor, after we've import the business objects from a systeme where we have already a connection with ep6 the objects are available, but when we want to add them as source / dest

  • Sm59 SAPXPG_DBDEST_ sid failed

    Hi expert:     I meet a problem that the DB13 database job can not excute successfully.Our central instance and DB installed on two seperate server.I have searched some subject about this,and found the rfc connection SAPXPG_DBDEST_<SID> is related ,b