-
1. Re: Migration JBoss5.1 à JBoss6.2 <jboss-web>
jaysensharma Jan 15, 2015 12:47 AM (in response to emmanuelmorisseau)The "jboss-web.xml" file schema is completely changed in EAP 6 compared to JBoss 5. You can find the latest schema of "jboss-web.xml" inside "jboss-eap-6.2.0/docs/schema/jboss-web_7_1.xsd" / "jboss-web_7_0.xsd"
However i guess that you should be able to use it (<resource-env-ref>) via "web.xml" file, As the schema defines it check "jboss-eap-6.2.0/docs/schema/web-app_3_0.xsd"
Snippet from "web-app_3_0.xsd"
<xsd:unique name="web-common-resource-env-ref-uniqueness"> <xsd:annotation> <xsd:documentation> The resource-env-ref-name element specifies the name of a resource environment reference; its value is the environment entry name used in the web application code. The name is a JNDI name relative to the java:comp/env context and must be unique within a web application. </xsd:documentation> </xsd:annotation> <xsd:selector xpath="javaee:resource-env-ref"/> <xsd:field xpath="javaee:resource-env-ref-name"/> </xsd:unique
-
2. Re: Migration JBoss5.1 à JBoss6.2 <jboss-web>
emmanuelmorisseau Jan 28, 2015 11:08 AM (in response to jaysensharma)Ok thank for the come back. Now I have two problem where I can t put this tag <virtual-host>
<virtual-host>${portail.virtual.host}</virtual-host>
I have error:"
cvc-complex-type.2.4.a: Invalid content was found starting with element 'virtual-host'. One of '{"http://java.sun.com/xml/ns/javaee":module-name, "http://java.sun.com/xml/
ns/javaee":description, "http://java.sun.com/xml/ns/javaee":display-name, "http://java.sun.com/xml/ns/javaee":icon, "http://java.sun.com/xml/ns/javaee":distributable,
"http://java.sun.com/xml/ns/javaee":context-param, "http://java.sun.com/xml/ns/javaee":filter, "http://java.sun.com/xml/ns/javaee":filter-mapping, "http://java.sun.com/
xml/ns/javaee":listener, "http://java.sun.com/xml/ns/javaee":servlet, "http://java.sun.com/xml/ns/javaee":servlet-mapping, "http://java.sun.com/xml/ns/javaee":session-
config, "http://java.sun.com/xml/ns/javaee":mime-mapping, "http://java.sun.com/xml/ns/javaee":welcome-file-list, "http://java.sun.com/xml/ns/javaee":error-page, "http://
java.sun.com/xml/ns/javaee":jsp-config, "http://java.sun.com/xml/ns/javaee":security-constraint, "http://java.sun.com/xml/ns/javaee":login-config, "http://java.sun.com/
xml/ns/javaee":security-role, "http://java.sun.com/xml/ns/javaee":env-entry, "http://java.sun.com/xml/ns/javaee":ejb-ref, "http://java.sun.com/xml/ns/javaee":ejb-local-ref,
"http://java.sun.com/xml/ns/javaee":service-ref, "http://java.sun.com/xml/ns/javaee":resource-ref, "http://java.sun.com/xml/ns/javaee":resource-env-ref, "http://
java.sun.com/xml/ns/javaee":message-destination-ref, "http://java.sun.com/xml/ns/javaee":persistence-context-ref, "http://java.sun.com/xml/ns/javaee":persistence-unit-
ref, "http://java.sun.com/xml/ns/javaee":post-construct, "http://java.sun.com/xml/ns/javaee":pre-destroy, "http://java.sun.com/xml/ns/javaee":data-source, "http://
java.sun.com/xml/ns/javaee":message-destination, "http://java.sun.com/xml/ns/javaee":locale-encoding-mapping-list, "http://java.sun.com/xml/ns/javaee":absolute-
ordering}' is expected.
"
other tag <resource-env-ref>
<resource-env-ref>
<resource-env-ref-name>configuration/repertoire</resource-env-ref-name>
<jndi-name>l??/portail/configuration/repertoire</jndi-name>
</resource-env-ref>
who have attribute. It seem to accept the first one <resource-env-ref-name>
but not the second one <jndi-name>.
I have a:"
cvc-complex-type.2.4.a: Invalid content was found starting with element 'jndi-name'. One of '{"http://java.sun.com/xml/ns/javaee":resource-env-ref-type, "http://
java.sun.com/xml/ns/javaee":mapped-name, "http://java.sun.com/xml/ns/javaee":injection-target, "http://java.sun.com/xml/ns/javaee":lookup-name}' is expected.
" error