Core Spring working
[gpl/argeo-tp.git] / META-INF / spring / org.argeo.tp.apache.tomcat.xml
index 712437fb3353619234c4872c17d5260235b80f5c..3f295e24aca9e3dd6f2f300c7bd4317fe42b3208 100644 (file)
@@ -8,12 +8,51 @@
        http://www.argeo.org/schema/slc-flow http://www.argeo.org/schema/slc-flow-1.2.xsd">
 
        <!-- REGISTER -->
-       <bean id="org.apache.catalina" parent="template.org.apache.tomcat" />
-       <bean id="org.apache.jasper" parent="template.org.apache.tomcat" />
+       <bean id="org.apache.catalina" parent="template.org.apache.tomcat">
+               <property name="bndProperties">
+                       <props merge="true">
+                               <prop key="Import-Package">
+                                       javax.mail.*;resolution:=optional,
+                                       org.apache.juli.*;resolution:=optional,
+                                       *
+                               </prop>
+                       </props>
+               </property>
+       </bean>
+       <bean id="org.apache.jasper" parent="template.org.apache.tomcat">
+               <property name="bndProperties">
+                       <props merge="true">
+                               <prop key="Import-Package">
+                                       org.apache.juli.logging;resolution:=optional,
+                                       org.apache.tools.ant.*;resolution:=optional,
+                                       org.eclipse.jdt.*;resolution:=optional,
+                                       *
+                               </prop>
+                       </props>
+               </property>
+       </bean>
        <bean id="org.apache.el" parent="template.org.apache.tomcat" />
-       <bean id="org.apache.coyote" parent="template.org.apache.tomcat" />
+       <bean id="org.apache.coyote" parent="template.org.apache.tomcat">
+               <property name="bndProperties">
+                       <props merge="true">
+                               <prop key="Import-Package">
+                                       *,
+                                       org.apache.juli.logging;resolution:=optional,
+                               </prop>
+                       </props>
+               </property>
+       </bean>
        <bean id="org.apache.tomcat.api" parent="template.org.apache.tomcat" />
-       <bean id="org.apache.tomcat.util" parent="template.org.apache.tomcat" />
+       <bean id="org.apache.tomcat.util" parent="template.org.apache.tomcat">
+               <property name="bndProperties">
+                       <props merge="true">
+                               <prop key="Import-Package">
+                                       org.apache.juli.logging;resolution:=optional,
+                                       *
+                               </prop>
+                       </props>
+               </property>
+       </bean>
 
        <!-- FACTORY -->
        <bean id="template.org.apache.tomcat" parent="template.bndWrapper"