Jump to content
We've recently updated our Privacy Statement, available here ×

JasperServer 1.2.1 deployment into JBoss 4.0.3


rmorgan

Recommended Posts

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=1707771894
org.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.xml

Code:
[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.xml

Code:
[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.xml

Code:
[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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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>

 

 

Sherman

JasperSoft

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...