That looks like a bug to me. When I envisioned multi-application support, I
expected it to work the way you are stating.

Try creating a .page file for each page, even if it is empty (in
WEB-INF/browse and WEB-INF/admin).  That may "shock" Tapestry into finding
the template properly.

On 11/27/06, Titi Wangsa <[EMAIL PROTECTED]> wrote:

in the page
http://tapestry.apache.org/tapestry4/UsersGuide/configuration.html

there under the section
Web deployment descriptor

there is this line

As /WEB-INF/name/name.application. The name is the servlet name. This
location is only used in the rare case of a single WAR containing
multiple Tapestry applications.

i've googled "multiple tapestry war" but most results lead me to portlest.

this is a portion of my web.xml
        <servlet>
                <servlet-name>browse</servlet-name>
                <servlet-class>
                        org.apache.tapestry.ApplicationServlet
                </servlet-class>
                <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet>
                <servlet-name>admin</servlet-name>
                <servlet-class>
                        org.apache.tapestry.ApplicationServlet
                </servlet-class>
                <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet-mapping>
                <servlet-name>browse</servlet-name>
                <url-pattern>/browse/app</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
                <servlet-name>admin</servlet-name>
                <url-pattern>/admin/app</url-pattern>
        </servlet-mapping>

as you can see, i've setup 2 servlets
i also have a
WebContext/browse/Home.html
WebContext/WEB-INF/browse/Home.properties

WebContext/admin/Home.html
WebContext/WEB-INF/admin/Home.properties

the pages display properly if i use this url
/<context-root>/browse/app?service=page&page=browse/Home
but a page not found error occurs when i use this
/hiburankini/browse/app?service=page&page=Home
moreover
this link display a page in the admin module
http://localhost:8080/hiburankini/browse/app?service=page&page=admin/Home

checklist on two tapestry application in a single application context
1. Two Servlet with two different names and two servlet mappings
(/admin/app and /browse/app)

2. Two directories to put the html files (/admin/Home.html and
/browse/Home.html)
3. Two directories to put the hivemodule.xml file
(/WEB-INF/admin/hivemodule.xml and /WEB-INF/browse/hivemodule.xml)
The contents of the hivemodule files are rather empty
<?xml version="1.0"?>
<module id="admin" version="0.0.1" package="mypackage">
</module>
and
<?xml version="1.0"?>
<module id="browse" version="0.0.1" package="mypackage">
</module>
i have no idea what the package setting is used for


what i want is
http://localhost:8080/myapp/admin/app?service=page&page=Home
to display the admin home
and
http://localhost:8080/myapp/browse/app?service=page&page=Home
to display the browse home

did i miss anything?

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




--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

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

Reply via email to