Bug 683136

Summary: Include hibernate-annotations.jar in remote api/cli download
Product: [Other] RHQ Project Reporter: Ivan <imckinle>
Component: CLIAssignee: Ian Springer <ian.springer>
Status: CLOSED CURRENTRELEASE QA Contact: Corey Welton <cwelton>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0.0.B02CC: ccrouch, mazz, mfoley
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-24 01:13:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 585306    

Description Ivan 2011-03-08 16:27:24 UTC
Description of problem:
classes compiled against the JON remote api bundled with the downloaded cli-client will fail with the following compile error 


Information:An exception has occurred in the compiler (1.6.0_17). 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.
Information:com.sun.tools.javac.code.Symbol$CompletionFailure: class file for org.hibernate.annotations.CascadeType not found
Information:Compilation completed with 1 error and 0 warnings
Information:1 error
Information:0 warnings


Error:Compiler internal error. Process terminated with exit code 4 

Version-Release number of selected component (if applicable):jon 2.4.1


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
adding JON_SERVER/jbossas/client/hibernate-annotations.jar to the projects classpath will resolve this issue.

Comment 1 Ian Springer 2011-04-05 17:10:02 UTC
[master 1a711ed] adds hibernate-annotations.jar to the CLI's lib dir, so you should now be able to compile custom RHQ remote clients using CLI/lib/*.jar as the compile classpath. 

However, if you are using Maven to build your custom client, an easier way to go would be to add a dependency on the rhq-remoting-client-api aggregator pom as follows:

      <dependency>
         <groupId>org.rhq</groupId>
         <artifactId>rhq-remoting-client-api</artifactId>
         <version>${rhq.version}</version>
      </dependency>

That should transitively pull in all the jars that are needed by a remote client.

Comment 2 Mike Foley 2011-04-19 12:57:00 UTC
downloaded the rhq-remoting-cli-4.0.0-SNAPSHOT.zip file from the 4/29/2011 release.  verified that the CLI jar file contains hibernate-annotations-3.2.1.jar

Comment 3 Corey Welton 2011-05-24 01:13:34 UTC
Bookkeeping - closing bug - fixed in recent release.

Comment 4 Corey Welton 2011-05-24 01:13:34 UTC
Bookkeeping - closing bug - fixed in recent release.

Comment 5 Corey Welton 2011-05-24 01:13:34 UTC
Bookkeeping - closing bug - fixed in recent release.