HI All,
i'm a newbie for the converter sdk
could you please provide a sample shell script or python script to use the converter sdk for migrating the p2v windows/unix servers.
Do we have to run the sdk script on the converter machine or any machine which has axis, ant and sdk files ?
Thanks in advance.
You should separate paths with colons, not with semicolons in LOCALCLASSPATH.
The missing jars are seemingly not needed for the successful compilation. They must have been left there by mistake.
I am attaching a sample bash script with which I managed to build the samples on a CentOS 6.8. Fix the paths before running it (my JDK is 1.8 but if you have 1.6, better stick to it). Downloaded Axis from Apache Download Mirrors
I think that should be enough.
Regards,
Plamen
There are README.html files which contains answers for your questions. There are also samples for Java and .NET included in SDK.
HTH
Seems you want to run samples on Linux machine, right?
The Converter is Windows based application, you can try to run Java samples on Linux but there is no official support.
P.S.
From the other hand - there are only few commands to "translate" to Linux based Java environment in build.bat.
yes. The converter machine is windows . But i've to call the SDK sample from my script which will be there on linux machine. do i have to install jdk, axis on my linux machine or converter machine ? . Where the sdk files (converter.wsdl) has to be in linux or converter machine ?
You should be able to run Java samples from Linux. Though I haven't run them from this way, I think that, with a little tweaking, you should be able to set up what is necessary. The Linux machine is where JDK, Axis, and the wsdl have to be. You can't just run the bat files of course, but they are not complex and can be translated. Or just do the setup manually.
HTH,
Plamen
Thanks . i've setup the axis1.4 , jdk1.8 and ant1.10.5 in the linux machine along with SDK6.0 . But some jar files are not present in the axis1.4 jar such as mailapi.jar, commons-httpclient-3.0.1.jar,commons-httpclient-3.0-rc2.jar,commons-net-1.0.0-dev.jar and connverter.jar. Where to get the files.
when i try to set the localcalsspath , it throws some junk characters. what could be the issue
<code>
/convertersdk/axis2-1.7.8/lib/activation-1.1.jar: line 1: $'PK\003\004': command not found
/convertersdk/axis2-1.7.8/lib/activation-1.1.jar: line 2: $'\316x\2424': command not found
/convertersdk/axis2-1.7.8/lib/activation-1.1.jar: line 8: syntax error near unexpected token `$'i\334\245\243\336{\364p\037\215"\263\307\020\305+\372`\034\225\260\222\005g\025]%\325\240\364\001\001!e\251\270\221k\316\036<\252\210\235\330\2363\277\226\305[\261\021\357\305=,\332#Ac\264w\341\034"\3325i\271\344\354\361\024\221\262N\274(\213%|\250Q\235\244\322\321\214*\246\230\263v@m\366FOO\2613\261O\330s\302\266\250(,v\315\022\252\037\034\236|\322|9\377\t\277\376\335j\256\246Z\315k\3249_\302m\313wS\317\234\325v\350\321"\305\277T\263\342?]\031\027uW\202vV\206#\315\220\313\002\2620/\001\001\332I\230n1\364\227\001\001\240E?\242\347\214\263oPK\003\004\n\b\314x\2424qC\307\201]\025\005B\024META-INF/LICENSE.txt\315\\[s\3338\262~\337\252\375\017x9UV\225\242\023;\311\316%O\212L\'\334\221%\257.\311\344\274A"dc\206"\265\004iE\347\337\346\237\234\257\E\tQ\224\343\354\356\324\231\232Tb\363\322\350{\001\177h4g4\275\275\235N\304u\3641\032O\357n\243\311B\f\'\327\342:\236/f\361\273\345"\306\315q<\212&\363H\\\214\256\257\307=\361Q\025F\347\231\270\034\274\374\353_\376\372\227\313\201\270V\E\235\351\022\027\315\300^\302\305Q\236\225\205^Ue^\210\255\222\231\021J\256\037\204\316\022\375\250\223J\246\0027TV\352\362 \312\aY\212u\241d\251\f]^\373w\361k\231\343\266\262wi\331|#n\363Do\364Z\206+^\035\257\350\231\264+3\201|\273\322YM\203.M\v}\217K\251\230\347\233</code>
You don't use axis1.4 but axis2-1.7.8, some library names and placement could be changed, try to inspect new names and jars.
HTH
Well, running the samples on Linux has never been done (at least not by the dev team). It is not expected to be rocket science but will surely require some hacking. More specifically - the jars you mention are not part of Axis 1.4 indeed. I've just run the build on Windows and there were no such errors.
If you don't feel like doing that, why not find some Windows machine and just build them there?
well firewall is opened from the particular linux machine to convertor machine. i've downloaded the jar files almost everything except converter.jar . it's not there in converter machine either. where can i get the converter.jar
here is my export vairable for setting the localclasspath
export LOCALCLASSPATH="$PWD;$AXIS2_HOME/lib/;$AXIS2_HOME/lib/activation-1.1.jar;$AXIS2_HOME/lib/axis.jar;$AXIS2_HOME/lib/axis-ant.jar;$AXIS2_HOME/lib/commons-codec-1.2.jar;$AXIS2_HOME/lib/commons-discovery-0.2.jar;$AXIS2_HOME/lib/commons-httpclient-3.1.jar;$AXIS2_HOME/lib/commons-httpclient-3.0-rc2.jar;$AXIS2_HOME/lib/commons-logging-1.1.1.jar;$AXIS2_HOME/lib/commons-net-1.0.0-dev.jar;$AXIS2_HOME/lib/jaxrpc.jar;$AXIS2_HOME/lib/junit-3.8.1.jar;$AXIS2_HOME/lib/log4j-1.2.15.jar;$AXIS2_HOME/lib/mailapi-1.6.1.jar;$AXIS2_HOME/lib/axis2-saaj-1.7.8.jar;$AXIS2_HOME/lib/wsdl4j-1.6.2.jar;converter.jar"
You should separate paths with colons, not with semicolons in LOCALCLASSPATH.
The missing jars are seemingly not needed for the successful compilation. They must have been left there by mistake.
I am attaching a sample bash script with which I managed to build the samples on a CentOS 6.8. Fix the paths before running it (my JDK is 1.8 but if you have 1.6, better stick to it). Downloaded Axis from Apache Download Mirrors
I think that should be enough.
Regards,
Plamen