-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
6u21
-
x86
-
linux_ubuntu
FULL PRODUCT VERSION :
$ java -version
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) Server VM (build 17.0-b16, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
$ uname -a
Linux telman-laptop 2.6.32-24-generic-pae #38-Ubuntu SMP Mon Jul 5 10:54:21 UTC 2010 i686 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
description is in the section "Steps to Reproduce:"
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
ide platform Netbeans 6.7.1
project is ear = ejb+ war
create an enterprise application ( ear = ejb+war )
you have to configure persistence.xml for hibernate3.3.2
use the Local interface of Session Bean in war that force to include ejb project to war.
observe that this code is success compiled.
add @Cache(usage=CacheConcurrencyStrategy.TRANSACTIONAL) annotation for some entity
observe that adding the above annotation causes the compile fail.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
success compile
ACTUAL -
tha same with "Steps to Reproduce" section
ERROR MESSAGES/STACK TRACES THAT OCCUR :
/home/telman/tspakb_new/trunk1.3/egitim-ejb/dist/egitim-ejb.jar(org/tspakb/egitim/entity/EducationDefinitionCard.class): warning: Cannot find annotation method 'usage()' in type 'org.hibernate.annotations.Cache': class file for org.hibernate.annotations.Cache not found
An exception has occurred in the compiler (1.6.0_21). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
com.sun.tools.javac.code.Symbol$CompletionFailure: class file for org.hibernate.annotations.CacheConcurrencyStrategy not found
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
..
@Entity
@Cache(usage=CacheConcurrencyStrategy.TRANSACTIONAL) ---> this line leads to compile failed.
@Table(name = "EDUCATION_DEFINITION_CARD")
public class EducationDefinitionCard implements Serializable {
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
By adding all needed hibernate jars that is ALREADY in ejb project to war project libs I have resolved the issue.
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/antlr-2.7.6.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/asm-attrs.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/asm.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/cglib-2.1.3.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/commons-collections-3.1.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/commons-logging-1.1.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/dom4j-1.6.1.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/ehcache-1.2.3.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/ejb3-persistence.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/envers-1.2.2.ga-hibernate-3.3.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/hibernate-annotations.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/hibernate-commons-annotations.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/hibernate-entitymanager.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/hibernate-tools.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/hibernate3.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/javassist-3.9.0.GA.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/jdbc2_0-stdext.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/jta-1.1.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/jtidy-r8-20060801.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/slf4j-api-1.5.8.jar!/
SUPPORT :
YES
$ java -version
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) Server VM (build 17.0-b16, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
$ uname -a
Linux telman-laptop 2.6.32-24-generic-pae #38-Ubuntu SMP Mon Jul 5 10:54:21 UTC 2010 i686 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
description is in the section "Steps to Reproduce:"
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
ide platform Netbeans 6.7.1
project is ear = ejb+ war
create an enterprise application ( ear = ejb+war )
you have to configure persistence.xml for hibernate3.3.2
use the Local interface of Session Bean in war that force to include ejb project to war.
observe that this code is success compiled.
add @Cache(usage=CacheConcurrencyStrategy.TRANSACTIONAL) annotation for some entity
observe that adding the above annotation causes the compile fail.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
success compile
ACTUAL -
tha same with "Steps to Reproduce" section
ERROR MESSAGES/STACK TRACES THAT OCCUR :
/home/telman/tspakb_new/trunk1.3/egitim-ejb/dist/egitim-ejb.jar(org/tspakb/egitim/entity/EducationDefinitionCard.class): warning: Cannot find annotation method 'usage()' in type 'org.hibernate.annotations.Cache': class file for org.hibernate.annotations.Cache not found
An exception has occurred in the compiler (1.6.0_21). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
com.sun.tools.javac.code.Symbol$CompletionFailure: class file for org.hibernate.annotations.CacheConcurrencyStrategy not found
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
..
@Entity
@Cache(usage=CacheConcurrencyStrategy.TRANSACTIONAL) ---> this line leads to compile failed.
@Table(name = "EDUCATION_DEFINITION_CARD")
public class EducationDefinitionCard implements Serializable {
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
By adding all needed hibernate jars that is ALREADY in ejb project to war project libs I have resolved the issue.
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/antlr-2.7.6.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/asm-attrs.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/asm.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/cglib-2.1.3.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/commons-collections-3.1.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/commons-logging-1.1.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/dom4j-1.6.1.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/ehcache-1.2.3.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/ejb3-persistence.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/envers-1.2.2.ga-hibernate-3.3.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/hibernate-annotations.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/hibernate-commons-annotations.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/hibernate-entitymanager.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/hibernate-tools.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/hibernate3.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/javassist-3.9.0.GA.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/jdbc2_0-stdext.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/jta-1.1.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/jtidy-r8-20060801.jar!/
jar:file:/home/telman/tspakb-eys-lib/hibernate3.2.GA/slf4j-api-1.5.8.jar!/
SUPPORT :
YES