Issue Details (XML | Word | Printable)

Key: IDE-859
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Christian Dupuis
Reporter: Josh Devins
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Spring IDE

Default MBean server bean from context:mbean-server is not picked up

Created: 02/May/08 05:52 PM   Updated: 14/May/08 04:25 PM
Component/s: beans.core
Affects Version/s: 2.0.4
Fix Version/s: 2.0.5

Time Tracking:
Not Specified

File Attachments: None
Image Attachments:

1. simple project test.jpg
(94 kB)


 Description  « Hide
If I use <context:mbean-server /> to expose an MBean server, the default bean id of the resulting bean is "mbeanServer". However when I use the bean and reference it as such, Spring IDE complains "Referenced bean 'mbeanServer' not found".

 All   Comments   Work Log   Change History   FishEye   Builds      Sort Order: Ascending order - Click to sort in descending order
Christian Dupuis added a comment - 14/May/08 02:53 PM
I can't reproduce this problem. Can you please attach a sample project/file that shows the issue.

For me following definition does not create any problem:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:context="http://www.springframework.org/schema/context"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">

	<context:mbean-server />
	
	<bean class="foo.Bar">
		<property name="server" ref="mbeanServer" />
	</bean>
 
</beans>

Josh Devins added a comment - 14/May/08 03:28 PM
I took your config XML, plopped it into an empty project (obviously it complains about the missing class), and get the same warning that I encountered in my other project.

I simply created a new Spring project in Eclipse, created the file, and added the "spring.xml" file to the "Bean Support" in the Spring IDE properties of the project.