2

I am trying to re-generate web service stubs and java objects from WSDL and XSD's using the batch commands available in WAS 7 (wsdl2java.bat, using ant script).

In the generated file, the field denoting mixed content is displayed as:

@XmlMixed
protected List<Object> content;

However, my existing codebase has the following:

@XmlMixed
protected List<Serializable> content;

Due to this issue, I am getting compilation errors. I am using JDK 1.6. The schema has not change in between. It would be great if you could advise me on how to make sure the generated code confirms to Serializable type instead of object.


Why I can't use a library in my Android project from Maven repository? How to write a correct pom.xml for this?

I want to use Jackson JSON parser library in my android project. I saw this library in Maven repository, but I don't know how to use it. I've downloaded sources from the Maven repository and Jackson jars and attached sources to jar, but in the logcat I saw error message NoClassDefFoundError. When googling I' ve read that I have to declare Jackson dependencies in pom.xml file.I' m a newbie in Java development so I don't know what all these means. And have some questions:

1.How to write pom.xml for the Jackson library

2.Where to put this pom.xml

3. Do I really need to install Maven if I just want to use the library.

4. What else I need to begin work with the library?

4

1 に答える 1