geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Balasubramanian.Vi...@epamail.epa.gov
Subject Re: Fw: Error deploying Servlet 2.3 application
Date Mon, 23 Jan 2006 19:45:25 GMT
Aaron,
Thanks for your reply.  I am attaching the web.xml file for your ref.
Thanks,  Vijay


<?xml version="1.0" encoding="UTF-8"?>
<!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 id="sdmsc">
    <display-name>sdmsc</display-name>

    <context-param>
      <param-name>SDMS_INDEX_UNC</param-name>
      <param-value>\\xxxx\PDFindex\current\</param-value>
      <description>UNC Sharepoint for dtSearch index
folders</description>
    </context-param>

    <context-param>
            <param-name>SDMS_PDF_URL</param-name>
            <param-value>/application/PDF</param-value>
            <description>Temporary link to PDFs</description>
    </context-param>



    <context-param>
      <param-name>contextConfigLocation</param-name>

<param-value>/WEB-INF/applicationContext-hibernate.xml</param-value>
    </context-param>

    <context-param>
            <param-name>JCIA_JNLP_FILE</param-name>

<param-value>D:\\public\\server\\apps\\AppUtils\\jcia\\jcia_c.jnlp</param-value>
            <description>JCIA static jnlp file</description>
      </context-param>

      <filter>
            <filter-name>OpenSessionInViewFilter</filter-name>

<filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
            <init-param>
                  <param-name>singleSession</param-name>
                  <param-value>true</param-value>
            </init-param>
        </filter>

        <filter>
            <filter-name>sessionFilter</filter-name>

<filter-class>gov.epa.sdmsc.util.SessionFilter</filter-class>
        </filter>


      <filter-mapping>
                  <filter-name>OpenSessionInViewFilter</filter-name>
                  <url-pattern>*.action</url-pattern>
      </filter-mapping>

      <filter-mapping>
                  <filter-name>sessionFilter</filter-name>
                  <url-pattern>*.jsp</url-pattern>
      </filter-mapping>


      <filter-mapping>
                  <filter-name>sessionFilter</filter-name>
                  <url-pattern>*.action</url-pattern>
      </filter-mapping>


   <servlet>
      <servlet-name>context</servlet-name>

<servlet-class>org.springframework.web.context.ContextLoaderServlet</servlet-class>
      <load-on-startup>2</load-on-startup>
   </servlet>

<servlet>
   <servlet-name>sdmsc</servlet-name>

<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
      <param-name>application</param-name>
      <param-value>gov.epa.sdmsc.ApplicationResources</param-value>
    </init-param>
    <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>2</param-value>
    </init-param>
    <init-param>
      <param-name>detail</param-name>
      <param-value>2</param-value>
    </init-param>
    <init-param>
      <param-name>validate</param-name>
      <param-value>true</param-value>
    </init-param>

    <load-on-startup>1</load-on-startup>
  </servlet>

  <servlet>
    <servlet-name>SendFeedBack</servlet-name>
    <servlet-class>gov.epa.sdmsc.util.EmailServlet</servlet-class>
  </servlet>

  <servlet>
    <servlet-name>DynamicJNLPServlet</servlet-name>
    <servlet-class>gov.epa.sdmsc.util.DynamicJNLPServlet</servlet-class>
  </servlet>



  <servlet-mapping>
    <servlet-name>sdmsc</servlet-name>
    <url-pattern>*.action</url-pattern>
  </servlet-mapping>



    <servlet-mapping>
      <servlet-name>SendFeedBack</servlet-name>
      <url-pattern>/servlet/sendFeedBack</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
      <servlet-name>DynamicJNLPServlet</servlet-name>
      <url-pattern>/servlet/DynamicJNLPServlet</url-pattern>
    </servlet-mapping>


  <session-config>
      <session-timeout>60</session-timeout>
  </session-config>

   <error-page>

<exception-type>gov.epa.sdmsc.business.service.SdmscLoginException</exception-type>
            <location>/ui/Errorpage.jsp</location>
      </error-page>


    <error-page>

<exception-type>org.springframework.dao.DataAccessException</exception-type>
            <location>/ui/Errorpage.jsp</location>
      </error-page>

      <error-page>

<exception-type>org.springframework.jdbc.support.MetaDataAccessException</exception-type>
            <location>/ui/Errorpage.jsp</location>
      </error-page>


      <error-page>

<exception-type>java.lang.NullPointerException</exception-type>
            <location>/ui/Errorpage.jsp</location>
      </error-page>

      <error-page>
            <exception-type>java.sql.SQLException</exception-type>
            <location>/ui/Errorpage.jsp</location>
      </error-page>

      <error-page>
            <exception-type>java.lang.Exception</exception-type>
            <location>/ui/Errorpage.jsp</location>
      </error-page>

      <error-page>

<exception-type>javax.servlet.ServletException</exception-type>
            <location>/ui/Errorpage.jsp</location>
      </error-page>

      <error-page>

<exception-type>java.lang.IllegalStateException</exception-type>
            <location>/ui/Errorpage.jsp</location>
      </error-page>



  <taglib>
    <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
  </taglib>

  <taglib>
    <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
  </taglib>
  <taglib>
    <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
  </taglib>

  <taglib>
    <taglib-uri>/WEB-INF/c-rt.tld</taglib-uri>
    <taglib-location>/WEB-INF/c-rt.tld</taglib-location>
  </taglib>
  <taglib>
    <taglib-uri>/WEB-INF/c.tld</taglib-uri>
    <taglib-location>/WEB-INF/c.tld</taglib-location>
  </taglib>

  <taglib>
    <taglib-uri>/WEB-INF/x-rt.tld</taglib-uri>
    <taglib-location>/WEB-INF/x-rt.tld</taglib-location>
  </taglib>
  <taglib>
    <taglib-uri>/WEB-INF/x.tld</taglib-uri>
    <taglib-location>/WEB-INF/x.tld</taglib-location>
  </taglib>

  <taglib>
    <taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
  </taglib>



  <taglib>
    <taglib-uri>/WEB-INF/sql</taglib-uri>
    <taglib-location>/WEB-INF/sql.tld</taglib-location>
  </taglib>
<!--
  <taglib>
      <uri>http://ajaxtags.org/tags/ajax</uri>
      <location>/WEB-INF/ajaxtags.tld</location>
 </taglib>
-->


</web-app>


Vijay Balasubramanian
DPRA Inc.,


                                                                        
             Aaron Mulder                                               
             <ammulder@alumni                                           
             .princeton.edu>                                         To 
             Sent by:                 user@geronimo.apache.org          
             ammulder@gmail.c                                        cc 
             om                                                         
                                                                Subject 
                                      Re: Fw: Error deploying Servlet   
             01/23/2006 01:37         2.3 application                   
             PM                                                         
                                                                        
                                                                        
              Please respond                                            
                    to                                                  
             user@geronimo.ap                                           
                 ache.org                                               
                                                                        
                                                                        




Please post your web.xml.

Thanks,
    Aaron

On 1/23/06, Balasubramanian.Vijay@epamail.epa.gov
<Balasubramanian.Vijay@epamail.epa.gov> wrote:
>
> I am reposting this question again.  Please point me to any info that
> many be available on this issue.
>
> Thanks,
> Vijay
>
>
> Hello,
>
> I am trying to deploy a servlet 2.3 application( with 2.3 dtd
specified
> in web.xml) in version 1.0.
> I am seeing 2.4 xml schema stuff  gets prepended as below and i get
the
> following error.
>
> I get the same error when i deploy with a plan file or not, command
line
> or console.  Am i missing something here, should there be a flag set
> in geronimo config. Please let me know if you have any info on this.
>
> Thanks,
> Vijay
>
> Caused by: org.apache.xmlbeans.XmlException: Invalid deployment
> descriptor: [err
> or: cvc-complex-type.2.4b: Element not allowed:
> description@http://java.sun.com/
> xml/ns/j2ee in element context-param@http://java.sun.com/xml/ns/j2ee,
> error: cvc
> -complex-type.2.4b: Element not allowed:
> description@http://java.sun.com/xml/ns/
> j2ee in element context-param@http://java.sun.com/xml/ns/j2ee, error:
> cvc-comple
> x-type.2.4b: Element not allowed:
> description@http://java.sun.com/xml/ns/j2ee in
>  element context-param@http://java.sun.com/xml/ns/j2ee, error:
> cvc-complex-type.
> 2.4b: Element not allowed: description@http://java.sun.com/xml/ns/j2ee
> in elemen
> t context-param@http://java.sun.com/xml/ns/j2ee, error:
> cvc-complex-type.2.4b: E
> lement not allowed: description@http://java.sun.com/xml/ns/j2ee in
> element conte
> xt-param@http://java.sun.com/xml/ns/j2ee, error: cvc-complex-type.2.4
b:
> Element
> not allowed: description@http://java.sun.com/xml/ns/j2ee in element
> context-para
> m@http://java.sun.com/xml/ns/j2ee, error: cvc-complex-type.2.4b:
Element
> not all
> owed: description@http://java.sun.com/xml/ns/j2ee in element
> context-param@http:
> //java.sun.com/xml/ns/j2ee]
> Descriptor: <web-app
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2eehttp://j
> ava.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4" id="sdmsc"
> xmlns:xsi="htt
> p://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://java.sun.com/xml/ns/j2ee">
>
> <!-------- My web.xml is printed here --------------->
>
> </web-app>
>         at
> org.apache.geronimo.schema.SchemaConversionUtils.validateDD(SchemaCon
> versionUtils.java:594)
>         at
> org.apache.geronimo.schema.SchemaConversionUtils.convertToServletSche
> ma(SchemaConversionUtils.java:318)
>         at
> org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.createModul
> e(TomcatModuleBuilder.java:176)
>         ... 79 more
> java.lang.ArrayIndexOutOfBoundsException: 8192
>         at
> org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuf
> fer.java:721)
>         at
> org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuf
> fer.java:628)
>         at
> org.apache.coyote.http11.InternalOutputBuffer.sendHeader(InternalOutp
> utBuffer.java:501)
>         at
> org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Proces
> sor.java:1592)
>         at
> org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:
> 949)
>         at org.apache.coyote.Response.action(Response.java:182)
>         at org.apache.coyote.Response.sendHeaders(Response.java:374)
>         at
> org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:
> 317)
>         at
> org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:27
> 8)
>         at
> org.apache.catalina.connector.Response.finishResponse(Response.java:4
> 73)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
> a:151)
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
> :856)
>         at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
> ssConnection(Http11Protocol.java:744)
>         at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
> int.java:527)
>         at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
> lowerWorkerThread.java:80)
>         at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
> ool.java:684)
>         at java.lang.Thread.run(Thread.java:534)
> 13:34:21,248 ERROR [Http11Processor] Error finishing response
> java.lang.ArrayIndexOutOfBoundsException
>         at java.lang.System.arraycopy(Native Method)
>         at
> org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuf
> fer.java:690)
>         at
> org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutp
> utBuffer.java:429)
>         at
> org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Proces
> sor.java:1581)
>         at
> org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:
> 949)
>         at org.apache.coyote.Response.action(Response.java:180)
>         at
> org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutp
> utBuffer.java:389)
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
> :893)
>         at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
> ssConnection(Http11Protocol.java:744)
>         at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
> int.java:527)
>         at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
> lowerWorkerThread.java:80)
>         at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
> ool.java:684)
>         at java.lang.Thread.run(Thread.java:534)
>
>
>
>



Mime
View raw message