Problem with external libraries and Web DynPro

Hello,
we're stuck here.
We're trying for a week now to include external libraries(e.g. Hibernate) into our Web DynPro Project, without success so far.
We read every single forum and blog entry we could find on this topic.
E.g.: /people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro
We're running Netweaver 2004s SP9 Trial Version.
The biggest problem is, that when we deploy an J2EE Server Component Library DC exactly like described in the blog entry above, although it is deployed correctly an lists under Server->Libraries in Visual Administrator, the external hibernate.jar doesn't get deployed onto the server. It's just an empty container named hib/lib without any entries in "Jars Contained". The sda file of the library DC also has only 2K and doesn't include the hibernate.jar which we added as used dc...
Any help would be greatly appreciated.
Or is there a simpler way to include external jars into Web DynPro Projects and deploy them to the server? (We already tried putting them into the lib folder without luck, we always get "NoClassDefFound...")
Edited by: Christian Wieland on Jan 31, 2008 11:22 AM

Hallo Christian,
this is a bug which should be fixed in NW 7.0 SP9 patch1: [Look at this forum thread on the same issue: External Library DC in NW2004s SP09|External Library DC in NW2004s SP09].
Regards, Bertram

Similar Messages

  • Using external libraries in Web Dynpro DCs

    Hi,
    I've followed the example in the following blog for using external libraries in my Web Dynpro (WD) DCs:
    /people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro and some other messages in the forums. However, it isn't working exactly as described in the blog. I have to twist it a bit to get it work. I were wondering if anyone has any better solution for this problem?
    The senario is like this:
    - External libraries: a.jar, b.jar
    - WD DCs: wd1, wd2 in that wd1 and wd2 are both using external libraries a.jar and b.jar; wd1 is a library DC that can be reused in wd2.
    According to the example in the blog, the following steps are carried out:
    - Step 1. Create an external library DC, add a.jar and b.jar to public part "ExternalLibs" as described in the blog.
    - Step 2: Create, build, deploy “J2EE Server / Library” DC. (Add reference to the public part of the external library DC as a used DC, with both Build-time and Run-time dependency).
    - Step 3: Create WD DC wd1, add used DCs and WD reference libraries as described in the blog. Add WD components as public part. Build and deploy WD DC wd1.
    All are ok so far!
    - Step 4: Create WD DC wd2, add used DCs and WD reference libraries as before. Try to build and FAIL!
    The error occurs here because wd2 cannot access to the classes in the external libraries, similar to the problems described in thread Re: Problems with deploying a JAR file.
    I've found a workaround, although quite tedious and cumbersom, but it works. My solution so far is:
    - Round 1: Perform those 4 steps above, but in step 1, after adding the jars to the public part "ExternalLibs", set the property of the public part "purpose" to "compilation", then build and deploy all other DCs accordingly.
    - Round 2: Change the public part "ExternalLibs" property to "assembly", then bulid and deploy all other DCs again.
    And now I can reuse the external libraries in my WD DCs as well as WD DCs as library in other WD DCs.
    I know it's not an elegant solution. So I were wondering if the experts out there can help me with better solutions?
    Many thanks in advance for your help.
    Regards,
    Van
    Edited by: Van Hai Ho on Dec 18, 2007 3:30 PM
    Edited by: Van Hai Ho on Dec 18, 2007 3:31 PM

    Hi Pascal,
    Thank you so much for your help. Your suggestion has helped to make my life a lot easier.
    Regards,
    Van

  • IPhone problem with iPhoto 08 and Web Gallery 08

    I have created web photo galleries in iPhoto 08. Then I have opened iWeb08 and created a page an added a web gallery widget for each of the galleries on this page, everything works fine. Now I fire up the iPhone and go to my iWeb page where the widgets are located.
    The problem is the web gallery widget appears on the iPhone screen as a blue cube with a question mark on two sides and some round grey circles on top. I can not access the galleries from iPhone. Are these cubes a representation for some program that the iPhone can't open? Any help is appreciated.

    I'd post your question in the iPhone forum because it seems to be an iPhone issue rather than an iPhoto one.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Use external libraries in web dynpro java

    Dear Experts,
    I need to add an external library to my project.
    Anyway, I do not know how to do it because it gives me many problems.
    I tried modifying the classpath and placing it in the lib folder of the project from "Navigator".
    Also project properties, add. jar outside, and throws me the following error:
    [javac] Compiling 213 source files to D:\WORK\WORKSPACE\7.2.jdi\LocalDevelopment\t\2BF09F48E6D0E2C201262098A0E4D79F\classes
         [javac] ERROR: D:\WORK\WORKSPACE\7.2.jdi\LocalDevelopment\t\2BF09F48E6D0E2C201262098A0E4D79F\gen_wdp\packages\elsys\com\.....\wd\comp\....\MainView.java:34: package com.estaf does not exist
         [javac] ERROR: import com.estaf.jpay;
         [javac] ERROR:             
    Given these errors, I know my includes without problems and I can instantiate objects from library classes, but these errors I can not deploy.
    I read the following link:
    /people/raphael.vogel/blog/2008/05/05/how-to-use-external-libraries-in-the-sap-component-model-part-ii
    I did everything the tutorial. I created the external library. I can see in my project "DC-Definition -> Used DCs" The public parts assembly and compilation. Now the problem is that it still does not recognize the classes of the libraries you want to use.
    A level of code, when I try to instantiate the class does not recognize me. What could be missing? I did a couple of times step by step and gives me the same results.
    I use SAP NetWeaver Developer Studio SAP NetWeaver 7.2 SP03 PAT0007 version.
    Infinitely appreciate any help. Thank you very much.
    Rasim
    Edited by: Rasim Donmez on Apr 11, 2011 4:50 PM
    Edited by: Rasim Donmez on Apr 11, 2011 4:51 PM

    Hi,
    please find below path for adding External Jar files.
    right click on the webdynpro dc and select the properties .
    then clcik on Java Build path->select libraries->select External External Jars.
    after that just rebuild your project (not Build).
    Regards,
    Govindu
    Edited by: Govindu Nagotla on Apr 12, 2011 2:28 PM

  • Problem with FQDN when creating Web Dynpro App

    Hi @ all,
    when create a WDA the url is set like this: HTTP://SAPVM1:8000/sap/bc/webdynpro/sap/z_wda_sample.
    I defined the icm/host_name_full and the SAPLOCALHOSTFULL correct*, but it did not work. I have also restarted the system more than one time. I searched a lot, but found no solution here on sdn.
    *correct means : sapvm1.mydomain.de
    Even if I try to start a default wda example the wrong FQDN is set. But if I start the wda at the SICF (test service) it works, the FQDN is set right.
    thx in advance.
    Timo

    Hi,
    it seems that the httpurlloc table was the problem. The host entry in this table was no FQDN, I changed it into FQDN and it works. Now the generated url of the web dynpro applications is correct.
    Maybe this helps somebody else.
    See also
    http://help.sap.com/saphelp_nw70/helpdata/en/42/d547ab30b6473ce10000000a114e5d/frameset.htm
    Timo

  • Ant with external libraries and external projects

    I usually use eclipse, now I must use ant for obfuscate my code.
    In eclipse I can import external jars and project. Here is my classpath
    <?xml version="1.0" encoding="UTF-8"?>
    <classpath>
         <classpathentry kind="src" path="src"/>
         <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
         <classpathentry combineaccessrules="false" kind="src" path="/PEI"/>
         <classpathentry combineaccessrules="false" kind="src" path="/PEI implementation"/>
         <classpathentry combineaccessrules="false" kind="src" path="/Logger"/>
         <classpathentry kind="lib" path="C:/Java/libraries/jfreechart-1.0.13/jfreechart-1.0.13/lib/jcommon-1.0.16.jar"/>
         <classpathentry kind="lib" path="C:/Java/libraries/jfreechart-1.0.13/jfreechart-1.0.13/lib/jfreechart-1.0.13.jar"/>
         <classpathentry kind="lib" path="C:/Java/libraries/jcalendar-1.3.3/lib/looks-2.0.1.jar"/>
         <classpathentry kind="lib" path="C:/Java/libraries/jcalendar-1.3.3/lib/jcalendar-1.3.3.jar"/>
         <classpathentry kind="lib" path="C:/Java/libraries/mail.jar"/>
         <classpathentry kind="output" path="bin"/>
    </classpath> How can I do the same thing with ant?

    [http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html?PHPSESSID=7292c8206cecdae00f82ea5ac3507e21|http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html?PHPSESSID=7292c8206cecdae00f82ea5ac3507e21]
    [https://supportweb.cs.bham.ac.uk/documentation/tutorials/docsystem/build/tutorials/ant/ant.html|https://supportweb.cs.bham.ac.uk/documentation/tutorials/docsystem/build/tutorials/ant/ant.html].
    [http://ant.apache.org/manual/|http://ant.apache.org/manual/]

  • Strange new problem with external effects and latency compensation

    i'm currently facing a new , very strange problem with latency compensation for external effect devices. it alway worked fine for me but suddenly there are strange things going on. i'm suddenly running into problems when using sends which feed auxes going to external effect devices.
    latency compensation is set to ALL !!!
    easy setup :
    - open an empty project and create 2 audioinstrument tracks. on the first one load the exs with a drumkit and record f.e. a bassdrum pattern. leave the 2. instrument empty.
    - now on the first audio instrument create a send to bus 1 -> aux 1 and insert the i/o plug-in in the aux and route it to your external effect device. chose a temposynced delay.
    - press play = everything is fine when audioinstrument 1 is highlighted in the arrange.
    - press stop, click on the track with the 2. audioinstrument and press play = totaly weird timing problems. delay is only in sync when track 1 is highlighted.
    - create a send in the 2. audioinstrument and route it to bus 1 -> aux 1 too = still the same problem
    now insert ANY softwareinstrument in audioobject 2 and suddenly the timing for the delay is right.
    go ahead and create a 3. audioinstrument track but leave it empty first. chose it in the arrange = again weird timing problems with the external delay.
    insert any software instrument on audioinstrument 3 = still the same problem
    now create the send to bus 1 -> aux 1 in audioinstrument 3 and guess what, timing is right.
    *** is going on here ? can anyone reproduce that ?
    it works fine when using sends which feed auxes with software effects inserted.
    funny thing is, when i go to the environment and change aux object one to bus object 1 and insert the same i/o in it it works !!!
    very very strange, please tell me i'm not crasy and this is a bug !!!
    as said, latency compensation is set to all.
    i'm using the mac pro 3.2 8-core running os 10.5.4, logic 8.0.2 and a motu pci-e audio system.
    Message was edited by: Olaf Dieckmann

    Welcome to the Discussions.
    If you need it formatted FAT32, reformat it on your Mac. Use MS-DOS (FAT32) as the file system. If you don't need it for both PC and Mac, format it HFS+ and you'll be able to use the Retrospect Express software that came with it on your Mac.
    John

  • Performance problems with external sounds and Sound class

    I'm using Sound & SoundChannel classes to load and play external MP3s and I'm seeing terrible playback performance on my 3G phone. Audio starts out ok, but will gradually get more and more choppy and eventually crashes the app. The MP3s themselves are typical sizes, 2 - 6 MB and of various types (VBR, CBR).
    On top of that, when the phone gets locked (with the app still running), the audio sputters and stops completely. When I unlock, it begins where it left off. Anyone else seeing this?
    My code is pretty standard:
    private var soundPlayer:Sound;
    private var soundChannel:SoundChannel;
    public function load(url:String, playNow:Boolean = true):void {
      if (soundChannel) {
        soundChannel.stop();
      soundPlayer = new Sound();
      soundPlayer.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
      soundPlayer.addEventListener(ProgressEvent.PROGRESS, onProgress);
      soundPlayer.addEventListener(Event.ID3, onID3);
      trace('Loading new stream: '+url);
      var request:URLRequest = new URLRequest(url);
      soundPlayer.load(request);
      if (playNow) {
        this.isPlaying = true;
        soundChannel = soundPlayer.play();
        soundChannel.addEventListener(Event.SOUND_COMPLETE, onSoundComplete);

    this is from another forum (http://discussions.info.apple.com/thread.jspa?threadID=2542931&tstart=0&messageID=12106188 ):
    "I've spoken to the developers of of couple of these apps, and they've all said it's a memory fragmentation/low memory condition.
    Restart the phone. Don't just turn it off and on, but restart it.
    Hold the on/off button and the home button down like you were going to turn it off. When you see the swipe to turn off message, keep holding the buttons down.
    In a few seconds the screen will flash, and then go dark.
    Now it's really off.
    Turn it back on (restarting it). All should be well.
    The iPhone is really a computer. Performing a restart like this every  once in a while (weekly, bi-weekly) is a good idea, esp if you use  memory intensive apps."
    coop

  • Problems with tutorial: "Creating a Web Dynpro Tree"

    Hi!
    I'm a rookie and therefore I'm practicing on compleating some tutorials like "Creating a Web Dynpro Tree" (https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0ec6622-8da5-2a10-349b-868b6a553efa)
    I did just as the tutorial told me to (I think) but still I get a java.lang.NullPointerException when I deploy and run my application.
    In the bold line is where it is something wrong:
    public static void wdDoModifyView(IPrivateTreeView wdThis, IPrivateTreeView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
        //@@begin wdDoModifyView
           if (firstTime) {
                IWDTreeNodeType treeNode = (IWDTreeNodeType) view.getElement("TreeNodeType");
                /* parameter mapping from parameter "path" to
    parameter "selectedElement"
                treeNode._mappingOfOnAction()._addSourceMapping("path", "selectedElement");
                /* parameter mapping from parameter "path" to
    parameter "element".
                treeNode._mappingOfOnLoadChildren()._addSourceMapping("path","element");
        //@@end
    What I don't understand is what the function/meaning of the parameter path is. The parameters selectedElement and element I do recognize and have written. And I don't understand why there is a difference between the two underscored line of code (see above) even though the comments claim that it does the same kind of mapping.
    Best regards
    /Johan

    I tried to get "addSourceMapping()." underscored so people would better understand what I was referring to but it didn't work and that's why it looked weired.
    Thanks for your help Armin, now it works fine.
    It was as you said.
    if (firstTime) {
    IWDTreeNodeType treeNode = (IWDTreeNodeType) view.getElement("TreeNodeType");
    When I changed "TreeNodeType" to it's real ID, "TheNode" I didn't get a nullPointerException. I think it must be wrong in the tutorial because I followed the instructions which said to name it "TheNode" but then the author mus have forgot to change it from the default ID ("TreeNodeType").
    Best Regards!
    /Johan

  • Problem with external device and my new mac

    I have a maxtor onetouch 200gb. I just bought an ibook G4, and when I connect my hard drive I recieve a message saying the device is not readable by this computer. I tried the device on a pc, and it still works. The device is fat32 formated, and as far as I know this should not cause any problems with mac. I also tried to download mac drivers for the device, but it still doesn't work.
    Does anyone have something that can help me?

    Welcome to the Discussions.
    If you need it formatted FAT32, reformat it on your Mac. Use MS-DOS (FAT32) as the file system. If you don't need it for both PC and Mac, format it HFS+ and you'll be able to use the Retrospect Express software that came with it on your Mac.
    John

  • Problem with External HD and Disk Utility

    Hi. I'm using OS X Yosemite 10.10.3 on a 15 inch MBP Retina. I've been using my 2TB WD My Passport Ultra hard drive since around February of this year. Earlier today when I plugged it in, the hard drive didn't show up in my devices in finder. So, i unplugged and tried again. Still nothing. Then, I went to Disk Utility and found that the drive was there but the partition wasn't mounted and is greyed out. So i tried to verify / repair the disk but have gotten a couple different messages. One being "The partition map needs to be repaired because there's a problem with the EFI system partition's file system. The other being "Some information was unavailable during an internal lookup". This message has showed up more than any other. I've been able to get in and look at my files once to try to copy the files from the drive after a message popped up and said it "couldn't repair the disk" but i "could still open or copy files on the disk but can't save changes to files on the disk." But I encountered an error that was something along the lines of "Operation couldn't be completed because the item "..." is in use". But the file i was trying to copy wasn't open or in use by any program. SO, I'm in pretty desperate need of some help with this. I have some very important files on this drive that I can't afford to lose. A lot of it irreplaceable. Any help at all would be very much appreciated! Thanks a lot!

    I recall that the old imacs could not use a HD over 130G or so unless they are partitioned. So you may need to make three partitions first with your disk utilities. It should format it at the same time.

  • Problem with External HDD and Disk Utility

    I'm having issues with my external hdd, I keep all of my media on it, and randomly it is no longer readable, and doesn't show up on the desktop, it only gives me the options to initialize, ignore or eject, when I try to initialize it and run first aid, all of the options are greyed-out and I cannot click on them. The only option in Disk Utility that I can do is erase. Is there anyway to fix the hdd so I can continue to read and write to the device, I really don't want to lose over 600 gigs of photo's, videos and music.

    Since it sounds like the disk is on the way out, I would suggest that you back it up preferably twice.
    Once you have your data backed up then and only then you can start troubleshooting the problem.
    What model Mac do you have?
    How is the disk connect to your Mac?
    Does the disk have another type of connector?
    |___________________
    Allan

  • Problem with external harddrive and disk utility

    I have just about ran out of room on my iMac G3 so I went to walmart and bought a FreeAgent 320 GB external hard drive. On the bottom it says its compatible with my iMac G3 you just have to format it using disk utility.
    So I open up disk utility and I see my hard drive. I click on it and then go to erase so I can format it to work on my mac. However everything on the erase page of disk utility is greyed out and and I can't click on anything.
    What do I do? Thanks.

    I recall that the old imacs could not use a HD over 130G or so unless they are partitioned. So you may need to make three partitions first with your disk utilities. It should format it at the same time.

  • Problems with error-page in web.xml and page caching

    Having a few problems with error pages and web.xml with browsers caching the error pages and strange errors coming out of weblogic.servlet.intenal.WebAppServletContext
    I'm trying to set a web app up so that all http errors and all exceptions are routed thruogh predefined resources. For now, I'm simply send 400 errors to 400.html and the ServletException, IOException and RuntimeException to respective html pages.
    What I'm finding is that the error codes work fine but the exceptions are only be routed to the correct error page for the first call to the servlet after server restart.
    So for example, I have my servlet throwing a ServletException as a test case. The weblogic server log shows that ServletException is thrown, and the correct error page for ServletExceptions is shown.
    If I change the Servlet code to throw IOException in place of SevletException, the weblogic.log shows that IOExceptyion is being thrown (so the servlet has deployed successfully), however the Servletxception error page is shown on the browser.
    I'm using IE6 and I've changed the setting such that a new page is requested every time using the tools-internet options-temp internet files-settings option to "check for new versions of stored pages: Every visit to the page".
    Despite this, the servlet exception error page still appears.
    If you clear the cache from the temp intenet files->delete files IE option, the correct errror page will be shown so it appears that the browser cache is being used after all.
    everytime I delete the temp intenet files I get the correct error page on the first request after but then not after that.
    I have implemented the service method for this test to throw the exceptions - does this make a differecne?
    As a test, I have moved the imlpementation to the doGet method instead bu I now get a strange eror from weblogic comlpaining about an arrayOutOfBoundsException because eror codes in the web.xml are not supported! - see error above.
    Any help is appreciated

    After further investigation: -
    There are no problems with error pages based on error codes, only error exceptions.
    As a test case, I have a service method in a servlet throwing either one of the three exception types that servlets can throw (Runtime, Servlet & IO) the following rules apply. The exception to be thrown is hardcoded and is changed and the web app rebuilt each time. The correct web.xml has been deployed to the app server (checked through console). the webapp is being redeployed correctly - this can be seen in the weblogic log, where the correct exception is reported.
    I am using WLS 8.1, Servlet 2.3, JDK 1.4.1_02
    In all cases, the weblogic log reports that the servlet is throwing the exception as expected.
    Despite having set error-page for exception javax.servlet.ServletException, the exceptions are diverted to the error page that has been set up for http error code 500
    The error page for ServletException is therefore never reached.
    I have the browser set to request pages every time it is asked.
    Once the servlet has thrown an IOException, the only way to get the browser to report an IO or Runtime exception error-page is to clear the browser cache. Restarting the server has no effect.
    Once the servlet has responded with ANY exception, it is not possible to get it to report a ServletException (which is incorrectly reported as a 500 anyway) unless the cache is cleared. Restarting the server has no effect.
    In the case where the servlet throws ServletException, it has no root exception. The servlet 2.3 spec states that if ServletException is thrown but cannot be found in the error pages, the root excpetion will be extracted and the error page list traversed again. Knowing that the RuntimeException error page is correct shown when RuntimeException is throwm, I have nested this inside the ServletException, however error page for http error 500 is still shown.
    I don't believe this is a WLS 8.1 problem, as the console shows that the correct exception is thrown each time. this is backed up by the fact that the correct exception page is thrown when the cache is cleared regardless of what exception was previousdly thrown by the servlet. This excludes ServletException which is always incorrectly thrown as a 500.

  • I'm having problems with 8.1 and Continuity / Handoff. It will work fine for web pages, etc. but in email when I try to do it between by iPhone 5s running 8.1 and my Macbook Pro running Yosemite I consistently get an error.

    I'm having problems with 8.1 and Continuity / Handoff. It will work fine for web pages, etc. but in email when I try to do it between by iPhone 5s running 8.1 and my Macbook Pro running Yosemite I consistently get an error. "Failed to Continue Activity" Cocoa Error 4609.  Handoff is working for phone calls and text messages. By email just crashes each time. It was also doing it under 8.0.2.  My iPhone and iPad handle this fine. It's only the MacBook to the iPhone that fails, and only on email.

    Handoff Continuity Troubleshooting

Maybe you are looking for

  • MBPR as Second Monitor?

    I know its possible to use the iMac as a second monitor through target display mode....however is it possible to use my 2012 MBPR as the second monitor for my iMac? I'm trying to edit a video and could use the extra screen real estate.

  • External Monitor for G4 Powerbook

    I would like to get a larger (19-23") monitor for my PowerBook G4 1.33 GHz laptop. There is a ATI Mobility Radeon 9600 built in, so what Apple monitor is compatible? It sounds like the Cinema Displays all need some sort of specific Graphics card that

  • We should give salary for GM from 2 companies , ie from  2 company codes ,

    Team, We should give salary for GM from 2 companies , ie from  2 company codes , how to do this? plz help. Rex

  • Reading all files froma  folder

    Hi , Does anyone know how to read the data from all text files in a given folder? I mean does text_io recongnises a certain sintax to do this? Thanks, Sandu

  • Picking Strategy M Large/small quantities

    Hi, I am using the Picking Strategy M Large/small quantities included And the control quantity in the material master is a pallet. The problem is that in picking we have got several boxes that all together sum up a pallet but I want the user takes fr