2010-10-27 17 views
5

Używam aplikacji Java EE 6 z EAR (łączenie EJB-JAR i WAR) na GlassFish 3.0.1, używając ICEfaces 2.0 Beta 1 i Seam Faces 3.0 .0 Migawka alfa 3.Seam Faces powoduje błąd podczas wdrażania

Po wdrożeniu EAR pojawia się błąd. Ten błąd nie występuje, gdy usuwam Seam Faces. Oto błąd z mojego logu GlassFish (zredagowałem pierwszy bit, gdzie po prostu wyszczególnia moje komponenty bean sesji i mówi, że zostały one przekształcone.) Wyłączyłem kilka ostatnich wyjątków z powodu limitu 30000 znaków StackOverflow.):

INFO: Loading application com.example.science_ScienceEar_ear_2.0.3-SNAPSHOT#ScheduleWeb-2.0.3-SNAPSHOT.war at /schedule 
INFO: Initializing Mojarra 2.0.2 (FCS b10) for context '/science' 
WARNING: JSF1059: WARNING! The com.sun.faces.verifyObjects feature is to aid developers not using tools. It shouldn't be enabled if using an IDE, or if this application is being deployed for production as it will impact application start times. 
INFO: Ajax Push Resource Handling not available: java.lang.NoClassDefFoundError: org/icepush/servlet/MainServlet 
INFO: ICEsoft Technologies Inc. 
ICEfaces 2.0.0 0.0.4 Beta1 
Build number: 003 
Revision: 21982 

INFO: ICEfaces Configuration: org.icefaces.render.auto = true [default] org.icefaces.autoid = true [default] org.icefaces.aria.enabled = true [default] org.icefaces.compressDOM = false [default] 
WARNING: ICEpush library missing. Push notification disabled. 
INFO: Unsanitized stacktrace from failed start... 
org.jboss.weld.exceptions.UnsatisfiedResolutionException: WELD-001308 Unable to resolve managed beans for Types: [class org.jboss.seam.faces.component.FormValidationTypeOverrideExtension]; Bindings: [@javax.enterprise.inject.Default()] 
     at org.jboss.weld.manager.BeanManagerImpl.getBean(BeanManagerImpl.java:807) 
     at org.jboss.weld.manager.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:793) 
     at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:108) 
     at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:790) 
     at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:802) 
     at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:177) 
     at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:130) 
     at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:47) 
     at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:171) 
     at org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:142) 
     at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:165) 
     at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:332) 
     at org.jboss.weld.context.DependentContext.get(DependentContext.java:62) 
     at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:709) 
     at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:771) 
     at org.jboss.weld.manager.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:794) 
     at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:108) 
     at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:790) 
     at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:802) 
     at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:177) 
     at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:130) 
     at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:47) 
     at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:171) 
     at org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:142) 
     at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:165) 
     at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:332) 
     at org.jboss.weld.context.AbstractMapContext.get(AbstractMapContext.java:112) 
     at org.jboss.weld.bean.proxy.ClientProxyMethodHandler.getProxiedInstance(ClientProxyMethodHandler.java:143) 
     at org.jboss.weld.bean.proxy.ClientProxyMethodHandler.invoke(ClientProxyMethodHandler.java:100) 
     at org.jboss.weld.util.CleanableMethodHandler.invoke(CleanableMethodHandler.java:43) 
     at org.jboss.seam.faces.environment.SeamApplicationWrapper_$$_javassist_27.installWrapper(SeamApplicationWrapper_$$_javassist_27.java) 
     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:597) 
     at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:304) 
     at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54) 
     at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163) 
     at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:298) 
     at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:200) 
     at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59) 
     at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:194) 
     at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:241) 
     at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:216) 
     at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:654) 
     at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:647) 
     at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:641) 
     at org.jboss.seam.faces.event.SystemEventBridge.processEvent(SystemEventBridge.java:80) 
     at org.jboss.seam.faces.event.DelegatingSystemEventListener.processEvent(DelegatingSystemEventListener.java:51) 
     at javax.faces.event.SystemEvent.processListener(SystemEvent.java:102) 
     at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:1993) 
     at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:1969) 
     at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:299) 
     at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:679) 
     at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:601) 
     at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:344) 
     at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:223) 
     at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4664) 
     at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:535) 
     at org.apache.catalina.core.StandardContext.start(StandardContext.java:5266) 
     at com.sun.enterprise.web.WebModule.start(WebModule.java:499) 
     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928) 
     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912) 
     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694) 
     at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1947) 
     at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1619) 
     at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90) 
     at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126) 
     at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241) 
     at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236) 
     at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:339) 
     at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183) 
     at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272) 
     at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305) 
     at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320) 
     at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176) 
     at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83) 
     at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235) 
     at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224) 
     at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365) 
     at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204) 
     at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166) 
     at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100) 
     at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245) 
     at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791) 
     at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693) 
     at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954) 
     at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170) 
     at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135) 
     at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) 
     at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) 
     at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) 
     at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53) 
     at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) 
     at com.sun.grizzly.ContextTask.run(ContextTask.java:69) 
     at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330) 
     at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) 
     at java.lang.Thread.run(Thread.java:662) 

SEVERE: PWC1306: Startup of context /science failed due to previous errors 
SEVERE: PWC1305: Exception during cleanup after start failed 
org.apache.catalina.LifecycleException: PWC2769: Manager has not yet been started 
     at org.apache.catalina.session.StandardManager.stop(StandardManager.java:892) 
     at org.apache.catalina.core.StandardContext.stop(StandardContext.java:5456) 
     at com.sun.enterprise.web.WebModule.stop(WebModule.java:530) 
     at org.apache.catalina.core.StandardContext.start(StandardContext.java:5284) 
     at com.sun.enterprise.web.WebModule.start(WebModule.java:499) 
     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928) 
     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912) 
     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694) 
     at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1947) 
     at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1619) 
     at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90) 
     at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126) 
     at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241) 
     at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236) 
     at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:339) 
     at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183) 
     at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272) 
     at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305) 
     at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320) 
     at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176) 
     at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83) 
     at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235) 
     at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224) 
     at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365) 
     at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204) 
     at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166) 
     at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100) 
     at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245) 
     at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791) 
     at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693) 
     at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954) 
     at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170) 
     at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135) 
     at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) 
     at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) 
     at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) 
     at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53) 
     at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) 
     at com.sun.grizzly.ContextTask.run(ContextTask.java:69) 
     at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330) 
     at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) 
     at java.lang.Thread.run(Thread.java:662) 

SEVERE: ContainerBase.addChild: start: 
org.apache.catalina.LifecycleException: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! WELD-001308 Unable to resolve managed beans for Types: [class org.jboss.seam.faces.component.FormValidationTypeOverrideExtension]; Bindings: [@javax.enterprise.inject.Default()] 
     at org.apache.catalina.core.StandardContext.start(StandardContext.java:5289) 
     at com.sun.enterprise.web.WebModule.start(WebModule.java:499) 
     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928) 
     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912) 
     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694) 
     at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1947) 
     at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1619) 
     at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90) 
     at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126) 
     at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241) 
     at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236) 
     at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:339) 
     at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183) 
     at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272) 
     at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305) 
     at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320) 
     at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176) 
     at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83) 
     at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235) 
     at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224) 
     at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365) 
     at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204) 
     at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166) 
     at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100) 
     at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245) 
     at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791) 
     at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693) 
     at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954) 
     at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170) 
     at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135) 
     at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) 
     at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) 
     at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) 
     at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53) 
     at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) 
     at com.sun.grizzly.ContextTask.run(ContextTask.java:69) 
     at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330) 
     at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) 
     at java.lang.Thread.run(Thread.java:662) 
Caused by: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! WELD-001308 Unable to resolve managed beans for Types: [class org.jboss.seam.faces.component.FormValidationTypeOverrideExtension]; Bindings: [@javax.enterprise.inject.Default()] 
     at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:354) 
     at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:223) 
     at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4664) 
     at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:535) 
     at org.apache.catalina.core.StandardContext.start(StandardContext.java:5266) 
     ... 38 more 
Caused by: org.jboss.weld.exceptions.UnsatisfiedResolutionException: WELD-001308 Unable to resolve managed beans for Types: [class org.jboss.seam.faces.component.FormValidationTypeOverrideExtension]; Bindings: [@javax.enterprise.inject.Default()] 
     at org.jboss.weld.manager.BeanManagerImpl.getBean(BeanManagerImpl.java:807) 
     at org.jboss.weld.manager.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:793) 
     at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:108) 
     at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:790) 
     at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:802) 
     at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:177) 
     at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:130) 
     at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:47) 
     at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:171) 
     at org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:142) 
     at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:165) 
     at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:332) 
     at org.jboss.weld.context.DependentContext.get(DependentContext.java:62) 
     at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:709) 
     at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:771) 
     at org.jboss.weld.manager.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:794) 
     at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:108) 
     at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:790) 
     at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:802) 
     at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:177) 
     at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:130) 
     at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:47) 
     at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:171) 
     at org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:142) 
     at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:165) 
     at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:332) 
     at org.jboss.weld.context.AbstractMapContext.get(AbstractMapContext.java:112) 
     at org.jboss.weld.bean.proxy.ClientProxyMethodHandler.getProxiedInstance(ClientProxyMethodHandler.java:143) 
     at org.jboss.weld.bean.proxy.ClientProxyMethodHandler.invoke(ClientProxyMethodHandler.java:100) 
     at org.jboss.weld.util.CleanableMethodHandler.invoke(CleanableMethodHandler.java:43) 
     at org.jboss.seam.faces.environment.SeamApplicationWrapper_$$_javassist_27.installWrapper(SeamApplicationWrapper_$$_javassist_27.java) 
     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:597) 
     at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:304) 
     at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54) 
     at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163) 
     at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:298) 
     at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:200) 
     at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59) 
     at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:194) 
     at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:241) 
     at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:216) 
     at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:654) 
     at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:647) 
     at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:641) 
     at org.jboss.seam.faces.event.SystemEventBridge.processEvent(SystemEventBridge.java:80) 
     at org.jboss.seam.faces.event.DelegatingSystemEventListener.processEvent(DelegatingSystemEventListener.java:51) 
     at javax.faces.event.SystemEvent.processListener(SystemEvent.java:102) 
     at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:1993) 
     at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:1969) 
     at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:299) 
     at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:679) 
     at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:601) 
     at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:344) 
     ... 42 more 
... 

Co daje? Przeszukałem sieć dla tego wyjątku i wygląda na to, że dzieje się tak, gdy włączono obsługę CDI zarówno w EJB-JAR, jak i WAR pakowanych wewnątrz pojedynczego pliku EAR, ale tylko moja WAR ma włączone CDI (tylko ma plik bean.xml). Próbowałem przenieść zależność do EAR, ale mam inny wyjątek niż wtedy.

Dziękujemy! :)

Odpowiedz

3

Na podstawie tego śladu, domyślam się, że coś uniemożliwia odpowiednie wykrycie fasoli podczas uruchamiania CDI. W oparciu o fakt, że problem pojawia się tylko wtedy, gdy Seam Faces jest w klasie ClassPath, musiałbym powiedzieć, że nie jestem pewien co.

Z której wersji Twarzy Szewskich korzystasz? 3.0.0.Alpha3 nie powinien mieć żadnych problemów na GF 3.0.1-b22

+0

Zaktualizowałem do wersji GlassFish 3.1b25 (od 3.0.1b22) i najnowszej wersji Snapshot Seam Faces 3.0.0 (23 października 2010 r.) I otrzymuję teraz różne błędy; Dam ci znać, jak to działa. Teraz otrzymuję java.lang.ClassNotFoundException: org.jboss.logging.Logger na wdrożenie. – Nick

+1

Ok, odpowiedź na to jest m.in. JBoss rejestrowanie - co jest nowe rozwiązanie do rejestrowania Seam, jesteśmy już przy użyciu slf4j, więc trzeba to: – Lincoln

+0

org.jboss.logging JBoss-rejestrowanie 1.0.0.Beta4 Lincoln

1

Sprawdziłeś swoją ścieżkę klas? Na podstawie tego, co masz powyżej, wygląda na to, że próbując załadować klasę org.icepush.servlet.MainServlet, to nie powiodło się podczas próby sprawdzenia klasy org.jboss.seam.faces.component.FormValidationTypeOverrideExtension. Czy masz słoik zawierający tę klasę w Twoim pliku EAR? Czy na Twoim poziomie aplikacji znajduje się odpowiedni poziom? (np. poziom EAR, poziom WAR, w katalogu WAR lib, itp.)

Zwykle, gdy dostaję wyjątek ClassNotFoundException, ponieważ brakuje mi słoja lub jar znajduje się w złym miejscu w mojej aplikacji, więc nie można załadować go poprawnie.

+0

Dziękuję za odpowiedź! WAR uzyskuje org.jboss.seam.faces.component.FormValidationTypeOverrideExtension przez JAR ścian obrysu; Nie widzę w tym nic złego. Jeśli chodzi o org.icepush.servlet.MainServlet, jest to tylko ostrzeżenie, że opcjonalna funkcja ICEfaces jest wyłączona. Próbowałem go włączyć, ale to nie pomaga. – Nick

+0

@Nick - gdzie w aplikacji znajduje się słoik? To może być część tego. Inną rzeczą, o której zacząłem myśleć, był fakt, że Seam lubi robić zastrzyki zależne. Nie jestem zaznajomiony z ICEFaces, chociaż wiem, że jest to kolejna implementacja JSF. Czy próbuje również wykonać iniekcję zależności? Zastanawiam się, ponieważ przypomniałem sobie kilka artykułów, które czytałem w przeszłości o Seam i Spring i jak je konfigurować, aby nie kolidowały ze sobą, ponieważ każdy chce być głównym wtryskiwaczem zależności. Nie jesteś pewien, czy to się tu dzieje, czy nie? Tylko kilka innych myśli. –

+0

JAR jest dołączony do WAR. O ile mi wiadomo, ICEfaces nie implementują JSF; wykorzystuje Mojarrę i nie wykonuje zastrzyku zależności. Dzięki! – Nick