[org.springframwork.web.servlet.DispatcherServlet] Context initialization failed
1. Symptom
An application runs fine when deployed to Tomcat 6 (or Tomcat 7) on Windows.
But, when the application is deployed to Tomcat 6 (or Tomcat 7) on AIX (environment described in 'item 2' above),
it does not run and I see the tomcat error messages as below.
2. Error message in Tomcat's error log
(1) Error message type 1
[org.springframwork.web.servlet.DispatcherServlet] Context initialization failed
(2) Error message type 2
org.springframework.beans.factory.NoSuchBeanDefini tionException: No bean named 'sampleFileUploadService' is defined
org.springframework.beans.factory.nosuchbeandefini tionexception no bean named is defined
3. 'sampleFileUploadService' is defined in the source code as below:
@Service("sampleFileUploadService")
public class myappSampleFileUploadserviceImpl implements myappSampleFileUploadservice {
....
...
}
4. Development and Production Environment
4.1 Development Environment
(1) Hardware: PC
(2) OS: Win Server 2003
(3) JDK: Sun JDK 1.6.0
(4) Spring Framwwork v. 3.0.5
(5) Tomcat 6
(6) Oracle 11g Database
4.2 Production Server Environment
(1) Hardware: IBM PA7
(2) OS: AIX 6.0
(3) JDK: IBM JDK 1.6.0
(4) Tomcat 6
(5) Oracle 11g Database
5. Questions
(1) Why does the 'org.springframwork.web.servlet.DispatcherServlet' initialization failure problem occur only on AIX, not on Windows? How can I fix the problem?
(2) The service 'sampleFileUploadService' is defined in the source code and Tomcat can find the service at run time on Windows. But, Tomcat can not find the service (service defined using the '@Service' annotation) on AIX.
What is the reason this problem occurs only on AIX, not on Windows? How can I fix the problem?
If anyone experienced the same problem and solved it, I'd appreciate it if you could share the solution.
- Hoon -