[jira] [Created] (DELTASPIKE-798) Support for uber-jar creation in SE support
Rudy De Busscher created DELTASPIKE-798: --- Summary: Support for uber-jar creation in SE support Key: DELTASPIKE-798 URL: https://issues.apache.org/jira/browse/DELTASPIKE-798 Project: DeltaSpike Issue Type: New Feature Components: CdiControl Affects Versions: 1.2.0 Reporter: Rudy De Busscher When a single jar file is created with all dependencies (maven-shade-plugin) the program doesn't run -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (DELTASPIKE-798) Support for uber-jar creation in SE support
[ https://issues.apache.org/jira/browse/DELTASPIKE-798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14243911#comment-14243911 ] Rudy De Busscher commented on DELTASPIKE-798: - Using the the jse-examples project Add this to the POM plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-shade-plugin/artifactId version2.3/version /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.4/version configuration archive manifest mainClassorg.apache.deltaspike.example.beanmanagement.SimpleBeanLookupExample/mainClass /manifest /archive /configuration /plugin run *maven -jar deltaspike... .jar* - java.lang.ClassNotFoundException Running from within IDE, everything is fine. Support for uber-jar creation in SE support --- Key: DELTASPIKE-798 URL: https://issues.apache.org/jira/browse/DELTASPIKE-798 Project: DeltaSpike Issue Type: New Feature Components: CdiControl Affects Versions: 1.2.0 Reporter: Rudy De Busscher When a single jar file is created with all dependencies (maven-shade-plugin) the program doesn't run -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (DELTASPIKE-798) Support for uber-jar creation in SE support
[ https://issues.apache.org/jira/browse/DELTASPIKE-798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14243914#comment-14243914 ] Rudy De Busscher commented on DELTASPIKE-798: - Using my program, I get a lot of issues *with weld* - WELD-001409 Ambiguous dependencies *With OWB* UnsatisfiedResolutionException : ExceptionControlExtension and a lot of Class not founds Support for uber-jar creation in SE support --- Key: DELTASPIKE-798 URL: https://issues.apache.org/jira/browse/DELTASPIKE-798 Project: DeltaSpike Issue Type: New Feature Components: CdiControl Affects Versions: 1.2.0 Reporter: Rudy De Busscher When a single jar file is created with all dependencies (maven-shade-plugin) the program doesn't run -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (DELTASPIKE-798) Support for uber-jar creation in SE support
[ https://issues.apache.org/jira/browse/DELTASPIKE-798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14245347#comment-14245347 ] Rudy De Busscher commented on DELTASPIKE-798: - I investigated the problem a bit more. And for OWB, I already have a solution The asm:asm:3.3.1 dependency was missing from the created jar and there was a need for merging the *javax.enterprise.inject.spi.Extension* files. Within the _maven shade config_, you can achieve it by adding the following. configuration transformers transformer implementation=org.apache.maven.plugins.shade.resource.ServicesResourceTransformer/ /transformers /configuration For weld, I still get the _WELD-001409 Ambiguous dependencies for type_ (multiple ones) I'll try to find out why. Support for uber-jar creation in SE support --- Key: DELTASPIKE-798 URL: https://issues.apache.org/jira/browse/DELTASPIKE-798 Project: DeltaSpike Issue Type: New Feature Components: CdiControl Affects Versions: 1.2.0 Reporter: Rudy De Busscher Assignee: Rafael Benevides Priority: Minor When a single jar file is created with all dependencies (maven-shade-plugin) the program doesn't run -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (DELTASPIKE-798) Support for uber-jar creation in SE support
[ https://issues.apache.org/jira/browse/DELTASPIKE-798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14245362#comment-14245362 ] Rudy De Busscher commented on DELTASPIKE-798: - So, in attachment a maven project structure which works for OWB and Weld and this from within IDE and from single jar. OWB from within IDE (ignore the maven shaded artifacts ) *mvn clean package -P OWB* Weld from within IDE (ignore the maven shaded artifacts ) *mvn clean package -P Weld* OWB from command-line with single jar *mvn clean package -P OWB,shade* *java -jar grid.jar* Weld from command-line with single jar *mvn clean package -P Weld* *java -jar grid.jar* Support for uber-jar creation in SE support --- Key: DELTASPIKE-798 URL: https://issues.apache.org/jira/browse/DELTASPIKE-798 Project: DeltaSpike Issue Type: New Feature Components: CdiControl Affects Versions: 1.2.0 Reporter: Rudy De Busscher Assignee: Rafael Benevides Priority: Minor When a single jar file is created with all dependencies (maven-shade-plugin) the program doesn't run -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (DELTASPIKE-798) Support for uber-jar creation in SE support
[ https://issues.apache.org/jira/browse/DELTASPIKE-798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14245364#comment-14245364 ] Rudy De Busscher commented on DELTASPIKE-798: - Until documented, maybe this issue should be kept open. Support for uber-jar creation in SE support --- Key: DELTASPIKE-798 URL: https://issues.apache.org/jira/browse/DELTASPIKE-798 Project: DeltaSpike Issue Type: New Feature Components: CdiControl Affects Versions: 1.2.0 Reporter: Rudy De Busscher Assignee: Rafael Benevides Priority: Minor When a single jar file is created with all dependencies (maven-shade-plugin) the program doesn't run -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (DELTASPIKE-798) Support for uber-jar creation in SE support
[ https://issues.apache.org/jira/browse/DELTASPIKE-798?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rudy De Busscher updated DELTASPIKE-798: Attachment: DS_SE_Single_Jar.zip maven example project for using maven shade plugin and DeltaSpike SE features. Support for uber-jar creation in SE support --- Key: DELTASPIKE-798 URL: https://issues.apache.org/jira/browse/DELTASPIKE-798 Project: DeltaSpike Issue Type: New Feature Components: CdiControl Affects Versions: 1.2.0 Reporter: Rudy De Busscher Assignee: Rafael Benevides Priority: Minor Attachments: DS_SE_Single_Jar.zip When a single jar file is created with all dependencies (maven-shade-plugin) the program doesn't run -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (DELTASPIKE-798) Support for uber-jar creation in SE support
[ https://issues.apache.org/jira/browse/DELTASPIKE-798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14245382#comment-14245382 ] Rudy De Busscher commented on DELTASPIKE-798: - Could be documented in DS documentation as people using DS will have the same issue as I had. I can do it in the following weeks. Asked Gerhard already where I should put it. Support for uber-jar creation in SE support --- Key: DELTASPIKE-798 URL: https://issues.apache.org/jira/browse/DELTASPIKE-798 Project: DeltaSpike Issue Type: New Feature Components: CdiControl Affects Versions: 1.2.0 Reporter: Rudy De Busscher Assignee: Rafael Benevides Priority: Minor Attachments: DS_SE_Single_Jar.zip When a single jar file is created with all dependencies (maven-shade-plugin) the program doesn't run -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Resolved] (DELTASPIKE-1279) SimpleSecurityViolation needs equals/hashcode
[ https://issues.apache.org/jira/browse/DELTASPIKE-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rudy De Busscher resolved DELTASPIKE-1279. -- Resolution: Fixed > SimpleSecurityViolation needs equals/hashcode > - > > Key: DELTASPIKE-1279 > URL: https://issues.apache.org/jira/browse/DELTASPIKE-1279 > Project: DeltaSpike > Issue Type: Improvement > Components: Core >Reporter: Rudy De Busscher >Assignee: Rudy De Busscher > Fix For: 1.8.1 > > > SimpleSecurityViolation can be used to add violations to the Set of > violations when writing a custom voter. > Creation of the instance can be done by > org.apache.deltaspike.security.api.authorization.AbstractDecisionVoter#newSecurityViolation > But since the class SimpleSecurityViolation has no equals/hashcode, adding 2 > or more violations with the same reason results in multiple entries within > the Set. > A simple equals/hashcode based on the reason String property solves this. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Created] (DELTASPIKE-1279) SimpleSecurityViolation needs equals/hashcode
Rudy De Busscher created DELTASPIKE-1279: Summary: SimpleSecurityViolation needs equals/hashcode Key: DELTASPIKE-1279 URL: https://issues.apache.org/jira/browse/DELTASPIKE-1279 Project: DeltaSpike Issue Type: Improvement Components: Core Reporter: Rudy De Busscher SimpleSecurityViolation can be used to add violations to the Set of violations when writing a custom voter. Creation of the instance can be done by org.apache.deltaspike.security.api.authorization.AbstractDecisionVoter#newSecurityViolation But since the class SimpleSecurityViolation has no equals/hashcode, adding 2 or more violations with the same reason results in multiple entries within the Set. A simple equals/hashcode based on the reason String property solves this. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Updated] (DELTASPIKE-1279) SimpleSecurityViolation needs equals/hashcode
[ https://issues.apache.org/jira/browse/DELTASPIKE-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rudy De Busscher updated DELTASPIKE-1279: - Fix Version/s: 1.8.1 > SimpleSecurityViolation needs equals/hashcode > - > > Key: DELTASPIKE-1279 > URL: https://issues.apache.org/jira/browse/DELTASPIKE-1279 > Project: DeltaSpike > Issue Type: Improvement > Components: Core >Reporter: Rudy De Busscher >Assignee: Rudy De Busscher > Fix For: 1.8.1 > > > SimpleSecurityViolation can be used to add violations to the Set of > violations when writing a custom voter. > Creation of the instance can be done by > org.apache.deltaspike.security.api.authorization.AbstractDecisionVoter#newSecurityViolation > But since the class SimpleSecurityViolation has no equals/hashcode, adding 2 > or more violations with the same reason results in multiple entries within > the Set. > A simple equals/hashcode based on the reason String property solves this. -- This message was sent by Atlassian JIRA (v6.4.14#64029)