Results 1 to 4 of 4

Thread: ContextLoaderListener

  1. #1

    Default 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. #2
    Join Date
    Oct 2008
    Location
    Winchester, UK
    Posts
    535

    Default

    Take a look in serviceability/logs/log.log and see what if there are any clues. Please post back.
    Glyn Normington
    SpringSource

  3. #3
    Join Date
    May 2008
    Posts
    15

    Default

    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>

  4. #4

    Default 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •