Re: Problems with Tapestry 5 and JBoss

2007-02-17 Thread Geoff Callender
I've hit the same problem had the same problem with Tapestry 5 in  
JBoss 4.0.5.  When I put the
Tapestry jars in the deployed file I get the stack trace below.  It  
shows that tapestry ioc is loaded up but
for some reason the class loader can't find org/apache/tapestry/ 
services/ApplicationGlobals.


I had tapestry-ioc.jar and tapestry-core.jar in an exploded WAR's WEB- 
INF/lib/, inside an exploded EAR

file.

13:34:00,549 INFO  [TomcatDeployer] deploy, ctxPath=/jumpstart5-min,  
warUrl=file:/blah/blah/

jumpstart5-min/exploded/jumpstart5-min.ear/jumpstart5-min.war/
13:34:01,509 ERROR [[/jumpstart5-min]] Exception starting filter app
java.lang.RuntimeException: Error invoking service builder method
org.apache.tapestry.services.TapestryModule.buildInfrastructure(Log,  
Collection) (for service

'tapestry.Infrastructure'): Error invoking service contribution method
org.apache.tapestry.services.TapestryModule.contributeInfrastructure 
(Configuration, ServiceLocator,
TypeCoercer, PropertyAccess): Error building service proxy for  
service 'tapestry.ApplicationGlobals' (at
org.apache.tapestry.services.TapestryModule.buildApplicationGlobals 
()): Unable to create class
$ApplicationGlobals_110d2b2dad0: by java.lang.NoClassDefFoundError:  
org/apache/tapestry/services/

ApplicationGlobals
at  
org.apache.tapestry.ioc.internal.ServiceBuilderMethodInvoker.createObjec 
t

(ServiceBuilderMethodInvoker.java:263)
at  
org.apache.tapestry.ioc.internal.SingletonServiceLifecycle.createService

(SingletonServiceLifecycle.java:31)
at  
org.apache.tapestry.ioc.internal.LifecycleWrappedServiceCreator.createOb 
ject

(LifecycleWrappedServiceCreator.java:50)
at  
org.apache.tapestry.ioc.internal.InterceptorStackBuilder.createObject

(InterceptorStackBuilder.java:55)
at  
org.apache.tapestry.ioc.internal.OneShotServiceCreator.createObject

(OneShotServiceCreator.java:56)
at $Infrastructure_110d2b2dacd._delegate 
($Infrastructure_110d2b2dacd.java)
at $Infrastructure_110d2b2dacd.setMode 
($Infrastructure_110d2b2dacd.java)
at  
org.apache.tapestry.internal.TapestryAppInitializer.setupServices 
(TapestryAppInitializer.java:

118)
at org.apache.tapestry.internal.TapestryAppInitializer. 
(TapestryAppInitializer.java:69)
at org.apache.tapestry.internal.TapestryAppInitializer. 
(TapestryAppInitializer.java:56)
at org.apache.tapestry.TapestryFilter.init 
(TapestryFilter.java:70)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter 
(ApplicationFilterConfig.java:223)
at  
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef 
(ApplicationFilterConfig.java:304)
at org.apache.catalina.core.ApplicationFilterConfig. 
(ApplicationFilterConfig.java:77)
at org.apache.catalina.core.StandardContext.filterStart 
(StandardContext.java:3634)
at org.apache.catalina.core.StandardContext.start 
(StandardContext.java:4217)
at org.apache.catalina.core.ContainerBase.addChildInternal 
(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild 
(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild 
(StandardHost.java:524)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.commons.modeler.BaseModelMBean.invoke 
(BaseModelMBean.java:503)
at org.jboss.mx.server.RawDynamicInvoker.invoke 
(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke 
(MBeanServerImpl.java:659)
at org.apache.catalina.core.StandardContext.init 
(StandardContext.java:5052)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.commons.modeler.BaseModelMBean.invoke 
(BaseModelMBean.java:503)
at org.jboss.mx.server.RawDynamicInvoker.invoke 
(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke 
(MBeanServerImpl.java:659)
at  
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal 
(TomcatDeployer.java:297)
at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy 
(TomcatDeployer.java:103)
at org.jboss.web.AbstractWebDeployer.start 
(AbstractWebDeployer.java:371)

at org.jboss.web.WebModule.startModule(WebModule.java:83)
at org.jboss.web.WebModule.startService(WebModule.java:61)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart 
(ServiceMBeanSupport.java:289)
at  

Re: Tapestry 5-IoC will support Hivemind?

2007-02-17 Thread Howard Lewis Ship

Anything is possible, but the path of least resistance is the Tapestry
5 IOC container. We'll certainly be integrating Spring, much as with
T4, and HiveMind should be a no-brainer as well.

On 2/15/07, Dmitriy Vsekhvalnov <[EMAIL PROTECTED]> wrote:

Hello,

 will Tapestry 5 support hivemind integration? I.E. will it be able to
inject HiveMind services to the Tapestry5  pages?

  And if so, is it possible to make Registry instance to use to be
configurable? I mean to provide externally instantiated Registry to Tapestry
5 to inject services from?




--
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

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



Re: Tapestry5: Passing parameters to pages

2007-02-17 Thread Carlos Curotto

Thanks for the quickly reply howard.  I will wait for the documentation.

Thanks!

--
Carlos Curotto