trouble with stockapp mini tutorial

ref: http://developers.sun.com/tools/javatools/documentation/s1s5/stockapp.html

Just trying the stockapp mini tutorial a couple times, i get execute the client app ok, but when i enter mce and invoke it i get the error below, has anyone got any ideas?

StockServiceClient Error

An error was encountered in this application

End Point Address is http://localhost:4480/StockService/StockService

java.rmi.RemoteException: cannot connect to server: Not found; nested exception is:

cannot connect to server: Not found

at StockWebServicePack.StockServiceClientGenClient.StockServiceServantInterface_St ub.findCompany(StockServiceServantInterface_Stub.java:129)

at StockWebServicePack.StockServiceClientGenClient.findCompany_handler.doAfterBody (findCompany_handler.java:88)

at _jasper._findCompany_TAGLIB_jsp._jspService(_findCompany_TAGLIB_jsp.java:112)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:55 2)

at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)

at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrap perValve.java:720)

at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.j ava:118)

at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:2 78)

at java.security.AccessController.doPrivileged(Native Method)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 274)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 212)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)

at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java: 157)

at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

Caused by: cannot connect to server: Not found

at com.sun.xml.rpc.client.http.HttpClientTransport.invoke(HttpClientTransport.java :119)

at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:73)

at StockWebServicePack.StockServiceClientGenClient.StockServiceServantInterface_St ub.findCompany(StockServiceServantInterface_Stub.java:110)

... 20 more

[2841 byte] By [jtranex] at [2007-11-25 10:38:29]
# 1
Make sure you have the server running and that it is on port 4480. The IDE creates servers starting on port 80, by default. Maybe this is what's wrong.Hope it helps,Nuno
nhpg at 2007-7-1 21:29:08 > top of Java-index,Development Tools,Java Tools...
# 2

Hello,

A server instance named Day is running at port 4480, I have set it as default so this is used for j2ee and web tier apps.

I have also checked the StockService blue node for SOAP rpc URL and it points to

http://localhost:4480/StockService/StockService

Any more ideas on how to get it working?

Do we need to set up JAX-RPS or so for these examples?

jtranex at 2007-7-1 21:29:08 > top of Java-index,Development Tools,Java Tools...
# 3

I have retried the example on the server instance 8000, but however Iam getting the same error message as above. The test client works ok, but the page after the stock symbol MCE is entered. The jwsdp has also been started with the script jwsdponsunone.bat.

I was wondering is there a bug in the installation of application server 7 or other possibilities why this is not working.

The server log brings up these messages

[14/Dec/2003:21:32:18] WARNING ( 2680): for host 127.0.0.1 trying to POST /StockService/StockService, send-file reports: HTTP4142: can't find C:/Sun/studio5u1_se/appserver7/domains/domain1/server8000/docroot/StockService/ StockService (File not found)

[14/Dec/2003:21:32:33] SEVERE ( 2680): StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception

jtranex at 2007-7-1 21:29:08 > top of Java-index,Development Tools,Java Tools...
# 4

ya hoo after many sleepless nights playing around with examples, uninstalling and installing it seems has finally paid off.

Finally noticed that the stockserviceclient soap rpc url had not been set. Dunno if this was mentioned in the example or not, but finally this basic example works not.

Now for some serious web services development..

jtranex at 2007-7-1 21:29:08 > top of Java-index,Development Tools,Java Tools...