The message seems pretty clear that it needs to start with a slash.
A context path must either be an empty string or start`with a '/'.
Did you try to fix it in the way that it suggests?
Sounds more like a Tomcat issue.
Did you Google the message?
You might ask this in the Tomcat forum.
Ron
On 19/06/2011 10:01 PM, samwun wrote:
Hello,
I have built a war file using maven, which consist of spring 3, hibernate
3.5.6-final, and JPA2.
When I deployed to tomcat 7.0, it thrown the following exception:
2011-6-20 11:29:03 org.apache.catalina.startup.HostConfig deployWAR
<D0><C5>Ϣ: Deploying web application archive guest-book.war
2011-6-20 11:29:03 org.apache.catalina.core.StandardContext setPath
<BE><AF><B8><E6>: A context path must either be an empty string or start
with a '/'. The path [ixsystems-msp-product-catalog] does not meet these
criteria and has been changed to [/ixsystems-msp-product-catalog]
Here is how I defined my context path in web.xml:
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>ixsystems-msp-product-catalog</param-value>
</context-param>
in src/main/webapp/META-INF/context.xml:
<Context path="ixsystems-msp-product-catalog" crossContext="true" />
I am wondering what is wrong with my spring configuration and how to resolve
the error.
Thank you in advance for your time and would appreciate for your suggestion.
Thanks
Sam
--
View this message in context:
http://maven.40175.n5.nabble.com/can-t-read-context-path-tp4504863p4504863.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]