Announcement Announcement Module
Collapse
No announcement yet.
Deployment Exception: Which log to check? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Deployment Exception: Which log to check?

    Hi,

    I am a total newbie the world of SpringSource DM Server. My current task is to deploy a simple web-app which uses a Service from another bundle. This fails because I cannot deploy the app for some reason. My main problem is that I fail to find that particular reason. The exception I get remomends to "Check the logs for more details."

    Too bad I don't have any clue which logs could be ment. The server is running with the default logging settings. I already checked the following:

    serviceability/eventlogs/eventlog.log
    serviceability/logs/log.log
    serviceability/[myAppsName]/log.log
    serviceability/logs/dm-server/log.log

    They all contain the same message, but no cause for it. Where else can I look?


    Well and while I am at it I can post my config here. Probably the error is obvious to an advanced user. My war is called helloWAR. It will deploy unless I use the following web.xml (resides in WEB-INF/ of course.)

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    	id="WebApp_ID" version="2.4">
    	<display-name>helloWAR</display-name>
    <!-- theses lines cause the error -->
       <context-param>
            <param-name>contextClass</param-name>
            <param-value>com.springsource.server.web.dm.ServerOsgiBundleXmlWebApplicationContext</param-value>
        </context-param>
    
        <listener>
            <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
        </listener>
    <!-- /theses lines cause the error (obviously.) -->    
    
    </web-app>
    The Application-Context is located at WEB-INF/application-Context.xml (as suggested by the Programmers Manual) and looks as follows

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans:beans
       xmlns="http://www.springframework.org/schema/osgi"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:beans="http://www.springframework.org/schema/beans"
       xsi:schemaLocation="http://www.springframework.org/schema/osgi  
           http://www.springframework.org/schema/osgi/spring-osgi.xsd
           http://www.springframework.org/schema/beans   
           http://www.springframework.org/schema/beans/spring-beans.xsd">
    
                   
    </beans:beans>
    and finally the manifest :

    Code:
    Manifest-Version: 1.0
    Export-Package: net.portrix.gui.servlet;version="0.0.1";uses:="javax.s
     ervlet,javax.servlet.http"
    Ant-Version: Apache Ant 1.7.0
    Bundle-Vendor: SpringSource  Inc.
    Tool: Bundlor 1.0.0.M6
    Bundle-ManifestVersion: 2
    Created-By: portrix.net
    Bundle-SymbolicName: helloWAR
    Import-Bundle: helloBundle;version="[1.0.0,1.0.0]",
     org.springframework.web;version="[3.0.0.RELEASE,3.0.0.RELEASE]",
     org.springframework.web.servlet;version="[3.0.0.RELEASE,3.0.0.RELEASE]",
     org.springframework.beans;version="[3.0.0.RELEASE,3.0.0.RELEASE]",
     org.springframework.context;version="[3.0.0.RELEASE,3.0.0.RELEASE]"
    Bundle-Version: 0.0.0.2
    I would be thankful for any tip on what I did wrong and how I could have figured that out by myself.

    Thanks in advance.
    Greetings
    Peer

  • #2
    Problem solved

    Hi,

    I found the problem by myself. It was a ClassNotFoundException buried somewhere in the log.log file. Foey anybody else who is having this problem, the solution can be found here:

    http://forum.springsource.org/showth...icationContext

    Thanks anyway.

    Greetings
    Peer

    Comment

    Working...
    X