Hi Matthieu,

I've just re-generated the current.zip file (http://www.restlet.org/downloads/1.0/current.zip), as it misses the activation.jar file...
You can find the latter in the "/lib/javax.activation_1.1" subdirectory.
I hope this can help you.

Best regards,
Thierry Boileau

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 Thierry Thanks for that, but... I still can't deploy the javamail connector under Jboss.
The error message changed slightly though (sse below), but it looks as if the
deployer couldn't find the JavaMailClientHelper constructor using a Client
argument (although I reckon it is present in the source code of the current.zip archive). The Javamail connector is included in a .jar file deployed
within a .ear. The .jar file includes com.noelios.restlet, org.restlet,
javax.mail and com.noelios.restlet.ext.javamail; am I missing something?

Regards
Matthieu Hug

GRAVE: Unable to register the client connector
com.noelios.restlet.ext.javamail.JavaMailClientHelper
java.lang.NoSuchMethodException:
com.noelios.restlet.ext.javamail.JavaMailClientHelper.<init>
(org.restlet.Client)
        at java.lang.Class.getConstructor0(Class.java:2647)
        at java.lang.Class.getConstructor(Class.java:1629)
        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:144)
        at org.restlet.Component.<init>(Component.java:76)
        at com.noelios.restlet.ext.servlet.ServerServlet.getComponent
(ServerServlet.java:301)
        at com.noelios.restlet.ext.servlet.ServerServlet.getApplication
(ServerServlet.java:269)
        at com.noelios.restlet.ext.servlet.ServerServlet.init
(ServerServlet.java:374)
        at javax.servlet.GenericServlet.init(GenericServlet.java:211)
        at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:1105)
        at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
        at org.apache.catalina.core.StandardContext.loadOnStartup
(StandardContext.java:3951)
        at org.apache.catalina.core.StandardContext.start
(StandardContext.java:4225)
        at org.apache.catalina.core.ContainerBase.addChildInternal
(ContainerBase.java:759)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
        at org.apache.catalina.core.StandardHost.addChild
(StandardHost.java:524)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.commons.modeler.BaseModelMBean.invoke
        (BaseModelMBean.java:503)
        at org.jboss.mx.server.RawDynamicInvoker.invoke
        (RawDynamicInvoker.java:164)
        at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:659)
        at 
org.apache.catalina.core.StandardContext.init(StandardContext.java:5052)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.commons.modeler.BaseModelMBean.invoke
        (BaseModelMBean.java:503)
        at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
        at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:659)
        at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal
(TomcatDeployer.java:297)
        at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy
        (TomcatDeployer.java:103)
        at org.jboss.web.AbstractWebDeployer.start
(AbstractWebDeployer.java:371)
        at org.jboss.web.WebModule.startModule(WebModule.java:83)
        at org.jboss.web.WebModule.startService(WebModule.java:61)
...




Reply via email to