Forum Discussion

vishal_124938's avatar
vishal_124938
Icon for Nimbostratus rankNimbostratus
Feb 22, 2013

Downloading iControl jar using maven pom.xml

Hi,

 

 

We are using maven framework. What are the parameters I need to give in pom.xml so that maven will download the iControl.jar while doing "mvn install"?

 

 

-Vishal

 

  • I haven't used Maven before so I'm not sure how to integrate it. You'll have to make sure you get the other Apache Axis jar files included in the distribution as well.

     

    -Joe

     

  • Sure Joe. Thank you very much for your quick response. Is the iControl jar placed in maven repository so that it is available to everyone? Where can i find this information?
  • Right now the iControl libraries for Java and .Net are open source projects here on DevCentral. You can download the binaries in the iControl Assembly labs project at: https://devcentral.f5.com/community/group/aff/2106/asg/2

     

    v11.3 of the iControl libs (.jars and .dlls) we just published yesterday.

     

    -Joe

     

  • Thanks Joe.

     

     

    We are currently trying to send configurations to big Ip Local transport Manager from our application. Will this api be able to push vlan configs to big ip devices?
  • The API is modeled off of the GUI so if you can do what you want through the GUI, you'll be able to do it programmatically through iControl. Most likely the Networking.VLAN interface is where you want to look at.

     

    -Joe

     

  • I am not finding the interface networking in the iControl 11.3 jar

     

     

    I tried

     

    iControl.Networking - Not found

     

    iControl.Objects - Not found

     

     

    Any idea?
  • I used NetworkingVLAN.getNetworkingVLANPort().create_v2(arg0, arg1, arg2, arg3, arg4); to create a new vlan as we do from Local Traffic Manager. Could you please confirm if this works?

     

     

    Thank you very much for your help.
  • Hi,

     

     

    I used the following

     

    NetworkingVLAN.getNetworkingVLANPort().create_v2(vlanNames, vlanIds, arrayOfNetworkingVLANMembers, arrayeOfCommonEnabledState, timeOut);

     

     

    And am getting the following Exception

     

     

    Unknown method "{urn:iControl:Networking/VLAN}:create_v2

     

     

    Do i need to import anything else apart from iControl.jar?

     

     

    More details of the Exception

     

    ==================

     

    AxisFault

     

    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client

     

    faultSubcode:

     

    faultString: Unknown method "{urn:iControl:Networking/VLAN}:create_v2"

     

    faultActor:

     

    faultNode:

     

    faultDetail:

     

    {http://xml.apache.org/axis/}stackTrace:Unknown method "{urn:iControl:Networking/VLAN}:create_v2"

     

    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)

     

    at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)

     

    at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)

     

    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

     

    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)

     

    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

     

    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

     

    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

     

    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

     

    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

     

    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

     

    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

     

    at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)

     

    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)

     

    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)

     

    at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)

     

    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)

     

    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)

     

    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)

     

    at org.apache.axis.client.Call.invoke(Call.java:2767)

     

    at org.apache.axis.client.Call.invoke(Call.java:2443)

     

    at org.apache.axis.client.Call.invoke(Call.java:2366)

     

    at org.apache.axis.client.Call.invoke(Call.java:1812)

     

    at iControl.NetworkingVLANBindingStub.create_v2(NetworkingVLANBindingStub.java:796)

     

    at com.anuta.service.features.BigIpLTMFeature.addVlansAndSelfIps(BigIpLTMFeature.java:223)

     

     

    {http://xml.apache.org/axis/}hostname:anutauser-THINK

     

     

    -Vishal
  • The "Unknown method" error typically means that you are using a newer version of the library and trying to access a method that on an older version that didn't exist yet. Networking.VLAN.create_v2() was added in v11.0. What's the version of the BIG-IP you are connecting to? If you are pre v11.0, you'll want to use the Networking.VLAN.create() method.

     

     

    -Joe