Hello Matthieu,
this class has been mistakenly refactored in the past and lacks a
dependency with the JavaBeans activation framework.
Ths is now fixed in the SVN repository and available at the following URL :
http://www/restlet.org/downloads/1.0/current.zip
Thanks for this judicious reporting.
Best regards,
Thierry Boileau
Hello
I'm trying to use the javamail connector from inside one of my resource, but
whenever I add it to the archive (a war contained in a ear actually, all under
jboss), I get the deployment error partially copied below. I'm wondering if I'm
missing something regarding the use of the javamail connector, especially
considering that JavaMailClientHelper is an abstract class, whereas other
connectors I used (servlet and http) are not?
Does anyone have a hint?
Thanks
GRAVE: Unable to register the client connector
com.noelios.restlet.ext.javamail.JavaMailClientHelper
java.lang.InstantiationException
at
sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance
(InstantiationExceptionConstructorAccessorImpl.java:30)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at com.noelios.restlet.Engine.<init>(Engine.java:134)
at com.noelios.restlet.Engine.<init>(Engine.java:93)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at org.restlet.util.Engine.getInstance(Engine.java:138)
at org.restlet.Component.<init>(Component.java:76)
at
com.noelios.restlet.ext.servlet.ServerServlet.getComponent
(ServerServlet.java:300)
at
com.noelios.restlet.ext.servlet.ServerServlet.getApplication
(ServerServlet.java:268)
at
com.noelios.restlet.ext.servlet.ServerServlet.init(ServerServlet.java:373)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)