Spring 2.x + Lingo + ActiveMQ? Does anyone have them working together?

View: New views
7 Messages — Rating Filter:   Alert me  

Spring 2.x + Lingo + ActiveMQ? Does anyone have them working together?

by gilbjs1 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm trying to create a Spring web project that includes Lingo and ActiveMQ but when I try to run the project in Tomcat I get the following error: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.activemq.ActiveMQConnectionFactory]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: javax/management/j2ee/statistics/Statistic Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.activemq.ActiveMQConnectionFactory]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: javax/management/j2ee/statistics/Statistic Caused by: java.lang.NoClassDefFoundError: javax/management/j2ee/statistics/Statistic Any ideas? My POM for the project has the following dependencies: org.springframework spring 2.0.1 compile org.springframework spring-aop 2.0.1 compile org.springframework spring-mock 2.0.1 compile javax.servlet servlet-api 2.3 provided javax.servlet jstl 1.0.6 compile taglibs standard 1.0.6 compile log4j log4j 1.2.11 compile junit junit 3.8.1 compile org.logicblaze.lingo lingo 1.3 compile Any ideas? Jeff

Re: Spring 2.x + Lingo + ActiveMQ? Does anyone have them working together?

by gilbjs1 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry about the format...

Jeff

gilbjs1 wrote:
I'm trying to create a Spring web project that includes Lingo and ActiveMQ but when I try to run the project in Tomcat I get the following error:

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.activemq.ActiveMQConnectionFactory]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: javax/management/j2ee/statistics/Statistic
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.activemq.ActiveMQConnectionFactory]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: javax/management/j2ee/statistics/Statistic
Caused by: java.lang.NoClassDefFoundError: javax/management/j2ee/statistics/Statistic

Any ideas?

My POM for the project has the following dependencies:



org.springframework
spring
2.0.1
compile


org.springframework
spring-aop
2.0.1
compile


org.springframework
spring-mock
2.0.1
compile


javax.servlet
servlet-api
2.3
provided


javax.servlet
jstl
1.0.6
compile


taglibs
standard
1.0.6
compile


log4j
log4j
1.2.11
compile


junit
junit
3.8.1
compile


org.logicblaze.lingo
lingo
1.3
compile




Any ideas?

Jeff

Re: Spring 2.x + Lingo + ActiveMQ? Does anyone have them working together?

by James.Strachan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Looks like a classpath issue - you need all the dependent jars from
ActiveMQ - in particular the j2ee jars (e.g. the
geronimo-j2ee-management-*.jar.

Are you using Maven 2 to create your war?

On 12/13/06, gilbjs1 <gilbert.j@...> wrote:

>  I'm trying to create a Spring web project that includes Lingo and ActiveMQ
> but when I try to run the project in Tomcat I get the following error:
> Caused by:
> org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'jmsFactory' defined in ServletContext
> resource [/WEB-INF/applicationContext.xml]: Instantiation
> of bean failed; nested exception is
> org.springframework.beans.BeanInstantiationException: Could
> not instantiate bean class
> [org.apache.activemq.ActiveMQConnectionFactory]:
> Constructor threw exception; nested exception is
> java.lang.NoClassDefFoundError:
> javax/management/j2ee/statistics/Statistic Caused by:
> org.springframework.beans.BeanInstantiationException: Could
> not instantiate bean class
> [org.apache.activemq.ActiveMQConnectionFactory]:
> Constructor threw exception; nested exception is
> java.lang.NoClassDefFoundError:
> javax/management/j2ee/statistics/Statistic Caused by:
> java.lang.NoClassDefFoundError:
> javax/management/j2ee/statistics/Statistic Any ideas? My
> POM for the project has the following dependencies: org.springframework
> spring 2.0.1 compile org.springframework spring-aop 2.0.1 compile
> org.springframework spring-mock 2.0.1 compile javax.servlet servlet-api 2.3
> provided javax.servlet jstl 1.0.6 compile taglibs standard 1.0.6 compile
> log4j log4j 1.2.11 compile junit junit 3.8.1 compile org.logicblaze.lingo
> lingo 1.3 compile Any ideas? Jeff
> ________________________________
>  View this message in context: Spring 2.x + Lingo + ActiveMQ? Does anyone
> have them working together?
>  Sent from the lingo - user mailing list archive at Nabble.com.
>


--

James
-------
http://radio.weblogs.com/0112098/

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: Spring 2.x + Lingo + ActiveMQ? Does anyone have them working together?

by gilbjs1 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes.  Maven 2.0.4.

I'll try adding in the geronimo-j2ee-*.jars and get back to yah.

Thanks,

Jeff


James.Strachan wrote:
Looks like a classpath issue - you need all the dependent jars from
ActiveMQ - in particular the j2ee jars (e.g. the
geronimo-j2ee-management-*.jar.

Are you using Maven 2 to create your war?

On 12/13/06, gilbjs1 <gilbert.j@ghc.org> wrote:
>  I'm trying to create a Spring web project that includes Lingo and ActiveMQ
> but when I try to run the project in Tomcat I get the following error:
> Caused by:
> org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'jmsFactory' defined in ServletContext
> resource [/WEB-INF/applicationContext.xml]: Instantiation
> of bean failed; nested exception is
> org.springframework.beans.BeanInstantiationException: Could
> not instantiate bean class
> [org.apache.activemq.ActiveMQConnectionFactory]:
> Constructor threw exception; nested exception is
> java.lang.NoClassDefFoundError:
> javax/management/j2ee/statistics/Statistic Caused by:
> org.springframework.beans.BeanInstantiationException: Could
> not instantiate bean class
> [org.apache.activemq.ActiveMQConnectionFactory]:
> Constructor threw exception; nested exception is
> java.lang.NoClassDefFoundError:
> javax/management/j2ee/statistics/Statistic Caused by:
> java.lang.NoClassDefFoundError:
> javax/management/j2ee/statistics/Statistic Any ideas? My
> POM for the project has the following dependencies: org.springframework
> spring 2.0.1 compile org.springframework spring-aop 2.0.1 compile
> org.springframework spring-mock 2.0.1 compile javax.servlet servlet-api 2.3
> provided javax.servlet jstl 1.0.6 compile taglibs standard 1.0.6 compile
> log4j log4j 1.2.11 compile junit junit 3.8.1 compile org.logicblaze.lingo
> lingo 1.3 compile Any ideas? Jeff
> ________________________________
>  View this message in context: Spring 2.x + Lingo + ActiveMQ? Does anyone
> have them working together?
>  Sent from the lingo - user mailing list archive at Nabble.com.
>


--

James
-------
http://radio.weblogs.com/0112098/

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Re: Spring 2.x + Lingo + ActiveMQ? Does anyone have them working together?

by gilbjs1 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Here are the dependencies within my POM:

                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring</artifactId>
                        <version>2.0.1</version>
                        <scope>compile</scope>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-aop</artifactId>
                        <version>2.0.1</version>
                        <scope>compile</scope>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-mock</artifactId>
                        <version>2.0.1</version>
                        <scope>compile</scope>
                </dependency>
                <dependency>
                        <groupId>javax.servlet</groupId>
                        <artifactId>servlet-api</artifactId>
                        <version>2.3</version>
                        <scope>provided</scope>
                </dependency>
                <dependency>
                        <groupId>javax.servlet</groupId>
                        <artifactId>jstl</artifactId>
                        <version>1.0.6</version>
                        <scope>compile</scope>
                </dependency>
                <dependency>
                        <groupId>taglibs</groupId>
                        <artifactId>standard</artifactId>
                        <version>1.0.6</version>
                        <scope>compile</scope>
                </dependency>
                <dependency>
                        <groupId>log4j</groupId>
                        <artifactId>log4j</artifactId>
                        <version>1.2.11</version>
                        <scope>compile</scope>
                </dependency>
                <dependency>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                        <version>3.8.1</version>
                        <scope>compile</scope>
                </dependency>

                <!-- dependency>
                        <groupId>apache</groupId>
                        <artifactId>activemq</artifactId>
                        <version>4.1.0-incubator</version>
                        <scope>compile</scope>
                </dependency -->

                <dependency>
                        <groupId>org.jencks</groupId>
                        <artifactId>jencks</artifactId>
                        <version>1.3</version>
                        <scope>compile</scope>
                </dependency>
                <dependency>
                        <groupId>org.logicblaze.lingo</groupId>
                        <artifactId>lingo</artifactId>
                        <version>1.3</version>
                        <scope>compile</scope>
                </dependency>

After doing a build I noticed that the geronimo-j2ee-management-*.jar was being included.  So I'm not sure why its not working.  

Any ideas?  Appreciate the help.

Jeff

James.Strachan wrote:
Looks like a classpath issue - you need all the dependent jars from
ActiveMQ - in particular the j2ee jars (e.g. the
geronimo-j2ee-management-*.jar.

Are you using Maven 2 to create your war?

On 12/13/06, gilbjs1 <gilbert.j@ghc.org> wrote:
>  I'm trying to create a Spring web project that includes Lingo and ActiveMQ
> but when I try to run the project in Tomcat I get the following error:
> Caused by:
> org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'jmsFactory' defined in ServletContext
> resource [/WEB-INF/applicationContext.xml]: Instantiation
> of bean failed; nested exception is
> org.springframework.beans.BeanInstantiationException: Could
> not instantiate bean class
> [org.apache.activemq.ActiveMQConnectionFactory]:
> Constructor threw exception; nested exception is
> java.lang.NoClassDefFoundError:
> javax/management/j2ee/statistics/Statistic Caused by:
> org.springframework.beans.BeanInstantiationException: Could
> not instantiate bean class
> [org.apache.activemq.ActiveMQConnectionFactory]:
> Constructor threw exception; nested exception is
> java.lang.NoClassDefFoundError:
> javax/management/j2ee/statistics/Statistic Caused by:
> java.lang.NoClassDefFoundError:
> javax/management/j2ee/statistics/Statistic Any ideas? My
> POM for the project has the following dependencies: org.springframework
> spring 2.0.1 compile org.springframework spring-aop 2.0.1 compile
> org.springframework spring-mock 2.0.1 compile javax.servlet servlet-api 2.3
> provided javax.servlet jstl 1.0.6 compile taglibs standard 1.0.6 compile
> log4j log4j 1.2.11 compile junit junit 3.8.1 compile org.logicblaze.lingo
> lingo 1.3 compile Any ideas? Jeff
> ________________________________
>  View this message in context: Spring 2.x + Lingo + ActiveMQ? Does anyone
> have them working together?
>  Sent from the lingo - user mailing list archive at Nabble.com.
>


--

James
-------
http://radio.weblogs.com/0112098/

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Re: Spring 2.x + Lingo + ActiveMQ? Does anyone have them working together?

by Sanjiv Jivan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Try explicitly adding the geronimo-j2ee-management jars in your pom.xml


On 12/14/06, gilbjs1 <gilbert.j@...> wrote:

Here are the dependencies within my POM:

                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring</artifactId>
                        <version>2.0.1</version>
                        <scope>compile</scope>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-aop</artifactId>
                        <version>2.0.1</version>
                        <scope>compile</scope>
                </dependency>
                <dependency>
                        <groupId> org.springframework</groupId>
                        <artifactId>spring-mock</artifactId>
                        <version>2.0.1</version>
                        <scope>compile</scope>
                </dependency>
                <dependency>
                        <groupId>javax.servlet</groupId>
                        <artifactId>servlet-api</artifactId>
                        <version>2.3</version>
                        <scope>provided</scope>
                </dependency>
                <dependency>
                        <groupId> javax.servlet</groupId>
                        <artifactId>jstl</artifactId>
                        <version>1.0.6</version>
                        <scope>compile</scope>
                </dependency>
                <dependency>
                        <groupId>taglibs</groupId>
                        <artifactId>standard</artifactId>
                        <version> 1.0.6</version>
                        <scope>compile</scope>
                </dependency>
                <dependency>
                        <groupId>log4j</groupId>
                        <artifactId>log4j</artifactId>
                        <version>1.2.11</version>
                        <scope>compile</scope>
                </dependency>
                <dependency>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                        <version>3.8.1</version>
                        <scope>compile</scope>
                </dependency>

                <!-- dependency>
                        <groupId>apache</groupId>
                        <artifactId>activemq</artifactId>
                        <version>4.1.0-incubator</version>
                        <scope>compile</scope>
                </dependency -->

                <dependency>
                        <groupId>org.jencks</groupId>
                        <artifactId>jencks</artifactId>
                        <version>1.3</version>
                        <scope>compile</scope>
                </dependency>
                <dependency>
                        <groupId>org.logicblaze.lingo</groupId>
                        <artifactId>lingo</artifactId>
                        <version>1.3</version>
                        <scope>compile</scope>
                </dependency>

After doing a build I noticed that the geronimo-j2ee-management-*.jar was
being included.  So I'm not sure why its not working.

Any ideas?  Appreciate the help.

Jeff


James.Strachan wrote:

>
> Looks like a classpath issue - you need all the dependent jars from
> ActiveMQ - in particular the j2ee jars (e.g. the
> geronimo-j2ee-management-*.jar.
>
> Are you using Maven 2 to create your war?
>
> On 12/13/06, gilbjs1 <gilbert.j@...> wrote:
>>  I'm trying to create a Spring web project that includes Lingo and
>> ActiveMQ
>> but when I try to run the project in Tomcat I get the following error:
>> Caused by:
>> org.springframework.beans.factory.BeanCreationException:
>> Error creating bean with name 'jmsFactory' defined in ServletContext
>> resource [/WEB-INF/applicationContext.xml]: Instantiation
>> of bean failed; nested exception is

>> org.springframework.beans.BeanInstantiationException: Could
>> not instantiate bean class
>> [org.apache.activemq.ActiveMQConnectionFactory]:
>> Constructor threw exception; nested exception is
>> java.lang.NoClassDefFoundError:
>> javax/management/j2ee/statistics/Statistic Caused by:
>> org.springframework.beans.BeanInstantiationException: Could
>> not instantiate bean class
>> [org.apache.activemq.ActiveMQConnectionFactory]:
>> Constructor threw exception; nested exception is
>> java.lang.NoClassDefFoundError:
>> javax/management/j2ee/statistics/Statistic Caused by:
>> java.lang.NoClassDefFoundError:
>> javax/management/j2ee/statistics/Statistic Any ideas? My
>> POM for the project has the following dependencies: org.springframework
>> spring 2.0.1 compile org.springframework spring-aop 2.0.1 compile
>> org.springframework spring-mock 2.0.1 compile javax.servlet servlet-api
>> 2.3
>> provided javax.servlet jstl 1.0.6 compile taglibs standard 1.0.6 compile
>> log4j log4j 1.2.11 compile junit junit 3.8.1 compile org.logicblaze.lingo
>> lingo 1.3 compile Any ideas? Jeff
>> ________________________________
>>  View this message in context: Spring 2.x + Lingo + ActiveMQ? Does anyone
>> have them working together?
>>  Sent from the lingo - user mailing list archive at Nabble.com.
>>
>
>
> --
>
> James
> -------
> http://radio.weblogs.com/0112098/
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>

--
View this message in context: http://www.nabble.com/Spring-2.x-%2B-Lingo-%2B-ActiveMQ---Does-anyone-have-them-working-together--tf2816538.html#a7880749
Sent from the lingo - user mailing list archive at Nabble.com .


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email



Re: Spring 2.x + Lingo + ActiveMQ? Does anyone have them working together?

by gilbjs1 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

making sure I included Xbean 2.7 really helped.

Jeff

Sanjiv Jivan wrote:
Try explicitly adding the geronimo-j2ee-management jars in your pom.xml


On 12/14/06, gilbjs1 <gilbert.j@ghc.org> wrote:
>
>
> Here are the dependencies within my POM:
>
>                 <dependency>
>                         <groupId>org.springframework</groupId>
>                         <artifactId>spring</artifactId>
>                         <version>2.0.1</version>
>                         <scope>compile</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>org.springframework</groupId>
>                         <artifactId>spring-aop</artifactId>
>                         <version>2.0.1</version>
>                         <scope>compile</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>org.springframework</groupId>
>                         <artifactId>spring-mock</artifactId>
>                         <version>2.0.1</version>
>                         <scope>compile</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>javax.servlet</groupId>
>                         <artifactId>servlet-api</artifactId>
>                         <version>2.3</version>
>                         <scope>provided</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>javax.servlet</groupId>
>                         <artifactId>jstl</artifactId>
>                         <version>1.0.6</version>
>                         <scope>compile</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>taglibs</groupId>
>                         <artifactId>standard</artifactId>
>                         <version>1.0.6</version>
>                         <scope>compile</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>log4j</groupId>
>                         <artifactId>log4j</artifactId>
>                         <version>1.2.11</version>
>                         <scope>compile</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>junit</groupId>
>                         <artifactId>junit</artifactId>
>                         <version>3.8.1</version>
>                         <scope>compile</scope>
>                 </dependency>
>
>                 <!-- dependency>
>                         <groupId>apache</groupId>
>                         <artifactId>activemq</artifactId>
>                         <version>4.1.0-incubator</version>
>                         <scope>compile</scope>
>                 </dependency -->
>
>                 <dependency>
>                         <groupId>org.jencks</groupId>
>                         <artifactId>jencks</artifactId>
>                         <version>1.3</version>
>                         <scope>compile</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>org.logicblaze.lingo</groupId>
>                         <artifactId>lingo</artifactId>
>                         <version>1.3</version>
>                         <scope>compile</scope>
>                 </dependency>
>
> After doing a build I noticed that the geronimo-j2ee-management-*.jar was
> being included.  So I'm not sure why its not working.
>
> Any ideas?  Appreciate the help.
>
> Jeff
>
>
> James.Strachan wrote:
> >
> > Looks like a classpath issue - you need all the dependent jars from
> > ActiveMQ - in particular the j2ee jars (e.g. the
> > geronimo-j2ee-management-*.jar.
> >
> > Are you using Maven 2 to create your war?
> >
> > On 12/13/06, gilbjs1 <gilbert.j@ghc.org> wrote:
> >>  I'm trying to create a Spring web project that includes Lingo and
> >> ActiveMQ
> >> but when I try to run the project in Tomcat I get the following error:
> >> Caused by:
> >> org.springframework.beans.factory.BeanCreationException:
> >> Error creating bean with name 'jmsFactory' defined in ServletContext
> >> resource [/WEB-INF/applicationContext.xml]: Instantiation
> >> of bean failed; nested exception is
> >> org.springframework.beans.BeanInstantiationException: Could
> >> not instantiate bean class
> >> [org.apache.activemq.ActiveMQConnectionFactory]:
> >> Constructor threw exception; nested exception is
> >> java.lang.NoClassDefFoundError:
> >> javax/management/j2ee/statistics/Statistic Caused by:
> >> org.springframework.beans.BeanInstantiationException: Could
> >> not instantiate bean class
> >> [org.apache.activemq.ActiveMQConnectionFactory]:
> >> Constructor threw exception; nested exception is
> >> java.lang.NoClassDefFoundError:
> >> javax/management/j2ee/statistics/Statistic Caused by:
> >> java.lang.NoClassDefFoundError:
> >> javax/management/j2ee/statistics/Statistic Any ideas? My
> >> POM for the project has the following dependencies: org.springframework
> >> spring 2.0.1 compile org.springframework spring-aop 2.0.1 compile
> >> org.springframework spring-mock 2.0.1 compile javax.servlet servlet-api
> >> 2.3
> >> provided javax.servlet jstl 1.0.6 compile taglibs standard 1.0.6compile
> >> log4j log4j 1.2.11 compile junit junit 3.8.1 compile
> org.logicblaze.lingo
> >> lingo 1.3 compile Any ideas? Jeff
> >> ________________________________
> >>  View this message in context: Spring 2.x + Lingo + ActiveMQ? Does
> anyone
> >> have them working together?
> >>  Sent from the lingo - user mailing list archive at Nabble.com.
> >>
> >
> >
> > --
> >
> > James
> > -------
> > http://radio.weblogs.com/0112098/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Spring-2.x-%2B-Lingo-%2B-ActiveMQ---Does-anyone-have-them-working-together--tf2816538.html#a7880749
> Sent from the lingo - user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
LightInTheBox - Buy quality products at wholesale price