Hi Achim

1. Where did you take this bundle from? In cental maven repo
(http://central.maven.org/maven2/org/springframework/  )
I see only
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-core</artifactId>
            <version>3.2.3.RELEASE</version>
        </dependency>
that is not osgi bundle. But I don't see there
        <dependency>
            <groupId>org.springframework</groupId>
<artifactId>org.springframework.core</artifactId>
            <version>3.2.3.RELEASE</version>
        </dependency>
which manifest you sent.

2. Besides there is a servicemix from Apache.
https://mvnrepository.com/artifact/org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core
so, as I understand this service mix IS osgi version of spring.
What is the difference of org.springframework.core and org.apache.servicemix.bundles.spring-core?

Best regards, Pavel

On 04.06.2017 22:59, 'Achim Nierbeck' via OPS4J wrote:
Hi Pavel,

those spring dependencies are valid OSGi bundles.

this is the manifest of the org.springframework.core bundle:

regards, Achim

Manifest-Version: 1.0
Export-Package: org.springframework.asm;version="3.2.3.RELEASE",org.sp
  ringframework.asm.commons;version="3.2.3.RELEASE";uses:="org.springfr
  amework.asm,org.springframework.asm.signature,org.springframework.asm
  .tree",org.springframework.asm.signature;version="3.2.3.RELEASE",org.
  springframework.asm.util;version="3.2.3.RELEASE";uses:="org.springfra
  mework.asm",org.springframework.cglib;version="3.2.3.RELEASE",org.spr
  ingframework.cglib.beans;version="3.2.3.RELEASE";uses:="org.springfra
  mework.asm,org.springframework.cglib.core",org.springframework.cglib.
  core;version="3.2.3.RELEASE";uses:="org.springframework.asm,org.sprin
  gframework.cglib.transform",org.springframework.cglib.proxy;version="
  3.2.3.RELEASE";uses:="org.springframework.asm,org.springframework.cgl
  ib.core,org.springframework.cglib.reflect",org.springframework.cglib.
  reflect;version="3.2.3.RELEASE";uses:="org.springframework.asm,org.sp
  ringframework.cglib.core",org.springframework.cglib.transform;version
  ="3.2.3.RELEASE";uses:="org.apache.tools.ant,org.apache.tools.ant.typ
  es,org.springframework.asm,org.springframework.cglib.core",org.spring
  framework.cglib.transform.impl;version="3.2.3.RELEASE";uses:="org.spr
  ingframework.asm,org.springframework.cglib.core,org.springframework.c
  glib.transform",org.springframework.cglib.util;version="3.2.3.RELEASE
  ";uses:="org.springframework.asm,org.springframework.cglib.core",org.
  springframework.core;version="3.2.3.RELEASE";uses:="org.springframewo
  rk.asm,org.springframework.util",org.springframework.core.annotation;
  version="3.2.3.RELEASE";uses:="org.springframework.core",org.springfr
  amework.core.convert;version="3.2.3.RELEASE";uses:="org.springframewo
  rk.core",org.springframework.core.convert.converter;version="3.2.3.RE
  LEASE";uses:="org.springframework.core.convert",org.springframework.c
  ore.convert.support;version="3.2.3.RELEASE";uses:="org.springframewor
  k.core.convert,org.springframework.core.convert.converter",org.spring
  framework.core.enums;version="3.2.3.RELEASE";uses:="org.springframewo
  rk.util",org.springframework.core.env;version="3.2.3.RELEASE";uses:="
  joptsimple,org.apache.commons.logging,org.springframework.core.conver
  t,org.springframework.core.convert.support,org.springframework.util",
  org.springframework.core.io;version="3.2.3.RELEASE";uses:="org.spring
  framework.core.env",org.springframework.core.io.support;version="3.2.
  3.RELEASE";uses:="org.springframework.core.env,org.springframework.co
  re.io,org.springframework.util",org.springframework.core.serializer;v
  ersion="3.2.3.RELEASE",org.springframework.core.serializer.support;ve
  rsion="3.2.3.RELEASE";uses:="org.springframework.core,org.springframe
  work.core.convert.converter,org.springframework.core.serializer",org.
  springframework.core.style;version="3.2.3.RELEASE",org.springframewor
  k.core.task;version="3.2.3.RELEASE";uses:="org.springframework.util",
  org.springframework.core.task.support;version="3.2.3.RELEASE";uses:="
  org.springframework.core.task",org.springframework.core.type;version=
  "3.2.3.RELEASE",org.springframework.core.type.classreading;version="3
  .2.3.RELEASE";uses:="org.springframework.asm,org.springframework.core
  .annotation,org.springframework.core.io,org.springframework.core.type
  ,org.springframework.util",org.springframework.core.type.filter;versi
  on="3.2.3.RELEASE";uses:="org.springframework.core.type,org.springfra
  mework.core.type.classreading",org.springframework.util;version="3.2.
  3.RELEASE";uses:="org.apache.commons.logging",org.springframework.uti
  l.comparator;version="3.2.3.RELEASE",org.springframework.util.xml;ver
  sion="3.2.3.RELEASE";uses:="javax.xml.namespace,javax.xml.stream,java
  x.xml.stream.util,javax.xml.transform,javax.xml.transform.sax,org.apa
  che.commons.logging,org.w3c.dom,org.xml.sax,org.xml.sax.ext"
Bundle-Vendor: SpringSource
Implementation-Title: spring-core
Implementation-Version: 3.2.3.RELEASE
Bundle-Version: 3.2.3.RELEASE
Tool: Bundlor 1.0.0.RELEASE
Bundle-Name: Spring Core
Bundle-ManifestVersion: 2
Created-By: 1.7.0_11 (Oracle Corporation)
Bundle-SymbolicName: org.springframework.core
Import-Package: javax.xml.namespace;version="0";resolution:="optional"
  ,javax.xml.stream;version="0";resolution:="optional",javax.xml.stream
  .events;version="0",javax.xml.stream.util;version="0",javax.xml.trans
  form;version="0";resolution:="optional",javax.xml.transform.sax;versi
  on="0",javax.xml.transform.stax;version="0",joptsimple;version="[3.0.
  0, 4.0.0)";resolution:="optional",net.sf.cglib.beans;version="[3.0.0,
   4.0.0)";resolution:="optional",net.sf.cglib.core;version="[3.0.0, 4.
  0.0)";resolution:="optional",net.sf.cglib.proxy;version="[3.0.0, 4.0.
  0)";resolution:="optional",net.sf.cglib.reflect;version="[3.0.0, 4.0.
  0)";resolution:="optional",net.sf.cglib.transform;version="[3.0.0, 4.
  0.0)";resolution:="optional",net.sf.cglib.util;version="[3.0.0, 4.0.0
  )";resolution:="optional",org.apache.commons.logging;version="[1.1.1,
   2.0.0)",org.apache.log4j;version="[1.2.15, 2.0.0)";resolution:="opti
  onal",org.apache.log4j.xml;version="[1.2.15, 2.0.0)";resolution:="opt
  ional",org.apache.tools.ant;version="[1.7.0, 2.0.0)";resolution:="opt
  ional",org.apache.tools.ant.types;version="[1.7.0, 2.0.0)";resolution
  :="optional",org.aspectj.bridge;version="[1.7.1, 2.0.0)";resolution:=
  "optional",org.aspectj.weaver;version="[1.7.1, 2.0.0)";resolution:="o
  ptional",org.aspectj.weaver.bcel;version="[1.7.1, 2.0.0)";resolution:
  ="optional",org.aspectj.weaver.patterns;version="[1.7.1, 2.0.0)";reso
  lution:="optional",org.eclipse.core.runtime;common="split";version="0
  ";resolution:="optional",org.jboss.vfs;version="[3.0.0, 4.0.0)";resol
  ution:="optional",org.jboss.virtual;version="[2.1.0.GA, 3.0.0)";resol
  ution:="optional",org.objectweb.asm;version="[3.2.0, 4.0.0)";resoluti
  on:="optional",org.springframework.asm.tree;version="[3.2.3.RELEASE,
  3.2.3.RELEASE]";resolution:="optional",org.w3c.dom;version="0";resolu
  tion:="optional",org.xml.sax;version="0";resolution:="optional",org.x
  ml.sax.ext;version="0";resolution:="optional",org.xml.sax.helpers;ver
  sion="0";resolution:="optional"



2017-06-04 18:26 GMT+02:00 Pavel Kastornyy <[email protected]>:

Hi Achim

Thank you for your answer.

I am now trying to resolve all these dependencies and I can't
understand one thing. The half of the dependencies are not
osgi bundles. How to explain it? I mean the following are
not osgi bundles (version 3.2.3.RELEASE):

                 mavenBundle().groupId("org.springframework")
.artifactId("org.springframework.beans").versionAsInProject().start(true),
                 mavenBundle().groupId("org.springframework")
.artifactId("org.springframework.core").versionAsInProject().start(true),
                 mavenBundle().groupId("org.springframework")
.artifactId("org.springframework.context").versionAsInProjec
t().start(true),
                 mavenBundle().groupId("org.springframework")
.artifactId("org.springframework.context.support").
versionAsInProject().start(true),
                 mavenBundle().groupId("org.aopalliance")
.artifactId("com.springsource.org.aopalliance").versionAsInP
roject().start(true),
                 mavenBundle().groupId("org.springframework")
.artifactId("org.springframework.aop").versionAsInProject().start(true),
                 mavenBundle().groupId("org.springframework")
.artifactId("org.springframework.expression").versionAsInPro
ject().start(true),
                 mavenBundle().groupId("org.springframework")
.artifactId("org.springframework.web").versionAsInProject().start(true),
                 mavenBundle().groupId("org.springframework")
.artifactId("org.springframework.web.servlet").versionAsInPr
oject().start(true),


On 04.06.2017 15:46, 'Achim Nierbeck' via OPS4J wrote:

Hi Pavel,

you'll need a setup like the one in the Karaf based Integration test.
This sample can only be run in an environment like that one [1].

So make sure you have the bundles like the following installed [2],
but keep in mind, Karaf will bring a lot Out-Of-The-Box features and
bundles which might not be listed here
but still required. So it might not be enough for your own application
solely based on Pax-Web.

regards, Achim

[1] -
https://github.com/ops4j/org.ops4j.pax.web/blob/master/pax-w
eb-itest/pax-web-itest-karaf/src/test/java/org/ops4j/pax/web
/itest/karaf/SpringOsgiKarafTest.java
[2] -
https://github.com/ops4j/org.ops4j.pax.web/blob/master/pax-w
eb-itest/pax-web-itest-karaf/src/test/java/org/ops4j/pax/web
/itest/karaf/SpringOsgiKarafTest.java#L58-L85

2017-06-04 14:40 GMT+02:00 Pavel <[email protected]>:

Hi all
There is a sample https://github.com/ops4j/org.o
ps4j.pax.web/tree/master/
samples/war-spring for spring.
   When I run it with pax-web 6.1.0 - SNAPSHOT and jetty-9.3.11 (spring
libs
are inside sample jar)
I get the following in my *browser*:

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%> I've been called by the controller Controller send
me the following message: ${message}

So we see that JSP pages are not rendered as JSP, but are placed as
simple
text files.
Could anyone give any suggestions? Did anyone try to make this sample
work?

Best regards, Pavel

--
--
------------------
OPS4J - http://www.ops4j.org - [email protected]

---
You received this message because you are subscribed to the Google Groups
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
For more options, visit https://groups.google.com/d/optout.



--
--
------------------
OPS4J - http://www.ops4j.org - [email protected]

--- You received this message because you are subscribed to the Google
Groups "OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
For more options, visit https://groups.google.com/d/optout.




--
--
------------------
OPS4J - http://www.ops4j.org - [email protected]

--- You received this message because you are subscribed to the Google Groups "OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to