<h1>HTTP Status 404 – Not Found</h1>
Type Status Report
Message Not Found
Description The origin server did not find a current representation for the target resource or is not
willing to disclose that one exists.
16:01:19,521 INFO [com.frw.database.DatabaseConnectionFactory] (default task-49) ComConfig.CHUBB_URL:jdbc:sqlserver://xx.xx.xx.xx:1464; DatabaseName=Director
16:01:19,521 INFO [com.frw.database.DatabaseConnectionFactory] (default task-49) ComConfig.CHUBB_QUERY_USER:DirectorQueryUser
16:03:49,603 ERROR [com.frw.database.DatabaseConnectionFactory] (default task-49) createChubbQueryConnection: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host xx.xx.xx.xx, port 1464 has failed. Error: "Connection timed out: no further information.. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".
---
8
"b"
""
""
":and:f"
""
""
"1"
""
-use ?-
16
"b"
""
""
""
":"
"a"
"n"
"d"
":"
"f"
""
""
""
"1"
""
""
-use + -
4
"b"
":and:f"
"1"
""
-use * -
12
"b"
""
":"
"a"
"n"
"d"
":"
"f"
""
"1"
""
""
Tim Holloway wrote:
peter tong wrote:
Himai Minh wrote:First of all, have you tried @Autowired instead of @Inject?
Secondly, do you have @ComponentScan (basePackages = "....") //where basePackage is the name of the base package such as "com.example" ?
Oh, yes, after change to @Autowired, apple1 can be injected
But why @Inject cannot?
My classpath has javaee-web-api-8.0-sources.jar.
Because @Inject is a CDI annotation, not a Spring annotation.
@Autowired tells Spring to consult its BeanFactory, construct the bean to be injected (if it's not already existing) and set the property value to reference that bean. @Inject references the CDI container, not Spring.
Himai Minh wrote:First of all, have you tried @Autowired instead of @Inject?
Secondly, do you have @ComponentScan (basePackages = "....") //where basePackage is the name of the base package such as "com.example" ?