JAR in a WAR Classloading a .class from the WARs web-inf/class

A little backround on my environment:
I have a jar that contains some common functionality (common.jar) that is shared among all my web apps. There is a scheduler function in the JAR that queries the applications datasource for schedules to run. Each schedule contains a class that implements the interface ScheduleCommand and has an execute method. The ScheduleManager get the list of schedules from the db and uses a classloader to load the schedule command and call the execute method.
ScheduleCommand cmd = (ScheduleCommand) Class.forName(scheduleCommands.getClassName()).newInstance();
The issue:
I have some common schedule command in the common.jar like clean temp folder, monitor memory, etc. I also want to be able to include additional schedule commands in the WAR that are unique to that web app.
WAR
--web-inf
----classes
------CustomScheduleCommand.class
----lib
------common.jar
When I do this however the ScheduleManager in the common.jar is not able to find the CustomScheduleCommand.class in the WAR�s web-inf/classes. Do I need to use a different classloader or do I need to add a classpath to the manifest of the WAR?

Hi Michael,
there are diffrent options to do this, depending on whats needs to be achieved.
a) Easiest way (but only possible, if no action has to go back to your template): Create an RRI-Jump-Target to your ABAP report
b) Also only possible when no additional interaction on your template has to take place: Create a bsp and call the bsp when clicking on the button. Advantage in comparison to a) you could get a new window with for example a sucess or error message
c) Use an own helpservice class. Now this as you have seen can get more complex, as interaction with your webtemplate can take place. In principal you need to create a class inherit from cl_rsr_www_help_window and overwrite the process_cmd method. Now you can paste your coding inside and you are finished (when you register the help service class to a web item).
Heike

Similar Messages

  • Could not run the bookstore1 example from the Java Web Services Tutorial

    The bookstore1 servlets example from the Java Web Services Tutorial (issue Aug 1, 2002) was built and deployed successfully by using the deploytool (following the steps described on pages 498ff of the tutorial).
    After deploying the application the Tomcat Web Application Manager shows the entry:
    /bookstore1:stopped:0:D:\Programme\Java\tomcat\jakarta-tomcat-4.1.8\work\Standalone\localhost\manager\bookstore1.war
    when entering the command: http://localhost:8080/manager/list.
    After entering the command: http://localhost:8080/manager/start?path=/bookstore1, the (uncomplete) message appears:
    FAIL - Application at context path /bookstore1 could not
    It should be noted that I was able to build and deploy the application GSApp (chapter 3 of the tutorial) successfully.

    Did you set up the database as described in
    http://java.sun.com/webservices/docs/1.0/tutorial/doc/WebApp13.html#69868

  • I am getting messages that I can't download and read .pdf files since I have the wrong Adobe reader. I know about their security disasters of course, but I downloaded the latest version of Adobe Reader from the Adobe web site and I have other ,pdf file re

    I am getting messages that I can't download and read .pdf files since I have the wrong Adobe reader. I know about their security disasters of course, but I downloaded the latest version of Adobe Reader from the Adobe web site and I have other ,pdf file readers as well, and for some reason they won't work either. I have 5 computers running top end processors and RAM. By this I mean I have one, this one which I am using that has an AMD Phenom Black 3.2 Quad-core with 8 GBs of Corsair top DDR2 RAM, my other two AMD have either an Athlon II triple core with 4 GBs of DDR2 Corsair RAM, one with the Phenom X4 965 3.4 GHz Quad-core with 8 GBs of their best DDR2 RAM, and two Intels with the i7 920 Processors using the triple channel 1366 socket processors and one with 8 GBs of low latency DDR3 RAM and the other with 4 GBs of the same RAM. I am getting the message on this one, which has a fresh install of XP Pro X64 operating system, as do the other 4 as well. I have run Avast Business Pro Anti-virus on this one, which I am getting the message on with a single result which I deleted, and also both Spybot Search and Destroy, which came back clean as well as Malwarebytes Antimalware, which got a lot of tracing cookies now removed, and SuperAntiSpware which also found a few cookies also now deleted. Can you tell me what I need to do to get these files to show as .pdf files rather than as a clean blank page. One other issue is that I wish to know how to turn off my downloads so they are saved and Mozilla will give me the option of returning them instead of me losing them all together as it does now. Thanks for your assistance. If there is another Adobe reader I should download and install, could you provide me with the link to it? I appreciate your assistance here
    == When I download and try to read a .pdf file and when I am asked to turn off all Firefox files and if I do, I lose them since I need to know how to save them without rebooting my computer.

    Brilliant! Problem solved! Thanks so much.

  • Due to Photoshop Elements 12 Organizer I uninstalled the program.  When I re-installed Photoshop Elements 12 on the same computer the "Photoshop Elements 12.0.exe" file is not available.  I have tried loading Photoshop Elements 12 from the Adobe web site

    Due to Photoshop Elements 12 Organizer I uninstalled the program.  When I re-installed Photoshop Elements 12 on the same computer the "Photoshop Elements 12.0.exe" file is not available.  I have tried loading Photoshop Elements 12 from the Adobe web site without success.

    The Elements 12 shortcut can't find the Elements12.0.exe file so the program will not load.  I can load the editor from its .exe file but not the organizer.

  • How do I get Elements 11 to download part 2 from the Adobe web site?

    I purchased an upgrade from the Adobe web site to take my Photoshop Elements form 9 to 11. I could not find any instructions, so I decided to download the alternate method consisting of two parts. I got part one downloaded. Then I tried to download part two. The download no longer did anything. I noticed on the bottom of the screen where the part one progress bar had been, there was now a note that said there were local updates to be done. I said OK and the updates ran as four parts. When they were done, I again tried to download part two. Nothing. I then decided to try the Akamai (sp?) Download manager program. It would not download either. Should I wipe out part one and start over? Or, is there another solution?  I am using Windows 7. Thank you.

    Download it from http://prodesigntools.com/photoshop-elements-11-direct-download-links-pse-premiere-pre.htm l
    Make sure you follow the Very Important Instructions before proceeding to the actual download.

  • HT1338 I have an iMac with version 10.5.8 Mac OS X, can i upgrade to the latest Mountain Lion S X from the Apple web page.

    I have an iMac with version 10.5.8 Mac OS X, can i upgrade to the latest Mountain Lion S X from the Apple web page.
    When I tried, it said I had to have 10.6 or later............how do I get there?

    No. You need to phone the online Apple Store and order Mac OS X 10.6 on DVD.
    (71007)

  • Why do I get a message that my Flash CS6 is counterfeited after I downloaded it from the Adobe web?

    Why do I get a message that my Flash CS6 is counterfeited after I downloaded it from the Adobe web?

    Genuine Verification failure downloading or installing
    Mylenium

  • Action link URL calling from another screen from the same web server not work

    Hi there,
    I have an action link URL calling from another screen from the same web server, used the following syntax:
    /analytics/saw.dll?Go&path=.....
    But it is not working, when open the page, it shows error message
              Oops! Google Chrome could not find analytics
    Any help? Thanks!
    Ling

    That's a +1 from me... same issue and yes, isn't inelegant or a shortcoming for some might be the cause of boldness as they rip their hair off their head so thanks in advance for keeping the refinement of the magic potions making the EA secret magic sauce... which may help stop hairloss
    Cheers!
    tfbkny

  • RIDC - DOC_INFO - DocUrl - How to avoid the revision flag from the returned Web URL

    Hi,
    Using RIDC, DOC_INFO service returns the docurl with revision flag, which is a broken URL from browser.
    String DocUrl = response.getLocal("DocUrl");
    Result:http://<server>:16200/cs/groups/secure/documents/document/mdaw/mday/~edisp/002264~1.jpg  (How do I exclude the revision (~1) from the doc url returned.)
    The IsJava browser URL returns the DocUrl correctly for the same service as below. Please advise.
    IsJava URL : http://<server>:16200/cs/idcplg?IdcService=DOC_INFO&dID=2461&IsJava=1
    Result:
    <?hda version="11gR1-11.1.1.7.0-idcprod1-130304T092605" jcharset="UTF8" encoding="utf-8"?>
    @Properties LocalData
    DocUrl=http://<server>:16200/cs/groups/secure/documents/document/mdaw/mday/~edisp/002264.jpg
    IdcService=DOC_INFO
    IsJava=1
    Thanks,
    Vipin Pillai

    Version:11gR1-11.1.1.7.0-idcprod1-130304T092605 (Build:7.3.4.184)
    oracle.ucm.ridc-11.1.1.jar (from the OTN WCC download page)
    Java Version:1.6.0_35
    DeafultStorage Rule is used.
    Dispersion Rule
    $dRevClassID[-9:-6:0:b]/$dRevClassID[-6:-3:0:b]
    Web-viewable path
    $FsWeblayoutDir$groups/$dSecurityGroup$/$dDocAccount$/documents/$dDocType$/$dispersion$/$endDispMarker$/$dDocName$$RenditionSpecifier$$RevisionLabel$$ExtensionSeparator$$dWebExtension$
    Web URL File Path
    $FsHttpWebRoot$groups/$dSecurityGroup$/$dDocAccount$/documents/$dDocType$/$dispersion$/$endDispMarker$/$dDocName$$RenditionSpecifier$$RevisionLabel$$ExtensionSeparator$$dWebExtension$

  • I have snow leopard.  Using iCloud, I an receive mail on my mac, but suddenly, I am no longer able to send email from the mac.  I can still send it from the icloud web site.  How do I regain the ability to send email from the mac?

    I have snow leopard.  Using iCloud, I can receive email on my mac, but, suddenly, I am no longer able to send email from the mac.  I can send it from iCloud online.  Any thoughts on how to regain the abilty to send email from my mac?  Thanks.

    Install ClamXav and run a scan with that. It should pick up any trojans.   
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

  • Can "Planners" run calc script from the Planning web?

    This is probably a really naive question.
    However, can planners run a simple calc script(created in Essbase/AAS) from Workspace/Planning Web? If so what access would they be need to setup in Shared Service?
    Or do we have to convert the calc script into a Business Rule and then grant access to the users?

    John,
    Here are the roles that i assigned my user and he can view/launch the calc scripts from Planning Web without actually being an admin( i think)
    Analytic Servers : server access
    Business Rules: Administrator
    Planning App : Interactive User
    APS : Provisioning Manager
    I would also like to conver the calc script to a BR as suggested, but not sure why i see no users available in the Business Rules-> administration tab.
    As indicated above, the use has been provisioned as a BR admin!
    Also, i tried refreshing the app with filters, refreshing the user list from BR->admin(right mouse), de-provision and re-provision the user! Any ideas??

  • How to see "console output" from the java web start ?

    Hi all.
    I wish to see logging infomation from the client side when using java web start technologie (java1.6 version).
    Please help.
    Thak's

    Use the "Advanced" tab of the Java Control Panel to turn on "tracing" and/or the Java Console.
    see:
    http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/troubleshooting.03.06.html
    /Andy

  • Error trying to acces to the event subscriptions from the events web page

    Hi all,
    I receive the following error when I try to acces to the event suscriptions link from the events page.
    Error: 3814: Please load Event System Seed Data before accessing this function.
    Somebody knows what that means?.
    Thanks in advance.
    Fernando

    Please review the Workflow Server Installation instructions. There is a post install step for Workflow Server 2.6.0 only which requires you to runa SQL script to upload seed data. If you have any further issues with your install, please log an iTAR with Oracle Support via Metalink.
    Hi all,
    I receive the following error when I try to acces to the event suscriptions link from the events page.
    Error: 3814: Please load Event System Seed Data before accessing this function.
    Somebody knows what that means?.
    Thanks in advance.
    Fernando

  • Email Missing from the Verizon Web interface (2012 only)- Lucky I use Zoho

    From 3/28 till 5/24 for the year 2012 I see no email in the verizon web interface. Total now is  about 150 emails, all from 5/25- today are fine, I also see older stuff. The point Since I went to verizon 4 years ago I have never used the web interface, I used to use outlook, then in July of 2011 I switched to ZOHO - and there I have all my mail.  In the period mentioned (3/28 till 5 /24 I did not make any changes, could someone have gotten into my account and deleted them ? I never share passwords and the trash is empty. Thanks J
    If a forum member gives an answer you like, please give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem. Thanks !!!
    http://forums.verizon.com/t5/Verizon-net-Email/Fix-for-Missing-Inbox-sent-folders-etc-with-Internet-Explorer-11/m-p/647399

    I have the same problem. I use Thunderbird and I removed some e-mails from it knowing I could retrieve it from the web. Wrong!!! My TB account is set to not remove from web when I get it. The most that remains on the web are 10. I'll be going on vacation hoping to get my emails off the web, but I sure can't count on it. Don't want to dump Verizon and go through the hassle of notifying my contacts of a change in e-mail accounts and hoping they remember to change it.

  • Capturing the response received from the WCF web service method?

    Hi,
    I am trying to call a WCF web service method with input parameters in an xml file and then receive the returned output data by the web service as response into an xml file.
    So far I am able to call the webservice method successfully and not sure how to capture the response data. I am able to see the response data in the tracked message event using the query expression search at the BizTalk group root.
    I may be missing something simple in my orchestration(image at http://social.msdn.microsoft.com/Forums/getfile/535971)  ?
    Steps in my orchestration are,
    1) Receive the xml file with input parameters
    2) Send to webservice using WCF-BasicHttp transport type
    3) Receive response from web service
    4) Send to xml file
    Not sure how I can have 2 receive shapes in series there. I have seen few related posts in the forum but could not resolve.
    Could someone please correct me?

    Hi Rachit,
    Thanks for your quick response. My orchestration is similar to the one in that post. In your post at step 7, how you are able to set 'Activate property' of the receive shape to true? as its the 2nd receive shape in series.
    I am unable to post any images or links at the moment. My orchestration is posted at this link  http://social.msdn.microsoft.com/Forums/getfile/535971
    I am able to access  the above link using chrome.
    Yes,  I did use the Request/Response port to communicate with the web service.  I
    am looking to achieve similar to the one in your post.
    Thanks.

Maybe you are looking for

  • Why doesn't the AEBS 802.11n support NTFS?

    I am wondering why users need to go through hoops to make the $200 AEBS 802.11n recognize NTFS formatted disks. Is it really that complicated for Apple engineers to add this support? Is there any way to reach Apple tech and request this? Or is asking

  • Does syncing using the music tab a 2 way street between device and computer?

    So i went through my music and added ratings to it on my comjputer.  i synced my ipod with auto sync and everything transfered over fine.  then i accidently added a folder to my itunes library i didnt want and rather then sift through the library and

  • Supress Printing of Aging "Header"/Summary  Page

    I hope this is a simple change.  My customer would like to Not Print the summary/header/Page Zero when ever they execute an AR or AP aging report.  How do I go about getting this page to NOT print? Thanks in Advance Dana

  • Cfreturn variable return separate fields

    I am creating a report in CF 10 report builder. I have a function that returns two separate fields in one variable I need to have the two fields returned separately, my output is an excel worksheet. Any advise will be greatly appreciated.

  • Error during upgradation

    Hi,   During upgradation I got error at SACT_700 with following log Activate lock object "E_BAMMAPNG" 4EEDI751 Base table "BAMMAPFCGR" of the lock object is not active 4 EDI813 Lock object "E_BAMMAPNG" not activated 4 EDI806XActivate lock object "E_B