Results 1 to 10 of 16

Thread: spring-dm not picking up thirdparty bundles

Hybrid View

  1. #1
    Join Date
    Jun 2008
    Posts
    29

    Default spring-dm not picking up thirdparty bundles

    All

    I downloaded the esper bundle from thew spring source website repo
    and put it into bundles/usr

    Code:
    drwxr-xr-x@ 6 test  test      204 12 Apr 20:02 ..
    -rw-r--r--@ 1 test  test  2144604  4 Feb 13:11 com.springsource.com.espertech.esper-2.2.0.jar
    -rw-r--r--@ 1 test  test   328797  4 Feb 13:10 com.springsource.net.sf.cglib-2.1.3.jar
    -rw-r--r--@ 1 test  test   562817  4 Feb 13:11 com.springsource.org.antlr-3.0.1.jar
    -rw-r--r--@ 1 test  test    61464  4 Feb 13:04 com.springsource.org.apache.commons.logging-1.1.1.jar
    test-macbook:usr test $
    When i startup the engine and look at the status panel

    Code:
    osgi> ss
    
    Framework is launched.
    
    id	State       Bundle
    0	ACTIVE      org.eclipse.osgi_3.4.2.R34x_v20080826-1230
    1	ACTIVE      com.springsource.server.serviceability.tracing.aspects_1.0.2.RELEASE
    2	ACTIVE      com.springsource.org.aspectj.runtime_1.6.2.RELEASE
    3	ACTIVE      org.eclipse.equinox.cm_1.0.0.v20080509-1800
    4	ACTIVE      org.eclipse.osgi.services_3.1.200.v20071203
    5	ACTIVE      com.springsource.javax.servlet_2.5.0
    6	ACTIVE      org.springframework.osgi.extender_1.1.3.RELEASE
    	            Fragments=7
    7	RESOLVED    com.springsource.server.kernel.dm_1.0.2.RELEASE
    	            Master=6
    8	ACTIVE      org.springframework.beans_2.5.6.A
    9	ACTIVE      com.springsource.javax.el_1.0.0
    10	ACTIVE      com.springsource.net.sf.cglib_2.1.3
    11	ACTIVE      org.springframework.core_2.5.6.A
    12	ACTIVE      com.springsource.edu.emory.mathcs.backport_3.0.0
    13	ACTIVE      com.springsource.slf4j.org.apache.log4j_1.5.6
    14	ACTIVE      com.springsource.org.aspectj.weaver_1.6.2.RELEASE
    15	ACTIVE      org.springframework.context_2.5.6.A
    16	ACTIVE      com.springsource.javax.ejb_3.0.0
    17	ACTIVE      com.springsource.javax.xml.rpc_1.1.0
    18	ACTIVE      com.springsource.javax.jms_1.1.0
    19	ACTIVE      com.springsource.javax.persistence_1.0.0
    20	ACTIVE      com.springsource.org.aopalliance_1.0.0
    21	ACTIVE      org.springframework.aop_2.5.6.A
    22	ACTIVE      org.springframework.orm_2.5.6.A
    23	ACTIVE      org.springframework.transaction_2.5.6.A
    24	ACTIVE      org.springframework.jdbc_2.5.6.A
    25	ACTIVE      org.springframework.web_2.5.6.A
    26	ACTIVE      com.springsource.javax.servlet.jsp_2.1.0
    27	ACTIVE      com.springsource.org.apache.taglibs.standard_1.1.2
    28	ACTIVE      com.springsource.javax.servlet.jsp.jstl_1.1.2
    29	ACTIVE      org.springframework.osgi.core_1.1.3.RELEASE
    30	ACTIVE      org.springframework.osgi.io_1.1.3.RELEASE
    31	ACTIVE      com.springsource.server.serviceability.ffdc_1.0.2.RELEASE
    32	RESOLVED    com.springsource.server.serviceability.ffdc.aspects_1.0.2.RELEASE
    33	ACTIVE      com.springsource.server.common.math_1.0.2.RELEASE
    34	ACTIVE      com.springsource.server.kernel.core_1.0.2.RELEASE
    35	ACTIVE      com.springsource.server.management.proxy_1.0.2.RELEASE
    36	ACTIVE      com.springsource.server.ffdc.core_1.0.2.RELEASE
    37	ACTIVE      com.springsource.json_1.0.1.RELEASE
    38	ACTIVE      com.springsource.org.antlr_3.0.1
    39	ACTIVE      com.springsource.server.config.core_1.0.2.RELEASE
    40	ACTIVE      com.springsource.server.concurrent.core_1.0.2.RELEASE
    41	ACTIVE      com.springsource.com.google.common.collect_0.5.0.alpha
    42	RESOLVED    com.springsource.server.common.env_1.0.2.RELEASE
    43	ACTIVE      com.springsource.server.io.core_1.0.2.RELEASE
    44	ACTIVE      com.springsource.server.control.core_1.0.2.RELEASE
    45	ACTIVE      com.springsource.org.apache.catalina_6.0.18
    	            Fragments=46, 47
    46	RESOLVED    com.springsource.org.apache.coyote_6.0.18
    	            Master=45
    47	RESOLVED    com.springsource.org.apache.jasper_6.0.18
    	            Master=45
    48	ACTIVE      com.springsource.javax.annotation_1.0.0
    49	ACTIVE      com.springsource.javax.mail_1.4.0
    50	ACTIVE      com.springsource.org.apache.juli.extras_6.0.18
    51	ACTIVE      com.springsource.org.apache.el_6.0.18
    52	ACTIVE      com.springsource.org.apache.jasper.org.eclipse.jdt_6.0.18
    53	ACTIVE      com.springsource.server.deployer.core_1.0.2.RELEASE
    54	ACTIVE      com.springsource.server.profile.core_1.0.2.RELEASE
    55	ACTIVE      com.springsource.server.deployer.hot_1.0.2.RELEASE
    56	ACTIVE      com.springsource.server.system.core_1.0.2.RELEASE
    57	ACTIVE      com.springsource.server.servlet.core_1.0.2.RELEASE
    58	ACTIVE      com.springsource.server.servlet.tomcat_1.0.2.RELEASE
    59	ACTIVE      com.springsource.org.apache.catalina.ha_6.0.18
    60	ACTIVE      com.springsource.org.apache.catalina.tribes_6.0.18
    61	ACTIVE      com.springsource.server.web.core_1.0.2.RELEASE
    62	ACTIVE      com.springsource.server.web.dm_1.0.2.RELEASE
    63	ACTIVE      org.springframework.web.servlet_2.5.6.A
    64	ACTIVE      com.springsource.org.apache.commons.fileupload_1.2.0
    65	ACTIVE      com.springsource.org.apache.commons.io_1.4.0
    66	ACTIVE      org.springframework.context.support_2.5.6.A
    67	ACTIVE      com.springsource.server.servlet.admin_1.0.2.RELEASE
    68	ACTIVE      com.springsource.server.servlet.splash_1.0.2.RELEASE
    
    osgi> Connection closed by foreign host.
    BUt when i startup my application I get

    Code:
    Caused by: java.lang.NoClassDefFoundError: com/espertech/esper/client/EPServiceProviderManager
    So it does not look like it loaded the libraries, but from what I can see on the console it has loaded CGLIB and ANTLR but not the esper bundle, why is this ?

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    Since the deployment target is Spring dm Server, I've moved the issue to this forum.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  3. #3
    Join Date
    Jun 2008
    Posts
    29

    Default

    Thanks.

    ANy ideas of this , why spring-dm does not pickup the esper package ?
    from the docs it just looks like you drop it into the bundles/usr then it should pickup the library

  4. #4
    Join Date
    Jun 2008
    Posts
    29

    Default

    I just found this in the trace log, what is unknown ?

    [2009-04-15 19:23:01.147] fs-watcher .osgi.provisioning.repository.FileSystemBundleRepo sitory.unknown I Registering Bundle Definition: 'JarBundleDefinition -> /Downloads/springsource-dm-server-1.0.2.RELEASE/repository/bundles/usr/com.springsource.com.espertech.esper-2.2.0.jar'

  5. #5
    Join Date
    Oct 2008
    Location
    Winchester, UK
    Posts
    535

    Default

    Is there a missing import or export for the package of the class which is not being loaded?
    Glyn Normington
    SpringSource

  6. #6
    Join Date
    Jun 2008
    Posts
    29

    Default

    I think there must be, because if i put the bundle into the pickup directory the bundle gets loaded and I can use it from within my application.

    I have another question on bundles, if I have some library that is not in the spring repo, is there a way to load that ?

  7. #7

    Default

    Quote Originally Posted by bc56 View Post
    I just found this in the trace log, what is unknown ?

    [2009-04-15 19:23:01.147] fs-watcher .osgi.provisioning.repository.FileSystemBundleRepo sitory.unknown I Registering Bundle Definition: 'JarBundleDefinition -> /Downloads/springsource-dm-server-1.0.2.RELEASE/repository/bundles/usr/com.springsource.com.espertech.esper-2.2.0.jar'
    I also see this in my trace.log:

    Code:
    [2009-06-11 15:29:20.705] server-tomcat-thread-1                         org.hibernate.jdbc.AbstractBatcher.unknown D about to open ResultSet (open ResultSets: 0, globally: 0)
    [2009-06-11 15:29:20.705] server-tomcat-thread-1                                org.hibernate.loader.Loader.unknown D result row: 
    [2009-06-11 15:29:20.705] server-tomcat-thread-1                         org.hibernate.jdbc.AbstractBatcher.unknown D about to close ResultSet (open ResultSets: 1, globally: 1)
    [2009-06-11 15:29:20.705] server-tomcat-thread-1                         org.hibernate.jdbc.AbstractBatcher.unknown D about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
    [2009-06-11 15:29:20.705] server-tomcat-thread-1            org.hibernate.engine.StatefulPersistenceContext.unknown D initializing non-lazy collections
    [2009-06-11 15:29:20.705] server-tomcat-thread-1                       org.hibernate.jdbc.ConnectionManager.unknown D transaction completed on session with on_close connection release mode; be sure to close the session to release JDBC resources!
    [2009-06-11 15:29:20.744] server-tomcat-thread-2                       org.hibernate.jdbc.ConnectionManager.unknown D releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
    [2009-06-11 15:29:20.744] server-tomcat-thread-2                       org.hibernate.jdbc.ConnectionManager.unknown D transaction completed on session with on_close connection release mode; be sure to close the session to release JDBC resources!
    [2009-06-11 15:29:20.757] server-tomcat-thread-1                       org.hibernate.jdbc.ConnectionManager.unknown D releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
    [2009-06-11 15:29:20.757] server-tomcat-thread-1                       org.hibernate.jdbc.ConnectionManager.unknown D transaction completed on session with on_close connection release mode; be sure to close the session to release JDBC resources!
    [2009-06-11 15:34:20.464] server-tomcat-thread-6                             org.hibernate.impl.SessionImpl.unknown D opened session at timestamp: 124474886
    Why does the class name end with: ".unknown"?
    Secondly, is there a way configure the format of the logging file?

  8. #8
    Join Date
    Oct 2008
    Posts
    493

    Default

    Please see this thread for an explanation of 'unknown' appearing in the trace output, and our plans for customising the output's format in 2.0.
    Andy Wilkinson
    SpringSource

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •