Hi all,

has anyone ever used the port of Axis into Knopflerfish OSGi ? I am trying to upgrade the existing port to the latest Axis versions and although the original Axis jars have not been modifed I am having all sorts of troubles. If anyone is/has using/used this sort of
containers I wll appreciate some feedback on it.

Thanks and regards

suranga wrote:

Dear All,

I am trying to deploy a simple web service using apache axis2. Here I am
going to tell you all the steps I did since this is very important for
me to get this up an running,

First i downloaded the axis2 version axis2-std-1.0-src and its path is
this
/usr/local/src/axis2

I had installed Maven version 1.0.2 and as well as the jakarta tomcat
version 4.1.27. First I created the axis2.war file using maven. I got
the jar files from different locations in the internet and finally I
built the war file. but when I click the services it shows me only row
html text on the browser. After that as the installation guide says I
drop the "war" file in your site to the servelet containers webapps
folder.
Then i access the axis2 home page by typing http://localhost:8080/axis2
the home page came.

After this i tried to deploy the webservice  but still it gives row html
fonts on my browser.

PATH is set like this.
.../usr/local/src/jdk1.5.0_08/bin
and the MAVEN_HOME is set like this MAVEN_HOME=/root/dulmini/maven-1.0.2
JAVA_HOME is set like this
JAVA_HOME=/usr/local/src/jdk1.5.0_08
CATALINA_HOME is set like this
CATALINA_HOME=usr/local/src/tomcat/
SimpleService.java compiled and got the class file.Then i put classfile
and the service.xml  file together in a one directory  and  make the jar
file.

The service.xml file is looks like this

<service>
<parameter name="ServiceClass"
locked="false">SimpleService</parameter>
<operation name="echo">
<messageReceiver class
="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
</operation>
</service>

Then i renamed the .jar file in to the .aar file and put it in the
services directory which can be found in the :\webapps\axis2\WEB_INF\ in
servlet container.
And  after that i went to the axis2  home page and click the services
there but i only saw the row HTML view like this.
<html>
<base href="http://192.168.101.2:8080/axis2/"/>
 <head><title>List Services</title>
 <DEFANGED_link href="axis2-web/css/axis-
style.css" rel="stylesheet" type="text/css" />
 </head>
 <body>
 <table class="FULL_BLANK"><tr height="100%"><td valign="top">
<table width="100%">
<tr><td>
<table width="950px">
 <tr>
   <td align="left"><img src="axis2-web/images/asf-logo.gif"/></td>
   <td align="right"><img src="axis2-web/images/axis_l.jpg"/></td>
   </tr>
</table>
</td>
<td>&nbsp;</td></tr></table>
   <table width="100%">
        <tr><td>
                <table width="950px">
                        <tr>
                                <td align="right"><a 
href="axis2-web/index.jsp">Back
Home</a>&nbsp;&nbsp;|&nbsp;&nbsp; <a href="#" 
DEFANGED_Onclick="DEFANGED_javascript:
history.go
(0);">Refresh</a></td>
                        </tr>
                </table>
        </td>
        <td>&nbsp;</td></tr>
</table>

 <h1>Available services</h1>

    <h2><font color="blue"><a
href="http://192.168.101.2:8080/axis2/services/webtest?wsdl
">webtest</a></font></h2>

          <font color="blue">Service EPR : </font><font color="black">
http://192.168.101.2:8080/axis2/services/webtest
</font><br>
              <font color="blue">Service REST epr : </font><font
color="black">
http://192.168.101.2:8080/axis2/rest/webtest
</font>
          <h4>Service Description : <font color="black">null</h4>
           <i><font color="blue">Service Status : Active</font></i><br>


              <i>Available operations</i><ul><li>Print</li>

               </ul>
          <h2><font color="blue"><a href="

http://192.168.101.2:8080/axis2/services/version?wsdl";>version</a></font></h2>
          <font color="blue">Service EPR : </font><font color="black">

http://192.168.101.2:8080/axis2/services/version</font><br>
              <font color="blue">Service REST epr : </font><font
color="black">

http://192.168.101.2:8080/axis2/rest/version</font>
          <h4>Service Description : <font color="black">

       This service is to get the running Axis version

   </h4>
           <i><font color="blue">Service Status : Active</font></i><br>
              <i>Available operations</i><ul><li>getVersion</li>



               </ul>
<hr><h3><font color="blue">Faulty Services</font></h3>
               <h3><font color="blue"><a
href="services/ListFaultyServices?serviceName=/usr/local/src/tomcat/webapps/axis2/WEB-INF/services/MyService.aar">


                   
/usr/local/src/tomcat/webapps/axis2/WEB-INF/services/MyService.aar</a></font></h3>
                   <h3><font color="blue"><a
href="services/ListFaultyServices?serviceName=/usr/local/src/tomcat/webapps/axis2/WEB-INF/services/META-INF">


                   
/usr/local/src/tomcat/webapps/axis2/WEB-INF/services/META-INF</a></font></h3>
                   <h3><font color="blue"><a
href="services/ListFaultyServices?serviceName=/usr/local/src/tomcat/webapps/axis2/WEB-INF/services/web.aar">


                   
/usr/local/src/tomcat/webapps/axis2/WEB-INF/services/web.aar</a></font></h3>
                   <h3><font color="blue"><a
href="services/ListFaultyServices?serviceName=/usr/local/src/tomcat/webapps/axis2/WEB-INF/services/SimpleService.aar">


                   
/usr/local/src/tomcat/webapps/axis2/WEB-INF/services/SimpleService.aar</a></font></h3>
</td>
</tr>
<tr height="20px">


        <td>
        <table width="100%">
                <tr><td>
                        <table width="950px">
                                <tr><td><hr size="1" noshade="" /></td></tr>


                                <tr>
                                        <td align="center">Copyright &#169; 
1999-2006, The Apache Software
Foundation<br />Licensed under the <a href="

http://www.apache.org/licenses/LICENSE-2.0";>Apache License, Version
2.0</a>.</td>
                                </tr>
                        </table>
                </td>
                <td>&nbsp;</td>
                </tr>

        </table>

        </td>
</tr>
</table>

 </body>
</html>


Why is it not showing the services (default services as well as the
service I wrote) as shown in the documentation?
I would be very glad if you can help me to overcome this raw html
problem.

Regards,
Suranga De Silva








---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to