Shared library for  MyFaces Trinidad

Hello!
I'm having some trouble trying to create a shared library in OC4J 10.1.3.3.0. My goal is to deploy multiple applications that use MyFaces and Trinidad, but using a shared library that contains every JAR required.
This is what I've done so far:
1. I created the directory D:\workspace\oc4j_10.1.3\j2ee\home\shared-lib\sidi\1 and put there every JAR included in MyFaces Trinidad Demo.
2. Edited server.xml and added the following lines:
<shared-library name="sidi" version="1">
<code-source path="*"/>
</shared-library>
3.- Edited the orion-application.xml in each application that needs MyFaces Trinidad support and added the following lines:
<imported-shared-libraries>
<import-shared-library name="sidi" />
</imported-shared-libraries>
When I try to run any application that uses MyFaces Trinidad, I get this error message:
java.lang.IllegalStateException: No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions!
If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml.
A typical config looks like this;
<listener> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>
     at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:93)
     at javax.faces.webapp.FacesServlet.init(FacesServlet.java:91)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpApplication.loadServlet(HttpApplication.java:2371)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4824)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4748)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2971)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:741)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
     at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
     at java.lang.Thread.run(Thread.java:595)
If I add that listener to web.xml, the error changes to this:
9/08/2007 02:37:28 PM org.apache.myfaces.config.FacesConfigurator feedStandardConfig
INFO: Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
9/08/2007 02:37:28 PM org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations
INFO: Reading config code-source:/D:/workspace/oc4j_10.1.3/j2ee/home/shared-lib/sidi/1/tomahawk-1.1.6.jar!/META-INF/faces-config.xml
9/08/2007 02:37:29 PM org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations
INFO: Reading config code-source:/D:/workspace/oc4j_10.1.3/j2ee/home/shared-lib/sidi/1/trinidad-impl-1.0.1.jar!/META-INF/faces-config.xml
9/08/2007 02:37:31 PM org.apache.myfaces.config.FacesConfigurator feedWebAppConfig
INFO: Reading config /WEB-INF/faces-config.xml
9/08/2007 02:37:31 PM org.apache.myfaces.config.FacesConfigurator logMetaInf
INFO: MyFaces-package : myfaces-api not found.
9/08/2007 02:37:31 PM org.apache.myfaces.config.FacesConfigurator logMetaInf
INFO: MyFaces-package : myfaces-impl not found.
9/08/2007 02:37:31 PM org.apache.myfaces.config.FacesConfigurator logMetaInf
INFO: MyFaces-package : tomahawk-sandbox not found.
9/08/2007 02:37:31 PM org.apache.myfaces.config.FacesConfigurator logMetaInf
INFO: MyFaces-package : tomahawk not found.
If I place the JARs inside each WEB-INF/lib the applications work, but I'm trying to avoid doing this to have smaller EARs when the applications are packaged for deployment in the production servers.
What am I doing wrong? Hope you can help me with this.

Hi Aram,
The default behaviour of OC4J is to NOT run the listeners provided inside the taglibs. As for java server faces, tomahawk and trinidad use taglibs that rely on the listener configured in the tld file
You'd need not only to deploy the "shared library", but also, drop the jars in the $OC4J/j2ee/home/taglibs directory
And, make sure that in your "global-web-application.xml" you have:
<orion-web-app
[... whatever ...]
     jsp-cache-tlds="on"
     jsp-taglib-locations="../taglibs"
>
that means, the attribute "jsp-taligb-locations is defined for the orion-web-app tag. With that, the listener is going to be loaded, and you'd not need to configure it in the web.xml

Similar Messages

  • How create shared Library for JNI

    Please tell me how to create a shared Library for vc6.0. I have created <.h> file of java class. Please Help me.

    This is a duplicate of
    http://forum.java.sun.com/thread.jspa?threadID=676996

  • Setting up a shared library for multiple accounts on the same machine

    I am in idiot. I can't figure it out. This is exactly what I did.
    1 - I set up multiple accounts on the computer. 1 for me and another for my wife.
    2 - I loaded all the music into my account's public folder.
    3 - I set the default folder in both hers and mine iTunes for this Public folder
    4 - I then opened iTunes in my account and none of the songs were showing up so I dragged the folder into iTunes and it did its business. Now my account is all set.
    Here are my questions:
    A - Do I need to drag the folder into my wife's account iTunes as well?
    B - If either of us add music when logged in, will it automatically update in the other iTunes interface or is there something specific that needs to (manually) be done?

    Doing it the way you did, you each have your own iTunes library file and are using the same iTunes music folder.
    Changes by one will not be seen by the other and any new music added by one will have to be added to the library by the other.
    Also, if one deletes music, it will be in teh library for the other but it will not be playable because the other person deleted it in the iTunes music folder.
    Launch iTunes, then immediately press and hold Option, then select *Create new library*.
    Create one in Users/Shared.
    Quit iTunes.
    Move all your music into the new /Users/Shared/iTunes/iTunes music folder.
    Login to your Wife's computer account.
    Move all her music into the new /Users/Shared/iTunes/iTunes music folder.
    On her account, launch iTunes, then immediately press and hold Option, then select *Choose existing library*.
    Select the _iTunes library file_ in /Users/Shared/iTunes.
    In iTunes, File -> Add to library and select the iTunes music folder in /Users/Shared/iTunes.
    All the music will be there.
    Quit iTunes and log out of her account and back into your account and launch iTunes normally.
    All music will be there.
    You should go to /Users/Shared/iTunes folder and right click - get info, click *Ownership & Permissions*. Set *You can* to *Read & Write* and set Others to *Read & Write*.
    Click *Apply to enclosed items*.
    Any changes (new/deleted music, ratings, playlists, etc.) by one will be seen by the other sionce you are using the same iTunes library file.
    Only one person can have iTunes open at a time. If you use Fast User switching, one will need to quit iTunes before the other can use it.

  • Creating a shared library for JNI in windows

    I went through the JNi tutorial online and it worked just fine on a Linux computer. Now I'm trying to make do the same tutorial on windows. When I get to the step 4. Create a Shared Library, I'm stuck. I don't know how to create this shared library on windows. It gives an example using Visual C++ but I don't have that. Any tips or advice out there what I should do? Any help would be greatly appreciated.

    //mac.java
    class mac
        public native void getMac();
        private native String getLine(String prompt);
        static {
         System.loadLibrary("myMac");//This is myMac.DLL
         /*if generated by borland
         System.loadLibrary("mymac");//This is mymac.dll
         public static void main(String[] args)
        mac mc=new mac();
        String input = mc.getLine("Enter Some Thing ");
        System.out.println("You Entered " + input);
        System.out.println(mc.getMac());
    prompt> javac mac.java
    prompt> javah -jni mac
    Borland compiler
    /*mymac.c*/
    #include <jni.h>
    #include "mac.h"
    #include <stdio.h>
    JNIEXPORT void JNICALL
    Java_mac_getMac(JNIEnv *env, jobject obj)
        printf("I am in  getmac dir in mymac.dll (Borland) \n");
        return;
    JNIEXPORT jstring JNICALL
    Java_mac_getLine(JNIEnv *env, jobject obj, jstring enter)
        char buf[128];
        const char *str = (*env)->GetStringUTFChars(env, enter, 0);
        printf("%s", str);
        (*env)->ReleaseStringUTFChars(env, enter, str);
        scanf("%s", buf);
        return (*env)->NewStringUTF(env, buf);
    To generate DLL
    create bcc32.cfg file in %BORLAND_INSTALL%/BCC5/bin Folder
    In the bcc32.cfg file add following code
    -I"%BORLAND_INSTALL%\BCC55\include;%JAVA_HOME%\include;%JAVA_HOME%\include\win32"
    -L"%BORLAND_INSTALL%\BCC55\lib;%BORLAND_INSTALL%\BCC55\Lib\PSDK;"
    i.e the path for borland compiler and java.
    now goto prompt and say
    prompt>bcc32 -tWM -tWD mymac.c
    This will create mymac.lib File
    Now say
    prompt>implib -c mymac.lib mymac.dll
    That's it!!
    there you are with dll
    Now you can run the mac.class file by using java
    VC++
    Click File->New->Win32Dynamic-Link Library
    Give name and Select
    A simple DLL project
    You will have
    myMac.CPP file
    // myMac.cpp : Defines the entry point for the DLL application.
    #include "stdafx.h"
    #include "mac.h"
    #include "jni.h" //can copy or give full path
    #include <math.h>
    BOOL APIENTRY DllMain( HANDLE hModule,
                           DWORD  ul_reason_for_call,
                           LPVOID lpReserved
        return TRUE;
    JNIEXPORT void JNICALL
    Java_mac_getMac(JNIEnv *env, jobject obj)
        printf("You are in getMac (VC++) DLL\n");
    JNIEXPORT jstring JNICALL
    Java_mac_getLine(JNIEnv *env, jobject obj, jstring enter)
        char buf[128];
        const char *str = env->GetStringUTFChars(enter, 0);
        printf("\n%s", str);
        env->ReleaseStringUTFChars(enter, str);
        scanf("%s", buf);
        return env->NewStringUTF(buf);
    Hope this is useful
    regards
    kanad Deshpande

  • Sharing library for multiple users on same computer

    I have 2 non-administrator accounts and an administrator account on one Mac. (G5 running Tiger). I have tried various ways of sharing songs between all of these accounts. What I am trying to do is have the 3 accounts show the same songs when they open iTunes. I want to be able to add songs to any of the individual accounts, and have it show up in all 3. I do not want to make 3 copies of each song. I can't seem to get this to work. I had this working before I upgraded to itunes 9. Now no matter what I do, can't get it to work. Can someone let me know how I can set this up?

    Use tweakUI, google on it to get it and install it.
    More details are here or do a search discussions for "TweakUI" if you need more.
    http://discussions.apple.com/thread.jspa?messageID=1175181&#1175181

  • Create Shared Library for toplink.jar

    I have followed the "How-to: Swap Oracle JDBC Drivers" http://www.oracle.com/technology/tech/java/oc4j/1013/howtos/how-to-swapjdbclib/doc/readme.html and try to do the same for toplink.jar.
    However, when I check with the call oracle.toplink.Version.getVersion() it still return that I'm using 1013 DP4 toplink.
    From the post in Toplink forum Re: Change Toplink library version used on 1013 DP4 it seems that it is difficult, to use another toplink version in 1013 DP4...
    I would like to confirm if that's the case? Any other methods I can try?

    This is a duplicate of
    http://forum.java.sun.com/thread.jspa?threadID=676996

  • How to create a c++ shared library (.so) for linux real time (for myRio) with Eclipse to use in LabView?

    I tried already these Tutorials and Advices but I didn't find a solution:
    - http://www.ni.com/tutorial/14625/en/
    - http://www.ni.com/tutorial/14690/en/
    - http://forums.ni.com/t5/LabVIEW/Shared-Library-on-myrio-Linux-Real-time-system/m-p/2842540/
    - http://forums.ni.com/t5/LabVIEW/How-to-create-shared-library-for-linux-real-time-target-in/m-p/28218...
    - and some more
    I want use c++ codes on linux real time. For testing reasons I want to have a function that adds 2 values and gives the result.
    I've done these steps:
    1. writing a c++ file in Eclipse (see screensot 2)
    2. building a shared library (.so) from my c++ project in Eclipse (with Cross GCC)
    3. putting this file on myRio (path: /usr/local/lib/)
    4. creating a VI that calls this library from Labview with a "Call Library Function Node" (see screenshot3)
    5. Setting the properties for the "Call Library Function Node" (see screenshots 4-7)
    After I run this VI i get this error message: LabVIEW:  (Hex 0x627) The function name for the ... node cannot be found in the library. To correct this error, right-click the Call Library Function Node and select Configure from the shortcut menu. Then choose the correct function name. (see screenshot1)
    I've tried a lot things to solve this problem but I couldn't find a solution. Would be very happy if anyone can help me. I guess that I have to edit my c++ code to export my function (symbol). But I have no idea how to make it. I also tried it with a dll file in the same folder but it didn't help.
    Perhaps someone can send an example which works on myRIO.
    Thanks!
    screenshot1
    screenshot2
    screenshot3
    screenshot4
    screenshot5
    screenshot6
    screenshot7

     can see it in the screenshot8 there is a function called "_Z8AddierenddPd" instead of "Addieren". I copied this name to Labview (see screenshot9) and it worked.
    I'm sure that there is a way to compile the shared folder with gcc without decorations (mangling). But I don't know how. If someone has a recommendation I would be very glad!
    Prepend each function declaration that you want to be available without name decoration with
    extern "C" <your function declaration>
    Or if you have multiple functions you want to export you can in the header file where you declare your functions simply use:
    #ifdef __cplusplus
    extern "C" {
    #endif
    <all your function declarations>
    #ifdef __cplusplus
    #endif
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Getting the JDK version for an shared library

    Hi,
    Given is an shared library for Windows (*.dll) or Solaris (*.so).
    These libraries are included for native calls by using JNI.
    Is it possible to identify the version of the JDK which was used for creating this libraries?
    TIA,
    Frank

    Is it possible to identify the version of the JDK which was used for creating this libraries?No. Not unless you explicitly add something in yourself.

  • One Library for all users on the system - Sharing?

    Hello.
    I'm using iTunes 9.0.3 on OS X 10.6.2. On this system, there are TWO users, one for my wife, one for me. I'd like to "merge" the seperate iTunes libraries, so that there's only one shared library for all users.
    How could this be achieved?
    Searching the web, I found a writeup on [dougscripts.com by Paul Whitey|http://dougscripts.com/itunes/itinfo/sharedlib.php], which basically explains to move ~/Music/iTunes to /Users/Shared/iTunes and making sure that there's an alias in ~/Music pointing to /Users/Shared/iTunes. It also explains, that the ownership of the files & folders is to be changed so, that all users have read & write access. This then looks like this on my system:
    !http://img214.imageshack.us/img214/6223/fileinfowithbothusersha.png!
    -> http://yfrog.com/5yfileinfowithbothusershap
    It works good - both "alex" and "sandra" can work with these files (ie. move them, rename them, change ID3 tags).
    But see those:
    !http://img714.imageshack.us/img714/2183/fileinfowithonlyalexhav.png! !http://img686.imageshack.us/img686/7807/fileinfowithonlysandra4.png!
    --> http://yfrog.com/jufileinfowithonlyalexhavp & http://yfrog.com/j2fileinfowithonlysandra4p
    That's from files which sandra or alex have added later on. Only the one who added these files can modify them (which is of course correct, if you have a look at the file permissions).
    How would you go about having only ONE iTunes database on the system? Simply putting the iTunes Db on a shared folder doesn't work well, as can be seen above. Always having to fiddle around with the file permissions isn't exactly comfortable…
    Any suggestions?
    Thanks,
    Alex

    Hm. PowerTunes crashs, when I make it Share my library. I pasted the crash report at http://pbox.ca/13gwy
    Since I cannot know how/if would work (because of the crash…), please correct me if I'm wrong, but wouldn't it also just move the files to /Users/Shared and set permissions correctly? Wouldn't I need to keep on running PowerTunes from time to time, or is it "run once and forget" application (if it works)?

  • No shared library found for the database with ID DBID

    Hi SDN,
    We're trying to connect our BW system under WIN/MSSQL 2005 to an source system (RSA1) witch is an DATABASE DB4 on OS400.
    when we check the database connection, it gave us the error
    No shared library found for the database with ID DBID
    in SM21 we've found
    As well as the standard connection, an attempt was made to set up
    another database connection, under the specified ID. The Shared Library
    for this second database could not be found.
    The Shared Library is usually found in the the Executable
    directory (profile parameter DIR_LIBRARY) under the name dbs
    <dbs>slib<os_ext>. <dbs> stands for the database type and <os_ext>
    stands for the operating system-specific extension of the Shared
    Libraries.
    The database type is determined from the entry that corresponds to the
    specified DB ID in the table DBDCON. Check whether the data in this
    entry is correct.
    someone can guide me were to found DBSL library for this time of external connection from Windows to DB4?
    thanks in advance,
    best regards,
    Pedro Rodrigues

    Hi again,
    after download dbdb4slib.dll and copied it to kernel directory, it gave this error message
    B  create_con (con_name=DBID)
    B  Loading DB library 'E:\usr\sap\SID\SYS\exe\run\dbdb4slib.dll' ...
    M  *** ERROR => DlLoadLib: LoadLibrary(E:\usr\sap\SID\SYS\exe\run\dbdb4slib.dll) Error 126 [dlnt.c       237]
    M          Error 126 = "The specified module could not be found."
    B  *** ERROR => Couldn't load library 'E:\usr\sap\SID\SYS\exe\run\dbdb4slib.dll'
    [dbcon.c      4672]
    B  ***LOG BYG=> could not load library for database connection DBID      [dbds#3 @ 1035] [dbds    1035 ]
    someone has some idea?
    thakns

  • Maven for shared library

    Hello,
    I am trying to create a weblogic ear that is not an application, but a library. It is a shared library for the accompanying application.
    The shared library has a some specialities than the regular J2EE app. it requires a tailored Manifest.MF and a folder App-Inf\lib.
    I am not an expert in Maven and request you to direct me a link where I could find examples for Weblogic shared library pom.xml.
    Thanks,
    Raj

    Hi,
    Please go through below url's which describes how to create shared libraries for static resources as well as to include jar files.
    https://blogs.oracle.com/jamesbayer/entry/weblogic_server_shared_librari
    https://blogs.oracle.com/jamesbayer/entry/weblogic_server_shared_librari_1
    www.youtube.com/watch?v=Kh8h_jQYScI
    If this helps please mark.
    Thanks,
    Kishore

  • Is it possible to Sync an iPod (or iPhone) with a Shared Library?

    I know this is a silly, basic question, but 6:30 AM is just too early for me to keep digging for the answer.
    So, I have several computers at home. ONE of them is used to purchase and store all of my iTunes music. This same computer is used to sync several iPods. The entire library on this computer is shared. Two other computers in the house are Authorized on the same account and regularly play music stored on the "first" computer.
    So here's the rub.
    My duaghter just got a new iPhone. She has her own MAC. I'd like her to begin using her own computer to sync her iPod and iPhone.
    Is it possible to sync her iPod and iPhone using HER computer (that is authorized on my account) and MY shared library?

    I don't think it is possible to sync an ipod to a shared library for copyright reasons. Sharing is great and simple for accessing and listening to other computer's music over a network, but to sync your ipod - I believe can only be done from that particular itune's music library. But here's how I work around this so that I don't have to have my 90 GB Music Folder copied on multiple computers:
    Copy these files from your main computer (the one that has and controls your master itunes library) into the same location on any other computer on your network (say your daughter's computer): user/music/itunes/iTunes Music Library.xml & iTunes Library. Before copying them over to daughter's computer, remove the old files (maybe keep somewhere else just in case) and have itunes shut down. Then start up itunes on your daughter's computer and it should look identical to the main computer's itunes (and the same as the shared library). What you've esentially done is created a separate itunes library data base that can be managed on your daughter's computer but one that accesses the same actual music files that are on the main computer's Music Folder. To check go to Preferences/Advanced and you'll see that the Music Folder location is pointing to the same file as on the main computer (whose Music Folder is now being used as a sort of network music despository). You'll notice that when your daughter's computer starts itunes and plays a song, the main computer's hard drive where the Music Folder is stored will mount on her computer. So the main computer obviously has to be turned on, or more accurately, the location of the Music Folder (could be on an external hard drive) must be accessible over the network. Your duaghter can now create her own spearate playlists and sync her ipod to her own library which is accessing the same song files (Music Folder) as the main computer. And both of you can be playing from itunes at the same time independantly.
    Here's the tricky part that takes some coordintation: Since you'll both be accessing and adding to the same huge Music Folder, you'll need to coordinate with eachother if you want to be able to have each computer's itunes database "see" any music that the other person has added or purchased. For purchasing or adding music to the music folder, both of you should have in Preferences/Advanced the "copy files to iTunes Music folder when adding to Library" selection checked when purchasing music or adding music via burning. If your daughter, for example, buys an album and has this preference selected, then it will go to the Music Folder and she will have access to it. But the other computer doesn't know that this was added to the music folder and it won't show up in that computer's itunes. For itunes to knwo a song is in it's Music Library it has to add it to it. SO, from this other computer, go to File/Add to Library and navigate to the location within the Music Folder and then select the newly purchased album and it will now show up in this itunes as well - BUT before you do this you should UNcheck the "copy files to iTunes Music folder when adding to Library" preference so that the album is not duplicated in the Music Folder. Then if this computer wants to purchase an album, you need to have this checked again. Basically if your doing the original adding you have to have the "copy files to iTunes Music folder when adding to Library" checked. If your simply letting your itunes know that something was added then have the "copy files to iTunes Music folder when adding to Library" unchecked before you add it to your library. And if someone creates a playlist that the other wants, you can still share eachother's libraries (even though your accessing the same Music Folder) or even export the playlist and import it into the other computer.
    Sounds tricky but it's actually pretty easy and allows each person to sort of control his/her itunes and sync their own ipods/iphones all from the same Music Folder.

  • How to use J2EE shared library in a team environment? Any help?

    Hi all,
    I've created two portal web projects one as a shared library to share my portal resources (a saparate project
    containging all the portlets) rather than the portal project that containing the other portal resources (portal look &
    feel & ...).
    I've followed the steps to create a J2EE shared library (for portlets for example) by modifying META-INF/MANIFEST.MF file with the following variables added to it:
    Extension-Name: MyPortalWebProject (as a shared library)
    Specification-Version: 1.0
    Implementation-Version: 1.0
    and exporting the WAR file from the project that contains my portlets to be imported into the other portal project.
    I can see the portlets available from the portal project but I can't use them as I get the following
    error:
    No such portlet with URI (Portlet Name).
    Did I miss any steps to be able to use the portlets from the shared library into another portal project?
    If anyone has another scenario for how to separate all portlets in a separate project and share this with the main
    portal project, please advice.
    Many Thanks in advance.
    Mohamed

    Hello, did you attempted to use by Stream Portal?

  • Could not load library for database connection LCA

    Hi,
    I am facing RFC connection prblem while connectiong to database. I have installed SCM5.1 and live cache in single server
    Please find the logs.
    Work process log:
    B Mon Jul 20 11:19:13 2009
    B  create_con (con_name=LCA)
    B  Loading DB library 'E:\usr\sap\SC7\DVEBMGS03\exe\dbsdbslib.dll' ...
    M  *** ERROR => DlLoadLib: LoadLibrary(E:\usr\sap\SC7\DVEBMGS03\exe\dbsdbslib.dll) Error 126 [dlnt.c       241]
    M          Error 126 = "The specified module could not be found."
    B  *** ERROR => Couldn't load library 'E:\usr\sap\SC7\DVEBMGS03\exe\dbsdbslib.dll'
    [dbcon.c      4731]
    B  ***LOG BYG=> could not load library for database connection LCA        [dbds#1 @ 1035] [dbds    1035 ]
    A
    A Mon Jul 20 11:21:58 2009
    A  GENER starting remote generation: /SAPAPO/OM_SYNC_LC_DB (requested by W1).
    B
    SM21:
    No shared library found for the database with ID LCA|
    No shared library found for the database with ID LCA
    /SAPAPO/OM17|/SAPAPO/OM_SYNC_LC_DB|K |SAP Web AS Problem|SBAC   |
    Documentation for system log message BY G :
    As well as the standard connection, an attempt was made to set up
    another database connection, under the specified ID. The Shared Library
    for this second database could not be found.
    The Shared Library is usually found in the the Executable
    directory (profile parameter DIR_LIBRARY) under the name dbs
    <dbs>slib<os_ext>. <dbs> stands for the database type and <os_ext>
    stands for the operating system-specific extension of the Shared
    Libraries.
    The database type is determined from the entry that corresponds to the
    specified DB ID in the table DBDCON. Check whether the data in this
    entry is correct.
    ST22
    Runtime Errors         DBIF_DSQL2_CONNECTERR
    Exception              CX_SY_NATIVE_SQL_ERROR
    Date and Time          20.07.2009 11:22:21
    Short text
    Error setting up a secondary database connection
    What happened?
    Connection to database system not possible with identifier "LCA".
    |----
    System environment
    SAP-Release 700
    Application server... "
    Network address...... "
    Operating system..... "Windows NT"
    Release.............. "5.2"
    Hardware type........ "8x AMD64 Level"
    Character length.... 16 Bits
    Pointer length....... 64 Bits
    Work process number.. 8
    Shortdump setting.... "full"
    Database server... "
    Database type..... "ORACLE"
    Database name..... "SC7"
    Database user ID.. "SAPSC7"
    Terminal................. " "
    Char.set.... "C"
    SAP kernel....... 701
    created (date)... "Jul 6 2009 23:47:55"
    create on........ "NT 5.2 3790 Service Pack 1 x86 MS VC++ 14.00"
    Database version. "OCI_10201_SHARE (10.2.0.2.0) "
    Patch level. 50
    Patch text.. " "
    Database............. "ORACLE 9.2.0.., ORACLE 10.1.0.., ORACLE 10.2.0.."
    SAP database version. 701
    Operating system..... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2, Windows
    NT 6.0"
    Information on where terminated
    Termination occurred in the ABAP program "SAPLSLCAPPS" - in
    "LCA_EXISTS_LCA_ROUTINE".
    The main program was "/SAPAPO/TS_BATCH_RUN ".
    In the source code you have the termination point in line 23
    of the (Include) program "LSLCAPPSU05".
    The program "SAPLSLCAPPS" was started as a background job.
    Job Name....... "MACROS"
    Job Initiator.. "SC7GEN"
    Job Number..... 10222002
    The termination is caused because exception "CX_SY_NATIVE_SQL_ERROR" occurred
    in
    procedure "LCA_EXISTS_LCA_ROUTINE" "(FUNCTION)", but it was neither handled
    locally nor declared
    in the RAISING clause of its signature.
    The procedure is in program "SAPLSLCAPPS "; its source code begins in line
    1 of the (Include program "LSLCAPPSU05 ".
    Please help me to resolve the issue.
    Suraj

    Hi Natalia Khlopina,
    I have raised OSS message to SAP.
    Below is the information
    E:\usr\sap\SC7\SYS\exe\uc\Copy_ of_NTAMD64_15062009>sdbregview -l
    Server Utilities    e:/sapdb/programs      7.7.02.08     64 bit    valid
    DB Analyzer         e:/sapdb/programs      7.7.02.08     64 bit    valid
    PCR 7301            e:/sapdb/programs      7.3.01.21               valid
    PCR 7500            e:/sapdb/programs      7.5.00.42     64 bit    valid
    SAP Utilities       e:/sapdb/programs      7.7.02.08     64 bit    valid
    APO LC APPS         f:/sapdb/lcs/db/sap    6.00.004      64 bit    valid
    Redist Python       e:/sapdb/programs      7.7.02.08     64 bit    valid
    Base                e:/sapdb/programs      7.7.02.08     64 bit    valid
    JDBC                e:/sapdb/programs      7.6.03.02               valid
    Messages            e:/sapdb/programs      MSG 0.5010              valid
    ODBC                e:/sapdb/programs      7.7.02.08     64 bit    valid
    SQLDBC 77           e:/sapdb/programs      7.7.02.08     64 bit    valid
    Database Kernel     f:/sapdb/lcs/db        7.7.02.08     64 bit    valid
    Loader              e:/sapdb/programs      7.7.02.08     64 bit    valid
    SQLDBC              e:/sapdb/programs      7.7.02.08     64 bit    valid
    SQLDBC 76           e:/sapdb/programs      7.6.01.15     64 bit    valid
    Fastload API        e:/sapdb/programs      7.7.02.08     64 bit    valid
    C:\Documents and Settings\sc7adm>disp+work
    disp+work information
    kernel release                701
    kernel make variant           701_REL
    compiled on                   NT 5.2 3790 Service Pack 1 x86 MS VC++ 14.00
    compiled for                  64 BIT
    compilation mode              UNICODE
    compile time                  Jul  6 2009 23:47:55
    update level                  0
    patch number                  50
    source id                     0.050
    supported environment
    database (SAP, table SVERS)   700
                                  701
    operating system
    Windows NT 5.0
    Windows NT 5.1
    Windows NT 5.2
    Windows NT 6.0
    Thanks for quick responce.
    Suraj

  • Business Rule in shared library

    Hi,
    We have 2 portal projects. Say Project 1 and Project2. Project 1 is deployed as a shared library for project2. Project2 is deployed as an application.
    I have a business rule in a Project1's datasync project. And executing that rule from the controller of a spring portlet present in the project1's web project. This is deployed as shared library for project2. If i try to access the desktop (present in Project2), it throws follwoing error.
    com.bea.p13n.rules.manager.RuleSetNotFoundException: The rule set with URI /Rules/a.rls could not be located by the class named com.bea.p13n.rules.manager.internal.RuleSetPersistenceManager.
         at com.bea.p13n.rules.manager.internal.RuleSetPersistenceManager.getRuleSet(RuleSetPersistenceManager.java:408)
         at com.bea.p13n.rules.manager.internal.ContextPool.<init>(ContextPool.java:149)
         at com.bea.p13n.rules.manager.internal.ContextPoolFactory.getContextPool(ContextPoolFactory.java:214)
         at com.bea.p13n.rules.manager.internal.RulesManagerImpl.getContext(RulesManagerImpl.java:476)
         at com.bea.p13n.rules.manager.internal.RulesManagerImpl.evaluate(RulesManagerImpl.java:349)
         at com.bea.p13n.rules.manager.internal.RulesManagerImpl.evaluateRuleSet(RulesManagerImpl.java:122)
         at com.bea.p13n.rules.manager.internal.RulesManager_jswjkk_EOImpl.evaluateRuleSet(RulesManager_jswjkk_EOImpl.java:597)
         at com.capitalone.ecom.framework.RuleEngine.Impl.RuleExecutorImpl.evaluateRuleSet(RuleExecutorImpl.java:187)
         at com.capitalone.www.capabilities.portlet.controller.NavigationController.readBusinessRule(NavigationController.java:81)
         at com.capitalone.www.capabilities.portlet.controller.NavigationController.renderRequest(NavigationController.java:62)
         at com.capitalone.www.capabilities.portlet.controller.common.BaseController.handleRenderRequestInternal(BaseController.java:58)
         at org.springframework.web.portlet.mvc.AbstractController.handleRenderRequest(AbstractController.java:223)
         at org.springframework.web.portlet.mvc.SimpleControllerHandlerAdapter.handleRender(SimpleControllerHandlerAdapter.java:52)
    Project 2 also has a business rule in its own datasync. That rule is accessed from backing file. It executes fine.
    Any help.......

    Hi
    We are thinking of using a separate portal project with all the business rules and use a remote portlet for getting the result.
    The question is like the wsrp-producer-registry.xml has to be manually copied to the running EAR and the <wsrp-producer handle> entry has to be manually made. Is it not possible to have the <wsrp-producer handle> entry automatically.
    Also, <wsdl-url> entry currently is http://localhost:7001/xyz/producer?wsdl. But if the entries have to be made manually. do we need to repeat the process for other envirnments. i.e, the <wsdl-url> has to be changed manually in every environment and then deployed? Or is it not required to make any entries?
    Are there any other limitations, using this approach..

Maybe you are looking for

  • How to delete songs (purchased from wifi itunes store) finally?

    Hello, i have recently purchased some songs from the wifi itunes store on my iPod touch, but i don't want them on my iPod and in my iTunes anymore. I already deleted them from my iTunes, but every time i sync it, the songs keep coming back to my iTun

  • Java 6 pakage names not found running Java 5

    I have a JSP trying to use a bean class compiled under Java 6, but running under Java 5. The problem is with the handling of the Java package name. The package is 'com.myCompanyname'. The class should go in 'WEB-INF/classes/com/myCompanyname'. But if

  • Fill Field 'Header text' in FB01

    Hi, Now: documents (FB03) in field header text have date from documents date from invoices. I would like to have another date which automatic print here. For example one date 01.01.2000 . Can change it in tcode or it's more advance setup. Thanks

  • HOW DO I DOWNLOAD NEW VERSION OF ADOBE FLASH PLAYER

    To Whom It May Concern:         I need to download a new version of Adobe Flash Player,but am having difficulty in doing so. Can someone please help me with this matter?

  • Workspace has no privileges to parse as schema

    Hi, when i try to run the application appear this error Workspace has no privileges to parse as schema XXX Apex version = 3.2.0.00.27 DB verison = 11g the workspace worked well until now please help regards