You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Mike Pilsbury <mp...@Lastminute.com> on 2004/05/24 19:54:57 UTC

RE: Unable to instantiate an instance of class ... cannot get aro und this

Your page class is abstract, but it doesn't require enhancing.

Mike


-----Original Message-----
From: Jeremy Cowgar [mailto:jc@cowgar.com]
Sent: 24 May 2004 15:14
To: Tapestry users
Subject: Unable to instantiate an instance of class ... cannot get
around this


I have made sereval custom pages, but for some reason, this is not 
working. I have several other pages in this package that are working 
fine, including some complex ones.  I have tried everything, even 
changing the name, removing the context in Tomcat and recreating it, 
removing Tomcat's working directory, restarting, etc... I have busted 
this page down to almost nothing trying to get it to work. I have double 
checked the package names 100 times, also ensured that the class was 
actually there in the WEB-INF/classes directory. Everything seems fine, 
but I am unable to resolve the problem. I can find no other error 
information either.

I would appriciate any help. Thank you!

Here is my page source:

package com.cowgar.tapestry.apps.reunion.components.news;
import org.apache.tapestry.html.BasePage;
public abstract class ViewPage extends BasePage {}

Here is my ViewPage.page:
<?xml version="1.0"?>

<!DOCTYPE page-specification
    PUBLIC "-//Apache Software Foundation//Tapestry Specification 3.0//EN"
    "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd">

<page-specification
        class="com.cowgar.tapestry.apps.reunion.components.news.ViewPage">
    <component id="border" type="Border">
        <binding name="pages" expression="engine.pageNames"/>
    </component>
</page-specification>

Here is the error:

org.apache.tapestry.ApplicationRuntimeException
Unable to instantiate an instance of class 
com.cowgar.tapestry.apps.reunion.components.news.ViewPage.
location: 	context:/WEB-INF/news/View.page, line 8, column 69
 
java.lang.InstantiationException

Stack Trace:

    *
sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(Instan
tiationExceptionConstructorAccessorImpl.java:30)

    * java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    * java.lang.Class.newInstance0(Class.java:308)
    * java.lang.Class.newInstance(Class.java:261)
    *
org.apache.tapestry.pageload.PageLoader.instantiatePage(PageLoader.java:694)

    * org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java:756)
    * org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:153)
    * org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:196)

    *
org.apache.tapestry.engine.ExternalService.service(ExternalService.java:146)

    *
org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:872)

    *
org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:197
)

    *
org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:158)

    * javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
    * javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    *
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:237)

    *
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)

    *
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)

    *
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)

    *
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

    *
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:198)

    *
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:152)

    *
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)

    *
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

    *
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137
)

    *
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)

    *
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117
)

    *
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)

    *
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

    *
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)

    *
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)

    *
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

    * org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    *
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)

    *
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)

    *
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:702)

    *
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)

    *
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:644)

    * java.lang.Thread.run(Thread.java:534)


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org