Error deploying web application in OSGI container using pax website

Hello, I am trying to deploy a web application in a Felix container. I have all the necessary settings made with my web application, like setting the manifest headers: Webapp-Context: Bundle-ClassPath: Bundle-Activator: Import package: Bundle-Symbolic: etc Pax packages that I dropped in one container: pers-web-service-0.6.0.jar pers-web-JSP-0.7.1.jar pers-web-war expander-0.7.1.jar pers-logging service-1.5.0.jar pers-logging api-1.5.0.jar

Although it was written on the pax website that the pax-web service is included in the pax-war-extender, it does not seem to have the pax-web-service package, all other packages become limited.

I removed other pax packages as man-web-expander-whiteboard-0.7.1.jar pax-web-jetty-0.7.1.jar since I did not see any benefit from them.

Pax-web-jetty-0.7.1.jar does not even start. he has dependencies that he could not solve from any package provided by PAX.

My browser displays: HTTP ERROR 403

Problem with access / adminmodule /. Cause:

FORBIDDEN

Powered by Jetty: //


, while the console log states:

[5884890 @ qtp-16567002-0 - / adminmodule /] DEBUG org.mortbay.jetty - REQUEST / adminmodule / on org.mortbay.jetty.HttpConnection@1e94001 [5884890 @qtp-16567002-0 -/adminmodule/] DEBUG org.ops4j.pax.web.service.internal.model.ServerModel - [/adminmodule/]... [5884890 @qtp-16567002-0 -/adminmodule/] DEBUG org.ops4j.pax.web.service.internal.model.ServerModel - [/adminmodule/] {pattern =/adminmodule/.*, model = ResourceModel {ID = org.ops4j.pax.web.service.internal.model.ResourceModel-2, name=, urlPatterns = [/], =/, = ResourceServlet { =/adminmodule, =/, name=}, initParams = {}, = ContextModel {ID = org.ops4j.pax.web.service.internal.model.ContextModel-1, = adminmodule, HttpContext = org.ops4j.pax.web.extender.war. internal.WebAppWebContainerContext @11710be, contextParams = {webapp.context = adminmodule}}}} [5884890 @qtp-16567002-0 -/adminmodule/] DEBUG org.ops4j.pax.web.service.internal.HttpServiceContext - [/adminmodule/] http context [org.ops4j.pax.web.extender. war.internal.WebAppWebContainerContext@11710be] [5884890 @qtp-16567002-0 -/adminmodule/] DEBUG org.mortbay.jetty - sessionManager=org.mortbay.jetty.servlet.HashSessionManager@19c6163 [5884890 @qtp-16567002-0 -/adminmodule/] DEBUG org.mortbay.jetty - session = null [5884890 @qtp-16567002-0 -/adminmodule/] DEBUG org.mortbay.jetty - servlet = [5884890 @qtp-16567002-0 -/adminmodule/] DEBUG org.mortbay.jetty - chain = org.ops4j.pax.web.service.internal.model.FilterModel-3- > [5884890 @qtp-16567002-0 -/adminmodule/] DEBUG org.mortbay.jetty - = [5884890 @qtp-16567002-0 -/adminmodule/] DEBUG org.mortbay.jetty - org.ops4j.pax.web.service.internal.model.FilterModel-3 [5884890 @qtp-16567002-0 -/adminmodule/] DEBUG org.ops4j.pax.web.service.internal.WelcomeFilesFilter - ... [5884890 @qtp-16567002-0 -/adminmodule/] DEBUG org.ops4j.pax.web.service.internal.WelcomeFilesFilter - :/ [5884890 @qtp-16567002-0 -/adminmodule/] DEBUG org.ops4j.pax.web.service.internal.WelcomeFilesFilter - : null [5884890 @qtp-16567002-0 -/adminmodule/] INFO org.ops4j.pax.web.service.internal.HttpServiceContext - : [/adminmodule.jsp] [5884890 @qtp-16567002-0 -/adminmodule/] DEBUG org.ops4j.pax.web.extender.war.internal.WebAppWebContainerContext - [com.cisco.zaloni.gwt.admin [1]] [/adminmodule.jsp], [adminmodule.jsp] [5884890 @qtp-16567002-0 -/adminmodule/] DEBUG org.ops4j.pax.web.extender.war.internal.WebAppWebContainerContext - [5884890 @qtp-16567002-0 -/adminmodule/] INFO org.ops4j.pax.web.service.internal.HttpServiceContext - : null [5884890 @qtp-16567002-0 -/adminmodule/] DEBUG org.mortbay.jetty - [5884890 @qtp-16567002-0 -/adminmodule/] DEBUG org.ops4j.pax.web.extender.war.internal.WebAppWebContainerContext - [com.cisco.zaloni.gwt.admin [1]] [/], [/] [5884890 @qtp-16567002-0 -/adminmodule/] DEBUG org.ops4j.pax.web.extender.war.internal.WebAppWebContainerContext - , url ​​[bundle://1.0: 1/] [5884890 @qtp-16567002-0 -/adminmodule/] DEBUG org.mortbay.jetty - RESPONSE/adminmodule/403

.

, . OSGI.

+3
1

pax-web 1.0, . , , pax-web 1.0.2, , . , , 0.8.1 , .

OSGi - Web-ContextPath, . , .

Apache Aries , , , . Apache Aries Blog .

+1

Source: https://habr.com/ru/post/1749727/


All Articles