newbie question on deployment

2006-06-06 Thread Taylor, Clarence B



I have been 
struggling with using java2wsdl, wsdl2java, admin deploy.wsdd as described in 
the users guide to get a simple test web service deployed and keep running into 
a wall. I have eclipse, running tomcat under windows. I have tomcat 
installed in c:\tomcat and axis installed in c:\axis\axis-1_4. 


I have used 
axis\axis-1_4\samples\userguide\example6 as a seed for my test. I 
successfully am able to deploy example6 but not my new test, 
bradexample. I can run java2wsdl, followed by wsdl2java, followed by 
the admin client. However I never see the generated java source get 
compiled into .class files. When I attempt to use the web browser to 
"list" deployed java services, it complains that it can not find the class 
files. I did not see anything in the doc about compiling the java source 
generated from wsdl2java. When I try to do it manually I get a java 
compiler error about not being able find symbol. I believe the example6 
deploys correctly because the class files are in the 
tomcat/.../webapps/axisdirectory. 

So I guess the 
question where the .class files come from thatcorrespond to the generated 
.java files from the wsdl2java process. Do I need to manually compile, 
then copy? Or is this supposed to be automatic?

Brad Taylor
Senior Software Engineer
Workload Automation

713 625 9490 (ext 11940)



Re: newbie question on deployment

2006-06-06 Thread Nicolas Guaneme




Taylor, Clarence B wrote:

  
  
  I
have been struggling with using java2wsdl, wsdl2java, admin deploy.wsdd
as described in the users guide to get a simple test web service
deployed and keep running into a wall. I have eclipse, running tomcat
under windows. I have tomcat installed in c:\tomcat and axis installed
in c:\axis\axis-1_4. 
  
  I
have used axis\axis-1_4\samples\userguide\example6 as a seed for my
test. I successfully am able to deploy example6 but not my new test,
bradexample. I can run java2wsdl, followed by wsdl2java, followed by
the admin client. However I never see the generated java source get
compiled into .class files. When I attempt to use the web browser to
"list" deployed java services, it complains that it can not find the
class files. I did not see anything in the doc about compiling the
java source generated from wsdl2java. When I try to do it manually I
get a java compiler error about not being able find symbol. I believe
the example6 deploys correctly because the class files are in the
tomcat/.../webapps/axisdirectory. 
  
  So
I guess the question where the .class files come from thatcorrespond
to the generated .java files from the wsdl2java process. Do I need to
manually compile, then copy? Or is this supposed to be automatic?
  
  Brad Taylor
  Senior Software Engineer
  Workload Automation
  
  713 625 9490 (ext 11940)
  
  

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.2/357 - Release Date: 06/06/2006
  


Hello Taylor

this script can help you for to do the service-stub. cliente, deploy
and undeploy
project name="Service"
 property name="axis.home" value="C:/axis-1_3" /
 property name="javamail.home" value="C:/javamail-1.4ea" /
 property name="jaf.home" value="C:/jaf-1.0.2" /
 path id="axis.classpath" 
  fileset dir="lib"
include name="**/*.jar"/
  /fileset
  fileset dir="C:/javamail-1.4ea/lib"
include name="**/*.jar"/
  /fileset
  fileset dir="C:/jaf-1.0.2"
include name="**/*.jar"/
  /fileset
 /path 
 taskdef resource="axis-tasks.properties"
classpathref="axis.classpath" /
 target name="generate-service-stub"
  axis-wsdl2java serverside="true"
url=""
   mapping namespace="http://Service"
package="example"/
  /axis-wsdl2java 
 /target
 target name="deploy"
  axis-admin
url="" class="moz-txt-link-rfc2396E" href="http://localhost:8080/axis/servlet/AxisServlet">"http://localhost:8080/axis/servlet/AxisServlet"
  xmlfile="deploy.wsdd" /
 /target
 target name="undeploy"
   axis-admin
url="" class="moz-txt-link-rfc2396E" href="http://localhost:8080/axis/servlet/AxisServlet">"http://localhost:8080/axis/servlet/AxisServlet"
   xmlfile="undeploy.wsdd" /
 /target
 target name="generate-client-stub"
 axis-wsdl2java url=""
  mapping namespace="http://service"
  package="example"/
 /axis-wsdl2java
 /target
/project

when you run the generate-servicestub on eclipse show the java
generate after you run the deploy and the axis server show the
service copy the class on Axis/web-inf/classes/.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]