2011-06-14 35 views
0

我試圖在jboss 5.0中爲我的webservice設置上下文根元素,並且在部署過程中忽略它。這裏是我正在使用的示例xml,我需要的只是上下文根Jboss.xml忽略上下文根

<?xml version="1.0" encoding="UTF-8"?> 
<jboss version="3.0" 
    xmlns="http://www.jboss.com/xml/ns/javaee" 
    xmlns:javaee="http://java.sun.com/xml/ns/javaee" 
    xmlns:xml="http://www.w3.org/XML/1998/namespace" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"> 
    <webservices> 
     <context-root>/MyWebService</context-root> 
    </webservices> 
</jboss> 

回答

0

它可能是您的標記的屬性。 試一下吧。