Achim, I understand you, but why? If the domains are different
why must I change web-contextpath? For example, lets suppose
I have five different sites on one osgi and for every site I have
separate wab (which is logical) and every wab has only one context
- /. It is normal situation - take a look at any web server.

Best regards,


On 30.09.2016 17:19, 'Achim Nierbeck' via OPS4J wrote:
The Manifest entry Web-ContextPath is the one in charge of where the
application resides in.
So in that case you need to make sure of different Web-ContextPaths.

regards, Achim


2016-09-30 16:09 GMT+02:00 iJava <pavelkastor...@gmail.com>:

Hi Achim,

Yes, you are right. The same web-contextpath in both bundles: /

But it seems to be a bug because in bundle A I have jetty-web.xml

<Configure class="org.eclipse.jetty.servlet.ServletContextHandler">
     <Set name="virtualHosts">
         <Array type="java.lang.String">
           <Item>example.com</Item>
           <Item>www.example.com</Item>
         </Array>
     </Set>
</Configure>

and in bundle B I have jetty-web.xml

<Configure class="org.eclipse.jetty.servlet.ServletContextHandler">
     <Set name="virtualHosts">
         <Array type="java.lang.String">
           <Item>foo.example.com</Item>
           <Item>www.foo.example.com</Item>
         </Array>
     </Set>
</Configure>





пятница, 30 сентября 2016 г., 16:54:24 UTC+3 пользователь Achim Nierbeck
написал:
Hi,

this seems to be a rather strange bug. Do both of the war maybe have the
same web-contextpath?

regards, Achim


2016-09-30 14:09 GMT+02:00 iJava <pavelka...@gmail.com>:

Hi all

It may seem to be funny question but I have the following situation. I
have two war bundles A and B.
When I start and install only bundle A - it works ok. When I start and
install only bundle B it works ok.

When I try to install both of them always only the first works. The
servlet in the second bundle is not
instantiated. I tried to add <load-on-startup>0</load-on-startup> to
servlet config
in web.xml but it didn't help.

Any ideas? Does anyone try to deploy more then one war bundle on the same
osgi framework with pax-web 6.0?

Best regards,


--
--
------------------
OPS4J - http://www.ops4j.org - op...@googlegroups.com

---
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 ops4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
& Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

--
--
------------------
OPS4J - http://www.ops4j.org - ops4j@googlegroups.com

---
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 ops4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.




--
--
------------------
OPS4J - http://www.ops4j.org - ops4j@googlegroups.com

--- 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 ops4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to