You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Håkon Sagehaug <ha...@bccs.uib.no> on 2008/04/01 14:51:33 UTC
Using jars that depends on slf4j
Hi
I wanted to extend the fileUpload example as suggested, with a document
converter JODConverter, I added a dependency in the pom.xml of the
http-handler-unit like this
<dependency>
<groupId>com.artofsolving</groupId>
<artifactId>jodconverter</artifactId>
<version>2.2.1</version>
</dependency>
It compiles fine but when I want to run it I get this error
java.lang.NoClassDefFoundError: Could not initialize class
org.slf4j.LoggerFactory
Does anyone have any tips on how to solve this?
cheers, Håkon
--
Håkon Sagehaug, Software Developer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)
Re: Using jars that depends on slf4j
Posted by Håkon Sagehaug <ha...@bccs.uib.no>.
Hi
It worked
thanks
2008/4/1, Lars Heinemann <la...@compart.net>:
>
> I had a look at my own converter bean. There is use the following
> additional dependencies:
>
> <dependency>
> <groupId>commons-io</groupId>
> <artifactId>commons-io</artifactId>
> <version>1.4</version>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-api</artifactId>
>
> <version>1.4.0</version>
> </dependency>
>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-jdk14</artifactId>
>
> <version>1.4.0</version>
> </dependency>
> <dependency>
> <groupId>com.artofsolving</groupId>
> <artifactId>jodconverter</artifactId>
>
> <version>2.2.0</version>
> </dependency>
> <dependency>
> <groupId>org.openoffice</groupId>
> <artifactId>juh</artifactId>
> <version>2.2.0</version>
> </dependency>
> <dependency>
> <groupId>org.openoffice</groupId>
> <artifactId>jurt</artifactId>
> <version>2.2.0</version>
> </dependency>
> <dependency>
> <groupId>org.openoffice</groupId>
> <artifactId>ridl</artifactId>
> <version>2.2.0</version>
> </dependency>
> <dependency>
> <groupId>org.openoffice</groupId>
> <artifactId>unoil</artifactId>
> <version>2.2.0</version>
> </dependency>
> <dependency>
> <groupId>com.thoughtworks.xstream</groupId>
> <artifactId>xstream</artifactId>
> <version>1.2.2</version>
> </dependency>
>
> Regards,
> Lars
>
>
>
>
> Lars Heinemann schrieb:
>
> > Håkon,
> >
> > the JODConverter has also his own dependencies. Have a look at their
> > website to find the actual dependency list.
> >
> > Regards,
> > Lars
> >
> >
> > Håkon Sagehaug schrieb:
> >
> >> Hi
> >>
> >> I wanted to extend the fileUpload example as suggested, with a document
> >> converter JODConverter, I added a dependency in the pom.xml of the
> >> http-handler-unit like this
> >>
> >> <dependency>
> >> <groupId>com.artofsolving</groupId>
> >> <artifactId>jodconverter</artifactId>
> >> <version>2.2.1</version>
> >> </dependency>
> >>
> >> It compiles fine but when I want to run it I get this error
> >>
> >> java.lang.NoClassDefFoundError: Could not initialize class
> >> org.slf4j.LoggerFactory
> >>
> >> Does anyone have any tips on how to solve this?
> >>
> >> cheers, Håkon
> >>
> >>
> >>
> >
> >
>
--
Håkon Sagehaug, Software Developer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)
Re: Using jars that depends on slf4j
Posted by Lars Heinemann <la...@compart.net>.
I had a look at my own converter bean. There is use the following
additional dependencies:
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.4.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<version>1.4.0</version>
</dependency>
<dependency>
<groupId>com.artofsolving</groupId>
<artifactId>jodconverter</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>org.openoffice</groupId>
<artifactId>juh</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>org.openoffice</groupId>
<artifactId>jurt</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>org.openoffice</groupId>
<artifactId>ridl</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>org.openoffice</groupId>
<artifactId>unoil</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
<version>1.2.2</version>
</dependency>
Regards,
Lars
Lars Heinemann schrieb:
> Håkon,
>
> the JODConverter has also his own dependencies. Have a look at their
> website to find the actual dependency list.
>
> Regards,
> Lars
>
>
> Håkon Sagehaug schrieb:
>
>> Hi
>>
>> I wanted to extend the fileUpload example as suggested, with a document
>> converter JODConverter, I added a dependency in the pom.xml of the
>> http-handler-unit like this
>>
>> <dependency>
>> <groupId>com.artofsolving</groupId>
>> <artifactId>jodconverter</artifactId>
>> <version>2.2.1</version>
>> </dependency>
>>
>> It compiles fine but when I want to run it I get this error
>>
>> java.lang.NoClassDefFoundError: Could not initialize class
>> org.slf4j.LoggerFactory
>>
>> Does anyone have any tips on how to solve this?
>>
>> cheers, Håkon
>>
>>
>>
>
>
Re: Using jars that depends on slf4j
Posted by Lars Heinemann <la...@compart.net>.
Håkon,
the JODConverter has also his own dependencies. Have a look at their
website to find the actual dependency list.
Regards,
Lars
Håkon Sagehaug schrieb:
> Hi
>
> I wanted to extend the fileUpload example as suggested, with a document
> converter JODConverter, I added a dependency in the pom.xml of the
> http-handler-unit like this
>
> <dependency>
> <groupId>com.artofsolving</groupId>
> <artifactId>jodconverter</artifactId>
> <version>2.2.1</version>
> </dependency>
>
> It compiles fine but when I want to run it I get this error
>
> java.lang.NoClassDefFoundError: Could not initialize class
> org.slf4j.LoggerFactory
>
> Does anyone have any tips on how to solve this?
>
> cheers, Håkon
>
>
Fwd: Using jars that depends on slf4j
Posted by Håkon Sagehaug <hs...@gmail.com>.
---------- Forwarded message ----------
From: Håkon Sagehaug <ha...@bccs.uib.no>
Date: 01.apr.2008 14:51
Subject: Using jars that depends on slf4j
To: users@servicemix.apache.org
Hi
I wanted to extend the fileUpload example as suggested, with a document
converter JODConverter, I added a dependency in the pom.xml of the
http-handler-unit like this
<dependency>
<groupId>com.artofsolving</groupId>
<artifactId>jodconverter</artifactId>
<version>2.2.1</version>
</dependency>
It compiles fine but when I want to run it I get this error
java.lang.NoClassDefFoundError: Could not initialize class
org.slf4j.LoggerFactory
Does anyone have any tips on how to solve this?
cheers, Håkon
--
Håkon Sagehaug, Software Developer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)
--
Håkon Sagehaug, Software Developer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)