[
https://issues.jboss.org/browse/AS7-6234?page=com.atlassian.jira.plugin.s...
]
jarkko rantavuori commented on AS7-6234:
----------------------------------------
I think I found the fix for this, or a workaround. For Spring web app to be deployed as
OSGi bundle, it seems you need to supply the dispatcher servlet with a context class,
telling it where to find bundlecontext:
<servlet>
<servlet-name>appServlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextClass</param-name>
<param-value>org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext</param-value>
</init-param>
</servlet>
with this supplied, it answers to requests just fine. Without it, HTTP requests go
unanswered (I don't know where?).
WAB deployment showing as successful, but not responding
--------------------------------------------------------
Key: AS7-6234
URL:
https://issues.jboss.org/browse/AS7-6234
Project: Application Server 7
Issue Type: Bug
Components: OSGi
Affects Versions: 7.2.0.Alpha1
Environment: Windows 7
Reporter: jarkko rantavuori
Assignee: Jean-Frederic Clere
Fix For: 7.2.0.CR1
Attachments: jboss-7.2.0-server-output-deployment-showing-as-successful.txt,
server.springapp.log,
spring-app-1.0.0-BUILD-SNAPSHOT-looks-to-start-normally-but-doesnt.war,
spring-app-1.0.0-BUILD-SNAPSHOT-no-manifest-works.war, spring-app-source-codes.zip
Simple Spring WAB file, that I think should work, doesn't seem to. Deployment goes
seemingly without issues - no errors are reported - but servlet does not respond to
requests. Both OSGi panel and deployment management panel in admin console show the
deployment as successful.
Attached server output and .war file, that should respond to /spring-app request.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira