Krishnan Sreeraman

Greenhorn
+ Follow
since Jun 01, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Krishnan Sreeraman

Hello guys,

I am a new bie to XML. Please suggest me some ways to read an XML file given an XSD schema file.

Thanks and Regards,
Krishnan Sreeraman.
Hello guys,

I am a new bie to XML. Please suggest me some ways to read an XML file given an XSD schema file.

Thanks and Regards,
Krishnan Sreeraman.
Hello all,

I am a new pie to web services. I am having a web services which return a datahandler of a file.I am using Axiom databinding.

I tried to consume the service by using Axiom client.

Is there any possible way for me to get datahandler object from the response object from my client?? please help me

Thanks in advance
Krishnan Sreeraman
12 years ago
Hello friends,
I am new to webservice.I am using Eclipse IDE to develop Axis2 webservices. I have a client stub which consumes these services. My questions is there any possible way to debug by web service.

Thanks in advance.

Warm Regards,
Krishnan Sreeraman
13 years ago
I am not sure if I am right can you suggest me some ways to access the MyException class in MyJar.jar file.

Thanks in advance
13 years ago
It is in the jar file MyJar.jar which defines the MyException class. And I have included the MyJar in the .aar file. but still it says NoClassDefFound Error

Thanks
Krishnan Sreeraman
13 years ago
I missed out some of the error message while copying hence I am again posting the error message.

[INFO] The MySample service, which is not valid, caused java.lang.No
ClassDefFoundError: com/krish/MyException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.<init>(
DefaultSchemaGenerator.java:115)
at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:340
)
at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBui
lder.java:347)
at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServic
eGroup(ArchiveReader.java:95)
at org.apache.axis2.deployment.repository.util.ArchiveReader.processServ
iceGroup(ArchiveReader.java:137)
at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.ja
va:78)
at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy
(DeploymentFileData.java:137)
at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngin
e.java:571)
at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoL
ist.java:141)
at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListe
ner.java:318)
at org.apache.axis2.deployment.RepositoryListener.checkServices(Reposito
ryListener.java:220)
at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentE
ngine.java:118)
at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(War
BasedAxisConfigurator.java:272)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
ionContext(ConfigurationContextFactory.java:78)
at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisSer
vlet.java:500)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:420
)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1139)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:96
6)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:3956)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
230)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:74
0)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)

at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:831)

at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:720
)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
at org.apache.catalina.core.StandardService.start(StandardService.java:4
48)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
13 years ago
I missed out some of the error message while copying hence i am posting the error message again

[INFO] The MySample service, which is not valid, caused java.lang.No
ClassDefFoundError: com/krish/MyException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.<init>(
DefaultSchemaGenerator.java:115)
at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:340
)
at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBui
lder.java:347)
at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServic
eGroup(ArchiveReader.java:95)
at org.apache.axis2.deployment.repository.util.ArchiveReader.processServ
iceGroup(ArchiveReader.java:137)
at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.ja
va:78)
at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy
(DeploymentFileData.java:137)
at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngin
e.java:571)
at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoL
ist.java:141)
at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListe
ner.java:318)
at org.apache.axis2.deployment.RepositoryListener.checkServices(Reposito
ryListener.java:220)
at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentE
ngine.java:118)
at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(War
BasedAxisConfigurator.java:272)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
ionContext(ConfigurationContextFactory.java:78)
at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisSer
vlet.java:500)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:420
)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1139)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:96
6)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:3956)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
230)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:74
0)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)

at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:831)

at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:720
)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
at org.apache.catalina.core.StandardService.start(StandardService.java:4
48)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
13 years ago
Hello Friends

I am new to web services. I got NoClassDefFound Error while deploying the web service in . I am trying to access some classes defined in the jar file which i have included in the axis2 archive (.aar) file. But when i tried to deploy the service I got the following Error message in the Tomcat Console


at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.<init>(
DefaultSchemaGenerator.java:115)
at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:340
)
at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBui
lder.java:347)
at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServic
eGroup(ArchiveReader.java:95)
at org.apache.axis2.deployment.repository.util.ArchiveReader.processServ
iceGroup(ArchiveReader.java:137)
at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.ja
va:78)
at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy
(DeploymentFileData.java:137)
at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngin
e.java:571)
at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoL
ist.java:141)
at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListe
ner.java:318)
at org.apache.axis2.deployment.RepositoryListener.checkServices(Reposito
ryListener.java:220)
at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentE
ngine.java:118)
at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(War
BasedAxisConfigurator.java:272)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
ionContext(ConfigurationContextFactory.java:78)
at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisSer
vlet.java:500)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:420
)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1139)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:96
6)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:3956)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
230)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:74
0)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)

at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:831)

at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:720
)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
at org.apache.catalina.core.StandardService.start(StandardService.java:4
48)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)

Please help me resolve this out.

Thanks in advance

Regards
Krishnan Sreeraman
13 years ago
I Thank all for Helping me resolve this
14 years ago
HI

I am new to java. I am really new Object Oriented Programming please help me

resolve this issue.I compiled the following code

class Super {
public String getNum(float a) {
return("You have landed in super class");
}
}

class Sub extends Super {

public String getNum(int a)
{
return ("You have landed in sub class" );
}
}

class Test

{

public static void main(String args[]){

String a;
Super s= new Sub();
int i=45;
a=s.getNum(i);
System.out.println(a);
}
}


But I was expecting the result as you have landed in sub class but

I got the result as you have landed in super class

Can any one reason out why this had happened?

Is this not Method Overloading
14 years ago