wood burning stoves 2.0*
The moose likes Web Services and the fly likes Problem While Deploying the WebService Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Problem While Deploying the WebService" Watch "Problem While Deploying the WebService" New topic
Author

Problem While Deploying the WebService

Raj Shri
Greenhorn

Joined: May 02, 2010
Posts: 28
Hi Friends,

I am creating web service for my application. I have created wsdl and deploy.wsdd file. I can see the default web service is runing there and I can also see 2 default

Version (wsdl)
getVersion
AdminService (wsdl)
AdminService

I deployed my web services. But I cannot see anything with these function. And also I cannot see any error while deploying. Please any one can help me what could be the issues.




Thanks,

Raj
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
What specific steps did you take to deploy? Which SOAP stack are you using, on which server?
Raj Shri
Greenhorn

Joined: May 02, 2010
Posts: 28
Lester Burnham wrote:What specific steps did you take to deploy? Which SOAP stack are you using, on which server?


I doing as below steps

1 - First creating the class file
2 - Create the Java2WSDL.
3 - Create the WSDL2Java file by this I am getting the deploy.wsdd file

I am using the linux server.

Before deploying I start server then set the axis class file path then deploy.


I cannot see my function in web services only default.
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
I was asking about deployment, not development.
Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 576

Hi Raj,
As Lester mentioned, you are missing important deployment details to make your problem understand.

Anyway, you can do a quick check if your web service is actually deployed by framing and running this url.


Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
Raj Shri
Greenhorn

Joined: May 02, 2010
Posts: 28
Naren Chivukula wrote:Hi Raj,
As Lester mentioned, you are missing important deployment details to make your problem understand.

Anyway, you can do a quick check if your web service is actually deployed by framing and running this url.


Thanks, But It's not working nothing is showing.
Raj Shri
Greenhorn

Joined: May 02, 2010
Posts: 28
Raj Shri wrote:
Naren Chivukula wrote:Hi Raj,
As Lester mentioned, you are missing important deployment details to make your problem understand.

Anyway, you can do a quick check if your web service is actually deployed by framing and running this url.


Thanks, But It's not working nothing is showing.


Deployment Steps :

1 - Copy the deploy.wsdd file in WEB-INF
2 - Set the Axis class path
3 - Run the deploy.wsdd file. As below

java -cp $CLASSPATH org.apache.axis.client.AdminClient -lhttp://localhost:9095/tekpref/services/AdminService deploy.wsdd

Thanks

Raj

Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 576

What server are you using?(you're asked few times this question already). This is a fundamental piece of information, which you should give before asking your question. You have to go through this link for posting more informative questions and also potentially getting better responses.
Raj Shri
Greenhorn

Joined: May 02, 2010
Posts: 28
Naren Chivukula wrote:What server are you using?(you're asked few times this question already). This is a fundamental piece of information, which you should give before asking your question. You have to go through this link for posting more informative questions and also potentially getting better responses.



I am using apache Tomcat server and axis1.4



Thanks

Raj
Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 576

Can you post output of the following?

jar -tf <your web archive>

Also, double-check if this listing is same as the web service directory structure in your <Tomcat>/webapps.

If same, please post your server startup console log.




Raj Shri
Greenhorn

Joined: May 02, 2010
Posts: 28
Naren Chivukula wrote:Can you post output of the following?

jar -tf <your web archive>

Also, double-check if this listing is same as the web service directory structure in your <Tomcat>/webapps.

If same, please post your server startup console log.








Thanks for your reply, Now It's working, I was not using any jar or war file for my web service. Just using class file. The problem was required class files. coz I was using 2 package, test1 and test2 in test1 there I was putting web services launching file and return the object from test2.

Thanks

RajSri


 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Problem While Deploying the WebService
 
Similar Threads
Simple JBoss Web Service With Eclipse
Can't see the WSDL file
Problem in deployment of Web service to Axis runtime
Axis2- Enabling Admin service
Webservices using JAX-RPC and AXIS2