|
Replies:
4
-
Last Post:
Nov 14, 2008 8:07 AM
by: zhangmmu
|
|
|
|
|
|
|
deploying into production web services developed on NB 6
Posted:
Oct 8, 2008 2:53 PM
|
|
|
Using Net Beans 6, I have successfully developed and tested a Web application that references remote web services and contains Web services of its own. This was deployed through NB on Glassfish v2. When I try to deploy the war file to our Sun Application Server 9.1, the Web services are not visible on the admin console and I cannot access the WSDL file through my browser although I can access the app server default page. I have tried using both the Sun App Server autodeploy folder and the admin console to deploy the war and still cannot access the services.
Any help would be appreciated.
|
|
|
|
|
|
|
Re: deploying into production web services developed on NB 6
Posted:
Oct 9, 2008 9:37 AM
in response to: mikephoenix
|
|
|
Here's a little more informantion: The servics were created by writing jav classes and methods and adding the @Webservice annotation. I used NetBeans test function, activated by right-clicking the services, to test them and view their WSDL. Do I need to somehow Manually create the WSDL files in order to get them into the .war?
|
|
|
|
|
|
|
|
Re: deploying into production web services developed on NB 6
Posted:
Oct 9, 2008 11:20 AM
in response to: mikephoenix
|
|
|
OK, I figured out what happened. Here's the scoop for other newbies.
When you deploy and undeploy you can run tests and see the WSDL on your local application server. In order to port the application to remote application server, you actually need to do a build to properly create the .war file. I was under the implession that deploy and undeploy also did the build automatically. This is not the case. Once I did the build which properly created the .war file, I was able to move it to the production server and access the services and WSDL on my remote app server.
|
|
|
|
|
|
|
|
Re: deploying into production web services developed on NB 6
Posted:
Nov 14, 2008 7:33 AM
in response to: mikephoenix
|
|
|
Hi Mikephoenix or anyone who may help me,
I just start to move my project from JDeveloper10/Oracle Application Sever to NetBean6.1/GlassfishV2. When I run the CalculatorAPP example in NetBean. It works fine. I am able to test service. After I right click on the project and click on "Build". The CalculatorApp.war is under disk directory.
After I deploy to our remote server. "Web services"--"CalculatorWS" displayed on remote server admin console. But when I click on "View WSDL" link. There is an HTTP 404 error.
Could you please tell me some detail about how you build you .war file? I tried "Generate and Copy WSDL..." and put the "CalculatorWSService.wsdl" file under "Web Pages" -->"WEB-INF"-->"wsdl". And the CalculatorWSService.wsdl file is in the war file. But I still cannot access the WSDL file on the server. Is anything missing? There is no error message in the server log file.
I really appreciate your help.
Ji
|
|
|
|
|
|
|
|
Re: deploying into production web services developed on NB 6
Posted:
Nov 14, 2008 8:07 AM
in response to: zhangmmu
|
|
|
I found where my problem is. The Apache server direct the request to Oracle Applciation Server instead of the Glassfish. After I add the port number, I am now be able to see the WSDL file. Thanks.
Ji
|
|
|
|
|