Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAX-RPC : wscompile : modeler error

 
Anwar S
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have just started working on Java web services and preparing for SCDJWS certification.. trying with some sample programs for practical knowledge.
but i am facing one problem here.. can some one help me?
(I dont know whether i can ask this question here or not.. just trying my luck I would be very lucky if i can find some one who can help me here)..

I am getting an exception while trying to generate server ties from the service end point config.xml.. below is the simple code snippet which i have used.

--StockQuoteProvider.java
public interface StockQuoteProvider extends java.rmi.Remote {
public float getLastTradePrice(String tickerSymbol)
throws java.rmi.RemoteException;
public String getStockQuote(String tickerSymbol)
throws java.rmi.RemoteException;
}

--config.xml
<configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
<service name="StockQuoteService"
targetNamespace="http://stockquote.org/wsdl"
typeNamespace="http://stockquote.org/types"
packageName="com.example">
<interface
name="StockQuoteProvider"
servantName="StockQuoteImpl">
</interface>
</service>
</configuration>

and I have used wscompile command in the following format
/> wscompile -cp . -gen:server config.xml

and its giving me the error message -
error : modeler error : java.lang.NullPointerException

Thanks in Advance.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic