Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to run the WSLD example from tomcat

 
John McDonald
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,
I am completely new to wsdl. I just downloaded the axis and would like to start some example from jakarta. I can access the happyaxis.jsp. But I could not run the AdminClient as sugguested in installation guide. Any idea or suggestion for WSLD beginner is appreciated. Thanks.

John
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would help if you'd post any error messages you got from trying to run AdminClient.
 
John McDonald
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Lasse,
I followed the instruction from <a href="http://ws.apache.org/axis/java/install.html">Jakarta</a>
...<i>Run the admin client
Execute the following command from the samples/stock directory. If you are not in this directory you will get a "java.io.FileNotFoundException: deploy.wsdd (The system cannot find the file specified)" exception.
On Windows java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd On UNIX java -cp $AXISCLASSPATH org.apache.axis.client.AdminClient -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd </i>
But I could not run at all since I search the entire axis diretory which does not contain the suggested class file.
Are you aware of where can I find them? Also, I am does not have any idea where to start with web service. Could you suggest a starting point. I coded a serveral project in Java, J2ee, JDBC, JNDI, JSP/Servlet, EJB, etc. but still have no idea about WSDL and would like to have some example running.
Thank you very much.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does your AXISCLASSPATH contain axis.jar? That's where the AdminClient class resides...
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, I am does not have any idea where to start with web service. Could you suggest a starting point. I coded a serveral project in Java, J2ee, JDBC, JNDI, JSP/Servlet, EJB, etc. but still have no idea about WSDL and would like to have some example running.

Have you tried the Axis User's Guide? It's also pretty enlightening to simply browse the samples directory that came with your Axis download. I've studied Axis mostly using these two (not that I would be good at it, but still).
 
John McDonald
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I did. I typed:
javap org.apache.axis.client.AdminClient
It shows the Class api. I followed the instruction of the install page of
Tomcat. The following message was:

C:\project\wsj>java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient
-lhttp://localhost/axis/services/AdminService deploy.wsdd
Processing file deploy.wsdd
Exception:: java.io.FileNotFoundException: deploy.wsdd (The system cannot find the file specified)
(my port is 80 by default). Where and how do I create the deploy.wsdd file. I am confused when the instruction said that do not worry about that. System automatically generate it.
Thank you very much.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by John McDonald:
C:\project\wsj>java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient
-lhttp://localhost/axis/services/AdminService deploy.wsdd
Processing file deploy.wsdd
Exception:: java.io.FileNotFoundException: deploy.wsdd (The system cannot find the file specified)
(my port is 80 by default). Where and how do I create the deploy.wsdd file.
The WSDD file should be there. At least my copy of Axis has them in each sample directory. Note that the instructions you posted tell you to execute the command not in "C:\project\wsj>" but in "C:\project\wsj\...\samples\stock>" (quote: Execute the following command from the samples/stock directory.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic