facebook

Bean name must not be empty – BUG??

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #257392 Reply

    I’m also having the same problem similar to http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-13776.html

    <bean id="organismBS" parent="bsProxy">
            <property name="proxyInterfaces">
                <value>com.foo.Ifoo</value>
            </property>
            <property name="target">
                <bean class="com.foo.Foo">
                    <property name="organismDAO">
                        <ref bean="organismDAO" />
                    </property>
                </bean>
            </property>
            <property name="interceptorNames">
                <list>
                    <idref bean="visErrorInterceptor" />
                    <idref bean="transactionInterceptor" />
                </list>
            </property>
        </bean>

    MyEclipse reports an error that the bean name must not be empty. I was able to fix this with

    <bean id="organismBS" parent="bsProxy" name="organismBS">
            <property name="proxyInterfaces">
                <value>com.foo.Ifoo</value>
            </property>
            <property name="target">
                <bean class="com.foo.Foo">
                    <property name="organismDAO">
                        <ref bean="organismDAO" />
                    </property>
                </bean>
            </property>
            <property name="interceptorNames">
                <list>
                    <ref bean="visErrorInterceptor" />
                    <ref bean="transactionInterceptor" />
                </list>
            </property>
        </bean>

    Changed idref to ref and added a name attribute 😛

    #257485

    Riyad Kalla
    Member

    Thank you for posting your solution for others. We are sorry for this hickup, we’ll get the fix out shortly.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Bean name must not be empty – BUG??

You must be logged in to post in the forum log in