• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Unable to deploy .aar files in weblogic

 
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,

I am new to axis 2 and weblogic. I have .aar files which are placed under services directory under WEB-INF folder in axis 2. But I am unable to see the list of services present in the .aar files when I hit http://localhost:7003/Trac/services/listServices

The only service that I can see is version service. When I checked the logs I found the following error



I searched over internet but was unable to find a solution to this problem. I am using weblogic 9.2 and axis 2.

Also I have multiple war files in a single ear. I hope that is not causing the problem.. One of the suggestion I read on website is to pull out axis2.war and make it available at the root and check whether services are getting listed. But that will not solve the purpose since these are bundled in my ear.

Following is an entry from web.xml


Can anyone please help me out of this problem ?

Waiting for your replies..

Thanks
Rohit.
[ December 10, 2008: Message edited by: Rohit Bhagwat ]
 
Rohit Bhagwat
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Friends,

I looked at the javadocs for axis and came to know the following points

Gets the axis configuration object by loading the repository. The order of initialization is according the the following precedence:
If the parameter axis2.repository.path is present, this folder is used as the location to the repository.
Otherwise, if the parameter axis2.repository.url is present, the URL is used as the location to the repository.
Otherwise, when both of the above init parameters are not present, the web applications WEB-INF folder is used as the folder for the repository



When I have deployed the application in weblogic 9.2 the directory structure is as follows




conf folder has axis2.xml and services folder has all the services I had deployed. Now if I mention absolute path in web.xml for axis2.xml.path and absolute path for axis2.repository.path then everything works fine.. I am able to see all the webservices I have deployed when I hit the above url.

Can anyone tell me how can I specify the relative path? If I dont specify any init param tag in web.xml, still it doesnt work.

Can anyone please help me ?

Thanks
Rohit.
 
Rohit Bhagwat
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey friends,

I got the answer. For axis 2 you need to make an entry in services.list file. Keep all the *.aar files in services folder under WEB-INF folder of Axis2 and that's all you need to make your services available for axis. You should be able to see your services when you hit the url http://localhost:<port_number>/axis2/services/listServices

Thanks
Rohit.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic