I've been reading up a bit on tapestry-ioc...
http://tapestry.apache.org/tapestry5/tapestry-ioc/run.html
On Jun 18, 2010, at 2:29 PM, Thiago H. de Paula Figueiredo wrote:
On Fri, 18 Jun 2010 16:13:49 -0300, Robert Hailey <rob...@cmediacorp.com
> wrote:
From my own experience & reading up on this exception on the lists,
I gather that there is an issue with finding the tapestry-hibernate
(or hibernate) classes at runtime because they have not registered
themselves in the ioc registry. Is this correct?
I wouldn't put it that way. I'd say that, for some reason, the
HibernateSessionManager service wasn't defined.
Sounds right.
If so, how does a service technically get into the registry? b/c
the initial startup appears to work (and lists application-specific
services!).
If not, what makes HibernateSessionManager different from
tapestry's built-in services or those of the web-app?
It comes from a different source (another JAR), nothing beyond that.
Really? Surely there is a difference somewhere!
Here is my (basic) understanding so far:
tapestry-filter:
creates a ioc-registry
(it already contains the base-ioc services)
it adds the tapestry services
it adds (or knows-the-path-to) the services from "app.services.*"
it adds my AppModule ()
I suspect it is a jar-finding issue, quoting from ioc documentation...
Building the Default Registry
The default registry is available by invoking the static method
IOCUtilities.buildDefaultRegistry(). This method builds a Registry
using autoloading logic, where modules to load are identified via a
JAR Manifest entry.
In addition, the JVM system property tapestry.modules (if specified)
is a list of additional module classes to load. This is often used
in development, where tests may be executed against the local
classes, not JARs, and so there no manifest to read.
So is it the case that tapestry-hibernate-*.jar presence in the web-
app folder is what ultimately prompts it's registration?
--
Robert Hailey
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant,
developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org