clynrey / android-soap-enabler

Automatically exported from code.google.com/p/android-soap-enabler
Other
0 stars 0 forks source link

mvn generate-sources eclipse:eclipse code generates error #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. On the five minutes tutorial
2.when I type the "mvn generate-sources eclipse:eclipse" code in the command 
prompt, an error occurs :[ERROR] Failed to execute goal 
fr.norsys.asoape:asoape-maven-plugin:1.0:generate -soap-stub (default) on 
project SampleApp: Execution default of goal fr.norsys.a 
soape:asoape-maven-plugin:1.0:generate-soap-stub failed: String index out of 
range: 1 
3.So I couldn't use the wsdl in my android prject.

What is the expected output? What do you see instead?
Expected output is a running android app with soap enabler.

What version of the product are you using? On what operating system?
Apache Maven 3.0.4, Eclipse Indıgo, Windows Server 2008 R2, (I will develop 
app with android 4.0 version but for the test, I used 1.6 instead)

Please provide any additional information below.

Original issue reported on code.google.com by bekarogl...@gmail.com on 26 Jul 2012 at 9:58

GoogleCodeExporter commented 9 years ago
Did you try with asoape-maven-plugin version 1.1 ?
This version fixes some issues under Windows

Original comment by wallet.g...@gmail.com on 26 Jul 2012 at 10:24

GoogleCodeExporter commented 9 years ago
Thanks, I added the version number to version tag, and problem is fixed. But 
this time, I have another problem, while I compile my project. I did step by 
step FiveMinutesTutorial. The error is that ;

07-26 11:41:31.538: E/AndroidRuntime(900): java.lang.NoClassDefFoundError: 
fr.norsys.asoape.xml.binding.BindingContext at 
org.tempuri.TempConvertSoapImpl.<init>(TempConvertSoapImpl.java:44)

Original comment by bekarogl...@gmail.com on 26 Jul 2012 at 11:48

GoogleCodeExporter commented 9 years ago
Is it when you compile or when you run the application ?

Original comment by wallet.g...@gmail.com on 26 Jul 2012 at 11:59

GoogleCodeExporter commented 9 years ago
Sorry, when I run the application.

Original comment by bekarogl...@gmail.com on 26 Jul 2012 at 12:02

GoogleCodeExporter commented 9 years ago
I just tried with my own web service, this time an error occurs on the command 
promt again. 

[ERROR] Failed to execute goal on project Sample2: Could not resolve dependencie
s for project fr.norsys.asoape.it:Sample2:apk:1.0-SNAPSHOT: Failure to find com.
google.android:android:jar:4.0 in http://repo.maven.apache.org/maven2 was cached
 in the local repository, resolution will not be reattempted until the update in
terval of central has elapsed or updates are forced -> [Help 1]

Original comment by bekarogl...@gmail.com on 26 Jul 2012 at 1:12

GoogleCodeExporter commented 9 years ago
If you want your project to depend on another Android runtime version, I 
suggest you to look at the following link :
http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.google.android%22%20AND%2
0a%3A%22android%22

The only 4.0.x android version is 4.0.1.2
In the tutorial, I used to support 1.6_r2

Original comment by wallet.g...@gmail.com on 26 Jul 2012 at 1:26

GoogleCodeExporter commented 9 years ago
Thanks for helps, but I couldn't see 4.0.1.2 version while I'm creating new 
android project.

Original comment by bekarogl...@gmail.com on 26 Jul 2012 at 2:34

Attachments:

GoogleCodeExporter commented 9 years ago
Eclipse and Maven are 2 different tools :
- In Eclipse, you must select 4.0 which is in your Android SDK
- For Maven, the pom.xml should indicate that your project uses a version 
available on the central repository, for your need 4.0.1.2

Take a look at the pom.xml file in the tutorial, it depends on the 1.6_r2 which 
only exist online in the central maven repository.

Original comment by wallet.g...@gmail.com on 26 Jul 2012 at 2:54

GoogleCodeExporter commented 9 years ago
Without any further problems, I'll close this issue in few days.

Original comment by wallet.g...@gmail.com on 26 Aug 2012 at 1:12

GoogleCodeExporter commented 9 years ago

Original comment by wallet.g...@gmail.com on 24 Sep 2012 at 9:34