Bug 683136 - Include hibernate-annotations.jar in remote api/cli download
Summary: Include hibernate-annotations.jar in remote api/cli download
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: CLI
Version: 4.0.0.B02
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Ian Springer
QA Contact: Corey Welton
URL:
Whiteboard:
Depends On:
Blocks: rhq4
TreeView+ depends on / blocked
 
Reported: 2011-03-08 16:27 UTC by Ivan
Modified: 2013-08-06 00:38 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-05-24 01:13:34 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.