Custom KM UI Command -- ClassNotFoundException. How to structure project?

Hi,
I'm tired of trying around, so I'm coming here, in hopes that someone can help me (I'm sure there is) :). I'm trying to create two commands (Archive and Push to topnews). The first command will put a resource to a predefined location, whils the second will take an existing document from one folder and replace it with the currently selected resource. The code for doing this is ok, but I cannot display the commands on the context menu!
I've created a separate layout set with a custom ResourceRenderer with a custom resource command group where my commands are defined in addition to several other, standard ones. The commands have been defined as:
<package>.<classname> for both "Java class" and "Bundle file" attributes of the UICommand in addition to the properties file with my label and tooltip.
I'm getting a ClassDefNotFound error no matter what I do. Even if I put it in the src.api or src.core folder I get this error in the trace. I was wondering if anyone could tell me how to structure the PAR file as I think I maybe missing something here...
In advance, thanks
Hans Petter

Hi Hans,
   In order to isolate this problem, you can use this example: "Implementing Flexible UI One-Step-Screenflow".
from:
Guide to examples:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/kmc/Knowledge%20Management%20and%20Collaboration%20Developers%20Guide.html
You can download this project, deploy and test this command. I have created commands using this example.
Patricio.

Similar Messages

  • Large application: how to structure?

    Hello JHS team,
    At my current customer, there is a very large Forms application (Designer generated, +100 fmb's). On the long run, the goal is to get this application migrated to ADF using JHS. With or without the forms to ADF conversion utility.
    My question now is how to structure the ADF/JHS version. The Forms application has a menu on top of the screen, with a hierarchical structure. Each menu item links to a specific .fmb in the application, and some fmb's are also linked to eachother.
    My initial thought was to make one ADF application (Model-ViewController), and for each fmb to create an equivalent Application Module. Or in JHS terms: each fmb represents a service. This way the (dynamic/static) menu feature of JHS could be used.
    Needless to say, this one application would become too large to maintain. And the largest disadvantage of this approach: it would not be possible to deploy an individual service, because the whole application would just be one .ear file after deployment. On the contrary, in Forms, an .fmb can easily be regenerated from Designer and deployed to the server. Without affecting the rest of the application.
    Another approach would be to make a new ADF application, with separate Model and ViewController project, for each fmb. But how to reach a menu structure then? Linking to a deployed ADF application requires quite an exotic URL, which you don't want hardcoded in your menu...
    How would this be solved in the cleanest way? Keeping in mind that an individual part of the application (ie the equivalent of one fmb) should be redeployable on its own, that there should be a menu to navigate to the different applications and that linking different application (incl passing parameters?) could be necessairy? Am I missing something obvious, or is this just very hard?
    We are using the latest JDev 11g version with (one of) the latest JHS build(s).
    Thanks for your input!
    Chris

    Chris,
    Please use the internal mailing list.
    The forum is intended for customers/partners.
    Btw, The ADF Methodology group has quite a few interesting threads related to structuring large ADF apps.
    Steven Davelaar,
    Jheadstart Team.

  • How to structure several scenes (in symbols) on the main stage timeline

    Hi,
    I'm new to edge animate but have a Flash background and I'm working in Edge Animate on a game which is structured in several scenes. Each scene I did put in a symbol. Now I wonder how to build the main timeline or the "story - controller" so to speak. I have all the scenes but I do not know how to connect them.
    In Flash it was possible to add keyframes of scenes one after another (like stairs) and jump forward or backward if needed to load the movie clips. In Edge Animate all scenes (or symbols) are in place from the beginning of the timeline and I cannot move the symbol to a later keyframe. Of course I can move animations in the timeline. The only way I think is to hide the symbols first and make them visible if needed. But this does not seem to be the right way and I don't understand the concept of structuring complex animations yet.
    I would like to know how to structure several scenes in Edge Animate properly. Something like a scene loader or unloader would be useful. Highly appriciate any hints to a solution.
    Thank you,
    JP

    resdesign wrote:
    You can also use edgecommons to load edge composition into another edge composition.
    Thank you to your tipp so I try to organize my scenes into compositions. I can successfully load a composition (scene2) into the main container :
    EC.loadComposition("scene2.html", sym.getSymbol("mainContainer"));
    Now I'm facing another situation. At the end of the loaded composition scene2 is a "Next Scene" button suppose to load scene3.html composition into the main container. "Next Scene" is a nested button inside the loaded composition screen2 symbol. How do I load the next compostion from the current one? This code for On Click of course does not work:
    EC.loadComposition("scene3.html", sym.getSymbol("mainContainer"));
    I think the refer to the mainContainer is wrong. Is it just a targeting issue or is it the wrong approach in general?

  • I am creating a web form from a template and I need to change a field. It is just a text field at the moment but I need to change it to a field that the customer can fill in. How do I do this?

    I am creating a web form from a template and I need to change a field. It is just a text field at the moment but I need to change it to a field that the customer can fill in. How do I do this?

    See this thread:
    http://answers.acrobatusers.com/Is-add-instructional-text-text-field-disappear-clicked-q19 5078.aspx

  • How to structure my package hierarchy?

    As an inexperienced Java programmer, I am having a hard time understanding how to structure packages hierarchically.
    Let's say that I am developing a client/server AddressBook application. So automatically, the following package hierarchy comes to my mind:
    (company/org name is ACME for example)
    com.acme.addressbook
    com.acme.addressbook.protocol
    The above two packages form the reusable core of the AddressBook system and include classes such as AddressBook, AddressBookEntry, etc. and related helper classes. Additionally, the protocol sub-package contains classes that pertain to the C/S network protocol. And both of these two packages are packaged up in a jar: AcmeAddressbook.jar
    com.acme.addressbook.client
    The above is the package for the Client application: AcmeAddressBookClient.jar
    com.acme.addressbook.server
    The above is the package for the Server application: AcmeAddressBookServer.jar
    My questions are: does such a package structure and hierarchy make sense? Or are there any glaring mistakes that I have made?
    Is it acceptable to keep the client and server applications into their own separate packages?
    Also, is there any recommended limit for nested packages i.e. how deep should packages be nested within the top-level AddressBook package?
    I am struggling to understand good package design and package structuring conventions.
    Thanks any for any info, critique, advice, etc.

    Lets the two client and server packages are respectively :
    com.acme.addressbook.client
    com.acme.addressbook.server
    Yes, such a package structure and hierarchy make sense!
    If you are having common utility classes and many library jars inside the package addressbook.library, you can just refer in client as well as in the server package.
    If you are going to create separate project for client and for server, you want to maintain multiple copies, which further results in the problems due to redundant code. ie., whenever you changed any library files, you want to update in both places.
    You can create two jars as you mentioned as,
    AcmeAddressBookClient.jar
    AcmeAddressBookServer.jar
    Before building jars you just want to set the executable Main class appropriate for Client and Server before making the client and server jars respectively.
    There is no limit for the nested package, if you need to group meaningfully, you can make as many nested package as you want!
    For your reference :
    http://articles.techrepublic.com.com/5100-22-1046677.html

  • How many structures can a BEx report have?

    Hi All,
    How many structures can a BEx report have?
    Is there any limit to that.
    Thanks

    Hi
    we can create two structures in the querl level.
    we can able to create two structures on rows but on columns it allows only one structure.
    key figures can be included in characteristics. characterstics can't be included in the keyfigures.
    we can save the structure as global and locally.
    from query performance point of view its not recomemnded to create the structure.
    it decreasse the query performance.
    it may help you.
    bye,
    kumar.

  • Choose customer from a command line

    Hi All, 
    I am using report builder 3.0 and wondered if there was a way to choose a customer from a command line so I can potentially call them from our CRM system which stores all our customer records? At the moment our customer record is being pulled from Microsoft
    GP Dynamics and wanted it to pull from our CRM system instead.
    Thank you in advance!

    Hello,
    The main intention of Report Builder is to create SSRS server based reports, not as a Report Viewer; so no, you can't pass any parameter from command line.
    When you have deployed the Report to SSRS then you can pass Parameter values via URL; see
    Pass a Report Parameter Within a URL
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Enhancing Customer Reports with Commands and Parameters

    Hi All,
    I am implementing the mentioned tutorial. I have succesfully deployed the AccessStatisticApplication PAR on portal. While scheduling the report from Content Management -> Reports -> Running Reports, it is giving error "<b>Can't find bundle for base name com.sap.netweaver.km.stats.reports.DocumentAccessReport, locale en_US</b>". Has anyone faced the problem, can anyone please help to remove this runtime error.
    Related Link: <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7d28a67b-0c01-0010-8d9a-d7e6811377c0">Enhancing Customer Reports with Commands and Parameters</a>
    Regards
    Poonam

    <i>True, the application property service is apparently not to be used for a real-life scenario</i>
    You can definitely use the application property service in production scenarios - it's used by other components in a standard KM install, i.e. out-of-the-box.
    <i>in our case it forced the server down with deadlocks. </i>
    This should definitely not happen! Did you get SAP support to take a look at this? Was it the most popular documents report that caused this, or some other custom code? There should be no such problem with this service, since it's been around for quite some time and in production use.
    <i>
    Even if the code sample is not to be used for real-life scenarios it could at least make use of something else than the application property service which isnt't optimal for this use.
    </i>
    The application property service is good for a lot of scenarios, so it is realistic to use in in real-life scenarios. The only time I have seen this approach (storing the number of hits on documents in the database) fail is in very high-load scenarios.
    <i>Could you provide me with a link to the documentation for the logging framework?</i>
    <a href="http://http://help.sap.com/saphelp_nw70/helpdata/en/d2/5c830ca67fd842b2e87b0c341c64cd/frameset.htm">Logging and Tracing</a> on help.sap.com and <a href="https://help.sap.com/javadocs/NW04S/current/en/index.html">Logging and Tracing API (J2EE Engine API)</a> for NW 7.0.

  • How to structure my application

    Since I'm new in java developpement, I don't know how to structure my application servlet/jsp which should have these age a functions:
    a page which load a table from a database, a page to change client parameters and a final page that allow to enter a new one,
    So, I need to know how many jsp pages and servlets will I need
    I'd be more grateful if you helped me to find some MVC tutoriels to help me to structure my apllication
    thanks

    Hi kesari,
    According to your description, my understanding is that you want to display data only from one site collection in Content Search web part.
    For your issue, you can create a Result Source for the site collection using the query "Path:<URL of the site collection>". The result source only query the date from the site collection. Then you can use the Result Source in the
    Content Search web part, and apply some queries.
    About creating a Result Source, please refer to the link:
    http://technet.microsoft.com/en-us/library/jj683115(v=office.15).aspx
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • I have a presentation to make to a customer and need to know how many educational apps are there for the iPad/iPod?

    I have a presentation to make to a customer and need to know how many educational apps are there for the iPad/iPod? More specifically special education apps.
    Thanks

    Keep in mind as well that not all apps are "created equal".  Some are really good, and others are not very good.  You might also want to look at some education sites for recommendations.  An example of a general iPads in education forum is
    http://ipadeducators.ning.com/
    but I imagine some exist for special education needs as well.  Our healthcare organization is using some apps for working with autistic children and find them very helpful. 

  • I have a icloud prompt for backup that won't disappear and is freezing other commands. How do I remove it?

    I have an icloud backup prompt upon my ipad and it won't respond to "OK" It is freezing up other commands. How do I remove it?

    Hi MrsMoosie,
    I'm sorry to hear you are having these issues with your iPad. If your iPad isn't responding or doesn't appear to be charging, you may find the information and troubleshooting steps outlined in the following articles helpful, in particular the following portion:
    If you don't see the charging screen within an hour, or you see the connect to power screen, check your connector, USB cable, and power adapter. Make sure that everything is plugged in firmly, free of debris, and not damaged. You might want to try a different USB cable or power adapter.
    If your iPhone, iPad, or iPod touch doesn't respond or doesn't turn on - Apple Support
    If you can’t charge your iPhone, iPad, or iPod touch - Apple Support
    Regards,
    - Brenden

  • Adobe Captivate 8 - How to Remember Project Custom Swatches

    Is there a way to replace default swatches with custom swatches 'permanently', for example by embedding them in a template? I've created a template with my custom swatches but it doesn't seem to be a solution. Captivate loads the swatches panel with default swatches each time I create a new file or open an existing project.

    I know, the whole color work flow in Captivate is bit mysterious, and most users don't bother about it.  The swatches panel was almost not used in CP7. I ended up by creating my own swatches in the scratch area of a project if colors were important, and I believe consistency in colors is important, don't misunderstand me.
    Now it has improved a little bit, but I'm still trying to figure out the best work flow. You are right, I should expect to be able to save my swatches panel either with a workspace, or within the Preferences, or if you want within the Object Style manager. But Captivate has not even a foreground/background color button, it used to have two color buttons in the vertical toolbox that they banned from the present version
    With each new project I try to find out a better way to manage colors, but still didn't succeed. And you are very rare, there are almost never questions about color management. Glad I'm not alone anymore.
    What I'm doing at this moment, is transfer 10 colors to a theme color palette from the swatches panel. Those 10 colors are also bit of a mystery. Some are used in the provided themes, some not. And the names don't correspond always with the objects they are used for (Subtitle is not used for subtitles, to give one example). But those theme colors, when applied to the theme, will result in changes of some object styles (not all...another question mark) and they are mostly available when a color dialog box pops up. I say mostly, they will for Fill, Stroke and Gradient colors, for some learning interactions but not for all. The 'tints' are based on the theme colors, color 4 is a theme color, color 5 is darker, the first three are lighter. That provides me in total 50 tints based on the theme colors.
    A template is really a bridge too far, at least if you use that word as it is meant in Captivate for a cptl file, because I see the word template used for a lot of files, even for themes and almost never for a template.
    Your theme color palette will be saved in the workspace, can be reused for any theme. And if you edit also the Object styles, those that are not yet adapting the to theme colors and the Skin you can save that theme as a custom theme and reuse it later for any project, of the same kind. Because themes for responsive projects can be used for normal projects but not the other way.
    Sorry for that long answer, still not satisfied with it, just the result of my personal exploration. A blog post about that is not really worthwhile since almost nobody seems to care about colors. When consulting or repairing projects I do see more overridden styles than normal ones.
    Lilybiri

  • How to clean project from comman line ?

    How to clean project from comman line ?
    I would like to invoke the same functionality as in Flex
    Builder Project -> clean... -> clean all projects...
    but from command line is it possible ?

    You can:
    1) Perform a project clean up (p.153 of the user manual) - it removes any unused recordings, samples and other files
    2) Consolidate project (p. 154 of manual) - this copies all the used audio material into the project folder and also deletes any empty folders within project folder, making it easier to navigate
    3) Save project as a copy - this creates another project folder, but without all the backups and other additional files

  • How to open project from an earlier version (RH x3) using RoboHelp 6.

    Hello everyone, I need your help. I have recently upgraded
    from RH x3 to RH V6. I have just completed the installation of RH6
    after spending long time with Adobe customer support as it took
    them long time to figure out how to provide me the unlocking key to
    install RH v6.
    BTW I have only installed RoboHelp 6 by itself. I did not
    install their Source Control because we already have Visual Source
    Safe which we have been using in our company.
    Also, since I had Adobe Reader 8 installed on my PC, I did
    not install Acrobat Element 7 either. As I suppose if Acrobat 7 or
    higher is installed RH v6 was not going to install Acrobat Element
    7.
    Well, now after I have installed RH v6, my first step is to
    find out how to open project from an earlier version (RH x3) using
    RoboHelp 6.
    RH x3 is installed on my old PC and I am working on my new PC
    where I have installed RH V6.
    Sorry, for providing you too many details, the purpose is
    only to give you a clear picture.
    Please, give me your feedback if I am doing everything
    correct and how should I open the project from an earlier version.
    Thanks

    Hi Peter,
    Thank you so much for the response. Actually, after I posted
    the question on Forum we had lost internet connection for some time
    and I just went ahead and tried it by myself.
    This is what I did – since we use MS Visual Source
    Safe, my all files were in the working folder of VSS in my c drive.
    I just clicked the Open tab/More Files in RoboHelp Starter and
    located the RoboHelp HTML Project File. It opened without any
    problem. Everything looks alright.
    Is there anything specific I should be checking to make sure
    if it is working fine in this version of RH. Because I did not
    create this project, somebody else did and I have never used this
    tool before this is the first time I will be using.
    I found your site pretty helpful though and it did have some
    information about Source Safe. I still have one question related to
    Visual Source Safe that Is RoboHelp v6 linked to VSS automatically
    and check the files out from it automatically whenever a project is
    opened or we have to manually set the link between the RH6 &
    VSS.
    In RH x3 whenever I would open a project it would prompt a
    message that in order to open this project the following files need
    to be writable, would you like to make them writable, selecting
    that option would checkout all the files from the VSS to make them
    writable. However, in RH V6 I opened an existing project and it
    opened without checking out the project files from VSS. Do you have
    any idea what’s happening?
    Ps: Do you recommend any book on RH 6 for starters or any
    other recommendation?
    Your help is always appreciated

  • Using a Macbook 2008 with Lion 10.7.5, how can I project photos/keynote on smart tv screen? Macbook will not upgrade beyond Lion.

    Using a Macbook 2008 with Lion, 10.7.5, how can I project photos/keynote presentation on my smart tv? It is connected to tv with mini-dvi/hdmi cable, but I don't know how to display the images. Thanks!

    Did you switch the TV's input to the HDMI port you are using with the computer? Did you open Displays preferences to see if a second screen is displayed and then check the box to mirror to the TV screen? Did you search Google for any help links on how to do what you are trying to do?

Maybe you are looking for