• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem while creating WebService in WSAD 5.1.1

 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a EJB that exposes one service which happens to return
an org.w3c.dom.Element data type something like this

public org.w3c.dom.Element sayHello() throws java.rmi.RemoteException;


Now when i try to generate my Web Service via the Web Services Wizard
I get a "Error in generating WSDL file from Java" error

Sequence of steps I followed:

(1) New->Other->Web Services-Web Service
(2) Selected "EJB Web Service" as the "Web service Type"
(3) Left only "Overwrite files without warning"
and "Create folders when necessary" checked
(4) In the "Service Deployment Configuration" pane
I have the EJB project and Router project populated
(5) In the "Web Service EJB Selection Pane"
I have ensured the following are populated
JNDI provider URL,
JNDI initial context factory,
EJB JNDI name,
EJB Home interface class name,
EJB remote interface class name

Left "use an existing service endpoint interface" unchecked

Selected "SOAP over HTTP" transport

(6) In the "Web Service Java Bean Identity" pane
I leave my only method selected and I leave "Document/Literal"
as the Style and Use checked

Security configuration is set to "No Security"

At this point I get an error when I click "next"

IWAB0398E Error in generating WSDL file from Java

In Details ->

WSWS3324E: Error: Problems encountered trying to write schema for
org.w3c.dom.Element; nested exception is:
java.lang.NullPointerException

This creation worked in WSAD 5.0.2 and after upgrading we are
facing with this problem.

Thanks in advance

PJ
[ July 16, 2004: Message edited by: Prashanth Joisha ]
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Even we are having the same problem. did you happen to have the fix for this?

Thanks,
ss
 
Ranch Hand
Posts: 298
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am facing the same problem...are you able to get the solution to this.

Kapil
 
Greenhorn
Posts: 3
Android Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried a simple restart of WSAD and rebuild and that worked for me.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic