- This topic has 7 replies, 3 voices, and was last updated 16 years, 6 months ago by
gcruz.ime.
-
AuthorPosts
-
Daniel RayMemberKindly point me to the thread if this has already been answered.
I have a test class that returns a list of lists via the following snippet.
public class ComplexDataType{ public List<String> getItems(){ List<String> items = new ArrayList<String>(); for(int i=0; i<10; i++){ items.add("" + i); } return items; } public List<List<String>> getListOfItems(){ List<List<String>> listOfItems = new ArrayList<List<String>>(); for(int i=0; i<10; i++){ listOfItems.add(getItems()); } return listOfItems; } }
I am using Myeclipseide 6.5 and when I try use the ‘New Web Service Wizard’, choosing JAX-WS, bottom up with generate WSDL selected… I get the following error.
Unable to create JAXBContext.
What additional steps do I need to take to implement so that I can return a List of List of Strings?
December 4, 2008 at 10:21 am #291624
Loyal WaterMemberbudoray,
I was unable to reproduce this issue at my end. Can you list the exact steps to be followed to reproduce this issue at my end.Also, can you try reproducing this issue with a brand new project. Does the problem persist?
December 4, 2008 at 11:59 am #291631
Daniel RayMemberMyEclipse Enterprise Workbench
Version: 6.6.0
Build id: 6.6.0-20081015I followed the steps listed listed here: http://www.myeclipseide.com/documentation/quickstarts/webservices_jaxws/ and everything worked just fine.
I repeated the steps and created the class I listed above. That’s when I get the error.
December 11, 2008 at 8:39 am #291946
Daniel RayMemberCan you post the steps you took so that I can mimic them in my environment?
December 16, 2008 at 10:44 am #292250
Loyal WaterMemberI just followed the steps mentioned in the tutorial with the class you provided. Instead of the Calculator class, I added the ComplexDataType class and the New Web Service wizard worked fine for me when I pointed it to the ComplexDataType class.
Did I miss any step?
December 17, 2008 at 2:31 pm #292377
Daniel RayMemberI still get the same error.
An internal error occured during:”Generating JAX-WS Web Services”.
Unable to create JAXBContext.MyEclipse Enterprise Workbench
Version: 6.6.0
Build id: 6.6.0-20081015December 18, 2008 at 1:06 pm #292469
Loyal WaterMemberbudoray,
Maybe you should upgrade to MyEclipse 7.0 GA and then test this again with a brand new project in a brand new workspace. Hope that helps.January 3, 2009 at 7:53 am #293031
gcruz.imeMemberThis message has not been recovered.
-
AuthorPosts