This can happen when you accidently leave the Tapestry 2.1 libraries in your classpath or Tomcat common/lib directory.  I had it happen to me last night.
----- Original Message -----
Sent: Monday, October 14, 2002 6:55 PM
Subject: Re: [Tapestry-developer] Incorrect document type; expected specification but received component-specification.

"-//Howard Lewis Ship//Tapestry Specification 1.3//EN" 
 
I need to look at that code more carefully; it should throw a more useful exception when the PUBLIC ID is not recognized.  Please add a bug.
----- Original Message -----
Sent: Monday, October 14, 2002 4:26 PM
Subject: [Tapestry-developer] Incorrect document type; expected specification but received component-specification.

This code work with Tapestry_1_2. but I am having trouble with Tapestry_1_3.dtd.   Anyone out there with an idea ?  I attached the full html of the exception.
 
*** ApplicationWrapper.jwc ************
 
<?xml  version="1.0"  encoding="UTF-8" ?>
<!DOCTYPE  component-specification  PUBLIC  "-//Howard Ship//Tapestry Specification 1.3//EN"  "http://tapestry.sf.net/dtd/Tapestry_1_3.dtd" >
 
<component-specification  class="_cwg$ais.JWC.ApplicationWrapper"  allow-informal-parameters="no"  allow-body="yes" >
 
    <description>Application Wrapper</description>
 
    <parameter  name="title"  java-type="String"  required="yes" >
        <description>Application Title</description>
    </parameter>
 
<!-- -->
   
    <component  id="tapestryInsertWrapped"  type="InsertWrapped" />
 
</component-specification>
***************
An exception has occured.

You may continue by restarting the session.

net.sf.tapestry.ApplicationRuntimeException
Could not parse specification /_cwg$ais/JWC/ApplicationWrapper.jwc.
 
net.sf.tapestry.util.xml.DocumentParseException
Incorrect document type; expected specification but received component-specification.
column: 0
lineNumber: 0
resourcePath: /_cwg$ais/JWC/ApplicationWrapper.jwc
Stack Trace:
  • net.sf.tapestry.util.xml.AbstractDocumentParser.validateRootElement(AbstractDocumentParser.java:267)
  • net.sf.tapestry.parse.SpecificationParser.parseComponentSpecification(SpecificationParser.java:426)
  • net.sf.tapestry.engine.DefaultSpecificationSource.parseSpecification(DefaultSpecificationSource.java:169)
  • net.sf.tapestry.engine.DefaultSpecificationSource.getComponentSpecification(DefaultSpecificationSource.java:331)
  • net.sf.tapestry.engine.Namespace.locateComponentSpecification(Namespace.java:258)
  • net.sf.tapestry.engine.Namespace.getComponentSpecification(Namespace.java:180)
  • net.sf.tapestry.pageload.PageLoader$ComponentResolver.<init>(PageLoader.java:147)
  • net.sf.tapestry.pageload.PageLoader$ComponentResolver.<init>(PageLoader.java:108)
  • net.sf.tapestry.pageload.PageLoader.constructComponent(PageLoader.java:334)
  • net.sf.tapestry.pageload.PageLoader.loadPage(PageLoader.java:497)
  • net.sf.tapestry.pageload.PageSource.getPage(PageSource.java:219)
  • net.sf.tapestry.engine.RequestCycle.getPage(RequestCycle.java:226)
  • net.sf.tapestry.engine.HomeService.service(HomeService.java:70)
  • net.sf.tapestry.engine.AbstractEngine.service(AbstractEngine.java:746)
  • net.sf.tapestry.ApplicationServlet.doService(ApplicationServlet.java:175)
  • net.sf.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:144)
  • javax.servlet.http.HttpServlet.service(HttpServlet.java:195)
  • javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
  • javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
  • com.evermind._bxb._crd(.:501)
  • com.evermind._bxb._ukb(.:170)
  • com.evermind._cn._uab(.:576)
  • com.evermind._cn._fm(.:189)
  • com.evermind._bs.run(.:62)
*************
 
 
Craig J. Gregory
Dir. of Information Srevices
Blue Mountain Community College
PO Box 100
2411 NW Carden Av.
Pendleton, OR 97801
(541) 278-5825

Reply via email to