Do I then create multiple filters in the web.xml for each sub-app? Or just one for /*? Seems to require multiple filter definitions, but then other stuff fails.

With separate filters for each sub-level of the URL, I get:

java.lang.RuntimeException: No service implements the interface org.springframework.security.userdetails.UserDetailsService.

Which is from Tapestry Spring Services saying it can't find the service, which is defined in the AppModule.

I can see in the log that it does load three applications, but my DAOs and UserDetailsService are not listed under the sub-applications. I assume from the error and the lack of output, that it is not sucking in the common module's contributions?

Further, it's claiming I have multiple IoCs. Removing the extra filters from the web.xml eliminates the multiple IoC issue, but doesn't load my sub-apps. Despite the @SubModule, they don't seem to be loading.

Norman Franke
Answering Service for Directors, Inc.
www.myasd.com



On Dec 7, 2009, at 1:01 PM, Howard Lewis Ship wrote:

Create a common module, and in each app use @SubModule on the app's
AppModule to suck in the CommonModule services and contributions.

On Mon, Dec 7, 2009 at 9:44 AM, Norman Franke <nor...@myasd.com> wrote:
I'd like to have a single installation of T5 run two apps that will share a great deal of code. While I could have separate WAR files and deploy them to Tomcat, that would take more resources and prevent some level of interaction between them. So, is it possible to have two AppModules in a WAR? Then depending on the URL, it would appear as if that was the only app running. They'll share tons of database objects, DAOs, etc. Some users will have access to both, so I want to keep them in the same session. As a hack, I could have the Start page redirect depending on what type they are, but that
seems less than desirable.

Norman Franke
Answering Service for Directors, Inc.
www.myasd.com







--
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


Reply via email to