WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

what is a shared library?

  • 1.  what is a shared library?

    Posted Sun June 09, 2013 10:03 AM
    what is a shared library and use of it?


  • 2.  what is a shared library?

    Posted Tue June 11, 2013 04:16 PM
    A place to share code used by multiple applications.  For example you might be using a different XML engine then what is shipped with WAS.  It would be better to place those jar files in a share library then trying to mess with parent first/last settings in the classpath setup.

    For more information see the WAS v8 InfoCenter article on shared libraries -> pic.dhe.ibm.com/infocenter/wasinfo/v8r0/...


  • 3.  what is a shared library?

    Posted Wed June 12, 2013 08:59 AM
    thank you paul.


  • 4.  what is a shared library?

    Posted Mon July 15, 2013 12:04 PM
    Hi Paul,
       I have a question.We are Upgrading the Websphere version from 6.1 to 8.0.
    In my application i have used shared Libraries.But i am getting the below exception.

    Exception:

    [11/07/13 15:34:05:278 BST] 0000000f ContextLoader E org.springframework.web.context.ContextLoader initWebApplicationContext Context initialization failed
                                     org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping#0' defined in ServletContext resource [/WEB-INF/config/web-application-config.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.mchange.v2.c3p0.ComboPooledDataSource] for bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/config/repository.xml]; nested exception is java.lang.ClassNotFoundException: com.mchange.v2.c3p0.ComboPooledDataSource

    The above class is avilable in Jar file(The jar file is in shared Library).

    The Jar file is c3p0-0.9.1.2.jar

    Could you pleas help me how to resolve this exception and proceed further.

    The repository.xml contains the below code.


     
      
       ${hibernate.c3p0.initialPoolSize}
      
      
       ${hibernate.c3p0.minPoolSize}
      
      
       ${hibernate.c3p0.maxPoolSize}
      
      
       ${hibernate.c3p0.acquireRetryAttempts}
      
      
       ${hibernate.c3p0.acquireIncrement}
      
      
       ${hibernate.c3p0.idleConnectionTestPeriod}
      
      
       ${hibernate.c3p0.maxIdleTime}
      
      
       ${hibernate.c3p0.maxConnectionAge}
      
      
       ${hibernate.c3p0.preferredTestQuery}
      
      
       ${hibernate.c3p0.testConnectionOnCheckin}
      
     


    My Questions are

    1).For Websphere8,could you please confirm me,i have to use any other jar file
         to resolve this exception.

    Why because the application is working successfully in Websphere6.1 with same jar as shared Library.


    Could you please check it once and let me know if you need any more information.

    Thanks for your time.

    Thanks,
    Samap.