[JBoss JIRA] Created: (SEAMXML-4) cannot initiate generic collection
by Jozef Hartinger (JIRA)
cannot initiate generic collection
----------------------------------
Key: SEAMXML-4
URL: https://jira.jboss.org/jira/browse/SEAMXML-4
Project: Seam XML Bean Config
Issue Type: Bug
Environment: 3.0.0-SNAPSHOT
Reporter: Jozef Hartinger
I am using the following xml configuration
<test:BasicConfiguration>
<s:overrides/>
<test:resources>
<s:value>org.jboss.seam.resteasy.example.TestResource</s:value>
</test:resources>
</test:BasicConfiguration>
to setup the following collection
private Set<Class<?>> resources;
and I am getting the following exception (Note that it work OK if i use private Set<Class> resources)
11:31:45,354 ERROR [STDERR] java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.Class
11:31:45,355 ERROR [STDERR] at org.jboss.seam.xml.fieldset.CollectionFieldSet.discoverElementType(CollectionFieldSet.java:81)
11:31:45,355 ERROR [STDERR] at org.jboss.seam.xml.fieldset.CollectionFieldSet.<init>(CollectionFieldSet.java:42)
11:31:45,355 ERROR [STDERR] at org.jboss.seam.xml.model.FieldXmlItem.resolveChildren(FieldXmlItem.java:105)
11:31:45,355 ERROR [STDERR] at org.jboss.seam.xml.model.ModelBuilder.resolveNode(ModelBuilder.java:208)
11:31:45,355 ERROR [STDERR] at org.jboss.seam.xml.model.ModelBuilder.resolveNode(ModelBuilder.java:204)
11:31:45,356 ERROR [STDERR] at org.jboss.seam.xml.model.ModelBuilder.build(ModelBuilder.java:86)
11:31:45,356 ERROR [STDERR] at org.jboss.seam.xml.bootstrap.XmlExtension.beforeBeanDiscovery(XmlExtension.java:94)
11:31:45,356 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:31:45,356 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
11:31:45,356 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11:31:45,356 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
11:31:45,357 ERROR [STDERR] at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:304)
11:31:45,357 ERROR [STDERR] at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
11:31:45,357 ERROR [STDERR] at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
11:31:45,357 ERROR [STDERR] at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:298)
11:31:45,358 ERROR [STDERR] at org.jboss.weld.bean.proxy.ClientProxyMethodHandler.invoke(ClientProxyMethodHandler.java:112)
11:31:45,358 ERROR [STDERR] at org.jboss.weld.util.CleanableMethodHandler.invoke(CleanableMethodHandler.java:43)
11:31:45,358 ERROR [STDERR] at org.jboss.seam.xml.bootstrap.XmlExtension_$$_javassist_150.beforeBeanDiscovery(XmlExtension_$$_javassist_150.java)
11:31:45,358 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:31:45,359 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
11:31:45,359 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11:31:45,360 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
11:31:45,360 ERROR [STDERR] at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:304)
11:31:45,360 ERROR [STDERR] at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
11:31:45,360 ERROR [STDERR] at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
11:31:45,366 ERROR [STDERR] at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:298)
11:31:45,366 ERROR [STDERR] at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:219)
11:31:45,366 ERROR [STDERR] at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
11:31:45,366 ERROR [STDERR] at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:179)
11:31:45,366 ERROR [STDERR] at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:231)
11:31:45,366 ERROR [STDERR] at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:206)
11:31:45,367 ERROR [STDERR] at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:88)
11:31:45,367 ERROR [STDERR] at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:52)
11:31:45,367 ERROR [STDERR] at org.jboss.weld.bootstrap.events.BeforeBeanDiscoveryImpl.fire(BeforeBeanDiscoveryImpl.java:66)
11:31:45,367 ERROR [STDERR] at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:359)
11:31:45,367 ERROR [STDERR] at org.jboss.weld.integration.deployer.env.helpers.BootstrapBean.boot(BootstrapBean.java:121)
11:31:45,368 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:31:45,369 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
11:31:45,369 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11:31:45,369 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
11:31:45,369 ERROR [STDERR] at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
11:31:45,369 ERROR [STDERR] at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:151)
11:31:45,369 ERROR [STDERR] at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
11:31:45,370 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:257)
11:31:45,370 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
11:31:45,370 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:125)
11:31:45,370 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72)
11:31:45,370 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:202)
11:31:45,370 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
11:31:45,370 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
11:31:45,371 ERROR [STDERR] at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
11:31:45,371 ERROR [STDERR] at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
11:31:45,371 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
11:31:45,371 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:378)
11:31:45,371 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2029)
11:31:45,371 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1050)
11:31:45,372 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1289)
11:31:45,372 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1213)
11:31:45,372 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1107)
11:31:45,372 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:873)
11:31:45,372 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:620)
11:31:45,372 ERROR [STDERR] at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:180)
11:31:45,373 ERROR [STDERR] at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:58)
11:31:45,373 ERROR [STDERR] at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
11:31:45,373 ERROR [STDERR] at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)
11:31:45,373 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
11:31:45,373 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1660)
11:31:45,373 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1378)
11:31:45,374 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1399)
11:31:45,374 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1319)
11:31:45,374 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:378)
11:31:45,374 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2029)
11:31:45,374 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1050)
11:31:45,374 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1289)
11:31:45,374 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1213)
11:31:45,375 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1107)
11:31:45,375 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:918)
11:31:45,375 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:633)
11:31:45,375 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:898)
11:31:45,375 ERROR [STDERR] at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:677)
11:31:45,375 ERROR [STDERR] at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
11:31:45,376 ERROR [STDERR] at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:409)
11:31:45,376 ERROR [STDERR] at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:294)
11:31:45,376 ERROR [STDERR] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
11:31:45,376 ERROR [STDERR] at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
11:31:45,376 ERROR [STDERR] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
11:31:45,376 ERROR [STDERR] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
11:31:45,377 ERROR [STDERR] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
11:31:45,377 ERROR [STDERR] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
11:31:45,377 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
11:31:45,377 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
11:31:45,377 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 8 months
[JBoss JIRA] Created: (SEAMXML-33) Misc documentation issues
by Jozef Hartinger (JIRA)
Misc documentation issues
-------------------------
Key: SEAMXML-33
URL: https://issues.jboss.org/browse/SEAMXML-33
Project: Seam Config
Issue Type: Bug
Components: Documentation
Affects Versions: 3.0.0.Beta2
Reporter: Jozef Hartinger
Assignee: Stuart Douglas
Priority: Minor
Fix For: 3.0.0.Beta3
* index.html says "Alternative metadata sources for defining and configuration beans". IMO it should be
** "Alternative metadata sources for defining and configuration of beans" or
** "Alternative metadata sources for bean definition and configuration"
* Section 1.1. talks about "Weld Extensions JAR"
* A warning in Section 1.1. says that one should not put the configuration file in the web context, however SEAMXML-10 seems to resolve the problem
* The warning in Section 1.1 says : "it is recommended that you define your beans in WEB-INF/classes/META-INF/seam-beans.xml" while the very next sentese in the following paragraph says: "The beans.xml file is the preferred way of configuring beans via XML"
It is unclear if one should use beans.xml or seam-beans.xml
* Section 1.2 "The princess rescue example is a sample web app that uses Seam XML" -> should be Seam Config
* Section 2.1 "The main namespace is urn:java:ee contains builtin tags and types from core packages."
** should be "The main namespace is urn:java:ee. This namespace contains built-in tags and types from core packages."
* section 2.1 contains typo "namspaces"
* Section 2.1 - sample "my" namespace is defined, later in the text, the configured bean is referenced as <ns:Report> - should be <my:Report>
* 2.9
** Weld Extensions
** type "exmaple"
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 8 months