You are here: Home / HelpDesk / queues / General Enquiries / AWS - ec2-api-tools incompatible with openjdk

  AWS - ec2-api-tools incompatible with openjdk

Ticket Ref item969995152
Queue General
Type Support
Priority low
Raised 2010/08/05 03:39
Add to Calendar vCal   iCal
Email Resps. email helpdesk-general-item969995152@au.last-bastion.net


   admin
   new
   2010/08/05 03:39

The ec2-api-tools http://s3.amazonaws.com/ec2-downloads/ec2-api-tools.zip contains a heap of jar files that have been compiled with Sun's hotspot compiler and causes an exception when run with openjdk (1.6.0):

ec2-describe-regions -K /etc/pki/tls/private/awskey.pem -C /etc/pki/tls/certs/awscert.pem
Unexpected error:
org.codehaus.xfire.XFireRuntimeException: Couldn't load DatatypeFactory.. Nested exception is javax.xml.datatype.DatatypeConfigurationException: java.lang.ClassNotFoundException: gnu.xml.datatype.JAXPDatatypeFactory
javax.xml.datatype.DatatypeConfigurationException: java.lang.ClassNotFoundException: gnu.xml.datatype.JAXPDatatypeFactory
   at javax.xml.datatype.DatatypeFactory.newInstance(libgcj.so.9)
   at org.codehaus.xfire.aegis.type.java5.DurationType.<init>(DurationType.java:25)
   at java.lang.Class.newInstance(libgcj.so.9)
   at org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.registerIfAvailable(DefaultTypeMappingRegistry.java:434)
   at org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.createDefaultMappings(DefaultTypeMappingRegistry.java:414)
   at org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.createDefaultMappings(DefaultTypeMappingRegistry.java:311)
   at org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.<init>(DefaultTypeMappingRegistry.java:131)
   at org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.<init>(DefaultTypeMappingRegistry.java:137)
   at org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.<init>(DefaultTypeMappingRegistry.java:118)
   at org.codehaus.xfire.jaxb2.JaxbTypeRegistry.<init>(JaxbTypeRegistry.java:15)
   at com.amazonaws.ec2.doc._2009_11_30.AmazonEC2Client.create0(AmazonEC2Client.java:57)
   at com.amazonaws.ec2.doc._2009_11_30.AmazonEC2Client.<init>(AmazonEC2Client.java:26)
   at com.amazon.aes.webservices.client.Jec2.setupClient(Jec2.java:132)
   at com.amazon.aes.webservices.client.Jec2.<init>(Jec2.java:128)
   at com.amazon.aes.webservices.client.cmd.BaseCmd.invoke(BaseCmd.java:741)
   at com.amazon.aes.webservices.client.cmd.DescribeRegions.main(DescribeRegions.java:58)
Caused by: java.lang.ClassNotFoundException: gnu.xml.datatype.JAXPDatatypeFactory
   at java.lang.Class.forName(libgcj.so.9)
   at javax.xml.datatype.DatatypeFactory.newInstance(libgcj.so.9)
   ...15 more

 

Admitedly, I've not done much of an investigation here, but the actual ec2-api-tools.zip is a complete mess - it's directly packaged:

284485  12-14-09 08:25   ec2-api-tools-1.3-46266/lib/xmlsec-1.3.0.jar
   148363  12-14-09 08:25   ec2-api-tools-1.3-46266/lib/wsdl4j-1.6.1.jar
   506772  12-14-09 08:25   ec2-api-tools-1.3-46266/lib/wstx-asl-3.2.0.jar
     8066  12-14-09 08:25   ec2-api-tools-1.3-46266/lib/xfire-jsr181-api-1.0-M1.jar
  1463505  12-14-09 08:25   ec2-api-tools-1.3-46266/lib/bcprov.jar
   152030  12-14-09 08:25   ec2-api-tools-1.3-46266/lib/jdom-1.0.jar
  1797430  12-14-09 08:25   ec2-api-tools-1.3-46266/lib/xalan-j2-2.7.0.jar
    73052  12-14-09 08:25   ec2-api-tools-1.3-46266/lib/jaxb-api-2.0.jar
   903247  12-14-09 08:25   ec2-api-tools-1.3-46266/lib/xfire-all-1.2.6.jar
   276661  12-14-09 08:25   ec2-api-tools-1.3-46266/lib/commons-httpclient-3.0.jar
   388068  12-14-09 08:25   ec2-api-tools-1.3-46266/lib/mail-1.4.jar
   413521  12-14-09 08:25   ec2-api-tools-1.3-46266/lib/ec2-java-client.jar
   367793  12-14-09 08:25   ec2-api-tools-1.3-46266/lib/log4j.jar
    62958  12-14-09 08:25   ec2-api-tools-1.3-46266/lib/activation-1.1.jar
   194339  12-14-09 08:25   ec2-api-tools-1.3-46266/lib/xalan-j2-serializer-2.7.0.jar
    25843  12-14-09 08:25   ec2-api-tools-1.3-46266/lib/stax-api-1.0.1.jar
    70386  12-14-09 08:25   ec2-api-tools-1.3-46266/lib/commons-discovery-0.2.jar
    23609  12-14-09 08:25   ec2-api-tools-1.3-46266/lib/jaxws-api-2.0.jar
   784874  12-14-09 08:25   ec2-api-tools-1.3-46266/lib/jaxb-impl-2.0.1.jar
    35768  12-14-09 08:25   ec2-api-tools-1.3-46266/lib/commons-cli-1.1.jar
    37629  12-14-09 08:25   ec2-api-tools-1.3-46266/lib/commons-logging-1.0.4.jar
   540877  12-14-09 08:25   ec2-api-tools-1.3-46266/lib/wss4j-1.5.1.jar
    46696  12-14-09 08:25   ec2-api-tools-1.3-46266/lib/commons-codec-1.3.jar

 

All of which are already in my distro.  I'd prefer simply to have the source code to the ec2-api-tools.jar and to build this from scratch using the jdk of my choice.

 

   amilligan
   completedComplete
   2011/09/19 14:19

euca2ools python API's work!!



Post-it
pychef/plone Widget entfernen