Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have two classes which are A & B. A has a method C and B has a method D. C will call D.

I have packaged A.C into a web service. Actually, I am using Axis2 to deploy an aar file on Tomcat.

Unfortunately, I failed to call this web service. I am wondering if this aar file knows class B and method D.

Posted
Comments
Mehdi Gholam 6-Jun-15 1:11am    
Failure can be caused by many things that is not clear from your question, start by making sure B is in the jar file.
Member 11745740 6-Jun-15 2:21am    
whant do you mean by ' B is in the jar file'? What should I do to B?
Mehdi Gholam 6-Jun-15 2:37am    
Make sure the class B is packaaged with class A in the jar file.
Member 11745740 6-Jun-15 2:55am    
I just packaged A.C into a aar file by using Axis2 and move it under the Tomcat webapps directory. You can just package one class into one aar file, I think you cannot package two classes into one aar file. And I also cannot merge two classes into one class in the source code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900