[jboss-cvs] JBossAS SVN: r94072 - projects/spring-int/branches/1_0/documentation/user-guide/src/main/docbook.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Sep 28 15:11:31 EDT 2009
Author: marius.bogoevici
Date: 2009-09-28 15:11:31 -0400 (Mon, 28 Sep 2009)
New Revision: 94072
Modified:
projects/spring-int/branches/1_0/documentation/user-guide/src/main/docbook/user-guide.xml
Log:
More corrections
Modified: projects/spring-int/branches/1_0/documentation/user-guide/src/main/docbook/user-guide.xml
===================================================================
--- projects/spring-int/branches/1_0/documentation/user-guide/src/main/docbook/user-guide.xml 2009-09-28 18:40:36 UTC (rev 94071)
+++ projects/spring-int/branches/1_0/documentation/user-guide/src/main/docbook/user-guide.xml 2009-09-28 19:11:31 UTC (rev 94072)
@@ -152,21 +152,23 @@
<para>For changing the type of application context created by the
ContextLoaderListener, use the contextClass parameter, as shown in the
- sample below (the emphasized portion):</para>
+ sample below:</para>
- <programlisting language="XML"><context-param>
+ <informalexample>
+ <programlisting language="XML"><context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:spring-contexts/*.xml</param-value>
</context-param>
-
<emphasis role="bold"><context-param>
<param-name>contextClass</param-name>
-<param-value>org.jboss.spring.vfs.context.VFSXmlWebApplicationContext</param-value>
+ <param-value>
+ org.jboss.spring.vfs.context.VFSXmlWebApplicationContext
+ </param-value>
</context-param></emphasis>
-
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener></programlisting>
+ </informalexample>
<para>For changing the type of application context created by the
DispatcherServlet, use the contextClass parameter again, but this time
@@ -179,11 +181,13 @@
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/mvc-config.xml</param-value>
+ </init-param><emphasis role="bold">
+ <init-param>
+ <param-name>contextClass</param-name>
+ <param-value>
+ org.jboss.spring.vfs.context.VFSXmlWebApplicationContext
+ </param-value>
</init-param>
-<emphasis role="bold"> <init-param>
- <param-name>contextClass</param-name>
- <param-value>org.jboss.spring.vfs.context.VFSXmlWebApplicationContext</param-value>
- </init-param>
</emphasis></servlet></programlisting>
<para>Both configurations can be seen at work in the web-scanning
@@ -196,7 +200,6 @@
implementations.</para>
<para><programlisting language="JAVA">Caused by: java.util.zip.ZipException: error in opening zip file
- at java.util.zip.ZipFile.open(Native Method)
...
at org.springframework.core.io.support.PathMatchingResourcePatternResolver
.doFindPathMatchingJarResources(PathMatchingResourcePatternResolver.java:448)</programlisting>
@@ -261,8 +264,7 @@
.sar's, .war's, .ear's, .har's, and .rar's work. Using the JBoss
Spring deployer you can create Spring jars:</para>
- <screen>
-my-app.spring/
+ <screen>my-app.spring/
org/
acme/
MyBean.class
More information about the jboss-cvs-commits
mailing list