Bug 911054

Summary: Unable to use Antlr preprocessor to read grammar file: antlr.CommonToken cannot be cast to antlr.Token
Product: [Fedora] Fedora Reporter: gil cattaneo <puntogil>
Component: antlr-maven-pluginAssignee: Stanislav Ochotnicky <sochotni>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: mizdebsk, sochotni, tcallawa
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: antlr-maven-plugin-2.2-9.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-04 09:31:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 914612    

Description gil cattaneo 2013-02-14 09:50:28 UTC
Description of problem:

apacheds-shared fails to build in f19/rawhide

[ERROR] Failed to execute goal org.codehaus.mojo:antlr-maven-plugin:2.2:generate (default) on project shared-ldap: Unable to use Antlr preprocessor to read grammar file: antlr.CommonToken cannot be cast to antlr.Token -> [Help 1]

http://koji.fedoraproject.org/koji/getfile?taskID=4961261&name=build.log
http://koji.fedoraproject.org/koji/getfile?taskID=4961261&name=mock_output.log
http://koji.fedoraproject.org/koji/getfile?taskID=4961261&name=root.log
http://koji.fedoraproject.org/koji/getfile?taskID=4961261&name=state.log

mvn-rpmbuild -X install javadoc:aggregate
http://kojipkgs.fedoraproject.org//work/tasks/7753/4967753/build.log
http://kojipkgs.fedoraproject.org//work/tasks/7753/4967753/mock_output.log
http://kojipkgs.fedoraproject.org//work/tasks/7753/4967753/root.log
http://kojipkgs.fedoraproject.org//work/tasks/7753/4967753/state.log
in my sistem (f18) build without problems

How reproducible:
in f19 only (?)

Comment 2 Stanislav Ochotnicky 2013-03-04 08:17:24 UTC
I'll create a bugfix, it's classloader clashes of antlr within antlr-maven-plugin. Simple exclusion should fix it

Comment 3 Stanislav Ochotnicky 2013-03-04 09:31:39 UTC
This build should fix the issue once it gets into buildroots. 
http://koji.fedoraproject.org/koji/taskinfo?taskID=5075191

If the problem persists feel free to reopen