Home » Fusion Middleware & Colab Suite » Weblogic & Application Server » How to deploy a web service on Oracle Application Server 10.1.2.0.2? (jDeveloper 10.1.3.1.0, Oracle Application Server 10.1.2.0.2, Windows XP)
How to deploy a web service on Oracle Application Server 10.1.2.0.2? [message #492618] Tue, 01 February 2011 08:08 Go to next message
lanlani
Messages: 8
Registered: November 2009
Location: Beirut
Junior Member
Hi everyone,

I followed the instructions from a link to create a web service using jDeveloper 10.1.3.1.0 on Oracle Application Server 10.1.2.0.2.

The web service created was deployed & used with no errors on the standalone OC4J instance.

But my goal is to deploy my web service on Oracle Application Server 10.1.2.0.2.

So after several attempts, I was able to deploy it on the Oracle Application Server 10.1.2.0.2 but unfortunately I didn't know the URL needed to use the web service.

I also tried converting to J2EE 1.3 and still not knowing how to access the web service.

Please advice with a solution.

Thanks in advance.

Lana
Re: How to deploy a web service on Oracle Application Server 10.1.2.0.2? [message #492730 is a reply to message #492618] Wed, 02 February 2011 01:24 Go to previous messageGo to next message
anyie
Messages: 5
Registered: January 2011
Junior Member
Hi,

You can access the webservice on application server using
*://localhost/applicationname/webservicename?wsdl


* - http (for some reason it is not accepting http in place of * , so you replace that with http while using)
applicationname - You should replace name of the application deployed
webservicename - You should replace name of the webservice you created and deployed.

Anyie
Re: How to deploy a web service on Oracle Application Server 10.1.2.0.2? [message #492787 is a reply to message #492730] Wed, 02 February 2011 09:58 Go to previous messageGo to next message
lanlani
Messages: 8
Registered: November 2009
Location: Beirut
Junior Member
Thanks for your reply.

After checking the "web.xml", i saw the following mapping:
<servlet-mapping>
<servlet-name>statefull Java web service - /webservices/beanTest</servlet-name>
<url-pattern>/beanTest</url-pattern>
</servlet-mapping>

So i tried the following URLs :
"http://acteos-109.beirut.acteos:18100/webservices/beanTest" &
"http://acteos-109.beirut.acteos:18100/beanTest"

But unfortunately they didn't work.I'm getting the following Error :404 Not Found (Resource /beanTest not found on this server).

Any idea about how to read this web service is there anything i can check to know the URL needed ?

Thanks in advance
Re: How to deploy a web service on Oracle Application Server 10.1.2.0.2? [message #492833 is a reply to message #492618] Thu, 03 February 2011 00:04 Go to previous messageGo to next message
cmzala
Messages: 11
Registered: December 2010
Location: Ahmedabad
Junior Member
This is what I do is as follows (may be useful to you):

* Use the URL http://192.168.10.14:7001/console/login/LoginForm.jsp to get Admin console.
This URL helps to create Machines, Clusters, Managed Servers, deploy Applications, etc.
At least Create a Managed Server (this will define a port), and deploy your Web Application to work upon.

* The URL for your application will be like http://192.168.10.14:7778/MyWebApp/index.html, where the port 7778 will be as per the port you have defined while creating the Managed Server, and the context MyWebApp is the name from deployment of your Web Application.
The deployment needs a MyWebApp.war file OR a similar exploded directory structure like:
/MyWebApp
/MyWebApp/index.html
/MyWebApp/Abc.jsp
/MyWebApp/jsp
/MyWebApp/jsp\Login.jsp
/MyWebApp/WEB-INF
/MyWebApp/WEB-INF/classes
/MyWebApp/WEB-INF/lib
/MyWebApp/WEB-INF/web.xml
/MyWebApp/WEB-INF/weblogic.xml

* There are several ways to start Managed servers, one way is:
Use startWebLogic.sh to start Admin console.
Use <somePath>/common/bin/startManagedWebLogic.sh <ManagedServerName> http://192.168.10.14:7001 to start your Managed Server.

* After deployment, it needs to start the application through "Start" button in deployment.

Thank You.

CMZala

[Updated on: Thu, 03 February 2011 00:15]

Report message to a moderator

Re: How to deploy a web service on Oracle Application Server 10.1.2.0.2? [message #492862 is a reply to message #492833] Thu, 03 February 2011 02:14 Go to previous messageGo to next message
lanlani
Messages: 8
Registered: November 2009
Location: Beirut
Junior Member
I wish i could use weblogic it makes life much easier.

I've tried the above links but unfortunately, it didn't work for the OAS 10.1.2 Sad

Any idea about the link to the webservice hosted on OAS 10.1.2 ?

Re: How to deploy a web service on Oracle Application Server 10.1.2.0.2? [message #492879 is a reply to message #492618] Thu, 03 February 2011 06:21 Go to previous messageGo to next message
anyie
Messages: 5
Registered: January 2011
Junior Member
Hi,

The "web.xml", is not having the correct mapping:

It should look like this-

<servlet-mapping>
<servlet-name>BeanTest</servlet-name>
<url-pattern>/beanTest</url-pattern>
</servlet-mapping>
Create a new project and give a new name and name of the webservice should have uppercase B (Ex : BeanTest) and
the url should have lowercase b and / .(Ex : /beanTest)

And then compile and deploy again.

Hope that this helps.

-Anyie
Re: How to deploy a web service on Oracle Application Server 10.1.2.0.2? [message #492883 is a reply to message #492862] Thu, 03 February 2011 06:53 Go to previous messageGo to next message
cmzala
Messages: 11
Registered: December 2010
Location: Ahmedabad
Junior Member
Since the web.xml is optional (unless you have defined something spacial), just remove this file to test the URL.

? have you created a new Managed Server or using the default (i.e. AdminServer)?

If the Managed Server is the default, the port would be 7001
If you have created a new one, then you must using the same port as you have defined in Managed Server.

Just Check.

CMZala

[Updated on: Thu, 03 February 2011 07:06]

Report message to a moderator

Re: How to deploy a web service on Oracle Application Server 10.1.2.0.2? [message #492887 is a reply to message #492883] Thu, 03 February 2011 07:06 Go to previous messageGo to next message
lanlani
Messages: 8
Registered: November 2009
Location: Beirut
Junior Member
Thanks everyone for your help Smile

The problem turned out to be that Oracle application server 10.1.2 is unlike the others servers, it uses 2 ports:
- port (19100) is dedicated for the console.
- port (7779) is to view your applications.

So the URL needed turned out to be "http://acteos-109.beirut.acteos:7779/beanTest" instead of "http://acteos-109.beirut.acteos:18100/beanTest"

Hope this info is useful

Lana



Re: How to deploy a web service on Oracle Application Server 10.1.2.0.2? [message #493123 is a reply to message #492618] Sat, 05 February 2011 03:28 Go to previous message
cmzala
Messages: 11
Registered: December 2010
Location: Ahmedabad
Junior Member
In a true way you can find the URL from the following:

Login on to the Admin Console on Browser: http://yourHostName_OR_IP:7001/console/login/LoginForm.jsp

Go to "Deployments" (This will show the list of deployed applications in the right side frame)

Click on your deployed Web-Application

This will show Overview, Deployment Plan, Configuration, etc options.

Click on the Testing, under "Test Point" column, you will find the URL you want to run on the browser for your deployed web application.

CMZala
Previous Topic: Oracle Weblogic Server 11g Ver:10.3.3.0 Browser Cache Shows Old Text (.txt) File
Next Topic: How to find out Port number through database
Goto Forum:
  


Current Time: Sat May 30 13:43:07 CDT 2020