This week's book giveaways are in the iOS and Features new in Java 8 forums.
We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line!
See this thread and this one for details.
The moose likes Websphere and the fly likes NoClassDefFoundError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Products » Websphere
Bookmark "NoClassDefFoundError" Watch "NoClassDefFoundError" New topic


riya s
Ranch Hand

Joined: Feb 28, 2003
Posts: 110
Can someone just tell me the meaning of this error...
My servlet (in classes folder )says package VioSys; because my bean is located in VioSys which is in classes\VioSys
My jsp files can access the bean but when I call the servlet from the jsp it does not find this Add_Ticket servlet.
Error in logs is:
[03.03.18 16:47:17:158 EST] 49ac959 WebGroup X Servlet Error-[Add_Ticket]: Failed to load servlet: java.lang.NoClassDefFoundError: Add_Ticket (wrong name: VioSys/Add_Ticket)
Graham Thorpe
Ranch Hand

Joined: Mar 25, 2002
Posts: 265
Hi shah
Can u tell me the how can i run the this client program.when i run this client program i facing this exception ...
javax.naming.ServiceUnavailableException: NULL returned when resolving initial r
at javax.naming.spi.NamingManager.getInitialContext(
at javax.naming.InitialContext.getDefaultInitCtx(
at javax.naming.InitialContext.init(
at javax.naming.InitialContext.<init>(
at ConverterClient.main(
import convert.*;
import javax.servlet.http.*;
import java.rmi.*;
import javax.rmi.*;
import java.util.*;
import javax.naming.*;
import javax.ejb.*;
import java.math.BigDecimal;

public class ConverterClient {
public static void main(String[] args) {

try {
System.out.println("Hi this is the Small");
//Hashtable h=new Hashtable();
Properties h =new Properties();

System.out.println("the h value is :"+h);

Context initial = new InitialContext(h);
Object objref = initial.lookup("ConverterBean");
ConverterHome home =(ConverterHome)PortableRemoteObject.narrow(objref,ConverterHome.class);
Converter currencyConverter = home.create();
BigDecimal param = new BigDecimal ("100.00");
BigDecimal amount =currencyConverter.dollarToYen(param);
amount = currencyConverter.yenToEuro(param);
} catch (Exception ex) {
System.err.println("Caught an unexpected exception!");

pls help me shah if possible ...
I need some steps also for deployment for this WSAD5.0
I agree. Here's the link:
subject: NoClassDefFoundError