Jruby rails application on Tomcat. War generated through warbler -


i using warbler create war of jruby application. creates war without problem, when deploy in tomcat (webapps) gives me following exception:

severe: parse error in application web.xml file @ jndi:/localhost/poc_rails_1_3_1_/web-inf/web.xml org.xml.sax.saxparseexception: comment must start "<!--".     @ com.sun.org.apache.xerces.internal.parsers.abstractsaxparser.parse(abstractsaxparser.java:1231) 

generated (web-inf/web.xml) below. let me know if have forgotten configure something.

    <!doctype web-app public   "-//sun microsystems, inc.//dtd web application 2.3//en"   "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app>    <context-param>     <param-name>public.root</param-name>     <param-value>/</param-value>   </context-param>    <context-param>     <param-name>rails.env</param-name>     <param-value>developement</param-value>   </context-param>     <filter>     <filter-name>rackfilter</filter-name>     <filter-class>org.jruby.rack.rackfilter</filter-class>   </filter>   <filter-mapping>     <filter-name>rackfilter</filter-name>     <url-pattern>/*</url-pattern>   </filter-mapping>    <listener>     <listener-class>org.jruby.rack.rails.railsservletcontextlistener</listener-class>   </listener>   </web-app> <!doctype web-app public   "-//sun microsystems, inc.//dtd web application 2.3//en"   "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app>    <context-param>     <param-name>public.root</param-name>     <param-value>/</param-value>   </context-param>    <context-param>     <param-name>rails.env</param-name>     <param-value>developement</param-value>   </context-param>     <filter>     <filter-name>rackfilter</filter-name>     <filter-class>org.jruby.rack.rackfilter</filter-class>   </filter>   <filter-mapping>     <filter-name>rackfilter</filter-name>     <url-pattern>/*</url-pattern>   </filter-mapping>    <listener>     <listener-class>org.jruby.rack.rails.railsservletcontextlistener</listener-class>   </listener>   </web-app> 

as first commentor mentioned xml invalid because of duplicate <web-app> , <!doctype. parser error related <!. <! meant declaring documenttype , can appear before start of root element. subsequent appearances treated start of comment. , comment needs -- after <!


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -