You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bval.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2010/05/26 08:12:32 UTC
[jira] Created: (BVAL-62) add missing ASL headers
add missing ASL headers
-----------------------
Key: BVAL-62
URL: https://issues.apache.org/jira/browse/BVAL-62
Project: BeanValidation
Issue Type: Bug
Affects Versions: 0.1-incubating
Reporter: Mark Struberg
Assignee: Mark Struberg
Fix For: 0.1-incubating
currently RAT reports a few files without license headers.
This must get fixed
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (BVAL-62) add missing ASL headers
Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BVAL-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12871566#action_12871566 ]
Mark Struberg commented on BVAL-62:
-----------------------------------
Sorry, but I'm not a huge fan of reverting a commit _without_ any discussion.
I checked out the latest spec and read the following:
4.4.4.1
> By default, providers are resolved using the Service Provider pattern described in
> http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html#Service%20Provider. Bean Validation providers must supply a
> service provider configuration file by creating a text file javax.validation.spi.ValidationProvider and placing
> it in the META-INF/services directory of one of its jar files. The content of the file should contain the name of the
> provider implementation class of the javax.validation.spi.ValidationProvider interface.
But we internally currently dont use the java.util.ServiceLoader but do a
cl.getResources(SPI_CFG);
instead in DefaultValidationProviderResolver#getValidationProviders()
This is imo a bug in our impl!
See here for how to use the ServiceLoader mechanism properly:
https://svn.apache.org/repos/asf/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/plugins/PluginLoader.java
LieGrue,
strub
> add missing ASL headers
> -----------------------
>
> Key: BVAL-62
> URL: https://issues.apache.org/jira/browse/BVAL-62
> Project: BeanValidation
> Issue Type: Bug
> Affects Versions: 0.1-incubating
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Fix For: 0.1-incubating
>
>
> currently RAT reports a few files without license headers.
> This must get fixed
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (BVAL-62) add missing ASL headers
Posted by "Roman Stumm (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BVAL-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12871554#action_12871554 ]
Roman Stumm commented on BVAL-62:
---------------------------------
Since svn commit #948336, one TCK test fails:
java.lang.RuntimeException: Unable to load service file
at org.hibernate.jsr303.tck.tests.bootstrap.ValidationProviderResolverTest.readBeanValidationServiceFile(ValidationProviderResolverTest.java:84)
at org.hibernate.jsr303.tck.tests.bootstrap.ValidationProviderResolverTest.testServiceFileExists(ValidationProviderResolverTest.java:60)
Caused by: java.lang.ClassNotFoundException:
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.hibernate.jsr303.tck.tests.bootstrap.ValidationProviderResolverTest.loadClass(ValidationProviderResolverTest.java:127)
at org.hibernate.jsr303.tck.tests.bootstrap.ValidationProviderResolverTest.addProviderToList(ValidationProviderResolverTest.java:98)
at org.hibernate.jsr303.tck.tests.bootstrap.ValidationProviderResolverTest.readBeanValidationServiceFile(ValidationProviderResolverTest.java:80)
... 37 more
Maybe the DefaultValidationProviderResolver does not support #-comments in bval-jsr303/src/main/resources/META-INF/services/javax.validation.spi.ValidationProvider .
Could you please verify this or revert the change?
> add missing ASL headers
> -----------------------
>
> Key: BVAL-62
> URL: https://issues.apache.org/jira/browse/BVAL-62
> Project: BeanValidation
> Issue Type: Bug
> Affects Versions: 0.1-incubating
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Fix For: 0.1-incubating
>
>
> currently RAT reports a few files without license headers.
> This must get fixed
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (BVAL-62) add missing ASL headers
Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BVAL-62?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Donald Woods resolved BVAL-62.
------------------------------
Resolution: Fixed
Fixed by Mark in r948386
> add missing ASL headers
> -----------------------
>
> Key: BVAL-62
> URL: https://issues.apache.org/jira/browse/BVAL-62
> Project: BeanValidation
> Issue Type: Bug
> Affects Versions: 0.1-incubating
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Fix For: 0.1-incubating
>
>
> currently RAT reports a few files without license headers.
> This must get fixed
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (BVAL-62) add missing ASL headers
Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BVAL-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12871562#action_12871562 ]
Mark Struberg commented on BVAL-62:
-----------------------------------
yes will do. Looks like the JSR-303 TCK isn't using java.util.ServiceLoader ?
> add missing ASL headers
> -----------------------
>
> Key: BVAL-62
> URL: https://issues.apache.org/jira/browse/BVAL-62
> Project: BeanValidation
> Issue Type: Bug
> Affects Versions: 0.1-incubating
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Fix For: 0.1-incubating
>
>
> currently RAT reports a few files without license headers.
> This must get fixed
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (BVAL-62) add missing ASL headers
Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BVAL-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12871645#action_12871645 ]
Donald Woods commented on BVAL-62:
----------------------------------
Mark, I don't see why you think the services file is an issue. We have several occurrences of this today in the Geronimo and OpenJPA projects, where we cannot include the license header in services files. This has been a known problem for years and has never stopped a release before.
Also, when I run "mvn rat:check" on the source, I get no hits. Maybe you're environment is using the old codehaus version instead of the apache-rat that we switched to the other day? Try running this to make sure -
mvn clean apache-rat:heck
When it runs, you should see the following excludes get applied -
[INFO] [clean:clean {execution: default-clean}]
[INFO] [apache-rat:check {execution: default-cli}]
[INFO] Exclude: **/javax.validation.spi.ValidationProvider
[INFO] Exclude: README.txt
[INFO] Exclude: CHANGES.txt
[INFO] Exclude: **/.*/**
[INFO] Exclude: **/*.ftl
[INFO] Exclude: **/*.iml
[INFO] Exclude: **/*.log
[INFO] Exclude: **/maven-eclipse.xml
[INFO] Exclude: **/rat.txt
[INFO] Exclude: **/target/**/*
> add missing ASL headers
> -----------------------
>
> Key: BVAL-62
> URL: https://issues.apache.org/jira/browse/BVAL-62
> Project: BeanValidation
> Issue Type: Bug
> Affects Versions: 0.1-incubating
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Fix For: 0.1-incubating
>
>
> currently RAT reports a few files without license headers.
> This must get fixed
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (BVAL-62) add missing ASL headers
Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BVAL-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12871576#action_12871576 ]
Mark Struberg commented on BVAL-62:
-----------------------------------
thanks Roman, that's perfectly fine for me. But we should not forget. I'll create a fresh Jira for it.
> add missing ASL headers
> -----------------------
>
> Key: BVAL-62
> URL: https://issues.apache.org/jira/browse/BVAL-62
> Project: BeanValidation
> Issue Type: Bug
> Affects Versions: 0.1-incubating
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Fix For: 0.1-incubating
>
>
> currently RAT reports a few files without license headers.
> This must get fixed
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (BVAL-62) add missing ASL headers
Posted by "Roman Stumm (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BVAL-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12871573#action_12871573 ]
Roman Stumm commented on BVAL-62:
---------------------------------
Hi, yes, you are right! Sorry for reverting your change, but I wanted to see the tests passing again and I thought it is easy to redo it when it's finally fixed...
I (or whoever fixes this issue) should use the ServiceLoader and check in with license comments again AFTER all TCK tests have passed.
> add missing ASL headers
> -----------------------
>
> Key: BVAL-62
> URL: https://issues.apache.org/jira/browse/BVAL-62
> Project: BeanValidation
> Issue Type: Bug
> Affects Versions: 0.1-incubating
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Fix For: 0.1-incubating
>
>
> currently RAT reports a few files without license headers.
> This must get fixed
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.