Re: Problems with Tapestry 5 and JBoss
Have you tried building lastest from SVN? I was able to get things working locally (Mac OS X, JBoss 4.0.5). The solution I came up with is documented at the tapestry5 site: use Maven to package your classes into an additional jar in WEB-INF/lib. On 2/22/07, Aslak Gronflaten <[EMAIL PROTECTED]> wrote: Hi again, I tried hacking around in the tapestry code, replacing the part that dynamically finds the page classes with some hardcoding, to see if that would help, but alas, it just brings me to the next error, which is the following: java.lang.RuntimeException: No object of type org.apache.tapestry.services.Heartbeat is available from the Environment. Available types are org.apache.tapestry.MarkupWriter, org.apache.tapestry.ValidationDecorator, org.apache.tapestry.dom.Document, org.apache.tapestry.services.Heartbeat, org.apache.tapestry.services.PageRenderSupport. org.apache.tapestry.internal.services.EnvironmentImpl.peekRequired(EnvironmentImpl.java:73) $Environment_110ec548182.peekRequired($Environment_110ec548182.java) $Environment_110ec548129.peekRequired($Environment_110ec548129.java) Since I'm under pressure, I've had to reimplement the app (a small one, fortunately) in tapestry 4, which, although it used to be nice, is actually quite painful once you've tasted tapestry 5. So keep up the good work on Tap 5, but please, it has to work on tomcat and jboss - a pretty big share of the java servers out there. Filing bug reports with the Tomcat crew isn't enough either - it has to work on the old versions as well - not all hosting partners are willing to upgrade their versions to the bleeding egde. Aslak On 2/20/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > Sorry about your deadline and thanks for taking it as far as you have. > Obviously, JBoss compatibility is pretty critical. Something about > how JBoss explodes the WAR for deployment is wierd and I'm going to > have to debug it to add some kind of work around. > > I've added a bug and will look into this this morning. > > On 2/19/07, Aslak Gronflaten <[EMAIL PROTECTED]> wrote: > > On 2/18/07, James Carman <[EMAIL PROTECTED]> wrote: > > > Is Javassist a part of the "shared" classpath in JBoss 4.x? > > > > > > Yes, javassist is the culprit for that part of the problem. Exchanging > > the one that comes with jboss with a newer one ( javassist-3.3.ga.jar > > ) gets me a little bit further. > > But then I get this: > > > > 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.ApplicationStateManager' (at > > org.apache.tapestry.services.TapestryModule.buildApplicationStateManager(Map, > > ApplicationStatePersistenceStrategySource)): Unable to lookup class > > org.apache.tapestry.services.ApplicationStateManager: > > org.apache.tapestry.services.ApplicationStateManager > > at org.apache.tapestry.ioc.internal.ServiceBuilderMethodInvoker.createObject(ServiceBuilderMethodInvoker.java:263) > > > > > > which is I get when the tapestry jars are inside the war file. I can > > dump them in the jboss lib to solve it (but I'm not allowed on my > > webhotel), or change the jboss configuration, by setting this line > > > > true > > > > in deploy/jbossweb-tomcat55.sar/META-INF/jboss-service.xml > > > > That will allow it to actually deploy the war file without errors. > > However, there's still a big problem to which I've found no solution, > > and that is when actually trying to see a page, I get this error: > > > > java.lang.RuntimeException: java.io.FileNotFoundException: > > /usr/local/jboss/server/default/tmp/deploy/tmp29557provis-exp.war/WEB-INF/classes/com/ec/tapfive/pages > > (No such file or directory) > > org.apache.tapestry.internal.services.ComponentClassLocatorImpl.locateComponentClassNames(ComponentClassLocatorImpl.java:63) > > org.apache.tapestry.internal.services.ComponentClassResolverImpl.fillNameToClassNameMap(ComponentClassResolverImpl.java:156) > > org.apache.tapestry.internal.services.ComponentClassResolverImpl.rebuild(ComponentClassResolverImpl.java:141) > > org.apache.tapestry.internal.services.ComponentClassResolverImpl.rebuild(ComponentClassResolverImpl.java:124) > > org.apache.tapestry.internal.services.ComponentClassResolverImpl.locate(ComponentClassResolverImpl.java:236) > > org.apache.tapestry.internal.services.ComponentClassResolverImpl.resolvePageNameToClassName(ComponentClassResolverImpl.java:176) > > .. > > > > > > This stacktrace is on osx - on windows it actually also says > > (permission denied) with the FileNotFoundException. > > > > Does anyo
Re: Problems with Tapestry 5 and JBoss
Hi again, I tried hacking around in the tapestry code, replacing the part that dynamically finds the page classes with some hardcoding, to see if that would help, but alas, it just brings me to the next error, which is the following: java.lang.RuntimeException: No object of type org.apache.tapestry.services.Heartbeat is available from the Environment. Available types are org.apache.tapestry.MarkupWriter, org.apache.tapestry.ValidationDecorator, org.apache.tapestry.dom.Document, org.apache.tapestry.services.Heartbeat, org.apache.tapestry.services.PageRenderSupport. org.apache.tapestry.internal.services.EnvironmentImpl.peekRequired(EnvironmentImpl.java:73) $Environment_110ec548182.peekRequired($Environment_110ec548182.java) $Environment_110ec548129.peekRequired($Environment_110ec548129.java) Since I'm under pressure, I've had to reimplement the app (a small one, fortunately) in tapestry 4, which, although it used to be nice, is actually quite painful once you've tasted tapestry 5. So keep up the good work on Tap 5, but please, it has to work on tomcat and jboss - a pretty big share of the java servers out there. Filing bug reports with the Tomcat crew isn't enough either - it has to work on the old versions as well - not all hosting partners are willing to upgrade their versions to the bleeding egde. Aslak On 2/20/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: Sorry about your deadline and thanks for taking it as far as you have. Obviously, JBoss compatibility is pretty critical. Something about how JBoss explodes the WAR for deployment is wierd and I'm going to have to debug it to add some kind of work around. I've added a bug and will look into this this morning. On 2/19/07, Aslak Gronflaten <[EMAIL PROTECTED]> wrote: > On 2/18/07, James Carman <[EMAIL PROTECTED]> wrote: > > Is Javassist a part of the "shared" classpath in JBoss 4.x? > > > Yes, javassist is the culprit for that part of the problem. Exchanging > the one that comes with jboss with a newer one ( javassist-3.3.ga.jar > ) gets me a little bit further. > But then I get this: > > 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.ApplicationStateManager' (at > org.apache.tapestry.services.TapestryModule.buildApplicationStateManager(Map, > ApplicationStatePersistenceStrategySource)): Unable to lookup class > org.apache.tapestry.services.ApplicationStateManager: > org.apache.tapestry.services.ApplicationStateManager > at org.apache.tapestry.ioc.internal.ServiceBuilderMethodInvoker.createObject(ServiceBuilderMethodInvoker.java:263) > > > which is I get when the tapestry jars are inside the war file. I can > dump them in the jboss lib to solve it (but I'm not allowed on my > webhotel), or change the jboss configuration, by setting this line > > true > > in deploy/jbossweb-tomcat55.sar/META-INF/jboss-service.xml > > That will allow it to actually deploy the war file without errors. > However, there's still a big problem to which I've found no solution, > and that is when actually trying to see a page, I get this error: > > java.lang.RuntimeException: java.io.FileNotFoundException: > /usr/local/jboss/server/default/tmp/deploy/tmp29557provis-exp.war/WEB-INF/classes/com/ec/tapfive/pages > (No such file or directory) > org.apache.tapestry.internal.services.ComponentClassLocatorImpl.locateComponentClassNames(ComponentClassLocatorImpl.java:63) > org.apache.tapestry.internal.services.ComponentClassResolverImpl.fillNameToClassNameMap(ComponentClassResolverImpl.java:156) > org.apache.tapestry.internal.services.ComponentClassResolverImpl.rebuild(ComponentClassResolverImpl.java:141) > org.apache.tapestry.internal.services.ComponentClassResolverImpl.rebuild(ComponentClassResolverImpl.java:124) > org.apache.tapestry.internal.services.ComponentClassResolverImpl.locate(ComponentClassResolverImpl.java:236) > org.apache.tapestry.internal.services.ComponentClassResolverImpl.resolvePageNameToClassName(ComponentClassResolverImpl.java:176) > .. > > > This stacktrace is on osx - on windows it actually also says > (permission denied) with the FileNotFoundException. > > Does anyone have any idea on how to get around this? > All these errors are replicateable with any minimal tapestry 5 > application (try the tapestry-simple maven2 magic) on a standard > jboss, and thus we should try to find a solution. Also, my deadline is > tomorrow ;) > > Thanks, > Aslak > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional comm
Re: Problems with Tapestry 5 and JBoss
Sorry about your deadline and thanks for taking it as far as you have. Obviously, JBoss compatibility is pretty critical. Something about how JBoss explodes the WAR for deployment is wierd and I'm going to have to debug it to add some kind of work around. I've added a bug and will look into this this morning. On 2/19/07, Aslak Gronflaten <[EMAIL PROTECTED]> wrote: On 2/18/07, James Carman <[EMAIL PROTECTED]> wrote: > Is Javassist a part of the "shared" classpath in JBoss 4.x? Yes, javassist is the culprit for that part of the problem. Exchanging the one that comes with jboss with a newer one ( javassist-3.3.ga.jar ) gets me a little bit further. But then I get this: 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.ApplicationStateManager' (at org.apache.tapestry.services.TapestryModule.buildApplicationStateManager(Map, ApplicationStatePersistenceStrategySource)): Unable to lookup class org.apache.tapestry.services.ApplicationStateManager: org.apache.tapestry.services.ApplicationStateManager at org.apache.tapestry.ioc.internal.ServiceBuilderMethodInvoker.createObject(ServiceBuilderMethodInvoker.java:263) which is I get when the tapestry jars are inside the war file. I can dump them in the jboss lib to solve it (but I'm not allowed on my webhotel), or change the jboss configuration, by setting this line true in deploy/jbossweb-tomcat55.sar/META-INF/jboss-service.xml That will allow it to actually deploy the war file without errors. However, there's still a big problem to which I've found no solution, and that is when actually trying to see a page, I get this error: java.lang.RuntimeException: java.io.FileNotFoundException: /usr/local/jboss/server/default/tmp/deploy/tmp29557provis-exp.war/WEB-INF/classes/com/ec/tapfive/pages (No such file or directory) org.apache.tapestry.internal.services.ComponentClassLocatorImpl.locateComponentClassNames(ComponentClassLocatorImpl.java:63) org.apache.tapestry.internal.services.ComponentClassResolverImpl.fillNameToClassNameMap(ComponentClassResolverImpl.java:156) org.apache.tapestry.internal.services.ComponentClassResolverImpl.rebuild(ComponentClassResolverImpl.java:141) org.apache.tapestry.internal.services.ComponentClassResolverImpl.rebuild(ComponentClassResolverImpl.java:124) org.apache.tapestry.internal.services.ComponentClassResolverImpl.locate(ComponentClassResolverImpl.java:236) org.apache.tapestry.internal.services.ComponentClassResolverImpl.resolvePageNameToClassName(ComponentClassResolverImpl.java:176) .. This stacktrace is on osx - on windows it actually also says (permission denied) with the FileNotFoundException. Does anyone have any idea on how to get around this? All these errors are replicateable with any minimal tapestry 5 application (try the tapestry-simple maven2 magic) on a standard jboss, and thus we should try to find a solution. Also, my deadline is tomorrow ;) Thanks, Aslak - 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with Tapestry 5 and JBoss
Does that package exist (com.ec.tap5.pages)? On 2/20/07, Aslak Gronflaten <[EMAIL PROTECTED]> wrote: On 2/18/07, James Carman <[EMAIL PROTECTED]> wrote: > Is Javassist a part of the "shared" classpath in JBoss 4.x? Yes, javassist is the culprit for that part of the problem. Exchanging the one that comes with jboss with a newer one ( javassist-3.3.ga.jar ) gets me a little bit further. But then I get this: 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.ApplicationStateManager' (at org.apache.tapestry.services.TapestryModule.buildApplicationStateManager(Map, ApplicationStatePersistenceStrategySource)): Unable to lookup class org.apache.tapestry.services.ApplicationStateManager: org.apache.tapestry.services.ApplicationStateManager at org.apache.tapestry.ioc.internal.ServiceBuilderMethodInvoker.createObject(ServiceBuilderMethodInvoker.java:263) which is I get when the tapestry jars are inside the war file. I can dump them in the jboss lib to solve it (but I'm not allowed on my webhotel), or change the jboss configuration, by setting this line true in deploy/jbossweb-tomcat55.sar/META-INF/jboss-service.xml That will allow it to actually deploy the war file without errors. However, there's still a big problem to which I've found no solution, and that is when actually trying to see a page, I get this error: java.lang.RuntimeException: java.io.FileNotFoundException: /usr/local/jboss/server/default/tmp/deploy/tmp29557provis-exp.war/WEB-INF/classes/com/ec/tapfive/pages (No such file or directory) org.apache.tapestry.internal.services.ComponentClassLocatorImpl.locateComponentClassNames(ComponentClassLocatorImpl.java:63) org.apache.tapestry.internal.services.ComponentClassResolverImpl.fillNameToClassNameMap(ComponentClassResolverImpl.java:156) org.apache.tapestry.internal.services.ComponentClassResolverImpl.rebuild(ComponentClassResolverImpl.java:141) org.apache.tapestry.internal.services.ComponentClassResolverImpl.rebuild(ComponentClassResolverImpl.java:124) org.apache.tapestry.internal.services.ComponentClassResolverImpl.locate(ComponentClassResolverImpl.java:236) org.apache.tapestry.internal.services.ComponentClassResolverImpl.resolvePageNameToClassName(ComponentClassResolverImpl.java:176) .. This stacktrace is on osx - on windows it actually also says (permission denied) with the FileNotFoundException. Does anyone have any idea on how to get around this? All these errors are replicateable with any minimal tapestry 5 application (try the tapestry-simple maven2 magic) on a standard jboss, and thus we should try to find a solution. Also, my deadline is tomorrow ;) Thanks, Aslak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with Tapestry 5 and JBoss
On 2/18/07, James Carman <[EMAIL PROTECTED]> wrote: Is Javassist a part of the "shared" classpath in JBoss 4.x? Yes, javassist is the culprit for that part of the problem. Exchanging the one that comes with jboss with a newer one ( javassist-3.3.ga.jar ) gets me a little bit further. But then I get this: 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.ApplicationStateManager' (at org.apache.tapestry.services.TapestryModule.buildApplicationStateManager(Map, ApplicationStatePersistenceStrategySource)): Unable to lookup class org.apache.tapestry.services.ApplicationStateManager: org.apache.tapestry.services.ApplicationStateManager at org.apache.tapestry.ioc.internal.ServiceBuilderMethodInvoker.createObject(ServiceBuilderMethodInvoker.java:263) which is I get when the tapestry jars are inside the war file. I can dump them in the jboss lib to solve it (but I'm not allowed on my webhotel), or change the jboss configuration, by setting this line true in deploy/jbossweb-tomcat55.sar/META-INF/jboss-service.xml That will allow it to actually deploy the war file without errors. However, there's still a big problem to which I've found no solution, and that is when actually trying to see a page, I get this error: java.lang.RuntimeException: java.io.FileNotFoundException: /usr/local/jboss/server/default/tmp/deploy/tmp29557provis-exp.war/WEB-INF/classes/com/ec/tapfive/pages (No such file or directory) org.apache.tapestry.internal.services.ComponentClassLocatorImpl.locateComponentClassNames(ComponentClassLocatorImpl.java:63) org.apache.tapestry.internal.services.ComponentClassResolverImpl.fillNameToClassNameMap(ComponentClassResolverImpl.java:156) org.apache.tapestry.internal.services.ComponentClassResolverImpl.rebuild(ComponentClassResolverImpl.java:141) org.apache.tapestry.internal.services.ComponentClassResolverImpl.rebuild(ComponentClassResolverImpl.java:124) org.apache.tapestry.internal.services.ComponentClassResolverImpl.locate(ComponentClassResolverImpl.java:236) org.apache.tapestry.internal.services.ComponentClassResolverImpl.resolvePageNameToClassName(ComponentClassResolverImpl.java:176) .. This stacktrace is on osx - on windows it actually also says (permission denied) with the FileNotFoundException. Does anyone have any idea on how to get around this? All these errors are replicateable with any minimal tapestry 5 application (try the tapestry-simple maven2 magic) on a standard jboss, and thus we should try to find a solution. Also, my deadline is tomorrow ;) Thanks, Aslak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with Tapestry 5 and JBoss
Is Javassist a part of the "shared" classpath in JBoss 4.x? On 2/18/07, Geoff Callender <[EMAIL PROTECTED]> wrote: 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.Ser
Re: Problems with Tapestry 5 and JBoss
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: Problems with Tapestry 5 and JBoss
Sorry, just haven't had a second to try this. I'm sure it's a matter of security or other configuration. On 2/16/07, Aslak Gronflaten <[EMAIL PROTECTED]> wrote: Hi, I'm having problems deploying tapestry 5 applications on JBoss (4.5 at least). The first problem was that the tapestry jars need to be in the servers lib folder, not inside the war file, or the classloader would not be permitted to instantiate services. After I found that out, I moved them out (although this is not a solution for deployment on the web hotel in the end). This made jboss actually deploy the application, but when trying to access any page, it fails with FileNotFoundException in ComponentClassLocatorImpl - access denied when trying to read a page. Are there any known workarounds to this? Note that the exception points to a temp folder where jboss has unpacked the war file. Don't know if that matters. Deploying to tomcat 5.5 and jetty is not a problem with the same war file, so either jboss must be configured in some way (how?), or is not compatible with the tapestry magic... Thanks for any pointers, Aslak - 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with Tapestry 5 and JBoss
Hi, I'm having problems deploying tapestry 5 applications on JBoss (4.5 at least). The first problem was that the tapestry jars need to be in the servers lib folder, not inside the war file, or the classloader would not be permitted to instantiate services. After I found that out, I moved them out (although this is not a solution for deployment on the web hotel in the end). This made jboss actually deploy the application, but when trying to access any page, it fails with FileNotFoundException in ComponentClassLocatorImpl - access denied when trying to read a page. Are there any known workarounds to this? Note that the exception points to a temp folder where jboss has unpacked the war file. Don't know if that matters. Deploying to tomcat 5.5 and jetty is not a problem with the same war file, so either jboss must be configured in some way (how?), or is not compatible with the tapestry magic... Thanks for any pointers, Aslak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]