Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
robert88
Post subject: Unable to create JAXBContext - XMLBeans, complexType params  PostPosted: Jul 20, 2008 - 03:09 AM



Joined: Jul 20, 2008
Posts: 4

When creating a Web Service using beans creating from XMLBeans as parameters to/from the service. If when creating the Web Service in the Web Service Project I select 'Generate WSDL in Project" it results in a pop-up error "Unable to create JAXBContext." Not selecting to create the WSDL does not produce the error. If I choose simple String parameters as the input/output to the service I can create the WSDL. So, I am unable to create a web service that uses complex types. MyEclipse 6.5

The following example describes what I see:
1. Create a 'Web Service Project' ie. File / New / Web Service Project – click Next
2. Set the Project Name to: TestService
Leave remaining options as already set. – click Finish
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Unable to create JAXBContext - XMLBeans, complexType par  PostPosted: Jul 21, 2008 - 04:40 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 5657

Quote:

The following example describes what I see:
1. Create a 'Web Service Project' ie. File / New / Web Service Project – click Next
2. Set the Project Name to: TestService
Leave remaining options as already set. – click Finish

Can you list all the steps to reproduce this issue. I'll get it checked right away.

Also, please go to MyEclipse > Installation Summary > Installation Details and paste the information here for me.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
sunilrow
Post subject: Generating WS from bottom-up approach - Unable to create JAX  PostPosted: Sep 16, 2008 - 04:21 PM



Joined: Jul 23, 2008
Posts: 5

*** Date:
Tuesday, September 16, 2008 11:21:10 AM EDT

** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.5.0_14


*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 6.5.1 GA
Build id: 6.5.1-GA-20080715


*** Eclipse details:
MyEclipse Enterprise Workbench

Version: 6.5.1 GA
Build id: 6.5.1-GA-20080715




Eclipse Platform

Version: 3.3.3.r33x_r20080129-_19UEl7Ezk_gXF1kouft
Build id: M20080221-1800


Eclipse RCP

Version: 3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc
Build id: M20080221-1800


Eclipse Java Development Tools

Version: 3.3.2.r33x_r20080129-7o7jE7_EDhYDiyVEnjb1pFd7ZGD7
Build id: M20080221-1800


Eclipse Plug-in Development Environment

Version: 3.3.3.r33x_r20080129-7N7M5DQVIA_6oJsEFkEL
Build id: M20080221-1800


Eclipse Project SDK

Version: 3.3.3.r33x_r20080129-7M7J7LB-u3aphGW6o3_VmiVfGXWO
Build id: M20080221-1800


Eclipse Graphical Editing Framework

Version: 3.3.2.v20080129
Build id: 20080221-1602




Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\Program Files\MyEclipse 6.5\eclipse\eclipse.exe
-name
Eclipse
--launcher.library
C:\Program Files\MyEclipse 6.5\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.3.R33x_v20080118\eclipse_1023.dll
-startup
C:\Program Files\MyEclipse 6.5\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
-exitdata
384_40
-clean
-vm
C:\Program Files\MyEclipse 6.5\jre\bin\javaw.exe
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Generating WS from bottom-up approach - Unable to create  PostPosted: Sep 16, 2008 - 07:44 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 5657

sunilrow,
Can you give me some information on the issue that you facing. Could you help me reproduce it at my end.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
sunilrow
Post subject: my steps which the caused the error  PostPosted: Sep 17, 2008 - 03:17 PM



Joined: Jul 23, 2008
Posts: 5

see my steps below. If I remove the "Door" object, and replace with simple String object, the (bottom-up generate process) works fine.


--------------------------------------------------

1) Created Web Services Project (File -> New -> Web Service Project (Option Maven ..)

Name: HelloWorldWebService

2) Created Web Service (bottom-up approach)

Select project (name above) Right click->New->MyEclipse -> Web Services -> Web Service
Select JAX-WS
Select Create web service from Java bean (Bottom-up scenario)

Click Next

3) JavaBean: Select CarBean (see below)
In "New Web Service" window

JavaBean: com.cs.pojo.CarBean
Delegate : com.cs.pojo.CarBeanDelegate

Select "Generate WSDL in project"
Target namespace (all defaults) : http://pojo.cs.com
Service name: CarBeanService
Service port: CarBeanPort

Click finish

4) ERROR -- Generating JAX-WS Services
Error:
Unable to create JAXBContext

(Clicked Details)

An internal error occured during: "Generating JAX-WS Web Services"
Unable to create JAXBContext

---------------------------------------------------------CarBean object
package com.cs.pojo;

import java.io.Serializable;

public class CarBean implements Serializable
{
public static final long serialVersionUID = -1;


public Door leftDoor = null;





public Door getLeftDoor() {
return leftDoor;
}

public void setLeftDoor(Door leftDoor) {
this.leftDoor = leftDoor;
}


}
-------------------------------------Door.java
package com.cs.pojo;

import java.io.Serializable;

public class Door implements Serializable
{
public static final int serialVersionUID = -1;


public boolean ajar = false;


public boolean isAjar() {
return ajar;
}


public void setAjar(boolean ajar) {
this.ajar = ajar;
}

}

----------------------THIS EXAMPLE class works------------Person
package com.cs.pojo;

import java.io.Serializable;

public class Person implements Serializable
{
public static final int serialVersionUID = -1;


public String firstname = null;
public String lastname = null;

public String getFirstname() {
return firstname;
}


public void setFirstname(String firstname) {
this.firstname = firstname;
}


public String getLastname() {
return lastname;
}


public void setLastname(String lastname) {
this.lastname = lastname;
}



}
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits