0 Replies Latest reply on Oct 11, 2005 2:15 PM by Mircea Trifan

    Cannot find the declaration of element 'portlet-app' in line

    Mircea Trifan Newbie

      After importing in ECLIPSE 3.1 + JBoss IDE plugins the hello world example the error in subject field is displayed.

      Outside ECLIPSE the application seems to run just fine.

      Thanks in advance for any suggestions.


      portlet.xml
      =======
      <?xml version="1.0" encoding="UTF-8"?>
      <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation=" http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd /opt/SUNWps/dtd/portlet.xsd" version="1.0">

      <portlet-name>HelloWorldPortlet</portlet-name>
      <portlet-class>org.apache.myfaces.portlet.MyFacesGenericPortlet</portlet-class>
      <init-param>
      default-view
      /index.jsp
      </init-param>
      <supported-locale>en</supported-locale>
      <!-- <resource-bundle>Resource</resource-bundle> -->

      <mime-type>text/html</mime-type>
      <portlet-mode>VIEW</portlet-mode>

      <portlet-info>
      My HelloWorld Portlet
      </portlet-info>

      </portlet-app>