"jaikiran" wrote:I'm having the same error with jboss 5.1. I tried the above but it didnt help
This one is incorrect:<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee http://java.sun.com/j2ee/dtds/web-app_2_2.dtd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
Try this instead<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
2009-06-24 14:15:10,359 ERROR [org.jboss.web.tomcat.service.deployers.JBossContextConfig] (main) XML error parsing: WEB-INF/context.xml
org.jboss.xb.binding.JBossXBException: Failed to parse source: Element {http://java.sun.com/xml/ns/j2ee}web-app is not bound as a global element.
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
2009-06-23 19:10:47,702 ERROR [org.jboss.web.tomcat.service.deployers.JBossContextConfig] (main) XML error parsing: WEB-INF/context.xml
org.jboss.xb.binding.JBossXBException: Failed to parse source: Element web-app is not bound as a global element.
Hi,
better open a new thread, as your errors do not seem to be related to the original error.
Why did you rename your "web.xml" to "context.xml"? The latter has a totally different structure, its root element is "", not "<web-app>", they don't have much in common.
The "default" server is fully web aware.
If you want to start the "web" configuration, run "jboss.bat" (or "jboss.sh") with options "-c web".
Best regards
Wolfgang
thanks.
I did that because of some other errors I was getting that are since resolved.
Deleted context.xml and now the deployment proceeds (another error, but I can continue)