Hi all,
I am currently getting the java.lang.NoClassDefFoundError when I try
and run my Google Wave Robot. I have checked and I have defiantly
copied the jar to /war/WEBINF/lib and included this in my build path:
package srp;
import java.io.IOException;
import javax.servlet.http.*;
import com.google.wave.api.*;
import srpProject.GoogleWaveWSServiceLocator;
import srpProject.GoogleWaveWSPortBindingStub;
public class SRPProjectServlet extends AbstractRobotServlet {
private int theState = 0;
@Override
public void processEvents(RobotMessageBundle bundle) {
Wavelet wavelet = bundle.getWavelet();
if (bundle.wasSelfAdded()) {
Blip blip = wavelet.appendBlip();
TextView textView = blip.getDocument();
textView.append("I'm alive!");
}
for (Event e: bundle.getEvents()) {
if (e.getType() ==
EventType.WAVELET_PARTICIPANTS_CHANGED) {
Blip blip = wavelet.appendBlip();
TextView textView = blip.getDocument();
textView.append("Hi, everybody!");
} else if (e.getType() == EventType.BLIP_SUBMITTED) {
String sResponse = "";
String sXML = "";
String sLastBlip =
e.getBlip().getDocument().getText();
Blip blip = wavelet.appendBlip();
TextView textView = blip.getDocument();
try {
GoogleWaveWSPortBindingStub stub = new
GoogleWaveWSPortBindingStub();
textView.append("HI");
} catch (Exception ex) {
textView.append(ex.getMessage());
}
}
}
}
}
The import works ok but the error comes when it tries to create a new
instance of the GoogleWaveWSPortBindingStub. Does anyone have any
ideas on what I have dont wrong? I'm pretty sure I haven't included
the jar correctly but I cant see what I have done wrong.
Thanks
James
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---