Ok, it seems I got it working now! I wrote a simple POM file (containing just artifactId, groupId and version) named tassonomia.pom and installed in the same directory of the jar. Thank you all for your help! Giuseppe
beppe82 wrote: > > Yes, I followed those instructions and I installed the jar in my > repository. I append more informations: > > This is the actual repository structure for the jar I need to use: > C:\Documents and Settings\Beppe\.m2\repository\tassonomia\tassonomia\1.0 > > The file is named tassonomia.jar and contains a directory called > tassonomia, which in turn contains the .class files > > This is the POM's dependency structure of the SE which needs to use > tassonomia.jar: > <dependency> > <groupId>tassonomia</groupId> > <artifactId>tassonomia</artifactId> > <version>1.0</version> > </dependency> > > This is the error I get when I launch and deploy the SA (which contains > also other SU which DO NOT use tassonomia.jar): > servicemix.bat: Ignoring predefined value for SERVICEMIX_HOME > Starting Apache ServiceMix ESB: 3.1-incubating > > Loading Apache ServiceMix from servicemix.xml on the CLASSPATH > INFO - ConnectorServerFactoryBean - JMX connector available at: > service:jmx > :rmi:///jndi/rmi://localhost:1099/jmxrmi > INFO - JBIContainer - ServiceMix 3.1-incubating JBI > Container > (ServiceMix) is starting > INFO - JBIContainer - For help or more informations > please se > e: http://incubator.apache.org/servicemix/ > INFO - ComponentMBeanImpl - Initializing component: > #SubscriptionMa > nager# > INFO - DeploymentService - Restoring service assemblies > INFO - AutoDeploymentService - Directory: install: Archive > changed: pr > ocessing servicemix-http-3.1-incubating-installer.zip ... > INFO - JBIContainer - ServiceMix JBI Container > (ServiceMix) s > tarted > WARN - AutoDeploymentService - Shared libraries > servicemix-shared are > not installed yet: the componentservicemix-http installation is suspended > and wi > ll be resumed once the listed shared libraries are installed > INFO - AutoDeploymentService - Directory: install: Finished > installati > on of archive: servicemix-http-3.1-incubating-installer.zip > INFO - AutoDeploymentService - Directory: install: Archive > changed: pr > ocessing servicemix-jsr181-3.1-incubating-installer.zip ... > WARN - AutoDeploymentService - Shared libraries > servicemix-shared are > not installed yet: the componentservicemix-jsr181 installation is > suspended and > will be resumed once the listed shared libraries are installed > INFO - AutoDeploymentService - Directory: install: Finished > installati > on of archive: servicemix-jsr181-3.1-incubating-installer.zip > INFO - AutoDeploymentService - Directory: install: Archive > changed: pr > ocessing servicemix-shared-3.1-incubating-installer.zip ... > INFO - ComponentMBeanImpl - Starting component: > servicemix-jsr181 > INFO - ComponentMBeanImpl - Initializing component: > servicemix-jsr1 > 81 > INFO - jetty - Logging to > org.apache.servicemix.http.j > [EMAIL PROTECTED] via org.apache.servicemix.http.jetty.JCLLogger > INFO - ComponentMBeanImpl - Starting component: > servicemix-http > INFO - ComponentMBeanImpl - Initializing component: > servicemix-http > > INFO - AutoDeploymentService - Directory: install: Finished > installati > on of archive: servicemix-shared-3.1-incubating-installer.zip > INFO - JDBCAdapterFactory - Database driver recognized: > [apache_der > by_embedded_jdbc_driver] > INFO - LogTask - log4j system reconfigured > INFO - AutoDeploymentService - Directory: install: Archive > changed: pr > ocessing prova-se-1.0-installer.zip ... > INFO - ComponentMBeanImpl - Starting component: prova-se > INFO - ComponentMBeanImpl - Initializing component: prova-se > INFO - AutoDeploymentService - Directory: install: Finished > installati > on of archive: prova-se-1.0-installer.zip > INFO - AutoDeploymentService - Directory: install: Archive > changed: pr > ocessing to-xml-se-1.0-installer.zip ... > INFO - ComponentMBeanImpl - Starting component: to-xml-se > INFO - ComponentMBeanImpl - Initializing component: to-xml-se > INFO - AutoDeploymentService - Directory: install: Finished > installati > on of archive: to-xml-se-1.0-installer.zip > INFO - ComponentMBeanImpl - Starting component: > servicemix-ftp > INFO - ComponentMBeanImpl - Initializing component: > servicemix-ftp > INFO - ServiceAssemblyLifeCycle - Starting service assembly: > cedac-sa > INFO - ServiceUnitLifeCycle - Initializing service unit: > ftp-transf-s > u > INFO - ServiceUnitLifeCycle - Initializing service unit: > to-xml-su > INFO - ServiceUnitLifeCycle - Initializing service unit: > prova-su > INFO - ServiceUnitLifeCycle - Starting service unit: > ftp-transf-su > INFO - ServiceUnitLifeCycle - Starting service unit: to-xml-su > INFO - ServiceUnitLifeCycle - Starting service unit: prova-su > toxml: ricevuto messaggio > ERROR - SedaQueue - > org.apache.servicemix.jbi.nmr.flow.seda > [EMAIL PROTECTED] got error processing InOnly[ > id: ID:giuseppe-laptop-1473-1182937406000-6:0 > status: Active > role: provider > service: {http://giuseppe.org}toxml > endpoint: endpoint > in: null > ] > java.lang.NoClassDefFoundError: tassonomia/Anagrafica > at cedac.xml.MyEndpoint.processFile(MyEndpoint.java:212) > at cedac.xml.MyEndpoint.process(MyEndpoint.java:133) > at > org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLi > feCycle.java:489) > at > org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(Async > BaseLifeCycle.java:441) > at > org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLife > Cycle.java:46) > at > org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBoun > d(DeliveryChannelImpl.java:593) > at > org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlo > w.java:174) > at > org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.j > ava:176) > at > org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.jav > a:134) > at > edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wor > ker.runTask(ThreadPoolExecutor.java:665) > at > edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wor > ker.run(ThreadPoolExecutor.java:690) > at java.lang.Thread.run(Thread.java:595) > > This is the message I get when I launch mvn jbi:projectDeploy into the SA > directory: > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'jbi'. > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] Building SA per progetto Cedac > [INFO] task-segment: [jbi:projectDeploy] > [INFO] > ------------------------------------------------------------------------- > --- > Downloading: > http://people.apache.org/repo/m2-incubating-repository/wss4j/wss4j/ > 1.5.0/wss4j-1.5.0.pom > [WARNING] Unable to get resource 'wss4j:wss4j:pom:1.5.0' from repository > apache. > incubating (http://people.apache.org/repo/m2-incubating-repository) > Downloading: > http://repo1.maven.org/maven2/wss4j/wss4j/1.5.0/wss4j-1.5.0.pom > [WARNING] Unable to get resource 'wss4j:wss4j:pom:1.5.0' from repository > central > (http://repo1.maven.org/maven2) > Downloading: > http://people.apache.org/repo/m2-incubating-repository/xml-security > /xmlsec/1.3.0/xmlsec-1.3.0.pom > [WARNING] Unable to get resource 'xml-security:xmlsec:pom:1.3.0' from > repository > apache.incubating > (http://people.apache.org/repo/m2-incubating-repository) > Downloading: > http://repo1.maven.org/maven2/xml-security/xmlsec/1.3.0/xmlsec-1.3. > 0.pom > [WARNING] Unable to get resource 'xml-security:xmlsec:pom:1.3.0' from > repository > central (http://repo1.maven.org/maven2) > [INFO] [jbi:projectDeploy] > [INFO] ------------------ Deployment Analysis -------------------- > [INFO] SA per progetto Cedac has 4 child dependencies > [INFO] - jbi-service-assembly : C:\Documents and > Settings\Beppe\.m2\repository\ > cedac\cedac-sa\1.0\cedac-sa-1.0.zip > [INFO] - jbi-component : C:\Documents and > Settings\Beppe\.m2\repository\cedac\p > rova\prova-se\1.0\prova-se-1.0-installer.zip > [INFO] - jbi-component : C:\Documents and > Settings\Beppe\.m2\repository\org\apa > che\servicemix\servicemix-ftp\3.1-incubating\servicemix-ftp-3.1-incubating-insta > ller.zip > [INFO] - jbi-component : C:\Documents and > Settings\Beppe\.m2\repository\cedac\x > ml\to-xml-se\1.0\to-xml-se-1.0-installer.zip > [INFO] - jbi-shared-library : C:\Documents and > Settings\Beppe\.m2\repository\or > g\apache\servicemix\servicemix-shared\3.1-incubating\servicemix-shared-3.1-incub > ating-installer.zip > [INFO] ----------------------------------------------------------- > [INFO] servicemix-shared is deployed > [INFO] to-xml-se is deployed > [INFO] servicemix-ftp is not deployed > [INFO] Deploying jbi-component from C:\Documents and > Settings\Beppe\.m2\reposito > ry\org\apache\servicemix\servicemix-ftp\3.1-incubating\servicemix-ftp-3.1-incuba > ting-installer.zip > [INFO] prova-se is deployed > [INFO] cedac-sa is not deployed > [INFO] Deploying jbi-service-assembly from C:\Documents and > Settings\Beppe\.m2\r > epository\cedac\cedac-sa\1.0\cedac-sa-1.0.zip > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD SUCCESSFUL > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 16 seconds > [INFO] Finished at: Wed Jun 27 11:44:15 CEST 2007 > [INFO] Final Memory: 10M/21M > [INFO] > ------------------------------------------------------------------------ > > Thank you very much, Giuseppe > > > > > > > Adrian Co wrote: >> >> Can you post the error messages you are getting? >> >> Generally, you need to add your jar to the list of dependency in the >> pom.xml of the project. After which, it will say that it can't download >> the artifact anywhere, and provide you with details of how to deploy the >> artifact to your local repo. >> >> beppe82 wrote: >>> In fact, the problem is that I tried different things but they didn't >>> work. I >>> think it's just a syntax problem but I don't mind what's wrong. >>> Moreover, >>> where should I to put the jar? Thanks >>> P.S.: The jar name is "tassonomia", and it contains a directory called >>> "tassonomia" which contains the .class >>> Thanks >>> >>> >>> Adrian Co wrote: >>> >>>> Hi, >>>> >>>> Did you add the dependency to the pom.xml? >>>> >>>> beppe82 wrote: >>>> >>>>> Hi, I need a SE to use a non-servicemix project. I use Eclipse, and I >>>>> added >>>>> the dependency into the build path using the project reference, so I >>>>> can >>>>> write the code without errors, but when I compile using "mvn install" >>>>> it >>>>> tells me it can't find the package... how can I solve this problem? >>>>> Thanks >>>>> >>>>> >>>> >>>> >>> >>> >> >> >> > > -- View this message in context: http://www.nabble.com/adding-custom-dependencies-tf3982258s12049.html#a11321853 Sent from the ServiceMix - User mailing list archive at Nabble.com.
