[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: mapped-name is required for jdbc

2009-07-20 Thread Wolfgang Knauf
Duplicate of http://www.jboss.org/index.html?module=bbop=viewtopict=158388

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4244053#4244053

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4244053
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: mapped-name is required for jdbc

2009-07-20 Thread Wolfgang Knauf
Hi,

the res-ref-name is the name of the entry in your Environment Naming Context 
(needed only for programmatic JNDI lookups), it is NOT the name of the 
datasource in JNDI.

You need something like this (might still contain minor errors):

  | resource-ref
  |   res-ref-nameNameForLookup/res-ref-name
  |   res-typejavax.sql.DataSource/res-type
  |   mapped-namejdbc/LOYALTY/mapped-name
  |   res-authContainer/res-auth
  | /resource-ref
  | 

Hope this helps

Wolfgang

PS: Please use [ code ] tags to mark XML, so that no information is lost.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4244055#4244055

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4244055
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: mapped-name is required for jdbc

2009-07-20 Thread neelesh.parulkar
 resource-ref
  DB Connection
  res-ref-namejdbc/LOYALTY/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
/resource-ref

Here is the correct web-xml entry I have. Previsous one is missing the  tag

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4244021#4244021

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4244021
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: mapped-name is required for jdbc

2009-07-15 Thread neelesh.parulkar
Here is snippet from web.xml and -ds.xml respectively:


web.xml:

resource-ref
DB Connection
res-ref-namejdbc/LOYALTY/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref



hsqldb-ds.xml:

local-tx-datasource
   
 !-- The jndi name of the DataSource, it is prefixed with 
java:/ --
 !-- Datasources are not available outside the virtual 
machine --
 jndi-namejdbc/LOYALTY/jndi-name  
  
connection-urljdbc:mysql://192.168.1.109:3306/LOYALTY/connection-url 
   
 !-- The driver class --
 driver-classcom.mysql.jdbc.Driver/driver-class
 !-- The login and password --
 user-nameroot/user-name
 root
 !-- The maximum connections in a pool/sub-pool --
 max-pool-size5/max-pool-size
 !-- track unclosed statements --
 track-statementstrue/track-statements
   
  !-- REQUIRED IN JBOSS 4.0.5GA; TRYING IN JBOSS 3.2.5 FOR 
CONSISTENCY --

type-mappingmySQL/type-mapping
 
   /local-tx-datasource


I am facing same problem with Jboss 5.1.0 GA. However I am able to deploy the 
war on 4.2.3 GA successfully. Only change in web.xml being a wrapper tag around 
resource-ref as jboss-web. This is not required in Jboss 5.x.x as this gives 
invalid schema related errors.











View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4243654#4243654

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243654
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: mapped-name is required for jdbc

2009-07-15 Thread neelesh.parulkar
I have already tried putting mapped-name in resource ref but no luck..

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4243655#4243655

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243655
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: mapped-name is required for jdbc

2009-07-14 Thread Wolfgang Knauf
Hi,

please post the relevant snippet of web.xml.

And maybe you should follow the error message and add the mapped-name element 
in resource-ref ;-).

Hope this helps

Wolfgang

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4243453#4243453

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243453
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user