Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » OSGI dependencies
OSGI dependencies [message #641914] Mon, 29 November 2010 09:04 Go to next message
Bojan Kraut is currently offline Bojan KrautFriend
Messages: 22
Registered: July 2009
Location: Maribor
Junior Member

Hi,

I'm developing a osgi enterprise application based on Virgo server. An application should have full support of json and Ajax and is running on Spring 3.0.5.RELEASE.

Her the problem starts. When deploying I have constant problems with a class org/codehaus/jackson/map/ObjectMapper. An exception that it does not exists.

I searched the forum and found this http:// www.eclipse.org/forums/index.php?t=msg&th=199043&S=5 c9780c0a5499fd8e0c9f8ac1b9e8379#msg_634843
link, which described the same problem.

I have org.codehous.jackson 1.6.1 defined in my pom.xml file and due to optional import of org.codehous.jackson in org.springsource.web I unjared the org.springsource.web 3.0.5.RELEASE jar to see what kind of version is requested in 3.0.5.RELEASE as in upper post was stated that the 3.0.0 version had optional dependency to 1.0.0. org.codehous.jackson package.

3.0.5.RELEASE requests [1.3.0 to 2.0.0) org.codehouse.jackson package so I have a correct version but I even exported jackson packages in my application bundle.
it still doesn't work.

Finally I connected to osgi console of Virgo server and checked vsh bundle list command. This is my output:

osgi> vsh bundle list

Id   Name                                                                                   Version                    State
0    org.eclipse.osgi                                                                       3.6.1.R36x_v20100806      ACTIVE
1    org.eclipse.virgo.region.user                                                          0.0.0                     ACTIVE
2    org.eclipse.virgo.kernel.userregion                                                    2.1.0.RELEASE             ACTIVE
3    org.eclipse.virgo.kernel.osgicommand                                                   2.1.0.RELEASE             ACTIVE
4    org.springframework.osgi.core                                                          1.2.1                     ACTIVE
5  S org.springframework.osgi.extender                                                      1.2.1                     ACTIVE
6    org.springframework.osgi.io                                                            1.2.1                     ACTIVE
7    org.eclipse.virgo.kernel.agent.dm                                                      2.1.0.RELEASE             ACTIVE
8  S org.eclipse.virgo.kernel.deployer.dm                                                   2.1.0.RELEASE             ACTIVE
9    com.springsource.javax.ejb                                                             3.0.0                     ACTIVE
10   com.springsource.javax.el                                                              1.0.0                     ACTIVE
11   com.springsource.javax.jms                                                             1.1.0                     ACTIVE
12   com.springsource.javax.persistence                                                     1.0.0                     ACTIVE
13   com.springsource.javax.portlet                                                         2.0.0                     ACTIVE
14   com.springsource.javax.servlet                                                         2.5.0                     ACTIVE
15   com.springsource.javax.servlet.jsp                                                     2.1.0                     ACTIVE
16   com.springsource.javax.xml.rpc                                                         1.1.0                     ACTIVE
17   com.springsource.org.aopalliance                                                       1.0.0                     ACTIVE
18   com.springsource.org.apache.commons.codec                                              1.3.0                     ACTIVE
19   com.springsource.org.apache.commons.fileupload                                         1.2.0                     ACTIVE
20   com.springsource.org.apache.commons.httpclient                                         3.1.0                     ACTIVE
21   com.springsource.org.apache.commons.io                                                 1.4.0                     ACTIVE
22   com.springsource.slf4j.api                                                             1.6.1                     ACTIVE
23   com.springsource.slf4j.nop                                                             1.6.1                   RESOLVED
24   com.springsource.slf4j.org.apache.log4j                                                1.6.1                     ACTIVE
25   org.eclipse.virgo.kernel.dmfragment                                                    2.1.0.RELEASE           RESOLVED
26   org.springframework.aop                                                                3.0.0.RELEASE             ACTIVE
27   org.springframework.asm                                                                3.0.0.RELEASE             ACTIVE
28   org.springframework.beans                                                              3.0.0.RELEASE             ACTIVE
29   org.springframework.context                                                            3.0.0.RELEASE             ACTIVE
30   org.springframework.core                                                               3.0.0.RELEASE             ACTIVE
31   org.springframework.expression                                                         3.0.0.RELEASE             ACTIVE
32   org.springframework.jdbc                                                               3.0.0.RELEASE             ACTIVE
33   org.springframework.orm                                                                3.0.0.RELEASE             ACTIVE
34   org.springframework.oxm                                                                3.0.0.RELEASE             ACTIVE
35   org.springframework.transaction                                                        3.0.0.RELEASE             ACTIVE
36   org.springframework.web                                                                3.0.0.RELEASE             ACTIVE
37   org.eclipse.gemini.web.core                                                            1.1.0.RELEASE             ACTIVE
38 S org.eclipse.gemini.web.tomcat                                                          1.1.0.RELEASE             ACTIVE
39 S org.eclipse.virgo.web.core                                                             2.1.0.RELEASE             ACTIVE
40   org.eclipse.virgo.web.dm                                                               2.1.0.RELEASE             ACTIVE
41   org.eclipse.virgo.web.tomcat                                                           2.1.0.RELEASE             ACTIVE
42   com.springsource.javax.annotation                                                      1.0.0                     ACTIVE
43   com.springsource.javax.mail                                                            1.4.0                     ACTIVE
44   com.springsource.org.apache.catalina.ha.springsource                                   6.0.29.S2-r1559         RESOLVED
45   com.springsource.org.apache.catalina.springsource                                      6.0.29.S2-r1559           ACTIVE
46   com.springsource.org.apache.catalina.tribes.springsource                               6.0.29.S2-r1559         RESOLVED
47   com.springsource.org.apache.coyote.springsource                                        6.0.29.S2-r1559         RESOLVED
48   com.springsource.org.apache.el.springsource                                            6.0.29.S2-r1559           ACTIVE
49   com.springsource.org.apache.jasper.springsource                                        6.0.29.S2-r1559         RESOLVED
50   com.springsource.org.apache.juli.extras.springsource                                   6.0.29.S2-r1559           ACTIVE
51   org.eclipse.jdt.core.compiler.batch                                                    3.3.0                     ACTIVE
52 S org.eclipse.virgo.apps.admin.core                                                      2.1.0.RELEASE             ACTIVE
53 S org.eclipse.virgo.apps.admin.web                                                       2.1.0.RELEASE             ACTIVE
54   com.springsource.javax.servlet.jsp.jstl                                                1.1.2                     ACTIVE
55   com.springsource.org.apache.taglibs.standard                                           1.1.2                     ACTIVE
56   org.springframework.context.support                                                    3.0.0.RELEASE             ACTIVE
57   org.springframework.js                                                                 2.0.8.RELEASE             ACTIVE
58   org.springframework.web.servlet                                                        3.0.0.RELEASE             ACTIVE
59 S org.eclipse.virgo.apps.repository-2.1.0.RELEASE-org.eclipse.virgo.apps.repository.core 2.1.0.RELEASE             ACTIVE
60 S org.eclipse.virgo.apps.repository-2.1.0.RELEASE-org.eclipse.virgo.apps.repository.web  2.1.0.RELEASE             ACTIVE
61   org.eclipse.virgo.apps.repository-2.1.0.RELEASE-synthetic.context                      2.1.0.RELEASE             ACTIVE
62   org.eclipse.virgo.apps.splash                                                          2.1.0.RELEASE             ACTIVE
63 S com.objectverse.web                                                                    1.0.0                     ACTIVE
64   org.springframework.aspects                                                            3.0.0.RELEASE             ACTIVE
65   org.springframework.jms                                                                3.0.0.RELEASE             ACTIVE
66   org.springframework.web.portlet                                                        3.0.0.RELEASE             ACTIVE

osgi>



My application is correctly deployed and started. What cought my eye was 3.0.0.RELEASE spring packages. Why? I have 3.0.5.RELEASE in my pom.xml defined.

Shouldn't there be a higher version of these bundles installed?

Best regards,
Bojan
Re: OSGI dependencies [message #641925 is a reply to message #641914] Mon, 29 November 2010 09:36 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn NormingtonFriend
Messages: 1222
Registered: July 2009
Senior Member
To replace the version of Spring framework used by applications, you need to replace the Spring framework 3.0.0.RELEASE bundles and .lib file in repository/ext with the version you want.

It's probably best to get this working before delving into the other issue.
Re: OSGI dependencies [message #642179 is a reply to message #641925] Tue, 30 November 2010 09:35 Go to previous messageGo to next message
Bojan Kraut is currently offline Bojan KrautFriend
Messages: 22
Registered: July 2009
Location: Maribor
Junior Member

Thanks. Where can I find these release bundles?
Re: OSGI dependencies [message #642190 is a reply to message #642179] Tue, 30 November 2010 10:31 Go to previous messageGo to next message
Dmitry Sklyut is currently offline Dmitry SklyutFriend
Messages: 279
Registered: January 2010
Senior Member
If you use maven - you can start here:

http://ebr.springsource.com/repository/app/faq#q8


and mvn dependency:copy-dependencies to pull down related artifacts

Regards,
Dmitry

Re: OSGI dependencies [message #643135 is a reply to message #642190] Sun, 05 December 2010 00:19 Go to previous messageGo to next message
Bojan Kraut is currently offline Bojan KrautFriend
Messages: 22
Registered: July 2009
Location: Maribor
Junior Member

Hi,

here is the result. I downloaded dependent bundles to target/depnendency directory. I copied 3.0.5 version to repository/ext folder and changed libd file. The server doesn't wanna boot. It searches for 3.0.0 bundles.

Should I change something else?

Best regards,
Bojan

[Updated on: Sun, 05 December 2010 00:37]

Report message to a moderator

Re: OSGI dependencies [message #643274 is a reply to message #643135] Mon, 06 December 2010 11:06 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn NormingtonFriend
Messages: 1222
Registered: July 2009
Senior Member
Please check that you have deleted the file org.springframework.spring-library-3.0.0.RELEASE.libd from repository/ext and have also deleted all the bundles that org.springframework.spring-library-3.0.0.RELEASE.libd refers to from repository/ext.

Then make sure you have copied org.springframework.spring-library-3.0.5.RELEASE.libd and copied all the (3.0.5) bundles it refers to repository/ext.

Then start the server with the -clean option and let us know what happens. The server should start up as normal and use Spring 3.0.5.

[Updated on: Mon, 06 December 2010 11:08]

Report message to a moderator

Re: OSGI dependencies [message #643711 is a reply to message #643274] Tue, 07 December 2010 23:19 Go to previous messageGo to next message
Bojan Kraut is currently offline Bojan KrautFriend
Messages: 22
Registered: July 2009
Location: Maribor
Junior Member

Thanks. I followed your steps. Here is the content of the repository/ext folder:
 Volume in drive C has no label.
 Volume Serial Number is F0B5-01D1

 Directory of C:\springsource\virgo-web-server-2.1.0.RELEASE\repository\ext

08.12.2010  00:12    <DIR>          .
08.12.2010  00:12    <DIR>          ..
04.02.2009  14:31            63.759 com.springsource.javax.activation-1.1.0.jar
04.02.2009  14:20             6.195 com.springsource.javax.annotation-1.0.0.jar
03.08.2009  12:43            34.176 com.springsource.javax.ejb-3.0.0.jar
04.02.2009  14:32            29.892 com.springsource.javax.el-1.0.0.jar
04.02.2009  13:02            26.178 com.springsource.javax.jms-1.1.0.jar
04.02.2009  14:35           393.311 com.springsource.javax.mail-1.4.0.jar
04.02.2009  13:50            53.773 com.springsource.javax.persistence-1.0.0.jar
04.02.2009  13:38            48.648 com.springsource.javax.portlet-2.0.0.jar
04.02.2009  13:02            89.582 com.springsource.javax.servlet-2.5.0.jar
04.02.2009  13:30            82.151 com.springsource.javax.servlet.jsp-2.1.0.jar
05.02.2009  14:27            21.266 com.springsource.javax.servlet.jsp.jstl-1.1.2.jar
03.08.2009  13:00            15.518 com.springsource.javax.transaction-1.1.0.jar
04.02.2009  13:14            91.992 com.springsource.javax.xml.bind-2.1.7.jar
04.02.2009  13:34            32.322 com.springsource.javax.xml.rpc-1.1.0.jar
04.02.2009  13:34            19.496 com.springsource.javax.xml.soap-1.3.0.jar
04.02.2009  13:12            26.729 com.springsource.javax.xml.stream-1.0.1.jar
04.02.2009  13:20             4.615 com.springsource.org.aopalliance-1.0.0.jar
07.09.2010  16:18           131.230 com.springsource.org.apache.catalina.ha.springsource-6.0.29.S2-r1559.jar
26.08.2010  16:01         1.216.256 com.springsource.org.apache.catalina.springsource-6.0.29.S2-r1559.jar
07.09.2010  16:21           237.564 com.springsource.org.apache.catalina.tribes.springsource-6.0.29.S2-r1559.jar
04.02.2009  13:04            47.421 com.springsource.org.apache.commons.codec-1.3.0.jar
04.02.2009  13:39            54.080 com.springsource.org.apache.commons.fileupload-1.2.0.jar
04.02.2009  13:05           307.965 com.springsource.org.apache.commons.httpclient-3.1.0.jar
04.02.2009  13:39           110.412 com.springsource.org.apache.commons.io-1.4.0.jar
26.08.2010  16:06           764.928 com.springsource.org.apache.coyote.springsource-6.0.29.S2-r1559.jar
27.08.2010  09:29           110.019 com.springsource.org.apache.el.springsource-6.0.29.S2-r1559.jar
02.09.2010  17:39           532.849 com.springsource.org.apache.jasper.springsource-6.0.29.S2-r1559.jar
26.08.2010  15:37            26.944 com.springsource.org.apache.juli.extras.springsource-6.0.29.S2-r1559.jar
04.02.2009  14:08           398.371 com.springsource.org.apache.taglibs.standard-1.1.2.jar
07.10.2009  17:53         1.614.157 com.springsource.org.aspectj.weaver-1.6.6.RELEASE.jar
03.08.2010  11:34            25.982 com.springsource.slf4j.api-1.6.1.jar
03.08.2010  17:58             4.738 com.springsource.slf4j.bridge-1.6.1.jar
03.08.2010  15:36             4.998 com.springsource.slf4j.nop-1.6.1.jar
03.08.2010  18:05            17.616 com.springsource.slf4j.org.apache.commons.logging-1.6.1.jar
04.08.2010  14:19            12.646 com.springsource.slf4j.org.apache.log4j-1.6.1.jar
08.12.2010  00:12                 0 list.txt
15.09.2009  12:12            85.016 org.apache.felix.configadmin-1.2.4.jar
08.06.2009  16:56            73.372 org.apache.felix.eventadmin-1.0.0.jar
14.07.2009  14:43            22.291 org.apache.felix.log-1.0.0.jar
04.02.2009  16:38            60.384 org.eclipse.equinox.cm-1.0.0.v20080509-1800.jar
28.10.2010  12:05            62.312 org.eclipse.gemini.web.core-1.1.0.RELEASE.jar
28.10.2010  12:05           188.900 org.eclipse.gemini.web.tomcat-1.1.0.RELEASE.jar
27.08.2010  11:53         1.563.059 org.eclipse.jdt.core-3.3.1.v_780_R33x.jar
04.02.2009  16:38            63.665 org.eclipse.osgi.services-3.1.200.v20071203.jar
28.10.2010  13:14            32.696 org.eclipse.virgo.apps.admin.core-2.1.0.RELEASE.jar
28.10.2010  13:14         1.733.481 org.eclipse.virgo.apps.admin.web-2.1.0.RELEASE.war
28.10.2010  11:20            23.248 org.eclipse.virgo.kernel.agent.dm-2.1.0.RELEASE.jar
28.10.2010  11:23            37.372 org.eclipse.virgo.kernel.artifact-2.1.0.RELEASE.jar
28.10.2010  11:23           155.248 org.eclipse.virgo.kernel.core-2.1.0.RELEASE.jar
28.10.2010  11:24           456.840 org.eclipse.virgo.kernel.deployer-2.1.0.RELEASE.jar
28.10.2010  11:24             8.704 org.eclipse.virgo.kernel.deployer.dm-2.1.0.RELEASE.jar
28.10.2010  11:06            24.956 org.eclipse.virgo.kernel.dmfragment-2.1.0.RELEASE.jar
28.10.2010  11:24            55.929 org.eclipse.virgo.kernel.osgi-2.1.0.RELEASE.jar
28.10.2010  11:24            51.961 org.eclipse.virgo.kernel.services-2.1.0.RELEASE.jar
28.10.2010  11:20               966 org.eclipse.virgo.kernel.userregion.springdm.plan
28.10.2010  10:57            14.064 org.eclipse.virgo.medic-2.1.0.RELEASE.jar
28.10.2010  10:57           561.741 org.eclipse.virgo.medic.core-2.1.0.RELEASE.jar
28.10.2010  10:43            21.266 org.eclipse.virgo.osgi.extensions.equinox-2.1.0.RELEASE.jar
28.10.2010  10:43            22.032 org.eclipse.virgo.osgi.launcher-2.1.0.RELEASE.jar
28.10.2010  11:01           155.003 org.eclipse.virgo.repository-2.1.0.RELEASE.jar
28.10.2010  13:03               883 org.eclipse.virgo.web-2.1.0.RELEASE.plan
28.10.2010  13:03            27.195 org.eclipse.virgo.web.core-2.1.0.RELEASE.jar
28.10.2010  13:02             6.590 org.eclipse.virgo.web.dm-2.1.0.RELEASE.jar
28.10.2010  13:03            22.643 org.eclipse.virgo.web.tomcat-2.1.0.RELEASE.jar
17.11.2010  22:03           321.190 org.springframework.aop-3.0.5.RELEASE.jar
17.11.2010  22:03            53.082 org.springframework.asm-3.0.5.RELEASE.jar
17.11.2010  22:03            35.548 org.springframework.aspects-3.0.5.RELEASE.jar
17.11.2010  22:03           555.410 org.springframework.beans-3.0.5.RELEASE.jar
17.11.2010  22:03           668.861 org.springframework.context-3.0.5.RELEASE.jar
17.11.2010  22:03           100.870 org.springframework.context.support-3.0.5.RELEASE.jar
17.11.2010  22:03           382.442 org.springframework.core-3.0.5.RELEASE.jar
17.11.2010  22:03           169.752 org.springframework.expression-3.0.5.RELEASE.jar
17.11.2010  22:03             1.810 org.springframework.instrument-3.0.5.RELEASE.jar
17.11.2010  22:10           385.712 org.springframework.jdbc-3.0.5.RELEASE.jar
17.11.2010  22:03           185.312 org.springframework.jms-3.0.5.RELEASE.jar
06.08.2009  23:44         1.206.223 org.springframework.js-2.0.8.RELEASE.jar
17.11.2010  22:03           334.327 org.springframework.orm-3.0.5.RELEASE.jar
16.12.2009  17:32           362.889 org.springframework.osgi.core-1.2.1.jar
16.12.2009  17:34           120.822 org.springframework.osgi.extender-1.2.1.jar
16.12.2009  17:33            35.859 org.springframework.osgi.io-1.2.1.jar
17.11.2010  22:03            61.379 org.springframework.oxm-3.0.5.RELEASE.jar
17.11.2010  22:03             1.313 org.springframework.spring-library-3.0.5.RELEASE.libd
17.11.2010  22:03           231.922 org.springframework.transaction-3.0.5.RELEASE.jar
17.11.2010  22:03           395.587 org.springframework.web-3.0.5.RELEASE.jar
17.11.2010  22:03           175.412 org.springframework.web.portlet-3.0.5.RELEASE.jar
17.11.2010  22:03           418.977 org.springframework.web.servlet-3.0.5.RELEASE.jar
              86 File(s)     18.394.295 bytes
               2 Dir(s)  288.980.983.808 bytes free



I added -clean tag to the server startup parameters in SpringSource.

I get following error, when I start the server:
[2010-12-08 00:10:22.605] startup-tracker              <KE0001I> Kernel starting. 
[2010-12-08 00:10:25.625] startup-tracker              <KE0002I> Kernel started. 
[2010-12-08 00:10:25.736] system-artifacts             <DE0000I> Installing plan 'org.eclipse.virgo.kernel.userregion.springdm' version '2.1.0'. 
[2010-12-08 00:10:27.313] system-artifacts             <DE0000I> Installing bundle 'org.springframework.osgi.core' version '1.2.1'. 
[2010-12-08 00:10:27.754] system-artifacts             <DE0000I> Installing bundle 'org.springframework.osgi.extender' version '1.2.1'. 
[2010-12-08 00:10:27.868] system-artifacts             <DE0000I> Installing bundle 'org.springframework.osgi.io' version '1.2.1'. 
[2010-12-08 00:10:27.944] system-artifacts             <DE0000I> Installing bundle 'org.eclipse.virgo.kernel.agent.dm' version '2.1.0.RELEASE'. 
[2010-12-08 00:10:28.004] system-artifacts             <DE0000I> Installing bundle 'org.eclipse.virgo.kernel.deployer.dm' version '2.1.0.RELEASE'. 
[2010-12-08 00:10:30.994] system-artifacts             <DE0002E> Installation of plan 'org.eclipse.virgo.kernel.userregion.springdm' version '2.1.0' failed. org.eclipse.virgo.kernel.deployer.core.DeploymentException: commit failed
	at org.eclipse.virgo.kernel.install.pipeline.stage.resolve.internal.CommitStage.process(CommitStage.java:41)
	at org.eclipse.virgo.kernel.install.pipeline.internal.StandardPipeline.doProcessTree(StandardPipeline.java:62)
	at org.eclipse.virgo.kernel.install.pipeline.internal.CompensatingPipeline.doProcessTree(CompensatingPipeline.java:72)
	at org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipelineStage.process(AbstractPipelineStage.java:41)
	at org.eclipse.virgo.kernel.install.pipeline.internal.StandardPipeline.doProcessTree(StandardPipeline.java:62)
	at org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipelineStage.process(AbstractPipelineStage.java:41)
	at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.driveInstallPipeline(PipelinedApplicationDeployer.java:271)
	at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.doInstall(PipelinedApplicationDeployer.java:151)
	at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.install(PipelinedApplicationDeployer.java:123)
	at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.deploy(PipelinedApplicationDeployer.java:190)
	at org.eclipse.virgo.kernel.userregion.internal.InitialArtifactDeployer$ArtifactDeployingRunnable.deployArtifacts(InitialArtifactDeployer.java:155)
	at org.eclipse.virgo.kernel.userregion.internal.InitialArtifactDeployer$ArtifactDeployingRunnable.run(InitialArtifactDeployer.java:145)
	at java.lang.Thread.run(Thread.java:619)
Caused by: org.osgi.framework.BundleException: An error occurred trying to read the bundle
	at org.eclipse.osgi.internal.baseadaptor.BundleInstall.begin(BundleInstall.java:94)
	at org.eclipse.osgi.framework.internal.core.Framework.installWorkerPrivileged(Framework.java:921)
	at org.eclipse.osgi.framework.internal.core.Framework$1.run(Framework.java:837)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.framework.internal.core.Framework.installWorker(Framework.java:888)
	at org.eclipse.osgi.framework.internal.core.Framework.installBundle(Framework.java:832)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.installBundle(BundleContextImpl.java:167)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.installBundle(BundleContextImpl.java:161)
	at org.eclipse.virgo.kernel.userregion.internal.quasi.StandardQuasiFramework.doInstallBundleInternal(StandardQuasiFramework.java:399)
	at org.eclipse.virgo.kernel.userregion.internal.quasi.StandardQuasiFramework.installBundleDescription(StandardQuasiFramework.java:395)
	at org.eclipse.virgo.kernel.userregion.internal.quasi.StandardQuasiFramework.installOtherBundles(StandardQuasiFramework.java:338)
	at org.eclipse.virgo.kernel.userregion.internal.quasi.StandardQuasiFramework.commit(StandardQuasiFramework.java:297)
	at org.eclipse.virgo.kernel.install.pipeline.stage.resolve.internal.CommitStage.process(CommitStage.java:39)
	... 12 common frames omitted
Caused by: java.io.FileNotFoundException: C:\springsource\virgo-web-server-2.1.0.RELEASE\repository\ext\org.springframework.aop-3.0.0.RELEASE.jar (The system cannot find the file specified)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:106)
	at java.io.FileInputStream.<init>(FileInputStream.java:66)
	at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
	at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
	at org.eclipse.osgi.internal.baseadaptor.BundleInstall.begin(BundleInstall.java:56)
	... 24 common frames omitted

[2010-12-08 00:10:31.003] system-artifacts             <DE0003E> Install failed for bundle 'org.springframework.osgi.core' version '1.2.1'. 
[2010-12-08 00:10:31.007] system-artifacts             <DE0003E> Install failed for bundle 'org.springframework.osgi.extender' version '1.2.1'. 
[2010-12-08 00:10:31.011] system-artifacts             <DE0003E> Install failed for bundle 'org.springframework.osgi.io' version '1.2.1'. 
[2010-12-08 00:10:31.015] system-artifacts             <DE0003E> Install failed for bundle 'org.eclipse.virgo.kernel.agent.dm' version '2.1.0.RELEASE'. 
[2010-12-08 00:10:31.019] system-artifacts             <DE0003E> Install failed for bundle 'org.eclipse.virgo.kernel.deployer.dm' version '2.1.0.RELEASE'. 
[2010-12-08 00:10:31.023] system-artifacts             <DE0003E> Install failed for plan 'org.eclipse.virgo.kernel.userregion.springdm' version '2.1.0'. 
[2010-12-08 00:10:31.058] system-artifacts             <UR0002E> User region failed while deploying initial artifacts. Shutting down. 
[2010-12-08 00:10:31.064] System Bundle Shutdown       <KE0010I> Shutdown initiated. 


I have no ideas where is the reference to the 3.0.0. bundle. I also manually triggered clean of the project, clean of the Virgo server and also I manually deleted my whole application in stage folder as also in work folder.
Re: OSGI dependencies [message #643736 is a reply to message #643711] Wed, 08 December 2010 05:22 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn NormingtonFriend
Messages: 1222
Registered: July 2009
Senior Member
This is most strange. I've not seen anything like it before.

It seems like you are using the Eclipse tooling to start the server.

To be on the safe side, please could you start the server with the -clean option from a command prompt instead using the script "bin/startup.bat -clean" and confirm the problem still occurs.

If it does, please could you list the files are in repository/usr.
Re: OSGI dependencies [message #643753 is a reply to message #643736] Wed, 08 December 2010 07:50 Go to previous messageGo to next message
Bojan Kraut is currently offline Bojan KrautFriend
Messages: 22
Registered: July 2009
Location: Maribor
Junior Member

Hi,

/repository/usr is empty. This is more or less fresh installation.

I'll try to start the server from the console and let you know.

Best regards,
Bojan
Re: OSGI dependencies [message #643765 is a reply to message #643753] Wed, 08 December 2010 08:33 Go to previous messageGo to next message
Bojan Kraut is currently offline Bojan KrautFriend
Messages: 22
Registered: July 2009
Location: Maribor
Junior Member

Hi,

I started the serve from the console with startup.bat -clean and it still failed. Then I opened startup.bat and started the server with dmk.bat -clean and it started correctly.

After that it starts also in eclipse. Now I have org.springsource.mock.staticmock problem to solve.

Thank you for all your time and support.

Best regards,
Bojan
Re: OSGI dependencies [message #643775 is a reply to message #643765] Wed, 08 December 2010 09:12 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn NormingtonFriend
Messages: 1222
Registered: July 2009
Senior Member
Glad that worked. I can't explain why "startup.bat -clean" behaved differently from "dmk.bat start -clean" (unless there was a typo in the option passed to startup.bat).

Note there is an option to cold start the server from the tooling. Double click the server and on the overview pane tick the box labelled "Start server with -clean option".
Re: OSGI dependencies [message #643778 is a reply to message #643765] Wed, 08 December 2010 09:16 Go to previous message
Glyn Normington is currently offline Glyn NormingtonFriend
Messages: 1222
Registered: July 2009
Senior Member
Bojan Kraut wrote on Wed, 08 December 2010 08:33
Now I have org.springsource.mock.staticmock problem to solve.



Please check DMS-2260 in case it's the same problem.

[Updated on: Wed, 08 December 2010 09:16]

Report message to a moderator

Previous Topic:Different behaviour when deploying a bundle in a watched repo/pickup
Next Topic:Greenpages in STS(springsource Tool Suite)
Goto Forum:
  


Current Time: Thu Mar 28 14:26:30 GMT 2024

Powered by FUDForum. Page generated in 0.02954 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top