Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
5024 | minor | always | 04-06-12 15:02 | 06-21-12 15:59 | |
|
|||||
Reporter: | rickHigh | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | |||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 4.0.29 | ||
|
|||||
Summary: | 0005024: EC2 CONFIG DEPLOY: Problems using MySQL @Inject DataSource with config-deploy | ||||
Description: |
EC2 CONFIG DEPLOY: Problems using MySQL @Inject DataSource with config-deploy. The deployment does not show up in the JMX tab of the resin-admin. The error is as follows: 500 Servlet Exception javax.enterprise.inject.UnsatisfiedResolutionException: example.BlogServlet.database: Can't find a bean for 'interface javax.sql.DataSource' because no beans implementing that class have been registered with the injection manager InjectManager[web-app:production/webapp/default/blog]. Resin/4.0.27 Server: 'app-0' This was in the log: [12-04-06 14:44:00.783] {resin-port-8080-47} WebApp[production/webapp/default/blog] fail [12-04-06 14:44:00.784] {resin-port-8080-47} javax.enterprise.inject.UnsatisfiedResolutionException: example.BlogServlet.database: Can't find a bean for 'interface javax.sql.DataSource' because no beans implementing that class have been registered with the injection manager InjectManager[web-app:production/webapp/default/blog]. [12-04-06 14:44:00.785] {resin-port-8080-47} javax.enterprise.inject.UnsatisfiedResolutionException: example.BlogServlet.database: Can't find a bean for 'interface javax.sql.DataSource' because no beans implementing that class have been registered with the injection manager InjectManager[web-app:production/webapp/default/blog]. FROM RESIN-ADMIN ConnectionPool resin:Host=default,WebApp=/resin-doc,name=jdbc/resin,type=ConnectionPool Database resin:Host=default,WebApp=/resin-doc,name=jdbc/resin,type=Database JdbcDriver resin:Host=default,WebApp=/resin-doc,name=jdbc/resin,type=JdbcDriver,url="jdbc:resin:/var/www/doc/resin-doc/WEB-INF/db" It is missing from JMX. The deploy looks like it is working as follows: To verify that our deploy worked, lets run resinctl config-ls, and resinctl config-cat: $ resinctl config-ls Output: resin-inf/blog-db/blog-database-conf.xml resin-inf/blog-db/lib/mysql-connector-java-5.1.19-bin.jar $ resinctl config-cat resin-inf/blog-db/blog-database-conf.xml Output: <resin xmlns="http://caucho.com/ns/resin" [^] xmlns:resin="urn:java:com.caucho.resin"> <database jndi-name="jdbc/blogdb"> <driver type="com.mysql.jdbc.Driver"> <url>jdbc:mysql://localhost:3306/blogdb</url> [^] <user>bloguser</user> <password>roofoo</password> </driver> </database> </resin> $ ls /var/www/resin-data/app-0/config/resin-inf/blog-db/ blog-database-conf.xml lib $ ls /var/www/resin-data/app-0/config/resin-inf/blog-db/lib mysql-connector-java-5.1.19-bin.jar $ ls /var/www/resin-data/app-0/config/resin-inf/blog-db/blog-database-conf.xml /var/www/resin-data/app-0/config/resin-inf/blog-db/blog-database-conf.xml rick@ubuntu:~$ cat /var/www/resin-data/app-0/config/resin-inf/blog-db/blog-database-conf.xml <resin xmlns="http://caucho.com/ns/resin" [^] xmlns:resin="urn:java:com.caucho.resin"> <database jndi-name="jdbc/blogdb"> <driver type="com.mysql.jdbc.Driver"> <url>jdbc:mysql://localhost:3306/blogdb</url> [^] <user>bloguser</user> <password>roofoo</password> </driver> </database> </resin> |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|