• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

classNotFound Exception on glassfish server

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have created a simple java class and my server is glassfish server 4.0. I am getting Classnotfound exception on server start.
I am using java jdk1.7.0_60. My classpath is set to C:\Program Files (x86)\Java\jdk1.7.0_60\bin and also my JAVA_HOME set to C:\Program Files (x86)\Java\jdk1.7.0_60\bin.

Here is my java code


[/code]
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How are you packaging the war file? Is the ProductCatalog class under the folder "java/kabita"?

Is your productCategories() method the method to call in the web service? If so add the @WebMethod annotation for it. For web methods, the operationName attribute should be present.

Similarly for @WebService annotation there is a serviceName attribute.

Let say I have a Hello web service:

 
Kabita Sahoo
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@K.Tsang,
Yes, my ProductCatalog class is under the folder"java/kabita". I am learning webservices, and this is my first webservice class:-). I change my code as per your suggestion but still have the same error.
reply
    Bookmark Topic Watch Topic
  • New Topic