[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: both deployment methods fail - WAR and exploded in J5GA

jbosseval1 do-not-reply at jboss.com
Wed Jun 24 14:23:00 EDT 2009


"jaikiran" wrote : 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">
  | 
  | I'm having the same error with jboss 5.1. I tried the above but it didnt help
here is my new error:
anonymous wrote : 
  | 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)
  | 

Previously the context.xml had
<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">
and the error was anonymous wrote : 
  | 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.
  | 

Questions
1) is this because of a syntax error?
2) is it because I'm using the "default" server and it is not web-app "aware".
3)how do I make jboss start the server named "web" instead of "default"

Note: I had to rename web.xml to context.xml in the war folder for jboss
Note2: Tried moving the WAR into web/deploy (the "web" profile) and ran run.sh -c web   ....got the same error in the log.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239843#4239843

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239843



More information about the jboss-user mailing list