0 Replies Latest reply on Nov 5, 2012 8:07 AM by Suren s

    unsupportedOperation in Jboss 6.0 at Linux 5.5 server

    Suren s Newbie
      1. We developed a small application with only one Login.xhtml file and I made as a war file.
      2. I deployed this war to Linux 5.5 server
      3. Jboss6.0 also is available in Linux server
      4. I can able deploy the war file and start the Jboss server.
      5. Finally while trying to hit the URL (http://localhost: 8080/MFPMSDeployement/Login.xhtml)  I am getting unsupported Operation.  find the below Error’s

       

      16:59:23,134 INFO [org.apache.coyote.ajp.AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009

      16:59:23,144 INFO [org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS [6.0.0.Final "Neo"] Started in 1m:8s:59ms

      17:00:29,776 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/MFPMSDeployment].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception: java.lang.UnsupportedOperationException

              at javax.faces.application.Application.getResourceHandler(Application.java:862) [:2.1.6]

              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:185) [:2.1.6]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

              at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141) [:3.1.4.GA]

              at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281) [:3.1.4.GA]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]

              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]

              at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]

              at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]

              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]

              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]

              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]

              at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]

              at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]

       

       

      My web.xml File :

       

      -------------

      <?xml version="1.0" encoding="ASCII"?>

      <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">

      <display-name>mfpms</display-name>

       

      <servlet>

      <servlet-name>Faces Servlet</servlet-name>

      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

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

      </servlet>

       

      <context-param>

      <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>

      <param-value>com.sun.facelets.FaceletViewHandler</param-value>

      </context-param>

       

      <context-param>

      <param-name>com.sun.faces.enableRestoreView11Compatibility</param-name>

      <param-value>true</param-value>

      </context-param>

       

      <context-param>

      <param-name>javax.faces.VALIDATE_EMPTY_FIELDS</param-name>

      <param-value>true</param-value>

      </context-param>

       

      <context-param>

      <param-name>javax.faces.DEFAULT_SUFFIX</param-name>

      <param-value>*.xhtml</param-value>

      </context-param>

       

      <context-param>

      <param-name>facelets.REFRESH_PERIOD</param-name>

      <param-value>2</param-value>

      </context-param>

      <context-param>

      <param-name>facelets.DEVELOPMENT</param-name>

      <param-value>true</param-value>

      </context-param>

       

      <servlet-mapping>

      <servlet-name>Faces Servlet</servlet-name>

      <url-pattern>*.xhtml</url-pattern>

      </servlet-mapping>

       

      <context-param>

      <param-name>javax.faces.STATE_SAVING_METHOD</param-name>

      <param-value>client</param-value>

      </context-param>

       

      <context-param>

      <param-name>javax.faces.CONFIG_FILES</param-name>

      <param-value>/WEB-INF/orgfaces-config.xml</param-value>

      </context-param>

       

      <welcome-file-list>

      <welcome-file>Login.xhtml</welcome-file>

      </welcome-file-list>

       

      <filter>

      <display-name>RichFaces Filter</display-name>

      <filter-name>richfaces</filter-name>

      <filter-class>org.ajax4jsf.Filter</filter-class>

      </filter>

      <filter-mapping>

      <filter-name>richfaces</filter-name>

      <servlet-name>Faces Servlet</servlet-name>

      <dispatcher>REQUEST</dispatcher>

      <dispatcher>FORWARD</dispatcher>

      <dispatcher>INCLUDE</dispatcher>

      </filter-mapping>

       

      <listener>

      <listener-class>

      org.springframework.web.context.ContextLoaderListener

      </listener-class>

      </listener>

      <listener>

      <listener-class>com.sun.faces.config.ConfigureListener</listener-class>

      </listener>

       

      </web-app>

       

      ---------

       

      1. FacesConfig.xml file

       

      <?xml version="1.0" encoding="UTF-8"?>

       

      <faces-config

      xmlns="http://java.sun.com/xml/ns/javaee"

      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee

      http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"

      version="2.0">

      <application>

      <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>

      <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>

      </application>

       

       

      </faces-config>

      -----

       

      If you have any idea above the issue please help .

       

      Thanks in advance ..