aspose file tools*
The moose likes BEA/Weblogic and the fly likes Unable to deploy .aar files in weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Unable to deploy .aar files in weblogic" Watch "Unable to deploy .aar files in weblogic" New topic
Author

Unable to deploy .aar files in weblogic

Rohit Bhagwat
Ranch Hand

Joined: Dec 19, 2004
Posts: 205
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

Joined: Dec 19, 2004
Posts: 205
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

Joined: Dec 19, 2004
Posts: 205
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to deploy .aar files in weblogic