OK I was using servicemix-ftp and servicemix-file in a lightweight manner, then I changed it to use it a component, finally got it to work after much fiddling, heres the xbean.xmls for both servicemix-ftp and servicemix-file for anyone's future reference on how to configure them as xbeans.
<beans xmlns:ftp="http://servicemix.apache.org/ftp/1.0" xmlns:a="http://servicemix.apache.org/a" > <ftp:sender service="a:myFTPService" endpoint="endpoint" uri="ftp://user:[EMAIL PROTECTED]/pdf"> <ftp:marshaler> <bean class="org.apache.servicemix.components.util.BinaryFileMarshaler"> <property name="fileName"> <bean class="org.apache.servicemix.expression.JaxenStringXPathExpression"> <constructor-arg value="concat('sample_','1', '.pdf')"/> </bean> </property> </bean></ftp:marshaler> </ftp:sender> </beans> <beans xmlns:file="http://servicemix.apache.org/file/1.0" xmlns:a="http://servicemix.apache.org/a" > <file:poller service="a:myFilePoller" endpoint="poller" targetService="fss:myChainService" file="file:inbox" /> </beans> Thanks Guillaume. gnodet wrote: > > What are you trying to deploy on the lightweight container ? > As thought you were writing your own SE ... > > On 12/20/06, Kevinjj <[EMAIL PROTECTED]> wrote: >> >> OK So i change MyEndpoint to Object[] >> >> Now my LW Chain Component Fails >> >> <exception-info> >> <nesting-level>1</nesting-level> >> <msg-loc-info> >> <loc-token/> >> >> <loc-message>org.springframework.beans.factory.parsing.BeanD >> efinitionParsingException: Configuration problem: Bean class >> [pollingEndpoint] not found >> Offending resource: file >> [C:\apache-servicemix-3.1-incubating-SNAPSHOT\data\smx\service-assemblies\f >> ss-sa\version_1\sus\servicemix-lwcontainer\fss-lwchain-su\servicemix.xml] >> Bean ''; nested exception is java.lang.ClassNotFoundException: >> pollingEndpoint in classloader pollin >> gEndpoint</loc-message> >> >> <stack-trace><![CDATA[org.apache.xbean.kernel.ServiceRegistr >> ationException: >> org.springframework.beans.factory.parsing.BeanDefinitionParsingException: >> Configurat >> ion problem: Bean class [pollingEndpoint] not found >> Offending resource: file >> [C:\apache-servicemix-3.1-incubating-SNAPSHOT\data\smx\service-assemblies\f >> ss-sa\version_1\sus\servicemix-lwcontainer\fss-lwchain-su\servicemix.xml] >> Bean ''; nested exception is java.lang.ClassNotFoundException: >> pollingEndpoint in classloader pollin >> gEndpoint >> at >> org.apache.xbean.kernel.standard.ServiceManagerRegistry.registerService(ServiceManagerReg >> istry.java:424) >> at >> org.apache.xbean.kernel.standard.StandardKernel.registerService(StandardKernel.java:220) >> at >> org.apache.xbean.server.spring.loader.SpringLoader.load(SpringLoader.java:154) >> at >> org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.jav >> a:79) >> at >> org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java: >> 88) >> at >> org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69 >> ) >> at >> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentSer >> vice.java:527) >> at >> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentSer >> vice.java:304) >> at >> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateExternalArchive(AutoDeplo >> ymentService.java:184) >> at >> org.apache.servicemix.jbi.container.JBIContainer.updateExternalArchive(JBIContainer.java: >> 458) >> at >> org.apache.servicemix.jbi.container.JBIContainer.updateExternalArchive(JBIContainer.java: >> 468) >> at >> org.apache.servicemix.jbi.framework.AdminCommandsService.deployServiceAssembly(AdminComma >> ndsService.java:240) >> 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.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216) >> at >> org.apache.servicemix.jbi.management.BaseStandardMBean.invoke(BaseStandardMBean.java:316) >> >> at >> com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213) >> at >> com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) >> at >> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerIntercepto >> r.java:815) >> at >> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) >> at >> javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1408) >> at >> javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81) >> at >> javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.j >> ava:1245) >> at java.security.AccessController.doPrivileged(Native Method) >> at >> javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.jav >> a:1348) >> at >> javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:782) >> 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 >> sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294) >> at sun.rmi.transport.Transport$1.run(Transport.java:153) >> at java.security.AccessController.doPrivileged(Native Method) >> at sun.rmi.transport.Transport.serviceCall(Transport.java:149) >> at >> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) >> at >> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) >> at java.lang.Thread.run(Thread.java:595) >> Caused by: >> org.springframework.beans.factory.parsing.BeanDefinitionParsingException: >> Configuration p >> roblem: Bean class [pollingEndpoint] not found >> Offending resource: file >> [C:\apache-servicemix-3.1-incubating-SNAPSHOT\data\smx\service-assemblies\f >> ss-sa\version_1\sus\servicemix-lwcontainer\fss-lwchain-su\servicemix.xml] >> Bean ''; nested exception is java.lang.ClassNotFoundException: >> pollingEndpoint in classloader pollin >> gEndpoint >> at >> org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemRe >> porter.java:59) >> at >> org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:64) >> >> >> i guess this is related to the asList signature change >> >> Any help would be greatly appreciate as this is postponing a demo I >> wanted >> to give. >> >> Thanks >> K. >> >> Kevinjj wrote: >> > >> > >> > OK I guess I am using the servicemix-engine archetype, I cant get the >> > source for the updated signature, this is what i have in my code >> created >> > using the service-mix engine archetype >> > >> > public class MyComponent extends DefaultComponent { >> > >> > private MyEndpoint[] endpoints; >> > >> > public MyEndpoint[] getEndpoints() { >> > return endpoints; >> > } >> > >> > public void setEndpoints(MyEndpoint[] endpoints) { >> > this.endpoints = endpoints; >> > } >> > >> > protected List getConfiguredEndpoints() { >> > return asList(endpoints); >> > } >> > >> > protected Class[] getEndpointClasses() { >> > return new Class[] { MyEndpoint.class }; >> > } >> > >> > } >> > >> > >> > I guess i should the type of endpoints ?? can you please let me know >> the >> > correct method call >> > >> > Thanks. >> > >> > gnodet wrote: >> >> >> >> You need to deploy a newer version of servicemix-shared. >> >> The method signature has changed, and it seems you still use >> >> the older version. >> >> >> >> On 12/20/06, Prem <[EMAIL PROTECTED]> wrote: >> >>> >> >>> >> >>> My app was deploying till last week fine, i get this error when i do >> a >> >>> mvn:jbiprojectDeploy >> >>> I see that the new servicemix-commons DefaultComponent doesnt have >> the >> >>> asList method, but I have tried copying the old lib to the repo and >> the >> >>> servicemix\lib dir, still the same problem. >> >>> >> >>> Method not found >> >>> >> >>> >> org.apache.servicemix.common.DefaultComponent.asList([Ljava/lang/Object;)Ljava/util/List; >> >>> >> >>> Any help would be appreicated. >> >>> >> >>> Thanks, >> >>> Kevin >> >>> -- >> >>> View this message in context: >> >>> >> http://www.nabble.com/error-deploying-service-assembly-tf2857393s12049.html#a7982954 >> >>> Sent from the ServiceMix - User mailing list archive at Nabble.com. >> >>> >> >>> >> >> >> >> >> >> -- >> >> Cheers, >> >> Guillaume Nodet >> >> >> >> >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/error-deploying-service-assembly-tf2857393s12049.html#a7997782 >> Sent from the ServiceMix - User mailing list archive at Nabble.com. >> >> > > > -- > Cheers, > Guillaume Nodet > > -- View this message in context: http://www.nabble.com/error-deploying-service-assembly-tf2857393s12049.html#a8016549 Sent from the ServiceMix - User mailing list archive at Nabble.com.
