Yes, I have tried with and without View.page file without luck.

I have tried saving View.html in context root and ¡it works!, but Why?. If I
try it like a common web application it works with View.html in
WEB-INF/gapmuportlet folder. Why it doesn't work in a portlet environment?

Regards.

  Julio.


2006/7/14, Mitchell O'Brien <[EMAIL PROTECTED]>:

Hi,

Do you have a View.page file?

Cheers,
Mitch

On 14.07.2006, at 13:29, Julio C. Rivera wrote:

> Hi!
>
> I'm new in portlets. I'm trying to develop a Hello World portlet using
> Tapestry.
>
> When I deploy my hello world portlet in jetspeed I get this portlet
> content:
>
>    org.apache.tapestry.PageNotFoundException
>
>    Page 'View' not found in application namespace.
>
>   -
> org.apache.tapestry.resolver.PageSpecificationResolverImpl.resolve(
>   PageSpecificationResolverImpl.java:140)
>   -
>   $PageSpecificationResolver_10c6cbde6ef.resolve
> ($PageSpecificationResolver_10c6cbde6ef.java)
>   -
>   $PageSpecificationResolver_10c6cbde6f0.resolve
> ($PageSpecificationResolver_10c6cbde6f0.java)
>   - org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:
> 115)
>
>      ..............
>
>
>
> Here my config files:
>
> ***********************
> WEB-INF/web.xml
> ***********************
> <!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>
>  <display-name>app</display-name>
>  <servlet>
>    <servlet-name>gapmuportlet</servlet-name>
>    <servlet-class>org.apache.tapestry.ApplicationServlet</servlet-
> class>
>  </servlet>
>  <servlet-mapping>
>    <servlet-name>gapmuportlet</servlet-name>
>    <url-pattern>/app</url-pattern>
>  </servlet-mapping>
> </web-app>
>
> ************************
> WEB-INF/portlet.xml
> *************************
> <portlet-app version="1.0"
>  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
> http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd";>
>  <portlet>
>    <description xml:lang="EN"></description>
>    <portlet-name>Gapmuportlet</portlet-name>
>    <display-name xml:lang="EN">My Tapestry Portlet</display-name>
>    <portlet-class>org.apache.tapestry.portlet.ApplicationPortlet
> </portlet-class>
>    <expiration-cache>-1</expiration-cache>
>    <supports>
>      <mime-type>text/html</mime-type>
>      <portlet-mode>view</portlet-mode>
>    </supports>
>    <supported-locale>es</supported-locale>
>    <portlet-info>
>      <title>My Tapestry Portlet</title>
>      <short-title>tapestry-portlet</short-title>
>      <keywords></keywords>
>    </portlet-info>
>  </portlet>
> </portlet-app>
>
> *******************************************
> WEB-INF/gapmuportlet/View.html
> *******************************************
> <h1>Hello World!!</h1>
>
>
> Somebody have some tapestry portlet example?
>
> Thanks in advance.
>
>  Julio.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to