Rats, that's an old issue that's resurfaced with the Wicket example. We once
had the portlet-api on the classpath, but I removed it thinking this was out
of date. I guess this is something Wicket does. You can either add it back
in, or figure out how to get Wicket to stop that scanning w/ a context
parameter.
-Dan
On Mon, Jan 17, 2011 at 18:51, Jason Porter <lightguard.jp(a)gmail.com> wrote:
Here's my latest exception getting this to work (okay, my only
exception thus far):
[#|2011-01-17T16:41:48.947-0700|INFO|glassfish3.0.1|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=28;_ThreadName=Thread-1;|seam-wicket-example-numberguess
was successfully deployed in 9,569 milliseconds.|#]
[#|2011-01-17T16:41:59.950-0700|WARNING|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=29;_ThreadName=http-thread-pool-8080-(1);|StandardWrapperValve[default]:
PWC1406: Servlet.service() for servlet default threw exception
com.sun.enterprise.container.common.spi.util.InjectionException: Error
creating managed object for class
org.apache.wicket.protocol.http.WicketFilter
at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:312)
at
com.sun.enterprise.web.WebContainer.createFilterInstance(WebContainer.java:725)
at
com.sun.enterprise.web.WebModule.createFilterInstance(WebModule.java:1948)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:248)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
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:680)
Caused by: com.google.common.collect.ComputationException:
java.lang.NoClassDefFoundError: javax/portlet/PortletRequest
at
com.google.common.collect.MapMaker$StrategyImpl.compute(MapMaker.java:602)
at
com.google.common.collect.MapMaker$StrategyImpl.compute(MapMaker.java:462)
at
com.google.common.collect.CustomConcurrentHashMap$ComputingImpl.get(CustomConcurrentHashMap.java:2045)
at
org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:164)
at
org.jboss.weld.manager.BeanManagerImpl.createAnnotatedType(BeanManagerImpl.java:1144)
at
org.glassfish.weld.services.JCDIServiceImpl.createManagedObject(JCDIServiceImpl.java:196)
at
org.glassfish.weld.services.JCDIServiceImpl.createManagedObject(JCDIServiceImpl.java:178)
at
com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:456)
at
com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:423)
at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:295)
... 28 more
Caused by: java.lang.NoClassDefFoundError: javax/portlet/PortletRequest
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.getDeclaredConstructor(Class.java:1985)
at
org.jboss.weld.util.reflection.SecureReflections$10.work(SecureReflections.java:239)
at
org.jboss.weld.util.reflection.SecureReflections$10.work(SecureReflections.java:235)
at
org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
at
org.jboss.weld.util.reflection.SecureReflectionAccess.runAsMethodAccess(SecureReflectionAccess.java:119)
at
org.jboss.weld.util.reflection.SecureReflections.getDeclaredConstructor(SecureReflections.java:234)
at org.jboss.weld.util.Proxies.isClassProxyable(Proxies.java:248)
at org.jboss.weld.util.Proxies.isTypeProxyable(Proxies.java:201)
at org.jboss.weld.util.Proxies.isTypesProxyable(Proxies.java:229)
at
org.jboss.weld.introspector.jlr.AbstractWeldAnnotated.<init>(AbstractWeldAnnotated.java:179)
at
org.jboss.weld.introspector.jlr.AbstractWeldMember.<init>(AbstractWeldMember.java:55)
at
org.jboss.weld.introspector.jlr.WeldFieldImpl.<init>(WeldFieldImpl.java:72)
at
org.jboss.weld.introspector.jlr.WeldFieldImpl.of(WeldFieldImpl.java:53)
at
org.jboss.weld.introspector.jlr.WeldClassImpl.<init>(WeldClassImpl.java:179)
at
org.jboss.weld.introspector.jlr.WeldClassImpl.of(WeldClassImpl.java:140)
at
org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:50)
at
org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:38)
at
com.google.common.collect.MapMaker$StrategyImpl.compute(MapMaker.java:592)
... 37 more
Caused by: java.lang.ClassNotFoundException: javax.portlet.PortletRequest
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at
org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:959)
at
org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1430)
... 58 more
|#]
[#|2011-01-17T16:41:59.950-0700|WARNING|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=29;_ThreadName=Thread-1;|StandardWrapperValve[default]:
PWC1406: Servlet.service() for servlet default threw exception
com.sun.enterprise.container.common.spi.util.InjectionException: Error
creating managed object for class
org.apache.wicket.protocol.http.WicketFilter
at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:312)
at
com.sun.enterprise.web.WebContainer.createFilterInstance(WebContainer.java:725)
at
com.sun.enterprise.web.WebModule.createFilterInstance(WebModule.java:1948)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:248)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
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:680)
Caused by: com.google.common.collect.ComputationException:
java.lang.NoClassDefFoundError: javax/portlet/PortletRequest
at
com.google.common.collect.MapMaker$StrategyImpl.compute(MapMaker.java:602)
at
com.google.common.collect.MapMaker$StrategyImpl.compute(MapMaker.java:462)
at
com.google.common.collect.CustomConcurrentHashMap$ComputingImpl.get(CustomConcurrentHashMap.java:2045)
at
org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:164)
at
org.jboss.weld.manager.BeanManagerImpl.createAnnotatedType(BeanManagerImpl.java:1144)
at
org.glassfish.weld.services.JCDIServiceImpl.createManagedObject(JCDIServiceImpl.java:196)
at
org.glassfish.weld.services.JCDIServiceImpl.createManagedObject(JCDIServiceImpl.java:178)
at
com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:456)
at
com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:423)
at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:295)
... 28 more
Caused by: java.lang.NoClassDefFoundError: javax/portlet/PortletRequest
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.getDeclaredConstructor(Class.java:1985)
at
org.jboss.weld.util.reflection.SecureReflections$10.work(SecureReflections.java:239)
at
org.jboss.weld.util.reflection.SecureReflections$10.work(SecureReflections.java:235)
at
org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
at
org.jboss.weld.util.reflection.SecureReflectionAccess.runAsMethodAccess(SecureReflectionAccess.java:119)
at
org.jboss.weld.util.reflection.SecureReflections.getDeclaredConstructor(SecureReflections.java:234)
at org.jboss.weld.util.Proxies.isClassProxyable(Proxies.java:248)
at org.jboss.weld.util.Proxies.isTypeProxyable(Proxies.java:201)
at org.jboss.weld.util.Proxies.isTypesProxyable(Proxies.java:229)
at
org.jboss.weld.introspector.jlr.AbstractWeldAnnotated.<init>(AbstractWeldAnnotated.java:179)
at
org.jboss.weld.introspector.jlr.AbstractWeldMember.<init>(AbstractWeldMember.java:55)
at
org.jboss.weld.introspector.jlr.WeldFieldImpl.<init>(WeldFieldImpl.java:72)
at
org.jboss.weld.introspector.jlr.WeldFieldImpl.of(WeldFieldImpl.java:53)
at
org.jboss.weld.introspector.jlr.WeldClassImpl.<init>(WeldClassImpl.java:179)
at
org.jboss.weld.introspector.jlr.WeldClassImpl.of(WeldClassImpl.java:140)
at
org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:50)
at
org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:38)
at
com.google.common.collect.MapMaker$StrategyImpl.compute(MapMaker.java:592)
... 37 more
Caused by: java.lang.ClassNotFoundException: javax.portlet.PortletRequest
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at
org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:959)
at
org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1430)
... 58 more
|#]
[#|2011-01-17T16:41:59.950-0700|WARNING|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=29;_ThreadName=http-thread-pool-8080-(1);|StandardWrapperValve[default]:
PWC1406: Servlet.service() for servlet default threw exception
com.sun.enterprise.container.common.spi.util.InjectionException: Error
creating managed object for class
org.apache.wicket.protocol.http.WicketFilter
at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:312)
at
com.sun.enterprise.web.WebContainer.createFilterInstance(WebContainer.java:725)
at
com.sun.enterprise.web.WebModule.createFilterInstance(WebModule.java:1948)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:248)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
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:680)
Caused by: com.google.common.collect.ComputationException:
java.lang.NoClassDefFoundError: javax/portlet/PortletRequest
at
com.google.common.collect.MapMaker$StrategyImpl.compute(MapMaker.java:602)
at
com.google.common.collect.MapMaker$StrategyImpl.compute(MapMaker.java:462)
at
com.google.common.collect.CustomConcurrentHashMap$ComputingImpl.get(CustomConcurrentHashMap.java:2045)
at
org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:164)
at
org.jboss.weld.manager.BeanManagerImpl.createAnnotatedType(BeanManagerImpl.java:1144)
at
org.glassfish.weld.services.JCDIServiceImpl.createManagedObject(JCDIServiceImpl.java:196)
at
org.glassfish.weld.services.JCDIServiceImpl.createManagedObject(JCDIServiceImpl.java:178)
at
com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:456)
at
com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:423)
at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:295)
... 28 more
Caused by: java.lang.NoClassDefFoundError: javax/portlet/PortletRequest
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.getDeclaredConstructor(Class.java:1985)
at
org.jboss.weld.util.reflection.SecureReflections$10.work(SecureReflections.java:239)
at
org.jboss.weld.util.reflection.SecureReflections$10.work(SecureReflections.java:235)
at
org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
at
org.jboss.weld.util.reflection.SecureReflectionAccess.runAsMethodAccess(SecureReflectionAccess.java:119)
at
org.jboss.weld.util.reflection.SecureReflections.getDeclaredConstructor(SecureReflections.java:234)
at org.jboss.weld.util.Proxies.isClassProxyable(Proxies.java:248)
at org.jboss.weld.util.Proxies.isTypeProxyable(Proxies.java:201)
at org.jboss.weld.util.Proxies.isTypesProxyable(Proxies.java:229)
at
org.jboss.weld.introspector.jlr.AbstractWeldAnnotated.<init>(AbstractWeldAnnotated.java:179)
at
org.jboss.weld.introspector.jlr.AbstractWeldMember.<init>(AbstractWeldMember.java:55)
at
org.jboss.weld.introspector.jlr.WeldFieldImpl.<init>(WeldFieldImpl.java:72)
at
org.jboss.weld.introspector.jlr.WeldFieldImpl.of(WeldFieldImpl.java:53)
at
org.jboss.weld.introspector.jlr.WeldClassImpl.<init>(WeldClassImpl.java:179)
at
org.jboss.weld.introspector.jlr.WeldClassImpl.of(WeldClassImpl.java:140)
at
org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:50)
at
org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:38)
at
com.google.common.collect.MapMaker$StrategyImpl.compute(MapMaker.java:592)
... 37 more
Caused by: java.lang.ClassNotFoundException: javax.portlet.PortletRequest
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at
org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:959)
at
org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1430)
... 58 more
|#]
I'm using the number guess wicket example, not sure why it is looking
for Portlet stuff, if anyone has any ideas, I'd like to hear it.
--
Jason Porter
http://lightguard-jp.blogspot.com
http://twitter.com/lightguardjp
Software Engineer
Open Source Advocate
PGP key id: 926CCFF5
PGP key available at:
keyserver.net,
pgp.mit.edu
_______________________________________________
seam-dev mailing list
seam-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/seam-dev
--
Dan Allen
Principal Software Engineer, Red Hat | Author of Seam in Action
Registered Linux User #231597
http://mojavelinux.com
http://mojavelinux.com/seaminaction
http://www.google.com/profiles/dan.j.allen