Make sure appengine-api-labs.jar is on your runtime classpath. Max On Wed, Apr 21, 2010 at 9:00 PM, Felipe Quintella < felipequintell...@gmail.com> wrote:
> Hello there. > > I'm new to Google AppEngine, but I'm already searched and can't find > the answer to my problem. > > I am trying to add a task to the default taskqueue, but i keep getting > a NoClassDefFoundError with the QueueFactory class... > > I can't find what the problem is. I have App Engine SDK 1.3.2 added as > a library, and have imported the QueueFactory successfully... > > Maybe you can enlighten me. > > Looking forward to your answer, > Thank you. > > Felipe Quintella. > > > Error: > HTTP ERROR 500 > > Problem accessing /canalparser. Reason: > > com/google/appengine/api/labs/taskqueue/QueueFactory > > Caused by: > > java.lang.NoClassDefFoundError: com/google/appengine/api/labs/ > taskqueue/QueueFactory > at braziltvguide.ParseCanaisServlet.doGet(ParseCanaisServlet.java: > 108) > > > > Part of the code with the problem: > import com.google.appengine.api.labs.taskqueue.Queue; > import com.google.appengine.api.labs.taskqueue.QueueFactory; > > > import static > com.google.appengine.api.labs.taskqueue.TaskOptions.Builder.*; > > if (req.getParameter("task") == null) { > Queue queue = > QueueFactory.getDefaultQueue(); > > > queue.add(url("/canalparser?tipo=getProgramas&task=1")); > } > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > google-appengine-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.