Spring 3.x support

137 views
Skip to first unread message

Maxim Kopeyka

unread,
Nov 25, 2013, 11:11:53 AM11/25/13
to jetm...@googlegroups.com
Hi Guys,

It would be great to use JETM with Spring 3.x.
Do you have any plans to support it?

Thanks.

Jens Schumann

unread,
Nov 25, 2013, 11:40:46 AM11/25/13
to Maxim Kopeyka, jetm...@googlegroups.com
(Resend, since I have used the wrong sender mail address before)

Currently I don't have any plans to improve Spring support. However there is nothing that prevents doing it.

Anything special in your mind?
Jens


--
You received this message because you are subscribed to the Google Groups "JETM-USER" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jetm-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Maxim Kopeyka

unread,
Nov 25, 2013, 12:08:35 PM11/25/13
to jetm...@googlegroups.com
Just tried this library with my project (Spring 3.0.5):

SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'bean.CustomerDAO' defined in ServletContext resource [/WEB-INF/xbend-core-servlet.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [test.dao.LoginDAO]: : No matching bean of type [test.dao.LoginDAO] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [test.dao.LoginDAO] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:730)
<jetm:monitoring>
   <jetm:bean-pattern>*DAO</jetm:bean-pattern>
</jetm:monitoring>
<jetm:console expanded="true"/>
<jetm:runtime/>

It backs to the normal without this:
<jetm:monitoring>
   <jetm:bean-pattern>*DAO</jetm:bean-pattern>
</jetm:monitoring>

-- 
Kind Regards, Maxim

Jens Schumann

unread,
Nov 27, 2013, 8:56:29 AM11/27/13
to jetm...@googlegroups.com
Hey Maxim,

sorry for the delay. Spring 3.x should work. See https://github.com/frenchc/jetm/tree/master/samples/demo/jetm-demo-spring-mvc, which uses Spring 3.2.2 Release. Could you please report a bug and provide a stripped down example?

The JETM 1.3.0-SNAPSHOT example is a migrated 1.2.x version, nothing fundamentally changed.


On Wed, Nov 27, 2013 at 2:52 PM, Jens Schumann <jens.s...@gmail.com> wrote:
Hey Maxim,

sorry for the delay. Spring 3.x should work. See https://github.com/frenchc/jetm/tree/master/samples/demo/jetm-demo-spring-mvc, which uses Spring 3.2.2 Release. Could you please report a bug and provide a stripped down example?

The JETM 1.3.0-SNAPSHOT example is a migrated 1.2.x version, nothing fundamentally changed.

Maxim Kopeyka

unread,
Nov 28, 2013, 9:11:35 AM11/28/13
to jetm...@googlegroups.com
You are right, demo works fine with Spring 3.0.5.
Something wrong with my application.

Thank you.

Jens Schumann

unread,
Nov 28, 2013, 9:14:18 AM11/28/13
to Maxim Kopeyka, jetm...@googlegroups.com
I could be something that prevents creating a proxy for the given class (final class e.g.). Or a missing library (such as cglib). Try creating a stripped down example and I will take a look.


Maxim Kopeyka

unread,
Dec 16, 2013, 7:38:56 AM12/16/13
to jetm...@googlegroups.com
You are right, also it doesn't work if Service uses other classes directly, not via interface.
So, it works in my application and reports looks very nice.

Several questions about report:
1. Each DAO class has several methods fetchPublic but report contains one row only with fetchPublic method. Is it possible to see parameters names in the row to understand what method has been executed?
2. I don't see an information about caller with these settings:
  <jetm:monitoring>
    <jetm:bean-pattern>*DAO,*Service</jetm:bean-pattern>
  </jetm:monitoring>

So, I see method LoginDAO::fetchPublic has been executed but which method from which class did it?

-- 
Kind Regards, Maxim

Maxim Kopeyka

unread,
Feb 17, 2014, 6:17:00 AM2/17/14
to jetm...@googlegroups.com
Hi,

Is it possible to solve this problem?

-- 
Kind Regards, Maxim

Jens Schumann

unread,
Feb 19, 2014, 2:31:07 AM2/19/14
to jetm...@googlegroups.com
Hey Maxim,

it will be possible with JETM 1.3.0. I fixed that already for CDI monitoring and will backport it to Spring later the day. 

Jens
Btw: JETM 1.3.0-SNAPSHOTS are currently via maven only.

vinay singh

unread,
Feb 6, 2015, 4:34:03 PM2/6/15
to jetm...@googlegroups.com
I had difficulties running Spring application that came bundled with jetm. I created a new spring jetm application and have shared the code
Reply all
Reply to author
Forward
0 new messages