On Tue, Mar 2, 2010 at 10:18 AM, Linc <[email protected]> wrote:
> Hi together,
>
> today I got a mail concerning a bugfix I've been waitig for a long
> time.
>
> So I tried to port my bot to the V2 API.
>
> After writing a hello world bot following the tutorial (http://
> code.google.com/intl/de-DE/apis/wave/extensions/robots/java-
> tutorial.html), I noticed some things.
>
> First of all the tutorial says to write the following lines to the
> web.xml whic will redirect every access to the _wave folder to the
> Servlet.
>
> <servlet-name>Parroty</servlet-name>
>
> <url-pattern>/_wave/*</url-pattern>
>
> So how should one access the capabilities.xml?

On the server it will be available at http://<your robot
name>.appspot.com/_wave/capabilities.xml

If you run the robot locally you will find it at
http://localhost:8888/_wave/capabilities.xml

>
> It always gives me error 500 and in the logs there's some error:
>
> java.lang.IllegalAccessException: Class
> org.mortbay.jetty.servlet.Holder can not access a member of class ...

Does the name of the class in the web.xml file match the class
of your servlet? If they don't match then you will get a 500 exception
because the server can't find the class to handle the incoming request.

For example, I started with the Parroty example, but named the class
differently, so
my web.xml looks like this:

<web-app xmlns="http://java.sun.com/xml/ns/javaee"; version="2.5">
    <servlet>
        <servlet-name>jcgbot</servlet-name>
        <servlet-class>jcgbot.JcgbotServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>jcgbot</servlet-name>
        <url-pattern>/_wave/*</url-pattern>
    </servlet-mapping>
</web-app>


   Thanks,
   -joe

>
> So I cannot access the file to check if deployment worked as proposed
> in the tutorial.
>
> And will the capabilities.xml file really be created automatically?
>
> So currently I'm not able to get anything running with the V2
> Tutorial.
>
> Hope somebody can help!
>
> Thanks in advance...
>
> Lincoln
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Wave API" 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-wave-api?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Wave API" 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-wave-api?hl=en.

Reply via email to