I'd do a careful analysis of the XML parser.  There was a similar problem
using Resin recently that was traced back to a bug in the Resin XML parser.

I suspect what's happening is that the XML parser is returning a non-null
value (perhaps an empty string) for unspecified attributes of some entities.
That makes it think that both type and copy-of are specified in the same
<component> element, which is a no-no.

----- Original Message -----
From: "Richard Lewis-Shell" <[EMAIL PROTECTED]>
To: "Tapestry Developer (E-mail)" <[EMAIL PROTECTED]>
Sent: Wednesday, May 29, 2002 3:33 PM
Subject: [Tapestry-developer] Can't deploy the tutorials - "Contained
component contains both type and copy-of "


We are having problems deploying our application into WebSphere5 (beta) - so
we tried the Tapestry tutorial.war, and it gives the same error - has anyone
seen this before?  The HelloWorld application is fine, but it seems any
tutorial applications with components (ie. all but HelloWorld) are giving
this error.  (We are using Tapestry 2.0.1 BTW)

Exceptions:

com.primix.tapestry.ApplicationRuntimeException: Failed to acquire page
Home.

com.primix.tapestry.PageLoaderException: Could not parse specification
/tutorial/simple/Home.jwc.
   pageName: Home

com.primix.tapestry.ResourceUnavailableException: Could not parse
specification /tutorial/simple/Home.jwc.

com.primix.tapestry.util.xml.DocumentParseException: Contained component
insertDate contains both type and copy-of attributes.
   lineNumber: 0
   column: 0
com.primix.tapestry.parse.SpecificationParser.convertComponent_2(Specificati
onParser.java:1092)
com.primix.tapestry.parse.SpecificationParser.convertComponentSpecification_
2(SpecificationParser.java:901)
com.primix.tapestry.parse.SpecificationParser.convertComponentSpecification(
SpecificationParser.java:276)
com.primix.tapestry.parse.SpecificationParser.parseComponentSpecification(Sp
ecificationParser.java:231)
com.primix.tapestry.engine.DefaultSpecificationSource.parseSpecification(Def
aultSpecificationSource.java:188)
com.primix.tapestry.engine.DefaultSpecificationSource.getSpecification(Defau
ltSpecificationSource.java:137)
com.primix.tapestry.pageload.PageLoader.loadPage(PageLoader.java:429)
com.primix.tapestry.pageload.PageSource.getPage(PageSource.java:158)
com.primix.tapestry.engine.RequestCycle.getPage(RequestCycle.java:234)
com.primix.tapestry.engine.HomeService.service(HomeService.java:70)
com.primix.tapestry.engine.AbstractEngine.service(AbstractEngine.java:706)
com.primix.tapestry.ApplicationServlet.doService(ApplicationServlet.java:203
)
com.primix.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:168)
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
...

Any ideas?

Richard


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to