Forum Home » Fuse Distributions » Fuse ESB

Thread: SpringDM Web + Pax Web


Permlink Replies: 3 - Last Post: Sep 27, 2010 8:10 PM Last Post By: fei0x

Posts: 32
Registered: 06/24/09
SpringDM Web + Pax Web
Posted: Jul 21, 2009 8:56 AM
  Click to reply to this thread Reply
I see Pax Web preinstalled in fuse. It means we have webcontainer(Jetty) + web extender + jsp support out of the box in Fuse.

But if I use Spring DM, and want to deploy web application that uses SpringDM can I use these preinstalled web support or I still need to install SpringDM web extender+it's dependency packages?

Posts: 96
Registered: 09/05/08
Re: SpringDM Web + Pax Web
Posted: Jul 21, 2009 3:26 PM   in response to: vector in response to: vector
  Click to reply to this thread Reply

It is possible you may need to install the Spring DM extender as it may be required to intervene in order to get the spring application context it creates into the webapp.



Posts: 96
Registered: 09/05/08
Re: SpringDM Web + Pax Web
Posted: Jul 23, 2009 10:18 AM   in response to: vector in response to: vector
  Click to reply to this thread Reply

Some additional information:

Yes you can deploy war to ServiceMix 4 without any additional bundles. FUSE uses the PAX web extender which does mostly the same thing as Spring-DM web extender so there is no need to deploy the Spring web extender unless you want to use specific features of it. The web feature is installed by default so they should be able to use a command similar to "install war:file:///home/user/tmp
/test.war?Webapp-Context=myapp". This is outlined in the tutorial below as well.

There is a small tutorial here:



Posts: 1
Registered: 09/27/10
Re: SpringDM Web + Pax Web
Posted: Sep 27, 2010 8:08 PM   in response to: seanoc in response to: seanoc
  Click to reply to this thread Reply
I know I'm bringing up an old thread, but it is very relevant. I am trying to install the Spring DM web extender myself but it doesn't seem to be invoking when i install the war to servicemix. (My war is named *.war and has a WEB-INF directory)

In addition I'd like to keep Pax Web running, just incase the cxf module that uses it wont work on Spring's Tomcat. However I can't deploy our apps to Pax Web because it doesn't support taglibs " ... to see the result of invoking a jsp that uses taglibs. not yet implemented"

Could someone provide some insight on getting the Spring DM web-extender to work in servicemix4 (4.2.0-fuse-02-00)? Or even let me know if this should even work?

I've read the documentation here: as a guideline for preparing the environment.

The following is what I've done in attempt to get Tomcat installed and running in ServiceMix using Spring.

1) I've created a Web Server Fragment which has the following host in the manifest

and has a file META-INF/spring/extender/tomcat-deployer.xml containing
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=""
<bean id="warDeployer" class="org.springframework.osgi.web.deployer.tomcat.TomcatWarDeployer" />
This fragment resolves and attaches itself to bundle 'Apache Tomcat Catalina' correctly.

2) I've also created a Catalina Config Fragment that I cannot get to resolve. It's Fragment Host is:
but I'm unsure which bundle is supposed to export this, as none of my bundles do. It contains a conf/server.xml configuration file which is mostly a copy of a generic windows install of tomcat 6 server.xml

3) To resolve the web extender, tomcat and to prepare bunldes for my web-app I have also installed the following features. (note: I had to uninstall 'Pax Web - Jsp Support' in order to get the web-dependencies working) :
Another Note: these depend on each other in order, so you must install them in the order listed here.

<feature name="spring-dependencies" version="1.0.0">
<feature name="spring" version="1.0.0">
<feature name="tomcat" version="1.0.0">
<feature name="web-dependencies" version="1.0.0">
Any help is appreciated, as this has been a blocker for some time now.

Edited by: fei0x on Sep 27, 2010 8:09 PM