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").versionAsInProject().start(true),
mavenBundle().groupId("org.springframework")
.artifactId("org.springframework.context.support").versionAsInProject().start(true),
mavenBundle().groupId("org.aopalliance")
.artifactId("com.springsource.org.aopalliance").versionAsInProject().start(true),
mavenBundle().groupId("org.springframework")
.artifactId("org.springframework.aop").versionAsInProject().start(true),
mavenBundle().groupId("org.springframework")
.artifactId("org.springframework.expression").versionAsInProject().start(true),
mavenBundle().groupId("org.springframework")
.artifactId("org.springframework.web").versionAsInProject().start(true),
mavenBundle().groupId("org.springframework")
.artifactId("org.springframework.web.servlet").versionAsInProject().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-web-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-web-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.ops4j.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.