>
> java.lang.ClassNotFoundException: caught an exception while obtaining a
> class file for...
>
>for what?
It states (the first line in red ;) ):
An unexpected application exception has occurred.
java.lang.ClassNotFoundException: caught an exception while obtaining a
class file for mypackgename.pages.start
That very start page works fine without @Inject annotation. I was trying to
inject some Spring-iBatis SqlMapClientFactoryBean:
<bean id="sqlMapClient"
class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
<property name="configLocation">
<value>
/WEB-INF/sqlmap-config.xml
</value>
</property>
<property name="dataSource">
<ref bean="dataSource"/>
</property>
</bean>
But that's irrelevant, I see the same error if I inject just (all other
beans removed from applicatioContext):
<bean id="TestBean"
class="java.lang.String">
<constructor-arg value="RTFM"/>
</bean>
and in Start.java
@Inject
@Service("TestBean")
private String str;
Btw spring version is 2.5.5