fcm4409
May 8th, 2008, 02:18 PM
Hi,
I have a simple MVC web bundle and I'm trying to start it in Spring DM and I am getting the following error:
28062 [Timer-1] ERROR org.springframework.osgi.web.context.support.OsgiB undleXml
WebApplicationContext - Refresh error
java.lang.NullPointerException
at org.springframework.osgi.util.internal.MapBasedDic tionary.put(MapBase
dDictionary.java:142)
at org.springframework.osgi.web.context.support.OsgiB undleXmlWebApplicat
ionContext.customizeApplicationContextServicePrope rties(OsgiBundleXmlWebApplicat
ionContext.java:176)
----
I'm following the instructions on the Reference Docs for the web.xml file. It contains the following definitions (per Ref Docs)
<context-param>
<param-name>contextClass</param-name>
<param-value>org.springframework.osgi.web.context.support.OsgiB undleXmlWebApplicationContext</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListe ner</listener-class>
</listener>
<servlet>
<servlet-name>dispatcher</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.OsgiB undleXmlWebApplicationContext</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
----------
I'm also importing the following packages:
mport-Package: org.osgi.framework;version="1.3.0",
javax.servlet,
javax.servlet.http,
javax.servlet.resources,
javax.xml.parsers;resolution:=optional,
org.apache.commons.logging,
org.springframework.context.support,
org.springframework.ui,
org.springframework.web.context,
org.springframework.web.context.support,
org.springframework.web.servlet,
org.springframework.web.servlet.mvc,
org.springframework.web.servlet.mvc.support,
org.springframework.web.servlet.view,
org.springframework.osgi.web.context.support,
org.w3c.dom,
org.xml.sax;resolution:=optional,
org.xml.sax.helpers;resolution:=optional
Am I missing something not mentioned in the Ref Docs? Any suggestions are welcomed. Thanks.
I have a simple MVC web bundle and I'm trying to start it in Spring DM and I am getting the following error:
28062 [Timer-1] ERROR org.springframework.osgi.web.context.support.OsgiB undleXml
WebApplicationContext - Refresh error
java.lang.NullPointerException
at org.springframework.osgi.util.internal.MapBasedDic tionary.put(MapBase
dDictionary.java:142)
at org.springframework.osgi.web.context.support.OsgiB undleXmlWebApplicat
ionContext.customizeApplicationContextServicePrope rties(OsgiBundleXmlWebApplicat
ionContext.java:176)
----
I'm following the instructions on the Reference Docs for the web.xml file. It contains the following definitions (per Ref Docs)
<context-param>
<param-name>contextClass</param-name>
<param-value>org.springframework.osgi.web.context.support.OsgiB undleXmlWebApplicationContext</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListe ner</listener-class>
</listener>
<servlet>
<servlet-name>dispatcher</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.OsgiB undleXmlWebApplicationContext</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
----------
I'm also importing the following packages:
mport-Package: org.osgi.framework;version="1.3.0",
javax.servlet,
javax.servlet.http,
javax.servlet.resources,
javax.xml.parsers;resolution:=optional,
org.apache.commons.logging,
org.springframework.context.support,
org.springframework.ui,
org.springframework.web.context,
org.springframework.web.context.support,
org.springframework.web.servlet,
org.springframework.web.servlet.mvc,
org.springframework.web.servlet.mvc.support,
org.springframework.web.servlet.view,
org.springframework.osgi.web.context.support,
org.w3c.dom,
org.xml.sax;resolution:=optional,
org.xml.sax.helpers;resolution:=optional
Am I missing something not mentioned in the Ref Docs? Any suggestions are welcomed. Thanks.