- This topic has 4 replies, 3 voices, and was last updated 16 years, 2 months ago by sunilrow.
-
AuthorPosts
-
bsumnMemberWhen 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
Loyal WaterMemberThe 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 FinishCan 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.
sunilrowMember*** 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 WorkbenchVersion: 6.5.1 GA
Build id: 6.5.1-GA-20080715Eclipse Platform
Version: 3.3.3.r33x_r20080129-_19UEl7Ezk_gXF1kouft
Build id: M20080221-1800Eclipse RCP
Version: 3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc
Build id: M20080221-1800Eclipse Java Development Tools
Version: 3.3.2.r33x_r20080129-7o7jE7_EDhYDiyVEnjb1pFd7ZGD7
Build id: M20080221-1800Eclipse Plug-in Development Environment
Version: 3.3.3.r33x_r20080129-7N7M5DQVIA_6oJsEFkEL
Build id: M20080221-1800Eclipse Project SDK
Version: 3.3.3.r33x_r20080129-7M7J7LB-u3aphGW6o3_VmiVfGXWO
Build id: M20080221-1800Eclipse Graphical Editing Framework
Version: 3.3.2.v20080129
Build id: 20080221-1602Eclipse 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
Loyal WaterMembersunilrow,
Can you give me some information on the issue that you facing. Could you help me reproduce it at my end.
sunilrowMembersee 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” windowJavaBean: com.cs.pojo.CarBean
Delegate : com.cs.pojo.CarBeanDelegateSelect “Generate WSDL in project”
Target namespace (all defaults) : http://pojo.cs.com
Service name: CarBeanService
Service port: CarBeanPortClick 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;
}}
-
AuthorPosts