Hi Charitha, Thank you for the explanation you gave me. I got another question about using AXIOM in axis. do you have any references of using it (such as tutorial)? I tried to understand the tutorial in the apache website but i still can't get it clear. any idea of this?
thanks a lot Regards, Kencana Charitha Kankanamge wrote: > > Kencana wrote: > >>Hi Charitha, >> >>to create a new service we must create aar file and put it to the services >>folder right? >> >> > Correct. > >>can we use other file type than aar like wsdl to create the service?what are >>others file type can we use >>for the axis service? >> >> > AFAIK, aar is the supported deployment format. However the latest > version of Axis2 (Axis2-1.2) supports pojo annotation feature and > through that, you can simply deploy a .class file as a web service. > Do the following in order to expose a .class file as a web service. > (Download Axis2-1.2 from > http://people.apache.org/~deepal/axis2/1.2-RC2/axis2-1.2-RC2.zip) > > 1. Edit axis2.xml by adding the following entry > > <deployer directory="pojo" extension=".class" > class="org.apache.axis2.deployment.POJODeployer"/> > > 2. Create a directory 'pojo' at axis2\WEB-INF > (..\apache-tomcat-6.0.10\webapps\axis2WEB-INF\pojo) > > 3. Write a pojo class, compile it and save it in the above pojo directory > > 4. Restart app server if necessary > > 5. Access Axis2 admin console and check the service > > regards > Charitha > >>Thank you >> >>Regards, >>Kencana >> >> >>Charitha Kankanamge wrote: >> >> >>>Hi Kencana, >>>How did you deploy the service? Axis2 service should be deployed as a >>>service archive(aar file) with a proper structure as given in [1] or [2] >>>or [3]. >>> >>>[1]http://ws.apache.org/axis2/1_1_1/userguide-buildingservices.html#buildservices >>>[2]http://ws.apache.org/axis2/1_1_1/adv-userguide.html >>>[3]http://ws.apache.org/axis2/1_1_1/pojoguide.html#pojows >>> >>>Regards >>>Charitha >>> >>>Kencana wrote: >>> >>> >>> >>>>Hi all, >>>> >>>>I am new user of axis 2. I try to develop a new service, however it >>>> >>>> >>returns >> >> >>>>me as a faulty service. >>>>Any idea to fix this kind of situation? >>>>the following is the error messages I get: >>>> >>>>Error: org.apache.axis2.deployment.DeploymentException: Invalid service >>>>META-INF directory not found; nested exception is: >>>>org.apache.axis2.deployment.DeploymentException: Invalid service META-INF >>>>directory not found at >>>>org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:255) >>>>at >>>>org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:513) >>>>at >>>>org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:196) >>>>at >>>>org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:227) >>>>at >>>>org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:174) >>>>at >>>>org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:88) >>>>at >>>>org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:252) >>>>at >>>>org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:72) >>>>at >>>>org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:392) >>>>at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:331) >>>> >>>> >>at >> >> >>>>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161) >>>>at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981) >>>>at >>>>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4044) >>>>at >>>> >>>> >>org.apache.catalina.core.StandardContext.start(StandardContext.java:4350) >> >> >>>>at >>>>org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761) >>>>at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741) >>>>at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) >>>> >>>> >>at >> >> >>>>org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825) at >>>>org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714) at >>>>org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) at >>>>org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at >>>>org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) >>>>at >>>>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) >>>>at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023) >>>> >>>> >>at >> >> >>>>org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at >>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015) at >>>>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at >>>>org.apache.catalina.core.StandardService.start(StandardService.java:448) >>>> >>>> >>at >> >> >>>>org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at >>>>org.apache.catalina.startup.Catalina.start(Catalina.java:552) at >>>>sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at >>>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>>>at >>>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>>>at java.lang.reflect.Method.invoke(Method.java:597) at >>>>org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at >>>>org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: >>>>org.apache.axis2.deployment.DeploymentException: Invalid service META-INF >>>>directory not found at >>>>org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:244) >>>>... 35 more >>>> >>>>Thanks >>>> >>>>Regards, >>>>Kencana >>>> >>>> >>>> >>>> >>> >>>--------------------------------------------------------------------- >>>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] > > > -- View this message in context: http://www.nabble.com/error-in-adding-service-tf3642612.html#a10177259 Sent from the Axis - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
