-
Notifications
You must be signed in to change notification settings - Fork 19
ClassCastException #19
Comments
Can you reproduce the issue in a clean workspace, only importing the offending project, or the whole clustering module? |
Yes, Here are the steps
I get Description Resource Path Location Type |
So far I've been unable to reproduce the problem on win7 64 (eclipse running with JDK 1.7.0_10, project built with JDK 1.6.0_37), using JBDS 6.0.0 (based off eclipse 4.2.1). I'll try on a linux vm tomorrow. Will need someone else to test OSX. |
I was able to resolve this issue by disabling, validation through Preferences -> Maven -> AnnotationProcessing, then manually removing the .factorypath file from command line. Refresh the project and re enable validation processing in the project preferences. I have a suspicion that the problem was due to adding a dependency for apiviz which forced me initially to add a system dependency on the java classes.jar file. Just a hunch though
|
m2e-apt's code is now included in https://github.com/eclipse-m2e/m2e-core , please consider reporting issue to https://github.com/eclipse-m2e/m2e-core/issues if it's still relevant. |
Hi,
I'm trying to use this with https://github.com/jbossas/jboss-as in Eclipse 4.2.1 on OS X Lion . When building the project I get:
Description Resource Path Location Type
Internal compiler error: java.lang.ClassCastException: com.sun.istack.internal.ws.AnnotationProcessorFactoryImpl cannot be cast to com.sun.mirror.apt.AnnotationProcessorFactory at org.eclipse.jdt.apt.core.internal.AnnotationProcessorFactoryLoader.loadJava5FactoryClasses(AnnotationProcessorFactoryLoader.java:566) JGroupsLogger_$logger.java /jboss-as-clustering-jgroups/target/generated-sources/annotations/org/jboss/as/clustering/jgroups line 0 Java Problem
(We use annotation processing to create the internationalized logger classes). The class it is trying to generate would be based on clustering/jgroups/src/main/java/org/jboss/as/clustering/jgroups/JGroupsLogger.java.
$java -version
java version "1.6.0_37"
Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909)
Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)
I enabled the "Automatically Configure JDT..." for all projects in Eclipse/Preferences. Not doing that and enabling it for individual projects works, although I have not tried enabling it for the project causing the error.
The text was updated successfully, but these errors were encountered: