[JBoss Seam] - Re: Running the booking example on JBoss with the JSF 1.2 RI
by tonylmai
Have anyone been able to run the book example with 4.0GA + JSF 1.2 yet?
After followed the guide in here, I still run into problem (see log below).
Can someone help? Thanks
11:52:14,921 ERROR [STDERR] Feb 23, 2007 11:52:14 AM com.sun.faces.spi.InjectionProviderFactory createInstance
INFO: JSF1033: Resource injection is DISABLED.
11:52:14,937 ERROR [STDERR] java.lang.RuntimeException: java.lang.NoSuchMethodException: com.sun.faces.application.ApplicationImpl.addELResolver(javax.el.ELResolver)
11:52:14,937 ERROR [STDERR] at org.jboss.seam.jsf.SeamApplication12.(SeamApplication12.java:46)
11:52:14,937 ERROR [STDERR] at org.jboss.seam.jsf.SeamApplicationFactory.getApplication(SeamApplicationFactory.java:29)
11:52:14,937 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.application(ConfigureListener.java:578)
11:52:14,937 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:620)
11:52:14,937 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:596)
11:52:14,937 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:496)
11:52:14,937 ERROR [STDERR] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
11:52:14,937 ERROR [STDERR] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
11:52:14,937 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
11:52:14,937 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
11:52:14,937 ERROR [STDERR] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
11:52:14,937 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:52:14,937 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
11:52:14,937 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
11:52:14,937 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
11:52:14,937 ERROR [STDERR] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
11:52:14,937 ERROR [STDERR] at org.apache.catalina.core.StandardContext.init(StandardContext.java:5052)
11:52:14,937 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:52:14,937 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
11:52:14,937 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
11:52:14,937 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
11:52:14,937 ERROR [STDERR] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
11:52:14,937 ERROR [STDERR] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
11:52:14,937 ERROR [STDERR] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
11:52:14,937 ERROR [STDERR] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
11:52:14,937 ERROR [STDERR] at org.jboss.web.WebModule.startModule(WebModule.java:83)
11:52:14,937 ERROR [STDERR] at org.jboss.web.WebModule.startService(WebModule.java:61)
11:52:14,937 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
11:52:14,937 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
11:52:14,937 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
11:52:14,937 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
11:52:14,937 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
11:52:14,937 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
11:52:14,937 ERROR [STDERR] at $Proxy0.start(Unknown Source)
11:52:14,937 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
11:52:14,937 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
11:52:14,937 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
11:52:14,937 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
11:52:14,937 ERROR [STDERR] at $Proxy42.start(Unknown Source)
11:52:14,937 ERROR [STDERR] at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
11:52:14,937 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:52:14,937 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
11:52:14,937 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
11:52:14,937 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
11:52:14,937 ERROR [STDERR] at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
11:52:14,937 ERROR [STDERR] at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
11:52:14,937 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
11:52:14,937 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
11:52:14,937 ERROR [STDERR] at $Proxy43.start(Unknown Source)
11:52:14,937 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
11:52:14,937 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
11:52:14,937 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
11:52:14,937 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
11:52:14,937 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
11:52:14,937 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
11:52:14,937 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
11:52:14,937 ERROR [STDERR] at $Proxy8.deploy(Unknown Source)
11:52:14,937 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
11:52:14,937 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
11:52:14,937 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
11:52:14,937 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
11:52:14,937 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
11:52:14,937 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
11:52:14,937 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
11:52:14,937 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
11:52:14,937 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
11:52:14,937 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
11:52:14,937 ERROR [STDERR] at $Proxy0.start(Unknown Source)
11:52:14,937 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
11:52:14,937 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
11:52:14,937 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
11:52:14,937 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
11:52:14,937 ERROR [STDERR] at $Proxy4.start(Unknown Source)
11:52:14,937 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
11:52:14,937 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
11:52:14,937 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
11:52:14,937 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
11:52:14,937 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
11:52:14,937 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:52:14,937 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
11:52:14,937 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
11:52:14,937 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
11:52:14,937 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
11:52:14,937 ERROR [STDERR] at $Proxy5.deploy(Unknown Source)
11:52:14,937 ERROR [STDERR] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
11:52:14,937 ERROR [STDERR] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
11:52:14,937 ERROR [STDERR] at org.jboss.Main.boot(Main.java:200)
11:52:14,937 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:490)
11:52:14,937 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)
11:52:14,937 ERROR [STDERR] Caused by: java.lang.NoSuchMethodException: com.sun.faces.application.ApplicationImpl.addELResolver(javax.el.ELResolver)
11:52:14,937 ERROR [STDERR] at java.lang.Class.getMethod(Unknown Source)
11:52:14,937 ERROR [STDERR] at org.jboss.seam.jsf.SeamApplication12.(SeamApplication12.java:35)
11:52:14,937 ERROR [STDERR] ... 141 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021288#4021288
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021288
19Â years, 2Â months
[EJB 3.0] - Can't get session timeouts and appropriate @PreDestroy to wo
by jlessner
Hello everybody
I'm trying to deploy a Stateful SessionBean with a timeout period of only a few seconds and an appropriate invocation of a PreDestroy method when the bean is discarded. I understood from various documents that I should either change the <remover-period> and <max-bean-life> attributes in standardjboss.xml of my server installation or provide these values along with a jboss.xml in my EJB jar file. But nothing happens. I even put XML syntax errors in these files to ensure that I edited the right ones - so I'm sure I did. But I can provide what ever I want - it has no effect. I can even set a value -1 or "BLABLA" as remover-period without any complains from the server at startup resp. deploy time.
Does anybody use these features successfully and could give me a hint what the problem might be? I'm using JBoss 4.0.5 GA with EJB 3 support.
Regards,
Jan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021282#4021282
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021282
19Â years, 2Â months
[JBoss Seam] - Simple example for Tomcat?
by mlh496
Hey everyone,
I'm new to Seam and am very excited the framework. For reasons I won't go into, I need to deploy a simple example of a Seam app that uses a database to Tomcat.
When I first installed Tomcat 6.0, I was able to successfully deploy the DVD store and Booking examples. However, now they deploy but give errors. I've cleaned out all caches, redeployed, etc., but to no avail.
Another thing I tried was I created a simple seam app using seam-gen. I then generated the entities against a simple database with a single table. In the setup I specified I wanted to generate a WAR instead of an EAR. The WAR does not work in Tomcat. I found some documentation that specifies what changes need to take place in order to work on Tomcat. After making those changes, it still fails.
To make a long story short (too late), does anyone have a very simple WAR file of a Seam app that works in Tomcat and uses a datasource?
Many thanks,
-Michael
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021280#4021280
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021280
19Â years, 2Â months
[JBoss AOP] - JBoss AOP with InfraRED
by jcollins914
Hello,
I am working with JBoss 4.0.4.GA, and am deploying an EAR project which currently contains a .war, and a .aop. I would like to try out InfraRED with this setup, and begin to enjoy the benefits of its code profiling abilities.
http://infrared.sourceforge.net/versions/latest/
The product currenlty provides built in AOP support for AspectJ/AspectWerkz, but this quote on their overview page is the only information that provides me with little other than a ray of hope that it's possible, "It can also be made to work with other AOP frameworks such as JBoss AOP etc."
I looked around for other documentation on how, (to make this possibility a reality), including on the InfraRED sourceforge site (where I read all of the documentation and then searched their forum). I searched this JBoss AOP forum for the keyword InfraRED, (nothing). Of course I also Googled around for a while, with no findings of this combination. Has anyone ever tested InfraRED with JBossAOP? I would be thrilled and appreciative if someone could provide a direction or ideally, some instructions on how to go about making them work together?
I started looking into AspectJ/AspectWerkz... but we worked pretty hard to get JBossAOP incorporated into our project, and I'd prefer to just go w/ it if I can make it work.
Thanks,
Jeff
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021279#4021279
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021279
19Â years, 2Â months