How can i call java class implemented as service from ExtJS after successfull activation of a page ?

Hi ,
I want to call a java class implemented as a service in felix . This should be called after succesfull activation of the page .
I want to use ExtJs implemented in /libs/cq/ui/widgets/source/widgets/wcm/SiteAdmin.Actions.js file CQ.wcm.SiteAdmin.activatePage method.
Please suggest something on this .

Hi Sham ,
i tried this ,
var response = CQ.HTTP.post(
        CQ.shared.HTTP.externalize("/bin/replicate.json"),
        callback,
        { "_charset_":"utf-8", "path":paths, "cmd":"Activate" }
if (CQ.HTTP.isOk(response)) {
     CQ.HTTP.post("/bin/sample.json",
              null,
              {"_charset_":"utf-8","path":paths});
It is giving an alert messege on siteadmin screen as "Unspecified Error" .
What can be the problem , am i missing something here?

Similar Messages

  • How can i call java class file in jsp page

    Hai,
    i wants to call .class file in jsp page.
    my class file is in C:\jsdk\bin.
    Thanks

    I'm not entirely sure what you mean by "calling a class file", but I'm going to assume that you want to do something like the following in your page:
    <%
    MyClass myClass = new MyClass();
    myClass.someMethod();
    %>etc
    If that's the case, then all you have to do is make sure that the class is in the servlet engine's classpath. You'll probably also need to include an appropriate import statement at the top of the page.
    Hope that helps.

  • How can I called java.lang.Math.sqr function from PL/SQL?

    JVM is loaded and I've queried the system table showing there are more than 9000 JAVA class objects.
    When I try something like:
    select java.lang.Math.sqrt(9) from dual;
    I get ORA-00904 (invalid column name) error. How can I invoke standard java.lang.Math methods in PL/SQL?
    tia

    You need to write a PL/SQL wrapper for the java call.
    Then you just call the PL/SQL function..
    -------PL/SQL wrapper
    FUNCTION GetFullName( code varchar2) RETURN NUMBER
    AS LANGUAGE JAVA
    NAME 'ResponseXml.GetPersonFullName(java.lang.String) return java.lang.String';
    Now you can do
    Select GetFullName( 'mycous' ) from dual;

  • Than how can i get java class by using it's class file?

    Hi
    After compilation of a java program, it creates a class file.
    After getting class file suppose class file has been deleted.
    Than how can i get java class by using it's class file?
    Thanks in advance.

    get a decompiler and run your class file through it--I'll assume you want the source code back and that you are not trying to recover a missing class file by attempting to use the class file that is missing--if it's missing, then I've not a clue on how to get it back by using what is already missing.
    BTW: many of your compilers have source control--if it does, just restore your missing file.

  • How can we call a class file of one package for class file of another

    How can we call a class file of one package from class file of another package and both packages exist in a same folder

    How can we call a class file of one package from
    class file of another package and both packages exist
    in a same folder
    Luckily they don't so it's really not a problem after all.

  • How can i call the certificate selection dialog box from source code?

    How can i call the certificate selection dialog box from source code?
    NB: Of course if i have more than one certificate in the Microsoft Keystore 'My'.
    Thank You in advance

    I found an example of the "TestStand UI Expression Control.ctl" and it works just the way I need it. (check the link)
    Proper use of "TestStand UI ExpressionEdit Control" in LabVIEW http://forums.ni.com/ni/board/message?board.id=330&requireLogin=False&thread.id=10609 
    The "Expression Browser Dialog Box Button" F(x) stays disable while editing the VI, however it become available when the VI is called from TestStand.
    Thank you,
    Hecuba
    Mfg. Test Engineer
    Certified LabVIEW Associate Developer

  • How can we call java control source methods within jsp

    Hi guys!
              How can we access java control source methods that are defined in java control projects within jsp.I am getting error when I tried to call java control source's methods in scriptlet of JSP page.Any help/suggestion is appreciated.
              Thanks
              -Chandu

    Uh, what?
    (And you are sure that it's not a Weblogic-specific question?)

  • How can I call the create method in BO from Application Service

    Hello!
    When I create a Business Object, CAF generates some methods automatically.
    How can I call the create method in the BO from Application Service logic?
    When i call the method then the entityManager and the sessionContext is NULL.
    How can I initialize this?
    Can anybody help me?
    Thanks, Thomas

    If you are using CE 7.11...
    1) In the Application Services, add the BO as dependant object in dependencies tab.
    2) In the implemention, add the following codes to call create method of the BO:
    this.get<BO>.createMethod();
    julius

  • Calling Java class stored in directory from PL/SQL

    Is it possible to call Java class that is stored in directory from PL/SQL
    or must those Java classes be stored in Database?
    Has anyone any information considering this?
    Cheers,

    user529557,
    You have the following options:
    * Web Services
    * Servlets
    * EJB
    * RMI
    * JMS
    There may be others.
    Good Luck,
    Avi.

  • Can we call Java class from LiveCycle Process?

    hi..
    I have a general query, is it possible to call customeized java class from Workbench Process?
    I found dat we can invoke a web service... is there some operation like that for calling a java class...
    Thanks and Regards,
    Ambika

    Yes.
    You can use the Script service and put your Java code in there
    Or build your own component, which is really a Java pojo, and deploy it to LiveCycle. See http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/000934.html.
    Jasmin

  • How can i call shutdown class after the server stopped listening http request

    Hi,
    I am using wls70sp1. I noticed that the shutdown class called right atfer the
    Server state changed to SUSPENDING. Then i saw the <http> *.jsp: destroy>, etc.
    see the log file in attachment. how can config the server stop the http listening
    first and then do the clean up works? This is very important for us, otherwise,
    there is still chance the request be left out.
    Thanks
    [shut.txt]

    Hi,
    I am using wls70sp1. I noticed that the shutdown class called right atfer the
    Server state changed to SUSPENDING. Then i saw the <http> *.jsp: destroy>, etc.
    see the log file in attachment. how can config the server stop the http listening
    first and then do the clean up works? This is very important for us, otherwise,
    there is still chance the request be left out.
    Thanks
    [shut.txt]

  • How can I call the Class and have a PDF appear in seperate window?.

    I would like to call the class/interface ZCL_UIU_PRN_ACCOUNT2, method Collect_data and have a Smartform executed to produce a PDF document in a Seperate window.
    Where I have an issue is in opening another window to display the PDF.
    I know the Standard PDF Facsheet does exactly this, but that is triggered via the Web browser and calls a Java script, avoiding and events and round-server trip processing. I would have changed the button values so that when pressed it does process the various events and eventually ends up at EH_ONPREVIEW for the BP_HEAD/Overview. I know just need to open a new window and call the process to create the PDF via Smartform.
    Any suggestions would be more than welcome. I have spent so much time on this, and have gained no real ground, so far.
    Jason

    Hi,
    in the method
    data: zcontrol TYPE SSFCTRLOP.
    zcontrol-device = 'PRINTER'.
    zcontrol-langu = sy-langu.
    zcontrol-no_dialog = 'X'.
    zcontrol-getotf = 'X'.
    data: job type SSFCRESCL.
    data: devtype type RSPOPTYPE.
    CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
    EXPORTING
    i_language = sy-langu
    IMPORTING
    e_devtype = devtype
    EXCEPTIONS
    no_language = 1
    language_not_installed = 2
    no_devtype_found = 3
    system_error = 4
    OTHERS = 5.
    data: output_options type SSFCOMPOP.
    output_options-tdprinter = devtype.
    call function FM_NAME
    EXPORTING
    *   ARCHIVE_INDEX              =
    *   ARCHIVE_INDEX_TAB          =
    *   ARCHIVE_PARAMETERS         =
       CONTROL_PARAMETERS         = zcontrol
    *   MAIL_APPL_OBJ              =
    *   MAIL_RECIPIENT             =
    *   MAIL_SENDER                =
       OUTPUT_OPTIONS             = output_options
    *   USER_SETTINGS              = 'X'
    IMPORTING
    *   DOCUMENT_OUTPUT_INFO       =
       JOB_OUTPUT_INFO            = job
    *   JOB_OUTPUT_OPTIONS         =
      TABLES
        t_texto                    = t_texto
      EXCEPTIONS
        FORMATTING_ERROR           = 1
        INTERNAL_ERROR             = 2
        SEND_ERROR                 = 3
        USER_CANCELED              = 4
        OTHERS                     = 5.
    if sy-subrc <> 0.
    endif.
    data: DOCTAB_ARCHIVE type TABLE OF DOCS,
    LINES type TABLE OF TLINE.
    *CALL FUNCTION 'CONVERT_OTF_2_PDF'
    ** EXPORTING
    **   USE_OTF_MC_CMD               = 'X'
    **   ARCHIVE_INDEX                =
    ** IMPORTING
    **   BIN_FILESIZE                 =
    *  TABLES
    *    otf                          = job-otfdata
    *    doctab_archive               = doctab_archive
    *    lines                        = lines
    * EXCEPTIONS
    *   ERR_CONV_NOT_POSSIBLE        = 1
    *   ERR_OTF_MC_NOENDMARKER       = 2
    *   OTHERS                       = 3
    data:  l_pdf_len type i,
    l_pdf_xstring type XSTRING.
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    format = 'PDF'
    IMPORTING
    bin_filesize = l_pdf_len
    bin_file = l_pdf_xstring
    TABLES
    otf = job-otfdata
    lines = lines
    EXCEPTIONS
    err_max_linewidth = 1
    err_format = 2
    err_conv_not_possible = 3
    err_bad_otf = 4
    OTHERS = 5.
    IF sy-subrc is initial.
    DATA: cached_response TYPE REF TO cl_http_response.
    CREATE OBJECT cached_response
    EXPORTING add_c_msg = 1.
    l_pdf_len = XSTRLEN( l_pdf_xstring ).
    cached_response->set_data( data = l_pdf_xstring
    length = l_pdf_len ).
    cached_response->set_header_field(
    name = if_http_header_fields=>content_type
    value = 'application/pdf' ).
    cached_response->if_http_response~set_status( code = 200
    reason = 'OK' ).
    cached_response->if_http_response~server_cache_expire_rel(
    expires_rel = 180 ).
    data guid type GUID_32.
    CALL FUNCTION 'GUID_CREATE'
    IMPORTING
    ev_guid_32 = guid.
    data display_url type string.
    CONCATENATE url '/' guid '.pdf' INTO
    display_url.
    cl_http_server=>server_cache_upload( url = display_url
    response = cached_response ).
    *GV_DISPLAY_URL & GV_PRINTON are class attributes
    CLEAR: gv_display_url, gv_printon.
    MOVE display_url TO gv_display_url.
    gv_printon = 'X'.
    ENDIF.
    Send me you e-mail i cannot post the code that is used in the view.htm.
    Best Regards,
    Caíque Escaler
    Edited by: Caíque Escaler on Nov 26, 2010 5:00 PM

  • How can I set Java class path right?

    After I downloaded Java Developer for 10.6 (10M3239a) (Disk Image) 139.4 MB,
    when I opened eclipse it showed 2 errors
    The project cannot be built until path errors are resolved
    Unbound classpath container: 'JRE System Library [Java-1.7]'
    how can i resolve this problem.
    can someone please help me, i am really new to these stuffs.

    I have the exact same problem. I'll try to find out but if someone could help us it would be grate.
    In my error message it says:
    The project cannot be built until path errors are resolved
    Unbound classpath container: 'JRE System Library [JavaSE-1.6]

  • How can i run Java class form  other java application.

    Hi ,
    I have problem to run java class from my java application,
    I am using the class ClassLoader in order to launched the Java class , it�s work fine whenever, the class exist in the same folder , however , when i am trying to run class that is not in the current folder ,
    i got error (see below),
    Do you have any idea what is wrong?
    java.lang.ClassNotFoundException
         at SimpleClassLoader.loadClass(SimpleClassLoader.java:110)
         at SimpleClassLoader.loadClass(SimpleClassLoader.java:53)
         at Run.main(Run.java:31)

    What does "run an class" mean? You don't run classes. They're not executables.
    I bet your problem is the classpath. You are aware that the classloader looks only there? Unless it's an UrlClassLoader.

  • How can i call java wedynpro application to SAP R/3?

    WDY_EXECUTE_IN_PLACE will helps to get the URL of ABAP Webdynpro Application.
    i want to get it Java Webdynpro Application which will develop NWDS.
    Thanks in Advance

    Hi Bheem,
                   In Web
    dynpro Java also you can get URL of your WD application.Check this [thread|how do i retrieve the url for external window;
    Regards,
    Siva

Maybe you are looking for

  • I purchased a song on my iPhone but can't find it now

    I purchased a song through iTunes on my iPhone 4s. I showed up in my purchased folder and I was able to play it like always. Before I updated to iOS7, I syced my phone. After the update, I tried to play the song and it's not on my phone or in iTunes

  • Withholding tax of vendor in different company code

    Hi All, We are facing problem that withholding tax of single vendor is being deducted correctly in one of the company code while in others, it deducts 0 tax. Single vendor e.g. 100002 is created in Company Code 112 The same vendor is extended in Comp

  • Core device to send a mail

    Hi Folks, Can I make my core device to send a mail when devices under it goes down for any reason Regards Thanveer "Everybody is genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is a stupid

  • Why do i get error 403 forbidden when downloading mountain lion

    I managed to download 2.2Gb over 3 days then it crashed with error 403. I started again after downloading Hotspot Shield got to nearly 4Gb and same again error 403 forbidden? is there a way of not having to start again without loosing the data ive do

  • E-mail read receipts - how to make them optional

    Hi, Is it possible to turn off "read-receipt" by default, or else to be asked, prior to such receipt being sent, for an activesync based e-mail account? When using the e-mail account from my (work) laptop, Exchange read receipts are 'off', always. Wh