This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes Exception In web services Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Exception In web services" Watch "Exception In web services" New topic
Author

Exception In web services

Gurpreet Saini
Ranch Hand

Joined: Jun 09, 2002
Posts: 295
hello guys,

I am using Eclipse with tomcat I am getting the following exception please help. Am I missing jar file ?. Or what can be the problem ?.

INFO: The Service service, which is not valid, caused java.lang.NoClassDefFoundError: org/tempuri/GwsSoap
at cit.gaming.app.AppBean.<init>(AppBean.java:203)
at webservices.Service.<clinit>(Service.java:80)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.ws.java2wsdl.SchemaGenerator.<init>(SchemaGenerator.java:121)
at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:306)
at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:339)
at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:98)
at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:175)
at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:79)
at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:582)
at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:201)
at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:271)
at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:189)
at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:110)
at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:257)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:74)
at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:486)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:406)
at org.apache.axis2.transport.http.AxisAdminServlet.init(AxisAdminServlet.java:51)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
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:448)
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)

thanks

gurpreet
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41092
    
  44
Is the class org.tempuri.GwsSoap in a place where the WS container can find it?


Ping & DNS - my free Android networking tools app
Gurpreet Saini
Ranch Hand

Joined: Jun 09, 2002
Posts: 295
Hello,

No, I think Please tell me the name of the jar file then I will set to the path.

thanks gurpreet
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41092
    
  44
Never heard of it. Where does cit.gaming.app.AppBean originate? Its documentation should tell you where to get it if it doesn't ship with it.
 
wood burning stoves
 
subject: Exception In web services
 
Similar Threads
Axis deployment error
Unable to get Web Service running
How to make reference to other packages in Eclipse?
No ClassDefFound Error in Axis2
Axis2 Deployment Problem