Re: [Axis 2] Problem embedding Axis2 into existing web application

Sagara Gunathunga <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <CANzUfzeUaJpsFjay-JJX2NMXNDek8Cf1Uiw0WaMWe-pbTb8MJg@mail.gmail.com>
HTH http://ssagara.blogspot.com/2012/02/axis2-archetype-to-create-web.html

Thanks !

On Thu, Aug 23, 2012 at 3:03 PM, subs subs <[email protected]> wrote:
> Hello,
> I am a newbie to Axis2. I am currently trying to add Axis2 to my web
> application running on one of the instances of Tomcat 4.1.12(Our Tomcat
> installation is configured for multiple instances and I am trying to add
> Axis2 to a web application running at one of them).
>
> I read some information about adding Axis2 to existing applications at
> http://www.developer.com/services/article.php/3777111/Embedding-Apache-Axis2-into-Existing-Applications.htm.
>
> I encountered following problems in embedding Axis2:
>
> 1) I am not clear if we have to configure Axis2 in Tomcat(copy axis2.war
> into tomcat webapps) before starting to embed Axis2 to in our existing
> application.
> 2) I tried to follow the steps exactly as in the above web page. I got the
> following error 'java.lang.ClassNotFoundException:
> org.apache.axis2.transport.http.AxisServlet'.
>    I assume I have to add some jars to the classpath. So first I copied the
> axis2.war to $CATALINA_BASE/webapps folder and restarted Tomcat. But Tomcat
> did not explode the war file(Strangely I did not find  any error messages
> also!) . Then I tried with the binary distribution of Axis2(axis2-1.6.2). I
> see that there are about 114 jars in the axis2/axis2-1.6.2/lib directory of
> the
>    binary distribution. Do I need to add all of them to the classpath? Am I
> following the correct way of embedding Axis2?
>
> Please let me know. I tried to look in the web for answers, but could not
> find much help
>
> Thanks
> Vani



-- 
Sagara Gunathunga

Blog      - http://ssagara.blogspot.com
Web      - http://people.apache.org/~sagara/
LinkedIn - http://www.linkedin.com/in/ssagara
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.