Re: Problems deploying jboss-struts using CVS version

Stephen Davidson <[email protected]> Sun, 18 Jul 2004 19:25:51 -0500
Newsgroups gmane.comp.java.keel.user
Message-ID <[email protected]>
Hi Maxxam.

Did this ever get worked out?

Regards,
Steve

maxxam-cuDQgYkrLFxfAa1EqD/[email protected] wrote:

>Hi,
>
>I've downloaded the CVS version of keel as suggested by the "Read me
>first" wiki post. To date I have been using 2.0.
>
>I have managed to successfully build and deploy the "default" struts app
>in the example-projects/default directory.
>
>However when trying to deploy the example-projects/jboss-struts version
>things don't seem to work. Everything appears to build ok, but when
>starting JBoss using "ant jboss-start" the app does not deploy. I then
>tried building a war file using "ant war" and manually deployed the war
>file. Things almost work however jboss now gives the following error:
>
>     [exec] 23:22:53,248 ERROR [Digester] Parse Error at line 94 column
>11: The content of element type "web-app" must match "(icon?,display
>-name?,description?,distributable?,context-param*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,tag
>lib*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*)".
>
>Similar errors later on identify the file in question as being the web.xml
>file. I've attached the web.xml file to this post.
>
>Thanks,
>Max
>
>------------------------------------------------------------------------
>
><?xml version="1.0" encoding="ISO-8859-1"?>
>
><!DOCTYPE web-app
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>  "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
>  
><web-app>
>
>  <!--
>  The following parameter is only used in the single-VM webapp deployment
>  where the Keel-server is embedded in the webapp.  When specified,
>  this parameter overrides the value of the system property of the same name,
>  (e.g. with -Dkeel.config.dir=somedirectory specified when the JVM is started).
>  The WEB-INF directory is intentionally specified as a relative path.
>  -->
>  <context-param>
>       <param-name>keel.config.dir</param-name>
>       <param-value>WEB-INF/keel/server/conf</param-value>
>  </context-param>
>
>  <context-param>
>     <param-name>client-timeout</param-name>
>     <param-value>60000</param-value>
>  </context-param>
>
>  <!-- Action Servlet Configuration -->
>  <servlet>
>    <servlet-name>action</servlet-name>
>    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
>    <init-param>
>      <param-name>config</param-name>
>      <param-value>/WEB-INF/struts-config.xml</param-value>
>    </init-param>
>    <init-param>
>      <param-name>debug</param-name>
>      <param-value>3</param-value>
>    </init-param>
>    <init-param>
>      <param-name>detail</param-name>
>      <param-value>3</param-value>
>    </init-param>
>    <load-on-startup>2</load-on-startup>
>  </servlet>
>
>
>  <!-- Action Servlet Mapping -->
>  <servlet-mapping>
>    <servlet-name>action</servlet-name>
>    <url-pattern>*.do</url-pattern>
>  </servlet-mapping>
>
>
>  <!-- The Welcome File List -->
>  <welcome-file-list>
>    <welcome-file>index.jsp</welcome-file>
>  </welcome-file-list>
>
>  <error-page>
>	<exception-type>java.lang.SecurityException</exception-type>
>	<location>/authfail.jsp</location>
>  </error-page>
>
>  <!-- Struts Tag Library Descriptors -->
>  <taglib>
>    <taglib-uri>/tags/struts-bean</taglib-uri>
>    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
>  </taglib>
>
>  <taglib>
>    <taglib-uri>/tags/struts-html</taglib-uri>
>    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
>  </taglib>
>
>  <taglib>
>    <taglib-uri>/tags/struts-logic</taglib-uri>
>    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
>  </taglib>
>
>  <taglib>
>    <taglib-uri>/tags/struts-nested</taglib-uri>
>    <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
>  </taglib>
>
>  <taglib>
>    <taglib-uri>/tags/struts-tiles</taglib-uri>
>    <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
>  </taglib>
>
>  <!-- Keel configuration -->
>  <context-param>
>       <param-name>jms-client</param-name>
>       <param-value>org.keel.comm.jbossmq.clients.KeelJmsClientJbossMQ</param-value>
>  </context-param>
></web-app>
>


-- 
Java/J2EE Developer/Integrator
Chair, Dallas/FortWorth J2EE Sig
214-724-7741