Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Where to put the server-config.wsdd  RSS feed

 
smercmu
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey everyone,

I'm trying to get a simple helloworld web service running using axis 1.3 (latest stable release). I created the class and a deploy.wsdd and an undeploy.wsdd using WebSphere Studio to run on WebSphere 5.1. I then created a server-config.wsdd and put it into my WEB-INF folder. My question is -- What do I have to do to get axis to pick that file up? Is there a servlet that I have to map also? What causes axis to start up and look in the webapplication as it gets deployed? I know I'm missing something easy and any help here would be appriciated. I want to avoid the command line admin utility if at all possible.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will have to deploy the web service once, either by using the CLI command, or via Ant. Once it is deployed, Axis will know about it every time you restart it.
 
smercmu
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does that mean when I move it to a different environment (i.e., from my laptop to qa to production) then I'll have to run a script for each environment?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suppose a carefully crafted WSDD file is portable across environments, but it's read only at startup, so you would need to reload Axis if you update it. Deploying the service via AdminClient seems like the lesser evil.

Note that re-deploying a service does not "flush" its classes out of the Axis classloader. If any have changed, you'll need to reload Axis to pick them up.
 
smercmu
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the info... I appriciate it.
 
Feargal Egan
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
d
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!