Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338489 - 3.0.0.M02 missing com.springsource.javax.transaction-1.1.0.jar from lib directory
Summary: 3.0.0.M02 missing com.springsource.javax.transaction-1.1.0.jar from lib direc...
Status: CLOSED FIXED
Alias: None
Product: Virgo
Classification: RT
Component: runtime (show other bugs)
Version: 2.2.0.M01   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.0.0.M03   Edit
Assignee: Chris Frost CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-28 18:22 EST by Eric Hough CLA
Modified: 2011-03-10 10:54 EST (History)
4 users (show)

See Also:


Attachments
stack trace of exception (4.87 KB, text/plain)
2011-02-28 18:23 EST, Eric Hough CLA
no flags Details
sample bundle to load into /pickup. just tries to build a hibernate session factory (2.47 KB, application/x-java-archive)
2011-03-01 12:25 EST, Eric Hough CLA
no flags Details
source code (maven project) for sample bundle (4.48 KB, application/zip)
2011-03-01 12:25 EST, Eric Hough CLA
no flags Details
bundles to unzip into repository/usr (6.74 MB, application/zip)
2011-03-01 12:30 EST, Eric Hough CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Hough CLA 2011-02-28 18:22:07 EST
Build Identifier: 3.0.0.M2

I noticed that since the 3.0.0.M1 release, com.springsource.javax.transaction-1.1.0.jar is no longer in /lib. This in turn caused a missing dependency for one of my bundles in /repository/usr (org.springframework.orm-3.0.5.RELEASE.jar in my case). The only way to rectify this is to copy com.springsource.javax.transaction-1.1.0.jar into /lib. For some reason dropping it in /repository/usr has no effect.

Was there a reason it was dropped? Trying to determine if this was an oversight, or if I'll need to modify my build script to copy in this jar.

Reproducible: Always

Steps to Reproduce:
1. Set up fresh copy of Virgo 3.0.0.M2.
2. Install org.springframework.orm-3.0.5.RELEASE.jar plus its dependencies into /repository/usr
3. Try to start a bundle that uses org.springframework.orm.hibernate3.LocalSessionFactoryBean (I can provide a sample if needed)
4. Observe bundle's failure to start (see attached stack trace)
Comment 1 Eric Hough CLA 2011-02-28 18:23:03 EST
Created attachment 190010 [details]
stack trace of exception
Comment 2 Borislav Kapukaranov CLA 2011-03-01 01:58:22 EST
Can you please also provide an example.
Comment 3 Glyn Normington CLA 2011-03-01 05:31:14 EST
This change first surfaced in 2.2.0.M01, so I have set the version to that. The file is not present in the lib directory in either 3.0.0.M01 or 3.0.0.M02.

Investigation required as to whether this is a bug or not.
Comment 4 Eric Hough CLA 2011-03-01 12:25:21 EST
Created attachment 190060 [details]
sample bundle to load into /pickup. just tries to build a hibernate session factory
Comment 5 Eric Hough CLA 2011-03-01 12:25:58 EST
Created attachment 190061 [details]
source code (maven project) for sample bundle
Comment 6 Eric Hough CLA 2011-03-01 12:30:48 EST
Created attachment 190062 [details]
bundles to unzip into repository/usr
Comment 7 Eric Hough CLA 2011-03-01 12:37:11 EST
(In reply to comment #2)
> Can you please also provide an example.

Test case pieces attached. Here's how to use them:

1. Unpack fresh copy of Virgo Kernel 3.0.0.M2
2. cd to /repository/usr and unzip [1]
3. copy [2] to /pickup
4. Start Virgo. Observe stack trace. Stop Virgo.
5. Copy com.springsource.javax.transaction-1.1.0.jar to /lib
6. Start Virgo. Observe clean start of sample bundle.

[1] https://bugs.eclipse.org/bugs/attachment.cgi?id=190062
[2] https://bugs.eclipse.org/bugs/attachment.cgi?id=190060

p.s. if you're having trouble downloading [1], here's the list of bundles to go into /repository/usr

com.springsource.antlr-2.7.7.jar			   
com.springsource.javassist-3.9.0.GA.jar			   
com.springsource.javax.xml.stream-1.0.1.jar		   
com.springsource.net.sf.cglib-2.2.0.jar			   
com.springsource.org.apache.commons.collections-3.2.1.jar  
com.springsource.org.dom4j-1.6.1.jar			   
com.springsource.org.hibernate-3.3.2.GA.jar	  
com.springsource.org.objectweb.asm-1.5.3.jar   
org.springframework.aop-3.0.5.RELEASE.jar	  
org.springframework.asm-3.0.5.RELEASE.jar	  
org.springframework.beans-3.0.5.RELEASE.jar	  
org.springframework.context-3.0.5.RELEASE.jar
org.springframework.core-3.0.5.RELEASE.jar
org.springframework.expression-3.0.5.RELEASE.jar
org.springframework.jdbc-3.0.5.RELEASE.jar
org.springframework.orm-3.0.5.RELEASE.jar
org.springframework.transaction-3.0.5.RELEASE.jar
Comment 8 Dmitry Sklyut CLA 2011-03-01 13:06:45 EST
(In reply to comment #0)

javax.transaction* is in the "org.osgi.framework.system.packages" (see lib/java6-server.profile).

 javax.transaction,\
 javax.transaction;version="1.0.1",\
 javax.transaction;version="1.1.0",\
 javax.transaction.xa,\
 javax.transaction.xa;version="1.0.1",\
 javax.transaction.xa;version="1.1.0",\

I think that is the reason why dropping the jar in repository makes no difference.
Comment 9 Chris Frost CLA 2011-03-10 09:24:23 EST
This jar was reinstated on the 2.1.x line but never on the master line, this was an error and I have added it back in.
Comment 10 Eric Hough CLA 2011-03-10 10:54:39 EST
(In reply to comment #9)
> This jar was reinstated on the 2.1.x line but never on the master line, this
> was an error and I have added it back in.

Great. Thank you!