I've never seen this error before.   You may need to ask on the jboss lists as 
I'm not sure where "javax.inject.DefinitionException" errors are thrown.  Is 
there a stack trace?

Dan


On Mon October 26 2009 4:10:17 pm srini raju wrote:
> I am trying to deploy the JAX-RS sample to JBOSSAS5.1.0 and i get
> 'javax.inject.DefinitionException: import not a Java type' error when i try
> to deploy the war file. All CXF jar files are in the war file. Below is my
> web.xml and beans.xml. Would appreciate some help.
> ================================================
>  <context-param>
>   <param-name>contextConfigLocation</param-name>
>   <param-value>WEB-INF/beans.xml</param-value>
>  </context-param>
>  <listener>
>   <listener-class>
>    org.springframework.web.context.ContextLoaderListener
>   </listener-class>
>  </listener>
>  <servlet>
>   <servlet-name>CXFServlet</servlet-name>
>   <display-name>CXF Servlet</display-name>
>   <servlet-class>
>    org.apache.cxf.transport.servlet.CXFServlet
>   </servlet-class>
>   <load-on-startup>1</load-on-startup>
>  </servlet>
>  <servlet-mapping>
>   <servlet-name>CXFServlet</servlet-name>
>   <url-pattern>/*</url-pattern>
>  </servlet-mapping>
> ======================================================
>   <import resource="classpath:META-INF/cxf/cxf.xml" />
>   <import resource="classpath:META-INF/cxf/cxf-extension-jaxrs-binding.xml"
> />
>   <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
>   <jaxrs:server id="customerservice" address="/service1">
>     <jaxrs:serviceBeans>
>       <ref bean="customerBean" />
>     </jaxrs:serviceBeans>
>   </jaxrs:server>
>   <bean id="customerBean" class="demo.jaxrs.server.CustomerService" />
> </beans>
> =======================================================
> 

-- 
Daniel Kulp
[email protected]
http://www.dankulp.com/blog

Reply via email to