How to deploy wab files in a glass fish

What is the correct process to deploy a WAR OSGI file (WAB) to a Glassfish 3.1 server?

I copy the war file to "glassfish3 \ glassfish \ domains \ domain1 \ autodeploy \ bundles \" → OSGI recognizes the file as a bundle and adds it to my container. However, it does not deploy the war as a web application (I cannot access its JSP). To make this a web application, I deploy the war using the Glassfish admin console.

Is it right to launch the same war twice? Should OSGI deploy it as WEB and OSGI?

+3
source share
2 answers

To make OSGI detect wab, I needed to add the following attributes to the "maven-bundle-plugin" when creating the WAB:

                <configuration>
                    <instructions>
                        <Web-ContextPath>/blabla</Web-ContextPath>
                        <Webapp-Context>/blabla</Webapp-Context>
                    </instructions>
                </configuration>

autodeploy/bundles.

( ) : http://leshazlewood.com/2010/09/08/osgi-maven-pax-and-web-applications/

+4

Web-ContextPath OSGi EE. Webapp-Context . WAB WAR, .

0

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


All Articles