Jmxterm can't build on Mac OS X

Bug #319066 reported by Jiaqi Guo
2
Affects Status Importance Assigned to Milestone
Jmxterm
Fix Released
Critical
Jiaqi Guo

Bug Description

The bug is reported from Forum by David. http://n2.nabble.com/Can%27t-Build-JAR-on-Mac-OS-X-td2094079.html

Basically the pom.xml defines tools.jar and jconsole.jar with system scope and ${java.home}/../lib/tools.jar and ${java.home}/../lib/jconsole.jar path, which are invalid on Mac OS X where they are located under ${java.home}/../Classes and named as classes.jar and jconsole.jar. At runtime this issue also exist because classworlds configuration expects jars in wrong location too.

Jmxterm code needs to be changed so that it could find tools.jar and jconsole.jar correctly on different operating system.

Related branches

Jiaqi Guo (jiaqi-guo)
Changed in jmxterm:
assignee: nobody → jiaqi-guo
importance: Undecided → Critical
status: New → In Progress
Jiaqi Guo (jiaqi-guo)
Changed in jmxterm:
status: In Progress → Confirmed
status: Confirmed → In Progress
Revision history for this message
Jiaqi Guo (jiaqi) wrote :

The code is changed to load tools.jar and jconsole.jar programmatically at runtime. It has been verified on Mac OS. On Mac OS, application prints out an annoying line for jline after fix, which needs a potential future improve

Changed in jmxterm:
status: In Progress → Fix Committed
Revision history for this message
Jiaqi Guo (jiaqi) wrote :
Changed in jmxterm:
status: Fix Committed → Fix Released
Revision history for this message
Christophe DENEUX (christophe-deneux) wrote :

I have just tried to build jmxterm from source code extracted from Git. After to have cloned caff, jcli, jmxterm and build successfully caff and jcli, I get the following error during unit tests of jmxterm.

Can you help me ! I'm trying to add a support for Mbean's notifications.

Thanks,
Christophe
--------------
testExecuteWithOption(org.cyclopsgroup.jmxterm.cc.HelpCommandTest) Time elapsed: 0.06 sec <<< ERROR!
java.lang.NoSuchMethodError: org.cyclopsgroup.caff.conversion.AnnotatedConverter.<init>(Ljava/lang/Class;Ljava/beans/PropertyDescriptor;)V
 at org.cyclopsgroup.jcli.impl.ParsingContextBuilder.createReference(ParsingContextBuilder.java:41)
 at org.cyclopsgroup.jcli.impl.ParsingContextBuilder.build(ParsingContextBuilder.java:115)
 at org.cyclopsgroup.jcli.impl.DefaultArgumentProcessor.<init>(DefaultArgumentProcessor.java:24)
 at org.cyclopsgroup.jcli.impl.DefaultArgumentProcessorFactory.newProcessor(DefaultArgumentProcessorFactory.java:24)
 at org.cyclopsgroup.jcli.ArgumentProcessor.newInstance(ArgumentProcessor.java:41)
 at org.cyclopsgroup.jcli.ArgumentProcessor.newInstance(ArgumentProcessor.java:28)
 at org.cyclopsgroup.jmxterm.cc.HelpCommand.execute(HelpCommand.java:59)
 at org.cyclopsgroup.jmxterm.cc.HelpCommandTest.testExecuteWithOption(HelpCommandTest.java:69)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.