Announcement Announcement Module
Collapse
No announcement yet.
ContextLoaderListener Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ContextLoaderListener

    Hi, i develop an OSGI web bundle for dm server when i deploy this bundle i get this exception

    at com.springsource.server.web.core.internal.WebBundl eLifecycleListener.onStarted(WebBundleLifecycleLis tener.java:139)
    at com.springsource.kernel.install.artifact.internal. ArtifactStateMonitor.onStarted(ArtifactStateMonito r.java:215)
    at com.springsource.kernel.install.artifact.internal. AbstractInstallArtifact.asyncStartSucceeded(Abstra ctInstallArtifact.java:281)
    at com.springsource.kernel.install.artifact.internal. AbstractInstallArtifact.access$0(AbstractInstallAr tifact.java:278)
    at com.springsource.kernel.install.artifact.internal. AbstractInstallArtifact$StateMonitorSignal.signalS uccessfulCompletion(AbstractInstallArtifact.java:2 31)
    at com.springsource.kernel.core.internal.BundleStartT racker$1.run(BundleStartTracker.java:150)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: com.springsource.osgi.webcontainer.core.WebApplica tionStartFailedException: com.springsource.osgi.webcontainer.core.spi.Servle tContainerException: Web application at '/fin' failed to start. Check the logs for more details.
    at com.springsource.osgi.webcontainer.internal.Standa rdWebContainer$StandardWebApplication.start(Standa rdWebContainer.java:129)
    at com.springsource.server.web.core.internal.WebBundl eLifecycleListener.onStarted(WebBundleLifecycleLis tener.java:130)
    ... 8 common frames omitted
    Caused by: com.springsource.osgi.webcontainer.core.spi.Servle tContainerException: Web application at '/fin' failed to start. Check the logs for more details.
    at com.springsource.osgi.webcontainer.tomcat.internal .TomcatServletContainer.startWebApplication(Tomcat ServletContainer.java:122)
    at com.springsource.osgi.webcontainer.internal.Standa rdWebContainer$StandardWebApplication.start(Standa rdWebContainer.java:116)
    ... 9 common frames omitted


    but when i remove this tag from web.xml , the bundle work fine
    <listener>
    <listener-class>org.springframework.web.context.ContextLoade rListener</listener-class>
    </listener>
    thanks

  • #2
    Take a look in serviceability/logs/log.log and see what if there are any clues. Please post back.

    Comment


    • #3
      Are you deploying the war as a straight war file or as a Shared Services war? If it's a shared services war you'll also need the following entry before the listener:

      Code:
      <context-param>
        <param-name>contextClass</param-name>
        <param-value>com.springsource.server.web.dm.ServerOsgiBundleXmlWebApplicationContext</param-value>
      </context-param>

      Comment


      • #4
        Missing com.springsource.server.web.dm

        Ok, thanks, i solved the problem, i miss to add entry for com.springsource.server.web.dm in the import-package

        Comment

        Working...
        X