03-12-2010 09:46 AM
I tried anything i could to install the KSoap2 Library in my Eclipse project.. i read every previous thread and link about it... but i still can't resolve the problem!!
I understood that i must "preverify" every jar i need to add on my buildpath....... i did and the result was that "ksoap2-j2me-core-prev-2.1.2.jar" couldn't be verified!!
in log error inside the output folder there was this error :
Error: No such file or directory jar -cfm "output\ksoap2-j2me-core-prev-2.1.2.jar" tmp30597\\META-INF\MANIFEST.MF -C tmp30597 .
What does it means?? why?? How can i add KSoap2 to be imported when i launch the simulator in Eclipse JDE plugin ?? Please help me... i spent days and days without find any solution!! Thanks in advance....
04-14-2010 11:48 AM
I'm hoping you've found a solution to the kSOAP2 issues you've encountered. I'm having trouble with the same thing and would be very grateful for advice.
Running the preverify command:
ents\bin>preverify -d . -classpath ..\lib\net_rim_api.jar "c:\Documents and Sett
Executing command [jar -cvfm ".\ksoap2-j2me-core-prev-2.1.2.jar" tmp16510\\META-
INF\MANIFEST.MF -C tmp16510 .]
jar -cvfm ".\ksoap2-j2me-core-prev-2.1.2.jar" tmp16510\\META-INF\MANIFEST.MF -C
Error: No such file or directory
JAR file creation failed with error -1
I am using Eclipse build 20090619-0625 with the BlackBerry plugin 18.104.22.168911111641-15 and BlackBerry Java SDK 22.214.171.124.
I have attempted to get kSOAP2 working by following the tutorial provided by craigAgreen (kSOAP2 BB Tutorial) without success. Debugging in the simulator environment outputs the following error messages:
Module 'Sample' has verification errors.
Error starting Sample: Module 'Sample' has verification errors.
If more information is needed by anyone able to advise please let me know.
Thanks in advance!
04-15-2010 05:26 AM
Ok, so I have progressed a little further (maybe). I am no longer receiving verification errors.
I have renamed the ksoap2-j2me-core-prev-2.1.2.jar In the kSoapLibrary project to the name of the project .jar.
So if your library project is kSoapLibrary, the jar file becomes:
From there, re-add the library to the Java build path and the Order and Export. After I did this the application did not respond with verification errors, however I have a new error message
Error starting Sample: Class 'org.ksoap2.transport.HttpTransport' not found.
This isn't specific to the HttpTransport class, it will error with the first Class called by my program.
I'm attempting to resolve this missing class issue, if anyone knows why this would be happening, or if I'm doing totally the wrong thing please let me know
04-15-2010 09:23 AM
Fun fact: ksoap2-j2me-core-prev-2.1.2.jar is ALREADY preverified (hence the -prev bit). It was created specifically because the standard library cannot be preverified (believe me, I tried). This blog post should help you get it up and running in no time.
Hope that helps,
P.S. - If you need kSOAP code snippets, let me know. I've got quite a few. I spent a good month working through various web service issues.
04-18-2010 05:24 AM
Ok. I have solved my issue and the kSoap2 library is working.
I removed the Eclipse installation, downloaded the JDE plugin with Eclipse from BlackBerry, reinstalled and it worked!