Forum Discussion
Sunit_Tailor_11
Nimbostratus
Sep 29, 2005Use of iControl.jar is WebSphere
Hi,
I am trying to use iControl SDK to one of our WebSphere application to communicate to F5 device to do the management and configuration of F5. I have loaded iControl.jsr to the runtime environment of this application. I am trying to test one of the example provided with iControl SDK doc "LocalLBVSStats.java". When I loaded this program I got following compile errors:
1) It is not able to find "iControlSOAPMappingRegistry" class. (I would appreciate if you let me know where can I find this class.
2) It is not able to resolve "com.sun.net.ssl.internal.ssl.Provider()". (I would appreciate if you let me know which jar file do I need to get this corrected. Also Do I really need to use this setProperty method??
Please help..
Thanks
-Sunit
6 Replies
- The jar I provided you with goes with the Apache Axis samples. The iControlSOAPMappingRegistry class is included in the Apache WS-SOAP samples. Try to run the samples from the sdkroot/sdk/samples/soap/java/apache/axis directory.
I would highly recommend you avoid the WS-SOAP samples (sdkroot/sdk/samples/soap/java/apache/soap directory) as Apache no longer develops on that toolkit and there are some known inconsistencies and problems with their implementations of multi-dimensional arrays.
You will need the axis jar's available from Apache's website.
As for the ssl.Provider, I believe this is included in the JSSE jars available from Sun.
-Joe - Sunit_Tailor_11
Nimbostratus
Hi Joe,
I am getting following error while executing "LocalLBVSStats.java":
java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException
at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
at org.apache.axis.AxisEngine.(AxisEngine.java:156)
at org.apache.axis.client.AxisClient.(AxisClient.java:52)
at org.apache.axis.client.Service.getAxisClient(Service.java:103)
at org.apache.axis.client.Service.(Service.java:112)
at iControl.LocalLBVirtualServerLocator.(LocalLBVirtualServerLocator.java:21)
at com.vanguard.bigip.core.LocalLBVSStats.parseArgs(LocalLBVSStats.java:32)
at com.vanguard.bigip.core.LocalLBVSStats.main(LocalLBVSStats.java:95)
Exception in thread "main"
I have included soap.jar in runtime environment.
I would appreciate your help.
Thanks,
-Sunit - Sorry for the delay in the reply. I'm on my day off and am checking in from home. If you have any other issues it might not be until tomorrow that I'll be able to reply.
With that said,
javax/xml/soap/SOAPException is in saaj.jar. Do you have that one? I believe that is part of Sun's distribution.
-Joe - Sunit_Tailor_11
Nimbostratus
Hi Joe,
Now I got following Error:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.NumberFormatException: version="1.0"
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.lang.NumberFormatException: version="1.0"
at java.lang.Integer.parseInt(Integer.java:423)
at java.lang.Integer.parseInt(Integer.java:472)
at org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:640)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at iControl.LocalLBVirtualServerBindingStub.get_list(LocalLBVirtualServerBindingStub.java:1990)
at com.vanguard.bigip.core.LocalLBVSStats.getAllVSInfo(LocalLBVSStats.java:66)
at com.vanguard.bigip.core.LocalLBVSStats.parseArgs(LocalLBVSStats.java:48)
at com.vanguard.bigip.core.LocalLBVSStats.main(LocalLBVSStats.java:105)
{http://xml.apache.org/axis/}hostname:t62671
java.lang.NumberFormatException: version="1.0"
java.lang.NumberFormatException: version="1.0"
at java.lang.Integer.parseInt(Integer.java:423)
at java.lang.Integer.parseInt(Integer.java:472)
at org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:640)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at iControl.LocalLBVirtualServerBindingStub.get_list(LocalLBVirtualServerBindingStub.java:1990)
at com.vanguard.bigip.core.LocalLBVSStats.getAllVSInfo(LocalLBVSStats.java:66)
at com.vanguard.bigip.core.LocalLBVSStats.parseArgs(LocalLBVSStats.java:48)
at com.vanguard.bigip.core.LocalLBVSStats.main(LocalLBVSStats.java:105)
Please help....
-Sunit - I've just verified this sample with the 9.0 SDK against a recent build of BIG-IP (v9.2) and don't see any issues.
1) Which version of the SDK are you using?
2) Which version of BIG-IP are you connecting to?
3) Have you tried any of the other samples or is this the only one having issues?
-Joe - Sunit_Tailor_11
Nimbostratus
1) I am using the JAR file you have provided along with example from 9.0 sdk directory.
2) I am trying to connect BIG-IP with version "9.1"
3) I just ran "LocalLBPool.java" and got same error:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.NumberFormatException: version="1.0"
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.lang.NumberFormatException: version="1.0"
at java.lang.Integer.parseInt(Integer.java:423)
at java.lang.Integer.parseInt(Integer.java:472)
at org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:640)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at iControl.LocalLBPoolBindingStub.get_list(LocalLBPoolBindingStub.java:1511)
at com.vanguard.bigip.core.LocalLBPool.getInfo(LocalLBPool.java:72)
at com.vanguard.bigip.core.LocalLBPool.main(LocalLBPool.java:140)
{http://xml.apache.org/axis/}hostname:t62671
java.lang.NumberFormatException: version="1.0"
java.lang.NumberFormatException: version="1.0"
at java.lang.Integer.parseInt(Integer.java:423)
at java.lang.Integer.parseInt(Integer.java:472)
at org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:640)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at iControl.LocalLBPoolBindingStub.get_list(LocalLBPoolBindingStub.java:1511)
at com.vanguard.bigip.core.LocalLBPool.getInfo(LocalLBPool.java:72)
at com.vanguard.bigip.core.LocalLBPool.main(LocalLBPool.java:140)
Please help to resolve this.
Thanks,
-Sunit
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects