java - Cannot resolve reference to bean while setting bean property -


Can you help solve the error below because I am setting an example for the first time . While Tomcat 6 seriously I started getting error:

Context initialization failed org.springframework.beans.factory.BeanCreationException: ': could not be solved in terms of beans' probablyPrimeSerivce Error in making bean with name'restContainer '[0]; Setting Bean Property' with Service Key Beans' [0]; Nested exception is rg.springframework.beans.factory.NoSuchBeanDefinitionException: no beans 'probablyPrimeSerivce' is defined name

I beans.xml

  & lt ; Bem xmlns = "http://www.springframework.org/schema/beans" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns: reference = "http: // www. springframework. org / schema / reference "xmlns: jaxrs =" http://cxf.apache.org/jaxrs "xmlns: CXF =" http://cxf.apache.org/core "xsi: schemaLocation =" http: / / www .springframework.org / schema / beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://cxf.apache.org/jaxrs http: // cxf. apache.org/ schema / jaxrs.xsd http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd http://www.springframework.org/schema/context http: // www springframework.org/schema/context/spring-context.xsd"> & Lt; Import Resources = "Classpath: Meta-INF / cxf / cxf.xml" /> & Lt; Import Resources = "Classpath: Meta-INF / CXF / CXF-Servlet.XML" /> & Lt; Reference: component-scan base-package = "com" /> & Lt; Jaxrs: server id = "restContainer" address = "/" & gt; & Lt; Jaxrs: serviceBeans & gt; & Lt; Ref bean = "Maybe submissions" /> & Lt; / Jaxrs: serviceBeans & gt; & Lt; / Jaxrs: server & gt; & Lt; / Bean & gt;  

======================================= =========

MaybePrimeSerivce class

  @Service ("PerhapsPrimeSerivce") @Path ("/ Prime Minister") public class probablyPrimeSerivce {@GET @ Path ("/ {number}") @products ("text / plain") public boolean is light (@PathParam ("number") int number) {true; }}  

==================================== < / P>

Enter image details here


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -