Thanks, Stuart.

I changed the spring-dm.args file to the following (setting it to use
spring-dm-1.0.2 and adding a few spring bundles that it complained
were missing):

--vmOptions=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=500
5
--profiles=spring-dm-1.0.2,jsp
mvn:org.springframework/spring-web
mvn:org.springframework/spring-webmvc
mvn:org.springframework/spring-aop
mvn:org.springframework/spring-core
mvn:org.springframework/spring-context
mvn:org.springframework/spring-beans
mvn:org.springframework.osgi/aopalliance.osgi/1.0-SNAPSHOT
mvn:org.ops4j.pax.web-extender/pax-web-ex-whiteboard/[EMAIL PROTECTED]
mvn:org.ops4j.pax.web-extender.samples.spring-dm/org.ops4j.pax.web.extender.samp
les.spring.menu/[EMAIL PROTECTED]
mvn:org.ops4j.pax.web-extender.samples.spring-dm/org.ops4j.pax.web.extender.samp
les.spring.dogs/[EMAIL PROTECTED]
mvn:org.ops4j.pax.web-extender.samples.spring-dm/org.ops4j.pax.web.extender.samp
les.spring.cats/[EMAIL PROTECTED]
mvn:org.ops4j.pax.web-extender.samples.spring-dm/org.ops4j.pax.web.extender.samp
les.spring.ducks/[EMAIL PROTECTED]


When I run 'pax-run --args=file:spring-dm.args', Felix starts up, the
bundles are loaded, and there are no errors.  However, I still cannot
reach http://localhost:8080/spring (as the page
http://wiki.ops4j.org/confluence/display/ops4j/Pax+Sample+-+Photo+Album
says I should).

When I run ps at the Felix prompt, I get:

-> ps
START LEVEL 6
   ID   State         Level  Name
[   0] [Active     ] [    0] System Bundle (1.0.3)
[   1] [Active     ] [    5] spring-web (2.5.3)
[   2] [Active     ] [    5] spring-webmvc (2.5.3)
[   3] [Active     ] [    5] spring-aop (2.5.3)
[   4] [Active     ] [    5] spring-core (2.5.3)
[   5] [Active     ] [    5] spring-context (2.5.3)
[   6] [Active     ] [    5] spring-beans (2.5.3)
[   7] [Active     ] [    5] aopalliance.osgi (1.0.0.SNAPSHOT)
[   8] [Active     ] [    5] OPS4J Pax Web Extender - Whiteboard
(0.4.0.SNAPSHOT)
[   9] [Active     ] [    5]
org.ops4j.pax.web.extender.samples.spring.menu (1.0.0.SNAPSHOT)
[  10] [Active     ] [    5]
org.ops4j.pax.web.extender.samples.spring.dogs (1.0.0.SNAPSHOT)
[  11] [Active     ] [    5]
org.ops4j.pax.web.extender.samples.spring.cats (1.0.0.SNAPSHOT)
[  12] [Active     ] [    5]
org.ops4j.pax.web.extender.samples.spring.ducks (1.0.0.SNAPSHOT)
[  13] [Active     ] [    1] osgi.compendium (4.0.1)
[  14] [Active     ] [    1] OPS4J - Pax Logging API (1.0.0)
[  15] [Active     ] [    1] OPS4J - Pax Logging Service (1.0.0)
[  16] [Active     ] [    1] OPS4J Pax Web - Service (0.4.1)
[  17] [Active     ] [    1] OPS4J Pax Web - Jsp Support (0.4.1)
[  18] [Active     ] [    1] Apache Felix Shell Service (1.0.0)
[  19] [Active     ] [    1] Apache Felix Shell TUI (1.0.0)

This seems to indicate that all the bundles are loaded and running,
including the org.ops4j.pax.web.extender.samples.spring.* bundles from
the example.  However, when I run services:

-> services

System Bundle (0) provides:
---------------------------
org.osgi.service.startlevel.StartLevel
org.osgi.service.packageadmin.PackageAdmin

OPS4J - Pax Logging Service (15) provides:
------------------------------------------
org.osgi.service.log.LogReaderService
org.osgi.service.log.LogService,
org.knopflerfish.service.log.LogService,
org.ops4j.pax.logging.PaxLoggingService,
org.osgi.service.cm.ManagedService

OPS4J Pax Web - Service (16) provides:
--------------------------------------
org.osgi.service.cm.ManagedService
org.osgi.service.http.HttpService, org.ops4j.pax.web.service.WebContainer

Apache Felix Shell Service (18) provides:
-----------------------------------------
org.apache.felix.shell.ShellService,
org.ungoverned.osgi.service.shell.ShellService

It does not appear that the example bundles are exporting any services.  Also,

-> services -u

System Bundle (0) uses:
-----------------------
org.osgi.service.startlevel.StartLevel
org.osgi.service.log.LogService,
org.knopflerfish.service.log.LogService,
org.ops4j.pax.logging.PaxLoggingService,
org.osgi.service.cm.ManagedService

OPS4J - Pax Logging API (14) uses:
----------------------------------
org.osgi.service.log.LogService,
org.knopflerfish.service.log.LogService,
org.ops4j.pax.logging.PaxLoggingService,
org.osgi.service.cm.ManagedService

Apache Felix Shell Service (18) uses:
-------------------------------------
org.osgi.service.startlevel.StartLevel

Apache Felix Shell TUI (19) uses:
---------------------------------
org.apache.felix.shell.ShellService,
org.ungoverned.osgi.service.shell.ShellService

It does not appear that the example bundles are using any services.

Any ideas here? I feel like if I can get this example working I can
hack out my own code pretty easily, but I can't even figure out why
this isn't working.

katre

_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to