You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jim Menard <ji...@io.com> on 2004/02/11 11:27:03 UTC
.application file problem
I'm trying to use a contrib component for the first time. At first, I
saw the exception
org.apache.tapestry.ApplicationRuntimeException
Library 'contrib' not found in application namespace.
After reading the archives, I added this to my .application file:
<library id="contrib"
specification-path="/org/apache/tapestry/contrib/Contrib.library"/>
Now I see the error message
javax.servlet.ServletException: Unable to parse application
specification classpath:/PhotoWiki.application.
Any suggestions?
Here's the top of my .application file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC
"-//Howard Lewis Ship//Tapestry Specification 1.3//EN"
"http://tapestry.sf.net/dtd/Tapestry_1_3.dtd">
<application name="Photowiki"
engine-class="org.apache.tapestry.engine.BaseEngine">
<library id="contrib"
specification-path="/org/apache/tapestry/contrib/Contrib.library"/>
<property
name="org.apache.tapestry.visit-
class">com.preclick.photowiki.tapestry.Visit</property>
<page name="Home" specification-path="/tapestry/Home.page"/>
<!-- ... -->
</application>
Thank you for your help.
Jim
--
Jim Menard, jimm@io.com, http://www.io.com/~jimm/
"You might do well to heed the bumper sticker on a laser I had once:
'do not look into laser with remaining eye.'" -- Daniel E. Macks
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: .application file problem
Posted by Jim Menard <ji...@io.com>.
Richard,
> According to the DTD, all property tags must come before any library,
> page, etc tags, so try:
[snip]
>
> <property name="org.apache.tapestry.visit-
> class">com.preclick.photowiki.tapestry.Visit</property>
>
> <library id="contrib"
>
> specification-path="/org/apache/tapestry/contrib/Contrib.library"/>
[snip]
That was it. Thank you very much.
Jim
--
Jim Menard, jimm@io.com, http://www.io.com/~jimm/
"If at first you don't succeed, don't go skydiving." -- Unknown
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: .application file problem
Posted by Richard Kirby <rb...@capdm.com>.
Jim Menard wrote:
> I'm trying to use a contrib component for the first time. At first, I
> saw the exception
>
> org.apache.tapestry.ApplicationRuntimeException
> Library 'contrib' not found in application namespace.
>
> After reading the archives, I added this to my .application file:
>
> <library id="contrib"
>
> specification-path="/org/apache/tapestry/contrib/Contrib.library"/>
>
> Now I see the error message
>
> javax.servlet.ServletException: Unable to parse application
> specification classpath:/PhotoWiki.application.
>
> Any suggestions?
>
> Here's the top of my .application file:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE application PUBLIC
> "-//Howard Lewis Ship//Tapestry Specification 1.3//EN"
> "http://tapestry.sf.net/dtd/Tapestry_1_3.dtd">
>
> <application name="Photowiki"
> engine-class="org.apache.tapestry.engine.BaseEngine">
>
> <library id="contrib"
>
> specification-path="/org/apache/tapestry/contrib/Contrib.library"/>
>
> <property name="org.apache.tapestry.visit-
> class">com.preclick.photowiki.tapestry.Visit</property>
>
> <page name="Home" specification-path="/tapestry/Home.page"/>
> <!-- ... -->
> </application>
>
> Thank you for your help.
>
> Jim
According to the DTD, all property tags must come before any library,
page, etc tags, so try:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC
"-//Howard Lewis Ship//Tapestry Specification 1.3//EN"
"http://tapestry.sf.net/dtd/Tapestry_1_3.dtd">
<application name="Photowiki"
engine-class="org.apache.tapestry.engine.BaseEngine">
<property name="org.apache.tapestry.visit-
class">com.preclick.photowiki.tapestry.Visit</property>
<library id="contrib"
specification-path="/org/apache/tapestry/contrib/Contrib.library"/>
<page name="Home" specification-path="/tapestry/Home.page"/>
<!-- ... -->
</application>
Richard.
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org