Just for info, i found a first way to get the Axis2 Servlet running within the osgi framework. I just created a Folder in the directory "src/main/resources". This automatically gets includes into the bundle by using the maven-bundle-plugin.
That folder contains a subfolder called WEB-INF and this contains another
subfolder called "lib" which includes (at first) all axis2 libs. After that
i set the
OSGi Bundle Classpath for each lib, like WEB-INF/lib/activation-1.1.jar.
Furthormore
it is necessary to add the path for the Axis2 modules. Modules like the
"addressing-1.3.mar"
or "axis2-scripting-1.3.mar". For all modules i created another folder under
"src/main/resources"
named "modules". Finally i added another directory to the OSGi Bundle
Classpath wich contains
the log property files (commons-logging.properties, log4j.properties). IT IS
IMPORTANT TO SET
THE CLASSPATH TO THE FOLDER CONTAINING THOSE PROPERTY FILES. OTHERWISE NO
LOGGING.
No i am able to use the RegisterServlet method to register the Axis2 Servlet
within the
OSGi HTTP Service (based on jetty).
<!--
******************************************************************* -->
<!-- BUILD
-->
<!--
******************************************************************* -->
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>1.0.0</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Import-Package>
!.,
*;resolution:=optional
</Import-Package>
<Export-Package>
org.apache.axis2.*
</Export-Package>
<!--
Private-Package>com.dvelop.esb.runtime.service.soap.axis2.*</Private-Package-->
<Bundle-ClassPath>
.,
WEB-INF/classes,
WEB-INF/modules,
WEB-INF/lib/activation-1.1.jar,
WEB-INF/lib/annogen-0.1.0.jar,
WEB-INF/lib/axiom-api-1.2.5.jar,
WEB-INF/lib/axiom-dom-1.2.5.jar,
WEB-INF/lib/axiom-impl-1.2.5.jar,
WEB-INF/lib/axis2-adb-1.3.jar,
WEB-INF/lib/axis2-adb-codegen-1.3.jar,
WEB-INF/lib/axis2-ant-plugin-1.3.jar,
WEB-INF/lib/axis2-clustering-1.3.jar,
WEB-INF/lib/axis2-codegen-1.3.jar,
WEB-INF/lib/axis2-fastinfoset-1.3.jar,
WEB-INF/lib/axis2-java2wsdl-1.3.jar,
WEB-INF/lib/axis2-jaxbri-1.3.jar,
WEB-INF/lib/axis2-jaxws-1.3.jar,
WEB-INF/lib/axis2-jaxws-api-1.3.jar,
WEB-INF/lib/axis2-jibx-1.3.jar,
WEB-INF/lib/axis2-json-1.3.jar,
WEB-INF/lib/axis2-jws-api-1.3.jar,
WEB-INF/lib/axis2-kernel-1.3.jar,
WEB-INF/lib/axis2-metadata-1.3.jar,
WEB-INF/lib/axis2-mtompolicy-1.3.jar,
WEB-INF/lib/axis2-saaj-1.3.jar,
WEB-INF/lib/axis2-saaj-api-1.3.jar,
WEB-INF/lib/axis2-spring-1.3.jar,
WEB-INF/lib/axis2-xmlbeans-1.3.jar,
WEB-INF/lib/backport-util-concurrent-2.2.jar,
WEB-INF/lib/commons-codec-1.3.jar,
WEB-INF/lib/commons-fileupload-1.1.1.jar,
WEB-INF/lib/commons-httpclient-3.0.1.jar,
WEB-INF/lib/commons-io-1.2.jar,
WEB-INF/lib/commons-logging-1.1.jar,
WEB-INF/lib/geronimo-annotation_1.0_spec-1.1.jar,
WEB-INF/lib/geronimo-jms_1.1_spec-1.1.jar,
WEB-INF/lib/httpcore-4.0-alpha5.jar,
WEB-INF/lib/httpcore-nio-4.0-alpha5.jar,
WEB-INF/lib/httpcore-niossl-4.0-alpha5.jar,
WEB-INF/lib/jalopy-1.5rc3.jar,
WEB-INF/lib/jaxb-api-2.0.jar,
WEB-INF/lib/jaxb-impl-2.0.5.jar,
WEB-INF/lib/jaxb-xjc-2.0.5.jar,
WEB-INF/lib/jaxen-1.1.1.jar,
WEB-INF/lib/jettison-1.0-RC1.jar,
WEB-INF/lib/jibx-bind-1.1.5.jar,
WEB-INF/lib/jibx-run-1.1.5.jar,
WEB-INF/lib/juli-6.0.10.jar,
WEB-INF/lib/log4j-1.2.14.jar,
WEB-INF/lib/mail-1.4.jar,
WEB-INF/lib/mex-impl-1.3.jar,
WEB-INF/lib/neethi-2.0.2.jar,
WEB-INF/lib/soapmonitor-1.3.jar,
WEB-INF/lib/stax-api-1.0.1.jar,
WEB-INF/lib/tribes-6.0.10.jar,
WEB-INF/lib/woden-1.0-incubating-M7b.jar,
WEB-INF/lib/wsdl4j-1.6.2.jar,
WEB-INF/lib/wstx-asl-3.2.1.jar,
WEB-INF/lib/xalan-2.7.0.jar,
WEB-INF/lib/xbean-2.2.0.jar,
WEB-INF/lib/xercesImpl-2.8.1.jar,
WEB-INF/lib/xml-apis-1.3.03.jar,
WEB-INF/lib/XmlSchema-1.3.2.jar
</Bundle-ClassPath>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
--
View this message in context:
http://www.nabble.com/Ready-to-run-environment-tp16120690p16396265.html
Sent from the Muse User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
