Stupid error on my part - I was in src directory; there were no .class files there, only .java.
I compiled the code from eclipse, and moved META-INF to bin. The .aar file then generated is deployed successfully on the tomcat server. Thanks for the help! -chaitanya On Wed, May 11, 2011 at 3:56 PM, Chaitanya Kulkarni <[email protected]>wrote: > Hi, > > That's exactly the structure. > > Thanks, > Chaitanya > > On Wed, May 11, 2011 at 1:02 PM, Deepal Jayasinghe <[email protected]>wrote: > >> As the exception suggested you need to have "VoltageValueService.class" >> under >> >> service.aar >> META-INF >> services.xml >> com >> serial >> code >> VoltageValueService.class >> >> >> Deepal >> >> On Wed, May 11, 2011 at 10:14 AM, Chaitanya Kulkarni <[email protected]> >> wrote: >> > Hi, >> > >> > I am trying to deploy a web service, and facing DeploymentException. >> > >> > I have followed 'Creating service from scratch' from >> > >> http://axis.apache.org/axis2/java/core/docs/userguide-buildingservices.html#buildservices >> > >> > I have copied the service class to the package containing my other .java >> > source files, and I have copied services.xml to META-INF directory >> created >> > in the src folder. >> > >> > I can successfully generate .aar file, but when I deploy it on the >> Apache >> > Tomcat server, I get following exceptions: >> > >> > Error: org.apache.axis2.deployment.DeploymentException: The following >> error >> > occurred during schema generation: Class Not found : >> > com.serial.code.VoltageValueService at >> > >> org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:150) >> > at >> > >> org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:81) >> > at >> > >> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136) >> > at >> > >> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:659) >> > at >> > >> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144) >> > at >> > >> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:337) >> > at >> > >> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:241) >> > at >> > >> org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:131) >> > at >> > >> org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:284) >> > at >> > >> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95) >> > at >> > >> org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:559) >> > at >> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:448) at >> > >> org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1189) >> > at >> > >> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1103) >> > at >> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1010) >> > at >> > >> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4935) >> > at >> > >> org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5262) >> > at >> > >> org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5257) >> > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at >> > java.util.concurrent.FutureTask.run(FutureTask.java:138) at >> > >> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) >> > at >> > >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) >> > at java.lang.Thread.run(Thread.java:619) Caused by: >> > org.apache.axis2.deployment.DeploymentException: The following error >> > occurred during schema generation: Class Not found : >> > com.serial.code.VoltageValueService at >> > >> org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:431) >> > at >> > >> org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:101) >> > at >> > >> org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:143) >> > ... 22 more Caused by: org.apache.axis2.deployment.DeploymentException: >> The >> > following error occurred during schema generation: Class Not found : >> > com.serial.code.VoltageValueService at >> > >> org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:394) >> > ... 24 more Caused by: java.lang.ClassNotFoundException: Class Not found >> : >> > com.serial.code.VoltageValueService at >> > >> org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentClassLoader.java:86) >> > at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at >> > java.lang.ClassLoader.loadClass(ClassLoader.java:248) at >> > java.lang.Class.forName0(Native Method) at >> > java.lang.Class.forName(Class.java:247) at >> > >> org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.(DefaultSchemaGenerator.java:136) >> > at >> org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:499) at >> > >> org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:390) >> > ... 24 more >> > >> > Could you please point what I might be missing? I have set up >> environment >> > variables. >> > >> > Thanks, >> > >> > Chaitanya >> > >> >> >> >> -- >> http://blogs.deepal.org >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> >
