I have sample WAR got from internet that need to be deployed on karaf. The
war uses spring also it is written in servlet3 standards, using annotations
both for servlets and spring(viz. no web.xml and other xmls).
When I Deploy the the web application, the web bundle starts without any
erros. But the problem is I cannot access the application from
Webbrowser(Was able to access when I deployed in tomcat 7).
I Installed the following features
1.spring(3.2.11.RELEASE_1)
2.spring-web
3.war
4.http
5.spring-dm(dont know whether its required actually)
6.pax-war.
This is the bundle plugin configuration
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.5.4</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
<Bundle-Name>${project.artifactId}</Bundle-Name>
<Bundle-Version>1.0.0</Bundle-Version>
<Export-Package>com.welflex.notes,com.welflex.notes.rest.*,
com.welflex.notes.spring.security</Export-Package>
<Import-Package>*</Import-Package>
<Web-ContextPath>/osgiwar</Web-ContextPath>
<_wab>src/main/webapp</_wab>
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<version>3.0.3</version>
<extensions>true</extensions>
<configuration>
<supportedProjectTypes>
<supportedProjectType>war</supportedProjectType>
<supportedProjectType>feature</supportedProjectType>
<supportedProjectType>bundle</supportedProjectType>
</supportedProjectTypes>
<aggregateFeatures>true</aggregateFeatures>
<includeTransitiveDependency>true</includeTransitiveDependency>
</configuration>
</plugin>
Is it possible deploy this spring webapplication on the Karaf.??? ... Can
somebody point out what I am doing wrong here..
Thanks,
NA