Asutosh11 / asmack

Automatically exported from code.google.com/p/asmack
Other
0 stars 0 forks source link

NoClassDefFoundError as Maven dependency #44

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What are you doing to produce the error?
1. Download the file asmack-jse-buddycloud-2010.12.11.jar and execute the maven 
command: 
      -->> mvn install:install-file -DgroupId=jivesoftware -DartifactId=asmack -Dversion=3.1.0 -Dpackaging=jar -Dfile=/home/usuario/Escritorio/Consumer-electronics/Conected-camera/Development/maven-libs/asmack/asmack-jse-buddycloud-2010.12.11.jar -DgeneratePom=true

2. Create a new ConnectionConfiguration object:
ConnectionConfiguration config = new ConnectionConfiguration(server,5222);

3. Execute the Android emulator 

What is the expected output?
- To have the ConnectionConfiguration class loaded and be able to access in 
runtime to its methods.

What do you see instead? (Please attach a debug enabled logcat)
- I have the ConnectionConfiguration class loaded and I have not compile errors 
and its able to find the asmack .jar at the maven dependencies and to access to 
all the classes and methods it includes even you can compile without having any 
problem, but in runtime you have the attached log error.

What version of aSmack / Android / Device do you use?
 asmack downloaded file : asmack-jse-buddycloud-2010.12.11.jar
 android API version 8 
 Emulator device version: Android 2.2

What server do you use? Is there a public server to reproduce the problem?
- I think, nothing

What else might help us to reproduce and hunt down the problem?
- I have the problem following the steps I've already explained, and it's a  
strange error, because maven is suposed to load all dependencies as if they 
were libraries. And the most strange thing is that if I don't load the asmack 
.jar as maven dependecy, I mean if I add this .jar as library inside the 
Android java build path instead using maven it works fine.

Original issue reported on code.google.com by ser.mar....@gmail.com on 28 Dec 2010 at 9:22

Attachments: