Creating shared lib out of statical libs..

Hello!
Over here we are trying to create a shared lib (.so) by doing
CC -G -o foo.so -h libfoo.so object.o -lbar -lgaz
Basically we want all functionality in the libbar.a and libgaz.a, but the resulting file, libfoo.so seems a little bit small..
Can we assume that the linker does smart linking and removes code from the libs that isn't used from itself? (to be honest sounds like a good idea :-))
Meanwhile, is there a good way to do this?? Should we do something like
CC -G -o foo.so -h libfoo.so object.o libbar.a libgaz.a
instead??
Can't find much about this in the documentation.. Don't know if I just haven't searched the wrong places??
/Andy

Hi There,
The first thing I will suggest you is the
document to read. C++ User's Guide for
Forte developer 6 update 2 - chapter 16 on
building libraries in C++ environment.
Are these libbar.a and libgaz.a archived libraries using C or C++? If these libraries are C
then you can convert them in .so using the following command.
cc -G -o libmylib.so.1 -zallextract libmylib.a
The main difference between linking with a archive and building a shared object is that the shared object is a indivisable unit. When you link against a archive you only get those components of the archive which the linking application directly references.
So - if you build a shared library with '-zallextract' you will get everything in the archive included in the shared library. This might be exactly what you intend and not cause a problem - but it depends upon what is in the archive and is up to you how you are using it.
I hope this helps.
...jagruti
Developers Technical Support
Sun Microsystems, http://www.sun.com/developers/support

Similar Messages

  • Convert a static library (.a file) to a universal shared lib (.dylib)

    I'm working on an extension to a ruby based application. I'm using the ruby/dl extension capability for calling out to a dynamic library.
    I'm accessing a wrapped version of the Newton Physics SDK which ships with a universal static library (newton32.a).
    I've worked out a process for using LIPO to thin the .a down to the intel only version of the lib and then dump all the .o files. I then use g++ to relink into a dynamic library and I can access it successfully using ruby/dl.
    however, I'd like to create a universal shared lib. Anybody got the recipe for doing this???

    Probably not legally. You might want to check with your library to see what you can do with them, for example, can you burn them to an audio CD? The whole purpose of the DRM is to prevent you from converting or copying the files in ways the rights holder hasn't authorized. Discussions about how to circumvent DRM are not allowed according to the terms of use of these forums. Sorry.

  • How to control the shared libs when creating an new OC4J  in AS 10.1.3.4

    Hi there
    I experience some wired behavior in AS 10.1.3.4!
    I Have 2 different installation of AS 10.,1.3.4 (Win 2003 server).
    When I create an OC4J instance (using the manager) at virtual server 1 I got 28 global libraries
    When I create an OC4J instance (using the manager) at virtual server 2 I got 30 global libraries, (+ apache.webservices & oracle.ifs.client )
    Why this difference ?
    And how to control it?
    Note the default instance "Home" has 28 libraries on both servers!!
    Why is it sometime possible possible to use <instance>applib for the jar, and sometime I need to create an <instance>\shared-lib\global.libraries\1.0 library ?
    Regards HAns

    Hi there
    I experience some wired behavior in AS 10.1.3.4!
    I Have 2 different installation of AS 10.,1.3.4 (Win 2003 server).
    When I create an OC4J instance (using the manager) at virtual server 1 I got 28 global libraries
    When I create an OC4J instance (using the manager) at virtual server 2 I got 30 global libraries, (+ apache.webservices & oracle.ifs.client )
    Why this difference ?
    And how to control it?
    Note the default instance "Home" has 28 libraries on both servers!!
    Why is it sometime possible possible to use <instance>applib for the jar, and sometime I need to create an <instance>\shared-lib\global.libraries\1.0 library ?
    Regards HAns

  • Using older shared libs for games ?

    Hi fellow archers,
    I like to play the enhanced Quake engine DarkPlaces (http://icculus.org/twilight/darkplaces/) together with a few mods (namely SDQuake and Kleshik).
    Under Ubuntu 9.04 x64 DarkPlaces runs nicely as native x64 Linux app. Under the most recent version of arch64 DarkPlaces bombed out with an error message that the libjpeg version is too new. Something like Version 0.80 found but Version 0.62 is expected. Seems to me that even the newest version of Darkplaces is build against an older version of libjpeg than the one included in arch64. Libpng is also used by DarkPlaces since textures are stored as PNG.
    My Ubuntu 9.04 x64 shows the following libs:
    /usr/lib/libpng12.a
    /usr/lib/libpng12.so.0.27.0
    /usr/lib/libjpeg.a
    /usr/lib/libjpeg.so.62.0.0
    Is it "wise" to use a custom lib folder for DarkPlaces and set it via LD_LIBRARY_PATH ?
    e.g.
    export LD_LIBRARY_PATH=/home/ds/dplibs
    Or can I simply install older versions of libjpeg and libpng without screwing up my arch64 installation ? I can remember that I also did install a few older libs on my Ubuntu 10.04 in order to get UT2k4 running.
    BTW: I would prefer not to recompile DarkPlaces against newer versions of libpng/libjpeg.
    TIA,
    D$

    Ok, thanks for all your replies !
    I will try out the approach using a dedicated lib directory for DarkPlaces under arch64.
    Unfortunately my 500GB HDD which I used for arch died
    So I have to wait until my new 1TB HDD arrives.
    stqn wrote:... but I guess if you want to play (and not rebuild) this game you don't have a choice..
    Well, the other not so slick option would be using the Windows version of the DarkPlaces engine inside a 32 chrooted WINE since for Windows all requiered libs (aka dll) are included in the right version.
    As usual shared libs also do have their disadvantages compared to statically linked stuff
    Last edited by Darksoul71 (2010-07-28 22:16:20)

  • NPE when using POJO Data Control deployed as webcenter shared Lib

    Hello everyone,
    I am using Jdevelopper 11.1.1.7...
    I have a methodAction Binding defined for a JSFF. I am executing this methodAction in a managed bean. When doing so I have the following exception:
    Caused By: oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
    at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:118)
    at oracle.adf.model.BindingContext.instantiateDataControl(BindingContext.java:1128)
    at oracle.adf.model.dcframe.DataControlFrameImpl.doFindDataControl(DataControlFrameImpl.java:1638)
    at oracle.adf.model.dcframe.DataControlFrameImpl.internalFindDataControl(DataControlFrameImpl.java:1507)
    at oracle.adf.model.dcframe.DataControlFrameImpl.findDataControl(DataControlFrameImpl.java:1467)
    at oracle.adf.model.BindingContext.internalFindDataControl(BindingContext.java:1261)
    at oracle.adf.model.BindingContext.get(BindingContext.java:1211)
    at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:304)
    at oracle.adf.model.binding.DCBindingContainer.evaluateParameterWithElCheck(DCBindingContainer.java:1466)
    at oracle.adf.model.binding.DCBindingContainer.evaluateParameter(DCBindingContainer.java:1511)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.getResult(JUCtrlActionBinding.java:1968)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:267)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:210)
    at com.euroscript.platon.reporting.view.ReportingBean.getListLanguages(ReportingBean.java:661)
    at com.euroscript.platon.reporting.view.ReportingBean.getParamLabelsNeedingCustomLov(ReportingBean.java:87)
    at com.euroscript.platon.reporting.view.ReportingBean.initParams(ReportingBean.java:151)
    at com.euroscript.platon.reporting.view.ReportingBean.onSelectReport(ReportingBean.java:110)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.sun.el.parser.AstValue.invoke(AstValue.java:187)
    at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)
    at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1415)
    at org.apache.myfaces.trinidad.component.UIXEditableValue.broadcast(UIXEditableValue.java:216)
    at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:181)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:103)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:97)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1086)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:478)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:207)
    This methodAction calls a Data Contol based on a POJO which is using a JAX-WS Proxy. This Data Control POJO is packaged in a separate JAR file named ServicesProxy.jar.
    Both ServicesProxy.jar and the ADF application using it are deployed as two distinct shared libraries used by webcenter portal application.
    An important information is that the error does not happen when debugging the ADF application on my IntegratedServer. The error happens only when deployed as a shared Lib used by webcenter portal application.
    This jar file ServicesProxy is used by other applications within our portal, so I think that the data control is properly created.
    Do you have any idea what could be the cause of such error?

    vinaykumar2 wrote:
    not really.May be you can check log in EM to find out some warning or error.try that..
    I have checked in the EM, I don't really find more helpful info...
    Here is the full stacktrace found in the EM (WC_Spaces1-diagnostic.log)
    dfd51:69a509b6:142a48c6891:-8000-0000000000000ffd,0] [APP: webcenter#11.1.1.4.0] [DSID: 0000KA^^HbLDc_l6wvicMG1IaBTa000009] ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase PROCESS_VALIDATIONS 3[[
    javax.faces.el.EvaluationException: oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
            at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:58)
            at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1415)
            at org.apache.myfaces.trinidad.component.UIXEditableValue.broadcast(UIXEditableValue.java:216)
            at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:181)
            at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
            at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
            at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
            at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:103)
            at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
            at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
            at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
            at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:97)
            at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1086)
            at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:478)
            at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:207)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
            at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
            at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
            at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
            at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.portlet.client.adapter.adf.ADFPortletFilter.doFilter(ADFPortletFilter.java:32)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.webcenter.framework.events.dispatcher.EventDispatcherFilter.doFilter(EventDispatcherFilter.java:44)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.wcps.client.PersonalizationFilter.doFilter(PersonalizationFilter.java:74)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.webcenter.content.integration.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:168)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.webcenter.generalsettings.model.provider.GeneralSettingsProviderFilter.doFilter(GeneralSettingsProviderFilter.java:85)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterShellPageRedirectionFilter.doFilter(WebCenterShellPageRedirectionFilter.java:342)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterShellFilter.doFilter(WebCenterShellFilter.java:953)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.adf.view.page.editor.webapp.WebCenterComposerFilter.doFilter(WebCenterComposerFilter.java:117)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:71)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:128)
            at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
            at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
            at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
            at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
            at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
            at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterLocaleWrapperFilter.processFilters(WebCenterLocaleWrapperFilter.java:369)
            at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterLocaleWrapperFilter.doFilter(WebCenterLocaleWrapperFilter.java:265)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.adfinternal.view.faces.caching.filter.AdfFacesCachingFilter.doFilter(AdfFacesCachingFilter.java:126)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
            at java.security.AccessController.doPrivileged(Native Method)
            at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
            at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
            at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
            at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
            at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
            at java.security.AccessController.doPrivileged(Native Method)
            at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
            at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
            at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
            at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
            at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
            at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
            at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
            at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused by: oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
            at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:118)
            at oracle.adf.model.BindingContext.instantiateDataControl(BindingContext.java:1128)
            at oracle.adf.model.dcframe.DataControlFrameImpl.doFindDataControl(DataControlFrameImpl.java:1638)
            at oracle.adf.model.dcframe.DataControlFrameImpl.internalFindDataControl(DataControlFrameImpl.java:1507)
            at oracle.adf.model.dcframe.DataControlFrameImpl.findDataControl(DataControlFrameImpl.java:1467)
            at oracle.adf.model.BindingContext.internalFindDataControl(BindingContext.java:1261)
            at oracle.adf.model.BindingContext.get(BindingContext.java:1211)
            at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:304)
            at oracle.adf.model.binding.DCBindingContainer.evaluateParameterWithElCheck(DCBindingContainer.java:1466)
            at oracle.adf.model.binding.DCBindingContainer.evaluateParameter(DCBindingContainer.java:1511)
            at oracle.jbo.uicli.binding.JUCtrlActionBinding.getResult(JUCtrlActionBinding.java:1968)
            at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:267)
            at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:210)
            at com.euroscript.platon.reporting.view.ReportingBean.getListLanguages(ReportingBean.java:463)
            at com.euroscript.platon.reporting.view.ReportingBean.getParamLabelsNeedingCustomLov(ReportingBean.java:87)
            at com.euroscript.platon.reporting.view.ReportingBean.initParams(ReportingBean.java:151)
            at com.euroscript.platon.reporting.view.ReportingBean.onSelectReport(ReportingBean.java:110)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at com.sun.el.parser.AstValue.invoke(AstValue.java:187)
            at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)
            at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
            ... 84 more
    Caused by: java.lang.NullPointerException
            at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:113)
            ... 107 more
    any suggestion???

  • Timed Loop in Shared Lib caused LabWindow program to NOT exit

    I have a shared Lib created in LabView that I call from LabWindows.  If I create a VI with nothing but a Timed Loop and no other code, my Labwindows program will not terminate.  (Even if I don't call the library function (VI) containing the Timed Loop). 

    I have a conditional that after 3 iterations, the loop is terminated.  (tied to stop) 
    The timed loop is empty. 
    The timed loop is definitely the cause of LabWindows not terminating.
    I have attached a sample of the problem.
    Attachments:
    Timed Loop.zip ‏67 KB

  • Which Shared Libs are required to run ADF

    When we setup a new stand alone server, the shared libs are not targeted to that server.
    What Shared libs need to be targeted to a managed server for ADF applicaitons?
    Running WebLogic 10.3.1
    JDeveloper 11.1.1.1.0
    thanks,
    Rodger...

    You should be more specific with your environment.
    My understanding of a standalone WLS is this: a WLS installed with the plain WLS installer, no JDeveloper involved.
    If you installed JDeveloper which includes WLS and want to run a new WLS domain from this installation then you only need to run the Configuration Wizard to create a new domain. During this run you should include (set the check box) the Oracle JRF (something like Java Runtime Framework) option. Then your new domain is able to run the ADF application. You should be aware that you need to package it as an EAR file otherwise the shared libraries are not called. (Hint: See http://blogs.oracle.com/olaf/2008/10/nice_jdev_11g_feature_ear_pack.html)
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Dynamicaly add a shared lib using deployment plan

    Hi,
    I would like to dynamically add a shared lib reference to my EAR application.
    It seems to be possible using deployement plan but to take effect weblogic want I redeploy the application.
    When I update my application and if I choose Update this application in place with new deployment plan changes. (A deployment plan must be specified for this option), thre is no error but when I try to instanciate my class, I get a "ClassNotFoundException"
    If I choose Redeploy this application using the following deployment files: it works fine but it is not compliant with my requirements (I don't want to redeploy for that).
    is it the normal behavior or I miss something ?
    Best Regards,
    C.

    WebLogic does the following if an application references a shared library:
    Classes of the library are added to the classpath of the application and the deployment descriptors are merged in memory.
    When an application (ear) is deployed weblogic creates application classloaders. Now if we add a shared library we need
    to create the classloaders again (to load the classes of the shared library) - this can be accomplished by redeploying the
    application.

  • Shared/lib folder is missing inTomcat

    Dear Experts,
    I have installed prerequisites for Integration Kit for SAP.
    1)In the process of installing BO Integration Kit for SAP Solutions  i didnt find C:\Program Files\Business Objects\Tomcat55\Shared\lib to copy the file sapjco.jar.I observed only common\lib and server\lib folders only.
    What is the solution for above thing?
    2)I am installing it on 64 bit OS of windows server 2003.Can i copy sapjcorfc.dll to C:\WINDOWS\system32 or C:\WINDOWS\SysWOW64 ?
    Thanks in advance.

    Hi,
    Please refer below SAP notes.
    1292144 - JCO error when Importing SAP Roles in CMC.
    or
    Stop Tomcat
    Create the following structure \Tomcat55\shared\lib
    Copy the java connector (sapjcor.jar) into the above folder
    Place librfc32.dll & sapjcorfc.dll files into:
    \Windows\system32 folder &
    \Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 folder
    Erase the JCO v3.0.x files from the Tomcat folder, and set the CLASSPATH of the version 2.1.8 Connector
    Start Tomcat
    This process is described in our SAP Integration Kit Installation Guide (page 50 onwards): http://service.sap.com/~form/sapnet?_SHORTKEY=00200797470000087382&_SCENARIO=01100035870000000202&_OBJECT=011000358700000718922008E
    Thanks,
    Amit

  • Are the shared libs fixed in 815?

    The client lib (libclntsh.so) in 8.0.5 was broken. It's missing
    the symbol slpmprodstab located in ~/lib/scorept.o. So, you
    can't even connect. It's easy enough to fix (link scorept.o into
    a shared lib and link it first) but we can't tell our customers
    to do this for ever....
    I just downloaded the 8051 patches and they don't fix the
    problem, so I'm wondering if 815 fixes it?
    (sure would be nice to get some decent client libs!!)
    pete
    null

    It's not broken. From note 68151.1:
    In release 8.0, it was decided that a lot more oracle products
    would be linked to the client shared library, libclntsh.so.
    In doing this it was realised that the symbol slpmprodstab
    was resolved differently for each product and so could not
    be included in the shared library. On platforms where this
    practice has been adopted (e.g. Solaris) extra, product
    specific, object modules have to be included to resolve this
    symbol. Peter Hatch (guest) wrote:
    : Sandman (guest) wrote:
    : : Wow. Like I said, I didn't have a problem at all when I
    : : installed. Friends on EfNet say I live a blessed install
    life,
    : : because I rarely have problems when installing Oracle
    software.
    : : laff
    : This isn't an install problem. It causes certain (necessary)
    : calls to the client library to crash (i.e. core dump) because
    : they can't find the symbol. Oracle has the exact same problem
    : under Solaris--it's a build problem on their end...
    : : Hopefully, this is fixed in 8i since they were aware of it
    : while
    : As I said, it's not fixed as of 8051, so I was asking if anyone
    : has noticed it being fixed under 815 since I'm not going to
    : allocate the time/space to install that if it's got the same
    : problem.
    : : working on the product.
    : : Peter Hatch (guest) wrote:
    : : : Sandman (guest) wrote:
    : : : : I dont remember seeing this problem. Does this happen
    with
    : : : : glibc 2.1 or glibc 2.0.x?
    : : : glibc 2.0, but that shouldn't matter. It's got nothing to
    do
    : : : with the C libs. This symbol isn't defined in the client
    : : library
    : : : (at least not in the shared lib). I've talked to Oracle
    : folks
    : : at
    : : : almost every Linux trade show so far and have been told "we
    : : know
    : : : about the problem and we're working on it." Working on
    : what?
    : : : you just have to compile the library correctly....
    : : : FWIW-Sybase has even worse problems. They compiled their
    : : shared
    : : : libs as static so they don't work at all. They didn't
    even
    : : : link in libc, so you get "undefined symbol: printf" and
    : such.
    : : : : Peter Hatch (guest) wrote:
    : : : : : The client lib (libclntsh.so) in 8.0.5 was broken.
    It's
    : : : : missing
    : : : : : the symbol slpmprodstab located in ~/lib/scorept.o.
    So,
    : : you
    : : : : : can't even connect. It's easy enough to fix (link
    : : scorept.o
    : : : : into
    : : : : : a shared lib and link it first) but we can't tell our
    : : : customers
    : : : : : to do this for ever....
    : : : : : I just downloaded the 8051 patches and they don't fix
    the
    : : : : : problem, so I'm wondering if 815 fixes it?
    : : : : : (sure would be nice to get some decent client libs!!)
    : : : : : pete
    null

  • Reading the stabs.index section of Shared Libs

    Hi there.
    In order to produce developer-friendly stack-traces, I'd like to read the stabs info from our own projects to map the stack offsets to actual code lines.
    So far, I've sucessfully written the reader to handle the lazy stabs inside our object files, and I get the relevant mapping (using N_SLINE, N_FUN and N_SO). But I don't have much luck trying to find these actual .o files from the shared libs (using the N_OBJ stabs contained in the ".stab.index" section of the shared library).
    It looks like Sun Studio 11 (maybe earlier versions too) writes the stabs in an odd format in our shared-lib, so that only the beginning of the section is correct (only the one covered by the first N_UNDF) . After a while, the offset to the strings get wrong, even using the "correct" algorithm of adding the offset contained in the previous N_UNDF stab.
    So, I can read all the information correctly, except for the actual strings for each stab. I had a look at some other stab-readers (gdb and valgrind), and they suffer from the same issue as my code. Actually, even an objdump -G mySharedlib.so produces the same incorrect output. But obviously, there is a way of find the correct string pointers, as the dumpstabs tool works perfectly.
    Does anyone have any pointer to the actual trick needed to read the stabs ? I've already read "The stabs debug format", and the document provided by Sun (and linked from Chris Quenelle's blog): http://developers.sun.com/tools/cc/documentation/ss10_docs/stabs.pdf
    Cheers

    First of all, I should start by saying that in Sun Studio 12 all the
    Sun compilers will generate dwarf as the default debugging format,
    and you should be able to use the GNU binutils "addr2line" utility
    to query the line number information. The dwarf information produced
    by Sun Studio 11 (C compiler, for example) has a glitch that makes
    it incompatible with addr2line, but the glitch is fixed in our development
    release, and Sun Studio 12 (when it comes out) will work with addr2line.
    On Solaris, the addr2line utility is available as "gaddr2line".
    But I realize that stabs processing is also useful for the time being.
    Here are my ideas for what might be going wrong.
    If there are stabs that resulted from COMDAT functions then there are
    special formatting issues. The C++ compiler uses COMDAT to implement
    templates. The stabs.pdf document describes how COMDAT affects
    stabs. Search for the word COMDAT in the document. Because comdat
    ELF sections are merged at link-time, it might also help to run
    elfdump and dumpstabs on some of the .o files that are being put into
    your library as a way of understanding what's going on.
    Specifically, the string table offsets need special processing around
    any index stabs that result from comdat sections, so I suspect
    that's what's causing problems.

  • Problem with classloader (for shared-lib's) on oc4j 10.0.3.4 under jdk 1.5

    I have a project that runs great on oc4j 10.0.3.4 under jdk 1.6. (everything worked great)
    I recently tried to run it under jdk 1.5 and i've run into a little problem with the shared-lib's:
    The classloader's debug file reports the following: (i have translated some of it)
    Class error: oracle.classloader.util.AnnotatedNoClassDefFoundError:
         Missing class: javax.xml.bind.JAXBContext
    Dependant class: nl.comp.util.XmlUtil
         Classloader: comp:0.1
         Code-source: /C:/programs/oc4j/j2ee/home/shared-lib/comp/0.1/comp.jar
         Configuration: <code-source> in /c:/programs/oc4j/j2ee/home/config/server.xml
    The missing class is available from the following location:
         1. Code-source: /C:/programs/oc4j/lib/xml.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\programs\oc4j\j2ee\home\oc4j.jar)
    This code-source is available from classloader oracle.xml:10.1.0_2
         2. Code-source: /C:/programs/oc4j/j2ee/home/shared-lib/jaxb/2.1.6/jaxb-api.jar (from <code-source> in /c:/programs/oc4j/j2ee/home/config/server.xml)
    This code-source is available from classloader jaxb:2.1.6.
    So the classloader knows where to find the necessary lib, but it isn't loading it? If i run the exact same code (with same descriptors and everything) under jdk 1.6, it works, under 1.5 i get the above error.
    What is different on the class loader level between the two jdk versions that might affect the program in such a way?
    Need i update a descriptor or do something else?

    Jack,
    Not a definitive answer for you (sorry), just a few suggestions (that I assume you are unaware of).
    1. Try unsetting your "ClassPath" variable. Open a "command" window and type the following:
    set ClassPath=2. Launch OC4J from the directory where the "oc4j.jar" file is located, for example:
    D:
    cd oc4j\j2ee\home
    java -jar oc4j.jar3. I'm just guessing, but if your drive "D:" is a mapped, network drive, this may be causing the problem. Perhaps try installing OC4J on a local drive?
    Hope this helps.
    Good Luck,
    Avi.

  • ODCI : oracle data catridge interface service : what shared libs are needed

    Hi,
    I am writing aggregate functions. For using ODCI along with OCI in C/C++.. what are the shared libraries which are required : i have oci.h & odci.h files but do not know what shared libraries are needed to use the ODCI interface.
    I am getting the error :
    ORA-06521: PL/SQL: Error mapping function
    ORA-06522: /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/custagg.so:
    undefined symbol: ODCIAggregateInitialize
    ORA-28579: network error during callback from external procedure agent
    ./libagtsh.so: undefined reference to `homtscb_ShutdownCallback'
    I don't see any one responding to my queries.
    Can any one give me some other paid forums where I can pay some fee and get clarifications for my errors and doubts.
    I am a student trying to study the extendibility of databases with user defined aggregates without the need to change the underlying database engine. This is a part of research which i am doing.

    But some how i am having problem with ODCI : it is
    not identifying the ODCIAggregateInitialize function
    It is throwing error : ORA-06521: PL/SQL: Error
    mapping function
    ORA-06522:
    /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/li
    b/custagg.so:
    undefined symbol: ODCIAggregateInitializeThat's a pretty useful error message IMHO
    And generally in Unix environment we don't include
    'extern "C" ' before each member function in the C
    program but we do that in Windows environment . So
    may be I thought of just try including that in my
    program(unix environment) and it was giving me even
    a worse error :
    RA-28579: network error during callback from external
    procedure agent.So I just removed that extern "C"
    keyword.Actually, the extern "C" is required because even though you are writing C-like code, it's C++ since there are declarations in the middle of the code, which C doesn't support (maybe C99 does, I don't know). This tells me you compile using a C++ compiler, which mangles the method name (to support method overloading, which C doesn't support). Adding the extern "C" makes the C++ not mangle the method, and thus the ODCI system can find the entry point in your shared lib.
    ORA-28579 is not a worse error, it is the error you should fix. But I can't help you there, I've never done it. OTOH, if you can make this work, I'd be very interested if you could post a complete example demonstrating what you are doing. --DD                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Can't load shared lib lib... with SuSE 6.2

    Hi,
    i have a Problem with sqlplus and the shared librarys, if I start
    sqlplus everytime it complains about the shared libs.
    Is it wron to set the LD_LIBRARY_PATH to $ORACLE_HOME/lib ???
    Do I need an updated JRE ??? GLIBC ???
    Thank you for the help !!
    Michael
    null

    Hi,
    which libs are wrong? There are several libs with 0 byte size!!!
    That is a known bug, and when ld reads them it of course
    complains ;-)
    For one of the 0 byte libs there is a patch (look at earlier
    postings around 2 weeks ago)
    Marcus
    PS: it seems anyhow this release is not ready for prime time. If
    you want to play around with Oracle, take 8.0.5.1, that works
    really good.
    Christian Schroeder (guest) wrote:
    : Marcus (guest) wrote:
    : Hi,
    : : try adding $ORACLE_HOME/lib path to /etc/ld.so.conf
    : : then, run ldconfig -v as root, this may solve your problem
    : I did this, but the ldconf complained that he couldn't read
    : the headers of the libraries, especially the
    jni-shared-library.
    : I was wondering if I use the wrong ldd version? It says it is
    : 2.1.2! Is this enough?
    : Thanks you for you help,
    : cu Christian
    null

  • [Resolved] Distributing a Python module that uses C shared libs?

    I did some research on distutils, and I managed to find fairly detailed instructions for how one could distribute a Python module with C extensions. However, I have a Python module which uses ctypes to run code from C shared libraries (more specifically: SDL, and related libraries).
    Basically, this is what I have:
    pslab.py # requires ctypes wrapper modules below
    sdl.py # ctypes wrapper modules require respective shared libs below
    sdlmixer.py
    sdlimage.py
    sdlttf.py
    # This is for Linux -- .dll for Windows, .dylib for OSX.
    libSDL.so
    libSDL_mixer.so
    libSDL_image.so
    libSDL_ttf.so
    Is there a "standard" way to distribute modules of this type (maybe some undocumented distutils method, or something I failed to find)?
    The Python files are not the problem (distutils can handle them), but I need a way to install the appropriate shared libs for the platform in question (if necessary), so that ctypes wrapper modules can find and load them.
    Last edited by Goran (2012-08-14 08:51:19)

    You could distribute those files ... but I wouldn't recommend it.
    I believe the closest thing to a "standard" is simply to list sdl as a dependency.  A package distributor should not try to manage dependencies for users (only inform them of the dependencies).  That is either up to the user, or (more often) the distro's package management system.
    If I download a program that uses gtk, I don't expect it to include all of the gtk too.  Rather, the documentation would simply specify that gtk is a dependency.  Are you going to also distribute copies of the python interpreter?  Perhaps I'm missing something, but why would sdl be any different than python itself?  It's assumed (or speficied) that the user needs to have these installed for your package to work.
    Last edited by Trilby (2012-08-13 23:44:44)

Maybe you are looking for

  • What is an affiliated company?

    The enterprise structure is like this :- Company Code : A and Company id : G Company Code : B and Company id : G Company code A sells an asset car to company code B. A vendor account V001 has been set up in company code B for company code A. The trad

  • The Move Tool not working in InDesign CC 2014, no click-and-drag. What Can I do to fix it?

    It just started not working this week. I am unable to click-and drag anything in my document with the Move Tool. I have noticed that I can click-and-drag objects if I switch to the Free Transform Tool. Ok work around for now but I want to fix the iss

  • Warning:unchecked cast

    I am one of the many that have this compiler problem. When i compile this program( i want to check how it works). import generated.*; import javax.xml.bind.*; import java.io.File; import java.util.List; public class JAXBUnMarshaller {   public void u

  • Anyone going from the iPad VGA connector to DVI-A?

    Anyone going from the iPad VGA connector to DVI-A? I'd love to hear about your setup. I'm having an issue. Please respond at this thread: http://discussions.apple.com/thread.jspa?threadID=2566089&tstart=0

  • Plug-In for slow motion/fast motion effects?

    The fact that iMovie '08 does not give us the ability to slow down, speed up, or rewind video kinda stinks. I know that iMovie has it, now, but I don't want to spend the money just for those effects. Is there a simple plug-in that makes this possible