rmorgan Posted June 15, 2007 Share Posted June 15, 2007 Hi everyone, From reading the forums I see that others have been able to get JasperServer deployed into JBoss, but I'm having problems getting the datasources setup. I followed the JBoss deployment instructions for JasperIntellegence, but I'm getting the error: Code:Problem starting service jboss.web.deployment:war=jasperserver.war,id=1707771894org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: resource-ref: java:jdbc/jasperserver has no valid JNDI binding. Check the jboss-web/resource-ref.) Here are the relevant config snippits: From web.xmlCode:[code] <resource-ref> <description>JasperServer Metadata repository</description> <res-ref-name>jdbc/jasperserver</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> From ds.xmlCode:[code] <resource-ref> <res-ref-name>jdbc/jasperserver</res-ref-name> <jndi-name>java:jdbc/jasperserver</jndi-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref> From jboss-web.xmlCode:[code] <local-tx-datasource> <jndi-name>jdbc/jasperserver</jndi-name> <connection-url>jdbc:«»postgresql://localhost:5432/jasperserver</connection-url> <driver-class>org.postgresql.Driver</driver-class> <user-name>hq</user-name> <password>hq</password> <connection-property name="char.encoding">UTF-8</connection-property> <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation> </local-tx-datasource> I see JBoss correctly starting the JNDI for the jasperserver datasource: 2007-06-14 14:09:24,506 INFO [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=jdbc/jasperserver' to JNDI name 'java:jdbc/jasperserver' Any pointers on what I am doing wrong would be appreciated! Thanks,-Ryan Link to comment Share on other sites More sharing options...
swood Posted June 21, 2007 Share Posted June 21, 2007 Looks like your jboss-web.xml is missing <jndi-name> tags, like: Code: <resource-ref> <description>JasperServer Metadata repository</description> <res-ref-name>jdbc/jasperserver</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> <jndi-name>java:jdbc/jasperserver</jndi-name> </resource-ref> ShermanJasperSoft Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now