Hi,
I am getting an exception : javax.naming.NameNotFoundException: env not bound However, I think I have configured everything allright in Jboss and in the ops web.xml : Jboss datasource : <datasources> <local-tx-datasource> <jndi-name>OracleDS</jndi-name> ... jboss-web.xml : <resource-ref > <res-ref-name>jdbc/oracle</res-ref-name> <jndi-name>java:OracleDS</jndi-name> </resource-ref > web.xml : <resource-ref> <description>DataSource</description> <res-ref-name>jdbc/oracle</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref> in my page-flow.xpl : <p:processor name="oxf:sql"> <p:input name="config"> <sql:config> <resultset> <sql:connection> <sql:datasource>oracle</sql:datasource> ... What am I doing wrong here ? (Using nightly build ops.war) Thanks a lot Henk -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Hi,
I have looked deeper into this problem, and I still think there might be a problem with this version of orbeon. I have created a simple servlet that tries to lookup a datasource using DataSource ds = (DataSource)ctx.lookup( "java:comp/env/jdbc/oracle"); In my web.xml : <resource-ref> <res-ref-name>jdbc/oracle</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref> in my jboss-web.xml <resource-ref> <res-ref-name>jdbc/oracle</res-ref-name> <res-type>javax.sql.DataSource</res-type> <jndi-name>java:/OracleDS</jndi-name> </resource-ref> This works perfectly ! If I enter the same configuration in the orbeon web.xml and jboss-web.xml, it complains about 'env not bound', although the documentation says it does a lookup for java:comp/env/jdbc/<datasource>, exaclty what I did in my servlet. Any help is welcome ! Thanks Henk Henk Schets wrote: > Hi, > I am getting an exception : > javax.naming.NameNotFoundException: env not bound > > However, I think I have configured everything allright in Jboss and in > the ops web.xml : > > Jboss datasource : > <datasources> > <local-tx-datasource> > <jndi-name>OracleDS</jndi-name> > ... > > jboss-web.xml : > > <resource-ref > > <res-ref-name>jdbc/oracle</res-ref-name> > <jndi-name>java:OracleDS</jndi-name> > </resource-ref > > > web.xml : > > <resource-ref> > <description>DataSource</description> > <res-ref-name>jdbc/oracle</res-ref-name> > <res-type>javax.sql.DataSource</res-type> > <res-auth>Container</res-auth> > </resource-ref> > > in my page-flow.xpl : > <p:processor name="oxf:sql"> > <p:input name="config"> > <sql:config> > <resultset> > <sql:connection> > <sql:datasource>oracle</sql:datasource> > ... > > What am I doing wrong here ? > > (Using nightly build ops.war) > > Thanks a lot > > Henk > > > ------------------------------------------------------------------------ > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Henk,
I don't think anything has changed in the SQL processor and related code for a very long time, so I don't know what it could be. What was the previous version you used? -Erik Henk Schets wrote: > Hi, > > I have looked deeper into this problem, and I still think there might be > a problem with this version of orbeon. > I have created a simple servlet that tries to lookup a datasource using > DataSource ds = (DataSource)ctx.lookup( "java:comp/env/jdbc/oracle"); > > In my web.xml : > <resource-ref> > <res-ref-name>jdbc/oracle</res-ref-name> > <res-type>javax.sql.DataSource</res-type> > <res-auth>Container</res-auth> > </resource-ref> > > in my jboss-web.xml > <resource-ref> > <res-ref-name>jdbc/oracle</res-ref-name> > <res-type>javax.sql.DataSource</res-type> > <jndi-name>java:/OracleDS</jndi-name> > </resource-ref> > > This works perfectly ! If I enter the same configuration in the orbeon > web.xml and jboss-web.xml, it complains about 'env not bound', although > the documentation says it does a lookup for > java:comp/env/jdbc/<datasource>, exaclty what I did in my servlet. > Any help is welcome ! > > Thanks > > Henk > > Henk Schets wrote: >> Hi, >> I am getting an exception : >> javax.naming.NameNotFoundException: env not bound >> >> However, I think I have configured everything allright in Jboss and in >> the ops web.xml : >> >> Jboss datasource : >> <datasources> >> <local-tx-datasource> >> <jndi-name>OracleDS</jndi-name> >> ... >> >> jboss-web.xml : >> >> <resource-ref > >> <res-ref-name>jdbc/oracle</res-ref-name> >> <jndi-name>java:OracleDS</jndi-name> >> </resource-ref > >> >> web.xml : >> >> <resource-ref> >> <description>DataSource</description> >> <res-ref-name>jdbc/oracle</res-ref-name> >> <res-type>javax.sql.DataSource</res-type> >> <res-auth>Container</res-auth> >> </resource-ref> >> >> in my page-flow.xpl : >> <p:processor name="oxf:sql"> >> <p:input name="config"> >> <sql:config> >> <resultset> >> <sql:connection> >> <sql:datasource>oracle</sql:datasource> >> ... >> >> What am I doing wrong here ? >> >> (Using nightly build ops.war) >> >> Thanks a lot >> >> Henk Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Hi,
after a complete fresh reinstallation of jboss and orbeon nightly build, it works. Unfortunately I was unable to find the real problem. thanks Henk Erik Bruchez wrote: > Henk, > > I don't think anything has changed in the SQL processor and related code > for a very long time, so I don't know what it could be. What was the > previous version you used? > > -Erik > > Henk Schets wrote: >> Hi, >> >> I have looked deeper into this problem, and I still think there might >> be a problem with this version of orbeon. >> I have created a simple servlet that tries to lookup a datasource using >> DataSource ds = (DataSource)ctx.lookup( "java:comp/env/jdbc/oracle"); >> >> In my web.xml : >> <resource-ref> >> <res-ref-name>jdbc/oracle</res-ref-name> >> <res-type>javax.sql.DataSource</res-type> >> <res-auth>Container</res-auth> >> </resource-ref> >> >> in my jboss-web.xml >> <resource-ref> >> <res-ref-name>jdbc/oracle</res-ref-name> >> <res-type>javax.sql.DataSource</res-type> >> <jndi-name>java:/OracleDS</jndi-name> >> </resource-ref> >> >> This works perfectly ! If I enter the same configuration in the >> orbeon web.xml and jboss-web.xml, it complains about 'env not bound', >> although the documentation says it does a lookup for >> java:comp/env/jdbc/<datasource>, exaclty what I did in my servlet. >> Any help is welcome ! >> >> Thanks >> >> Henk >> >> Henk Schets wrote: >>> Hi, >>> I am getting an exception : >>> javax.naming.NameNotFoundException: env not bound >>> >>> However, I think I have configured everything allright in Jboss and >>> in the ops web.xml : >>> >>> Jboss datasource : >>> <datasources> >>> <local-tx-datasource> >>> <jndi-name>OracleDS</jndi-name> >>> ... >>> >>> jboss-web.xml : >>> >>> <resource-ref > >>> <res-ref-name>jdbc/oracle</res-ref-name> >>> <jndi-name>java:OracleDS</jndi-name> >>> </resource-ref > >>> >>> web.xml : >>> >>> <resource-ref> >>> <description>DataSource</description> >>> <res-ref-name>jdbc/oracle</res-ref-name> >>> <res-type>javax.sql.DataSource</res-type> >>> <res-auth>Container</res-auth> >>> </resource-ref> >>> >>> in my page-flow.xpl : >>> <p:processor name="oxf:sql"> >>> <p:input name="config"> >>> <sql:config> >>> <resultset> >>> <sql:connection> >>> >>> <sql:datasource>oracle</sql:datasource> >>> ... >>> >>> What am I doing wrong here ? >>> >>> (Using nightly build ops.war) >>> >>> Thanks a lot >>> >>> Henk > > > ------------------------------------------------------------------------ > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws Henk Schets Team Leader Product Development Royal Meteorological Institute of Belgium (R.M.I.B.) Ringlaan 3 B-1180 Brussels Belgium Tel: (+32) 2 3730597 Fax: (+32) 2 3757549 E-mail: [hidden email] WWW server: http://www.meteo.be -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |