• Post Reply Bookmark Topic Watch Topic
  • New Topic

Axis2 with WebLogic 9.1 (Deploy Problem)

 
Anil Vupputuri
Ranch Hand
Posts: 527
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Tried many ways of making axis2 as embeddable version within WebLogic9.1 but couldn't find solution yet.

My requirement is to deploy axis2 on WebLogic9.1 as war file which also includes my own webservice (called "my_own_aar.aar" under "\axis2\WEB-INF\services" folder).

There was a similar Thread(but it was WLS8.1) but it didn't help either,
(a) Placing weblogic.xml with <prefer-web-inf-classes> tag
(b) Changing classpath by Placing "axis2-saaj-1.1.1.jar" before "webservices.jar" in start script of WebLogic

Any ideas?
 
Anil Vupputuri
Ranch Hand
Posts: 527
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can somebody shed light on this! Thanks.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what you mean by "embeddable - is that a WebLogic thing? Otherwise, Axis is just a standard web app, so I'd think that copying the full Axis web app -including your services and modules directories- into whichever directory WL keeps its webapps in should do the trick. Am I missing something?
 
Anil Vupputuri
Ranch Hand
Posts: 527
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulf,

Thanks for answering. I do not want to copy Axis2 directory to WebLogic as a exploded format. I want to combine axis2.war with my services and deploy the modified axis2.war on WebLogic 9.1. Any ideas.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then create a war file that contains everything the original Axis war contained, plus your additions. There's an ant task that can automate this as part of the build.
 
Anil Vupputuri
Ranch Hand
Posts: 527
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's where the problem is. When I deploy packaged war file, none of the services are visible and Axis2 Admin page comes-up successfully. Axis2 specs recommend using the exploded configuration to deploy Axis2 WAR in WebLogic but this is not our production option.
Did you try deploying axis2.war on Weblogic9.1.
 
Anil Vupputuri
Ranch Hand
Posts: 527
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf,

Forgot to attach Exception which I've been getting. Basically axis2.war is unable to load the services if services are bundled to .aar file within axis2.war even though I've updated web.xml with

<init-param>
<param-name>axis2.xml.path</param-name>
<param-value>repository/axis2.xml</param-value>
</init-param>
<init-param>
<param-name>axis2.repository.path</param-name>
<param-value>repository</param-value>
</init-param>


repository is a root level directory in axis2.war.

And here is the Exception,

 
manik krishnan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got the same issue when i deploy axis2.war file in weblogic. The issue is only version.aar is deployed. My .aar file is not getting deployed.
I found a solution. Please follow the below steps to resolve this issue.
1. Open WEB-INF/services/services.list in Notepad
2. You will see only version.aar entry. Add your own .aar (my_own_aar.aar) entry in services.list file and save it.
3. Create axis2.war now.
4. Deploy in weblogic and restart the server
5. Now you should see both version.aar and your my_own_aar.aar deployed in weblogic
Whenver you create new .aar make sure you add entry in services.list before creating .war file. If you deploy as a exploded format, it is not required to add this entry.

Thanks,
Mani
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!