My initial diagnosis would be:

Remove the tapestry-portlet JAR from the classpath, unless you are
deploying a Portlet!

However, just having the JAR on the classpath should not cause this
kind of problem; please add a bug to JIRA and I'll make sure that you
can run with the portlet JAR on the classpath, even outside of a
portlet container.

On 8/17/05, Ted Steen <[EMAIL PROTECTED]> wrote:
> I'm trying to activate a new page if some condition is true within an
> listener, but
> i get an Exception (outside of tapestry!) when doing so.
> 
> --- snipplet from MainPage.java ---
> @InjectPage("main/AddEntry")
> public abstract AddEntry getAddEntryPage();
> 
> public IPage doAddEntry() {
>   AddEntry addEntryPage = null;
>   if(getAmount() != 0) {
>     Entry entry = new Entry(getDate(), getComment(), getAmount(),
> getSelectedCategory(), null, getUser().getID());
>     addEntryPage = getAddEntryPage();
>     addEntryPage.setEntry(entry);
>   }
> 
>   setError("You must provide an amount");
>   return addEntryPage;
> }
> --- snipplet from MainPage.java [END] ---
> 
> --- AddEntry.java ---
> 
> public abstract class AddEntry extends PengBasePage {
>         public abstract void setEntry(Entry entry);
> }
> 
> --- AddEntry.java [END]
> 
> Now, if i uncomment "addEntryPage.setEntry(entry);" line it works, but then I
> don't get my entry into the AddEntry.java page, which is the whole idea.
> 
> 
> This is the Exception I get (note that it is not handled by tapestry!)
> javax.servlet.ServletException: Unable to construct service
> tapestry.describe.DescribableStrategy: Unable to construct
> configuration tapestry.describe.DescribableStrategies: Error at
> jar:file:/C:/Program/Apache Software Foundation/Tomcat
> 5.5/shared/lib/tapestry-portlet-4.0-beta-4.jar!/META-INF/hivemodule.xml,
> line 297, column 105: Unable to process attribute class (of element
> strategy): Unable to convert type 'javax.portlet.PortletSession' to a
> Java class, either as is, or in package org.apache.tapestry.portlet.
> ...
> 
> --
> /ted
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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

Reply via email to