title: Type mismatch: cannot convert from Tag to JspTag
body: <p>I'm creating a web application with Spring, Hibernate, RichFaces, Myfaces running on WebLogic 10.3.5</p>
  
  <p>This is my pom.xml</p>
  
  <pre><code>&lt;properties&gt;
      &lt;spring.version&gt;4.0.2.RELEASE&lt;/spring.version&gt;
      &lt;junit.version&gt;4.11&lt;/junit.version&gt;
      &lt;log4j.version&gt;1.2.17&lt;/log4j.version&gt;
      &lt;myfaces.version&gt;2.2.0&lt;/myfaces.version&gt;
      &lt;tomahawk.version&gt;1.1.14&lt;/tomahawk.version&gt;
      &lt;jstl.version&gt;1.2&lt;/jstl.version&gt;
      &lt;commons-beanutils.version&gt;1.9.1&lt;/commons-beanutils.version&gt;
      &lt;commons-collections.version&gt;3.2.1&lt;/commons-collections.version&gt;
      &lt;commons-digester.version&gt;2.1&lt;/commons-digester.version&gt;
      &lt;commons-logging.version&gt;1.1.3&lt;/commons-logging.version&gt;
      &lt;jhighlight.version&gt;1.0&lt;/jhighlight.version&gt;
      &lt;richfaces.version&gt;3.3.3.Final&lt;/richfaces.version&gt;
      &lt;hibernate.version&gt;3.6.10.Final&lt;/hibernate.version&gt;
      &lt;javassist.version&gt;3.12.1.GA&lt;/javassist.version&gt;
      &lt;poi.version&gt;3.9&lt;/poi.version&gt;
  &lt;/properties&gt;
  
  &lt;dependencies&gt;
  
      &lt;!-- Log4J --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;log4j&lt;/groupId&gt;
          &lt;artifactId&gt;log4j&lt;/artifactId&gt;
          &lt;version&gt;${log4j.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- Spring 4 dependencies --&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-core&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-orm&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-jms&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
  
  
      &lt;!-- jUnit --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;junit&lt;/groupId&gt;
          &lt;artifactId&gt;junit&lt;/artifactId&gt;
          &lt;version&gt;${junit.version}&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  
  
  
      &lt;!-- Hibernate --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
          &lt;version&gt;${hibernate.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;javassist&lt;/groupId&gt;
          &lt;artifactId&gt;javassist&lt;/artifactId&gt;
          &lt;version&gt;${javassist.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
  
      &lt;!-- Myfaces --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.myfaces.core&lt;/groupId&gt;
          &lt;artifactId&gt;myfaces-api&lt;/artifactId&gt;
          &lt;version&gt;${myfaces.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.myfaces.core&lt;/groupId&gt;
          &lt;artifactId&gt;myfaces-impl&lt;/artifactId&gt;
          &lt;version&gt;${myfaces.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- TomaHawk --&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.myfaces.tomahawk&lt;/groupId&gt;
          &lt;artifactId&gt;tomahawk20&lt;/artifactId&gt;
          &lt;version&gt;${tomahawk.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
  
      &lt;!-- JSTL per RichFaces --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;jstl&lt;/groupId&gt;
          &lt;artifactId&gt;jstl&lt;/artifactId&gt;
          &lt;version&gt;${jstl.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- commons-beanutils per RichFaces --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;commons-beanutils&lt;/groupId&gt;
          &lt;artifactId&gt;commons-beanutils&lt;/artifactId&gt;
          &lt;version&gt;${commons-beanutils.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- Commons Collections per RichFaces --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;commons-collections&lt;/groupId&gt;
          &lt;artifactId&gt;commons-collections&lt;/artifactId&gt;
          &lt;version&gt;${commons-collections.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- Commons Digester per RichFaces --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;commons-digester&lt;/groupId&gt;
          &lt;artifactId&gt;commons-digester&lt;/artifactId&gt;
          &lt;version&gt;${commons-digester.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- Commons Logging per RichFaces --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;commons-logging&lt;/groupId&gt;
          &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
          &lt;version&gt;${commons-logging.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- jHighlight per RichFaces --&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.uwyn&lt;/groupId&gt;
          &lt;artifactId&gt;jhighlight&lt;/artifactId&gt;
          &lt;version&gt;${jhighlight.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
  
      &lt;!-- RichFaces --&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.richfaces.framework&lt;/groupId&gt;
          &lt;artifactId&gt;richfaces-impl-jsf2&lt;/artifactId&gt;
          &lt;version&gt;${richfaces.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.richfaces.ui&lt;/groupId&gt;
          &lt;artifactId&gt;richfaces-ui&lt;/artifactId&gt;
          &lt;version&gt;${richfaces.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.richfaces.framework&lt;/groupId&gt;
          &lt;artifactId&gt;richfaces-api&lt;/artifactId&gt;
          &lt;version&gt;${richfaces.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.poi&lt;/groupId&gt;
          &lt;artifactId&gt;poi&lt;/artifactId&gt;
          &lt;version&gt;${poi.version}&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>I have no compilation errors.
  I have the following settings in the Project Facets into Eclipse:</p>
  
  <ol>
  <li>Dynamic Web Module 2.5</li>
  <li>Java 1.6</li>
  <li>Oracle WebLogic Web App Extensions 10.3.5</li>
  </ol>
  
  <p>When I run it I got the following errors on every jsp page I'm trying to display:</p>
  
  <p>Type mismatch: cannot convert from Tag to JspTag</p>
  
  <p>followed by each jsp or jsf tag it contains.</p>
  
  <pre><code>Type mismatch: cannot convert from Tag to JspTag
  &lt;%  ^
  } 
  </code></pre>
  
  <p>Cannot cast from JspContext to PageContext
  </p>
  
  <p>Type mismatch: cannot convert from LoadBundleTag to JspTag
  </p>
  
  <p>etc etc...</p>
  
  <p>Do you know how I could fix it?</p>
  
  <p>I've noticed that if I put the following tag in the weblogic.xml file, the home page works, but for the other pages I got those errors:</p>
  
  <pre><code> &lt;wls:container-descriptor&gt;
      &lt;wls:prefer-web-inf-classes&gt;true&lt;/wls:prefer-web-inf-classes&gt;
  &lt;/wls:container-descriptor
  </code></pre>
  
  <p>Can you help me please?</p>
  
  <p>Thanks</p>