[JBoss JIRA] Created: (SEAMSECURITY-53) security-openid-rp broken on GlassFish
by Jozef Hartinger (JIRA)
security-openid-rp broken on GlassFish
--------------------------------------
Key: SEAMSECURITY-53
URL: https://issues.jboss.org/browse/SEAMSECURITY-53
Project: Seam Security
Issue Type: Bug
Affects Versions: 3.0.0.Final
Environment: GlassFish 3.1 + Weld 2011-03-29
Reporter: Jozef Hartinger
Assignee: Shane Bryzak
1.) Deploy the application
2.) Open http://localhost:8080/security-openid-rp
3.) Select any external identity provider (yahoo, google, myopenid)
4.) Click "login"
[#|2011-03-29T14:26:09.786+0200|ERROR|glassfish3.1|org.jboss.seam.security.IdentityImpl|_ThreadID=29;_ThreadName=Thread-1;|Login failed
java.lang.RuntimeException: org.jboss.weld.context.ContextNotActiveException: WELD-001303 No active contexts for scope type org.jboss.seam.security.external.dialogues.api.DialogueScoped
at org.jboss.seam.security.IdentityImpl.authenticate(IdentityImpl.java:329)
at org.jboss.seam.security.IdentityImpl.login(IdentityImpl.java:229)
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 com.sun.el.parser.AstValue.invoke(AstValue.java:234)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)
at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:43)
at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:56)
at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at javax.faces.component.UICommand.broadcast(UICommand.java:315)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:409)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
at org.jboss.seam.security.external.dialogues.DialogueFilter.doFilter(DialogueFilter.java:48)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
at org.jboss.seam.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:62)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
at org.jboss.seam.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:72)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.jboss.weld.context.ContextNotActiveException: WELD-001303 No active contexts for scope type org.jboss.seam.security.external.dialogues.api.DialogueScoped
at org.jboss.weld.manager.BeanManagerImpl.getContext(BeanManagerImpl.java:664)
at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:77)
at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:87)
at org.jboss.seam.security.external.dialogues.org$jboss$weld$bean-WEB-INF$lib$seam-security-external-3$0$0$Final-ManagedBean-class_org$jboss$seam$security$external$dialogues$DialogueBean_$$_WeldClientProxy.getId(org$jboss$weld$bean-WEB-INF$lib$seam-security-external-3$0$0$Final-ManagedBean-class_org$jboss$seam$security$external$dialogues$DialogueBean_$$_WeldClientProxy.java)
at org.jboss.seam.security.external.openid.OpenIdRpAuthenticationService.sendAuthRequest(OpenIdRpAuthenticationService.java:140)
at org.jboss.seam.security.external.openid.org$jboss$weld$bean-WEB-INF$lib$seam-security-external-3$0$0$Final-ManagedBean-class_org$jboss$seam$security$external$openid$OpenIdRpAuthenticationService_$$_WeldClientProxy.sendAuthRequest(org$jboss$weld$bean-WEB-INF$lib$seam-security-external-3$0$0$Final-ManagedBean-class_org$jboss$seam$security$external$openid$OpenIdRpAuthenticationService_$$_WeldClientProxy.java)
at org.jboss.seam.security.external.openid.OpenIdRpBean.login(OpenIdRpBean.java:50)
at org.jboss.seam.security.external.openid.OpenIdAuthenticator.authenticate(OpenIdAuthenticator.java:77)
at org.jboss.seam.security.external.openid.org$jboss$weld$bean-WEB-INF$lib$seam-security-external-3$0$0$Final-ManagedBean-class_org$jboss$seam$security$external$openid$OpenIdAuthenticator_$$_WeldClientProxy.authenticate(org$jboss$weld$bean-WEB-INF$lib$seam-security-external-3$0$0$Final-ManagedBean-class_org$jboss$seam$security$external$openid$OpenIdAuthenticator_$$_WeldClientProxy.java)
at org.jboss.seam.security.IdentityImpl.authenticate(IdentityImpl.java:305)
... 55 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 7 months
[JBoss JIRA] Created: (SOLDER-103) Annotation redefinition not executed for type-level annotations
by Jozef Hartinger (JIRA)
Annotation redefinition not executed for type-level annotations
---------------------------------------------------------------
Key: SOLDER-103
URL: https://issues.jboss.org/browse/SOLDER-103
Project: Seam Solder
Issue Type: Bug
Components: Builders
Affects Versions: 3.0.0.Final
Reporter: Jozef Hartinger
Assignee: Jozef Hartinger
Javadoc for AnnotationBuilder.redefine() says:
{quote}
Redefine any annotations of the specified type. The redefinition callback will be invoked for any annotation on the type definition or any of it's members.
{quote}
However, the callback is only invoked for annotations on type's members, not on the type itself.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 7 months
[JBoss JIRA] Created: (SEAMINTL-54) Better integration with JBossAS 7
by Juergen Zimmermann (JIRA)
Better integration with JBossAS 7
---------------------------------
Key: SEAMINTL-54
URL: https://issues.jboss.org/browse/SEAMINTL-54
Project: Seam International
Issue Type: Bug
Affects Versions: 3.0.0.Final
Reporter: Juergen Zimmermann
Assignee: Ken Finnigan
JBossAS 7 upstream contains joda-time-1.6.2.jar which can be reused for Seam International instead of doubling it in WEB-INF/lib. The solution is pretty simple:
In seam-international-VERSION.jar the file META-INF/MANIFEST.MF has to be extended by just this line:
Dependencies: org.joda.time
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 7 months
[JBoss JIRA] Created: (SEAMINTL-51) Seam-3.X-international-CI job fails on exectuing maven goal unpack
by Tomáš Remeš (JIRA)
Seam-3.X-international-CI job fails on exectuing maven goal unpack
------------------------------------------------------------------
Key: SEAMINTL-51
URL: https://issues.jboss.org/browse/SEAMINTL-51
Project: Seam International
Issue Type: Bug
Reporter: Tomáš Remeš
Assignee: Ken Finnigan
See https://hudson.qa.jboss.com/hudson/view/Seam%203/job/Seam-3.X-internation...
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.1:unpack (unpack-base-tests) on project seam-international-testsuite-integration-internals-jbossas: Unknown archiver type: No such archiver: 'x-international-ci/testsuite/internals/base/target/classes'. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.1:unpack (unpack-base-tests) on project seam-international-testsuite-integration-internals-jbossas: Unknown archiver type
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Unknown archiver type
at org.apache.maven.plugin.dependency.AbstractDependencyMojo.unpack(AbstractDependencyMojo.java:264)
at org.apache.maven.plugin.dependency.fromConfiguration.UnpackMojo.unpackArtifact(UnpackMojo.java:122)
at org.apache.maven.plugin.dependency.fromConfiguration.UnpackMojo.execute(UnpackMojo.java:95)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: org.codehaus.plexus.archiver.manager.NoSuchArchiverException: No such archiver: 'x-international-ci/testsuite/internals/base/target/classes'.
at org.codehaus.plexus.archiver.manager.DefaultArchiverManager.getUnArchiver(DefaultArchiverManager.java:80)
at org.codehaus.plexus.archiver.manager.DefaultArchiverManager.getUnArchiver(DefaultArchiverManager.java:114)
at org.apache.maven.plugin.dependency.AbstractDependencyMojo.unpack(AbstractDependencyMojo.java:230)
... 23 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 7 months
[JBoss JIRA] Created: (SEAMJMS-47) Remove Stereotype Test
by John Ament (JIRA)
Remove Stereotype Test
----------------------
Key: SEAMJMS-47
URL: https://issues.jboss.org/browse/SEAMJMS-47
Project: Seam JMS
Issue Type: Task
Components: Test Suite
Affects Versions: 3.0.0.CR1
Reporter: mschmidt
Assignee: John Ament
org.jboss.seam.jms.test.stereotype.StereotypeTest is skipped and the functionality is indeed not working
I have noticed it has also been removed from the docs, but I didn't find any open JIRA about it:
a) if this feature is to be dropped, the ignored test should be removed and the alternative approach to achieve the same thing (using @Resource(mappedName="...") @Produces @SomeQualifier Queue q) should perhaps be mentioned in the docs.
b) if this feature is planned to be fixed in some future release, there should be a JIRA for it.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 7 months
[JBoss JIRA] Created: (SOLDER-116) BeanBuilder create beans that don't support InjectionPoint injection
by Antoine Sabot-Durand (JIRA)
BeanBuilder create beans that don't support InjectionPoint injection
--------------------------------------------------------------------
Key: SOLDER-116
URL: https://issues.jboss.org/browse/SOLDER-116
Project: Seam Solder
Issue Type: Bug
Components: Builders
Affects Versions: 3.0.0.Final
Environment: MacOS X 10.7 (apple jdk 6) with Arquillian and weld-ee-embedded-1.1 container or JBoss AS 7
Reporter: Antoine Sabot-Durand
Priority: Critical
I wrote a bean like this one :
{code:java}
@MyQualifier
public class MyBean {
@Inject
InjectionPoint ip;
public String saySomething() {
String value = "";
if (ip != null)
value = ip.getAnnotated().getAnnotation(MyQualifier.class).value();
return "Hello CDI World " + value;
}
}
{code}
with MyQualifier being a simple qualifier with a non binding parameter value.
And I wrote an extension which register another version of this bean without Qualifier
{code:java}
public class MyExtension implements Extension {
@SuppressWarnings({ "unchecked", "rawtypes" })
public void afterBeanDiscovery(@Observes AfterBeanDiscovery abd, BeanManager bm) {
AnnotatedTypeBuilder annoBuilder = new AnnotatedTypeBuilder().readFromType(MyBean.class).removeFromClass(
MyQualifier.class);
AnnotatedType myAnnotatedType = annoBuilder.create();
BeanBuilder beanBuilder = new BeanBuilder(bm).readFromType(myAnnotatedType);
abd.addBean(beanBuilder.create());
}
}
{code}
When bootstrapping Weld I have the following exception :
{noformat}
org.jboss.weld.exceptions.DefinitionException: WELD-001405 Cannot inject [field] @Inject org.jboss.solderbug.MyBean.ip in a class which isnt a bean
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:280)
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:139)
at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:389)
at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:371)
at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:390)
at org.jboss.arquillian.container.weld.ee.embedded_1_1.mock.TestContainer.startContainer(TestContainer.java:257)
at org.jboss.arquillian.container.weld.ee.embedded_1_1.WeldEEMockContainer.deploy(WeldEEMockContainer.java:98)
...
{noformat}
If I comment the @Inject line in the bean everything is fine and I can use both version of the bean (with or without qualifier)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 7 months
[JBoss JIRA] Created: (SEAMPERSIST-63) Query Interface
by Frank Cornelis (JIRA)
Query Interface
---------------
Key: SEAMPERSIST-63
URL: https://issues.jboss.org/browse/SEAMPERSIST-63
Project: Seam Persistence
Issue Type: Feature Request
Reporter: Frank Cornelis
Priority: Minor
The query interface allows for easy usage of JPA queries. Basically you annotate an interface as follows:
{code}
public interface QueryInterface {
@QueryMethod("person.query.all")
List<Person> getAll();
@QueryMethod("person.select.by.name")
Person getPersonByName(@QueryParam("name") String name);
@QueryMethod(value = "person.select.by.name", nullable = true)
Person findPersonByName(@QueryParam("name") String name);
@QueryMethod("person.query.all")
Query getAllQuery();
@QueryMethod(query = "SELECT COUNT(*) FROM Person")
Long countAll();
}
{code}
Using some inject QueryInterfaceFactory you can get a proxy on this interface that will interpret the annotations towards JPA queries. See attached patch for a basic implementation.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 7 months