RE: [JBoss-user] Database JNDI Name Not Found
Sorry, I was unclear. What I meant was to leave everything as it is now in respect of non-XML files, so the log4j and security deployers will continue to work. However, rather than making the file name of the XML files important, you could deploy them based on their DOCTYPE. You could employ a mechanism similar to JDBC where each registered driver (or XML sub-deployer) would be offered the file in turn. This way, you could even decide which sub-deployer to used based on content other than the DOCTYPE. Anyway, it was just a suggestion! :-) Dan. -- Danny Yates -Original Message- From: Scott M Stark [mailto:[EMAIL PROTECTED] Sent: 24 July 2003 19:49 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Database JNDI Name Not Found That is simply a restriction of the current architecture. If deployers want to base recognition off of the doctype they may do so. However, it is to restrictive. The JARDeployer in fact works by NOT finding an xml file that could be considered a deployment descriptor. A log4j configuration deployer may work off a log4j.properties file. A security configuration deployer may work off of the legacy auth.conf file. You are suffering from an overdose of xml exposure. -- Scott Stark Chief Technology Officer JBoss Group, LLC [EMAIL PROTECTED] wrote: But it raises an interesting design point. Why not simply have an XML deployer which picks up all *.xml files, inspects the DOCTYPE and then uses that to delegate to the correct sub-deployer. Would that not be a cleaner design? Rgds, Dan. --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Database JNDI Name Not Found
But it raises an interesting design point. Why not simply have an XML deployer which picks up all *.xml files, inspects the DOCTYPE and then uses that to delegate to the correct sub-deployer. Would that not be a cleaner design? Rgds, Dan. -- Danny Yates -Original Message- From: Rupp, Heiko [mailto:[EMAIL PROTECTED] Sent: 24 July 2003 16:11 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Database JNDI Name Not Found Renamed it to banana-ds.xml and sure enough that works. I take it the -ds segment of the basename is now important? Yes. *-service.xml and *-ds.xml have completely different contents (even if they might server the same purpose). --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Database JNDI Name Not Found
That is simply a restriction of the current architecture. If deployers want to base recognition off of the doctype they may do so. However, it is to restrictive. The JARDeployer in fact works by NOT finding an xml file that could be considered a deployment descriptor. A log4j configuration deployer may work off a log4j.properties file. A security configuration deployer may work off of the legacy auth.conf file. You are suffering from an overdose of xml exposure. -- Scott Stark Chief Technology Officer JBoss Group, LLC [EMAIL PROTECTED] wrote: But it raises an interesting design point. Why not simply have an XML deployer which picks up all *.xml files, inspects the DOCTYPE and then uses that to delegate to the correct sub-deployer. Would that not be a cleaner design? Rgds, Dan. --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Database JNDI Name Not Found
I tried the oracle-ds.xml approach previously but it too failed. Tried it again this morning only this time I preserved the name oracle-ds.xml and it worked. Renamed it to oracle-service.xml and it failed again. Renamed it to banana-ds.xml and sure enough that works. I take it the -ds segment of the basename is now important? Thanks, Rod -Original Message- From: Scott M Stark [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 5:48 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Database JNDI Name Not Found I would say your ds is not deploying due to changes in service names on which the ds depends. Post your oracle-service.xml or switch to the oracle-ds.xml format which removes the need to know JBoss internal services. See the docs/examples/jca/oracle-ds.xml for an example. -- Scott Stark Chief Technology Officer JBoss Group, LLC Rod Macpherson wrote: Almost forgot. Here is the actual error I get inn 3.2: 16:42:33,546 ERROR [EntityContainer] Starting failed org.jboss.deployment.DeploymentException: Error: can't find data source: java:/OracleDSX; - nested throwable: (javax.naming.Name NotFoundException: OracleDSX not bound) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.init(JDBCEnti ty Bridge.java:115) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCSto reManager.java:438) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.j ava:372) at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager. java:170) at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:339) ... --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Database JNDI Name Not Found
Yes, as will all deployments the suffix is important. It identifies which deployer will process the deployment. -- Scott Stark Chief Technology Officer JBoss Group, LLC Rod Macpherson wrote: I tried the oracle-ds.xml approach previously but it too failed. Tried it again this morning only this time I preserved the name oracle-ds.xml and it worked. Renamed it to oracle-service.xml and it failed again. Renamed it to banana-ds.xml and sure enough that works. I take it the -ds segment of the basename is now important? Thanks, Rod --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Database JNDI Name Not Found
Rod Macpherson wrote: I tried the oracle-ds.xml approach previously but it too failed. Tried it again this morning only this time I preserved the name oracle-ds.xml and it worked. Renamed it to oracle-service.xml and it failed again. Renamed it to banana-ds.xml and sure enough that works. I take it the -ds segment of the basename is now important? The 3.2.1 Admin/Devel doc says that the org.jboss.deployment.XSLSubDeployer searches for *-ds.xml files. (page 356). Erik --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Database JNDI Name Not Found
In short: RTFM:) Thanks, Rod -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 10:25 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Database JNDI Name Not Found Rod Macpherson wrote: I tried the oracle-ds.xml approach previously but it too failed. Tried it again this morning only this time I preserved the name oracle-ds.xml and it worked. Renamed it to oracle-service.xml and it failed again. Renamed it to banana-ds.xml and sure enough that works. I take it the -ds segment of the basename is now important? The 3.2.1 Admin/Devel doc says that the org.jboss.deployment.XSLSubDeployer searches for *-ds.xml files. (page 356). Erik --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01 /01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Database JNDI Name Not Found
I assumed, incorrectly, that an .xml suffix triggered inspection and the content determined the deployment process. Thanks folks Rod -Original Message- From: Scott M Stark [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 10:24 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Database JNDI Name Not Found Yes, as will all deployments the suffix is important. It identifies which deployer will process the deployment. -- Scott Stark Chief Technology Officer JBoss Group, LLC Rod Macpherson wrote: I tried the oracle-ds.xml approach previously but it too failed. Tried it again this morning only this time I preserved the name oracle-ds.xml and it worked. Renamed it to oracle-service.xml and it failed again. Renamed it to banana-ds.xml and sure enough that works. I take it the -ds segment of the basename is now important? Thanks, Rod --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01 /01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Database JNDI Name Not Found
Almost forgot. Here is the actual error I get inn 3.2: 16:42:33,546 ERROR [EntityContainer] Starting failed org.jboss.deployment.DeploymentException: Error: can't find data source: java:/OracleDSX; - nested throwable: (javax.naming.Name NotFoundException: OracleDSX not bound) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.init(JDBCEntity Bridge.java:115) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCSto reManager.java:438) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.j ava:372) at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager. java:170) at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:339) ... -Original Message- From: Guy Rouillier [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 3:44 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Database JNDI Name Not Found Rod Macpherson wrote: On 3.0.7 my oracle-service.xml file specifies OracleDSX as the JNDI name and everything runs fine. Switched to 3.2 and it cannot find JNDI name java:/OracleDSX. I tried putting in the java:/ prefix for grins but it fails. Something change in 3.2? TIA, Rod What is the exact error you are getting? Is it comp not bound? I got this for two reasons: (1) forgot to add classes12.jar to the classpath (doh!) (2) jndi.properties for the ejb must now contain this: java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces Notice the new org.jboss.naming: on the front. -- Guy Rouillier --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Database JNDI Name Not Found
I would say your ds is not deploying due to changes in service names on which the ds depends. Post your oracle-service.xml or switch to the oracle-ds.xml format which removes the need to know JBoss internal services. See the docs/examples/jca/oracle-ds.xml for an example. -- Scott Stark Chief Technology Officer JBoss Group, LLC Rod Macpherson wrote: Almost forgot. Here is the actual error I get inn 3.2: 16:42:33,546 ERROR [EntityContainer] Starting failed org.jboss.deployment.DeploymentException: Error: can't find data source: java:/OracleDSX; - nested throwable: (javax.naming.Name NotFoundException: OracleDSX not bound) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.init(JDBCEntity Bridge.java:115) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCSto reManager.java:438) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.j ava:372) at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager. java:170) at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:339) ... --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Database JNDI Name Not Found
Had the jar so must be an incompatibility with the JNDI properties as you suggest. Here is what we have now: properties.put(java.naming.factory.initial, org.jnp.interfaces.NamingContextFactory); properties.put(java.naming.provider.url, localhost:1099); properties.put(java.naming.factory.url.pkgs, org.jboss.naming); How does item number (2) in your solution list blend with the above? Thx, Rod -Original Message- From: Guy Rouillier [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 3:44 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Database JNDI Name Not Found Rod Macpherson wrote: On 3.0.7 my oracle-service.xml file specifies OracleDSX as the JNDI name and everything runs fine. Switched to 3.2 and it cannot find JNDI name java:/OracleDSX. I tried putting in the java:/ prefix for grins but it fails. Something change in 3.2? TIA, Rod What is the exact error you are getting? Is it comp not bound? I got this for two reasons: (1) forgot to add classes12.jar to the classpath (doh!) (2) jndi.properties for the ejb must now contain this: java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces Notice the new org.jboss.naming: on the front. -- Guy Rouillier --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Database JNDI Name Not Found
Rod Macpherson wrote: On 3.0.7 my oracle-service.xml file specifies OracleDSX as the JNDI name and everything runs fine. Switched to 3.2 and it cannot find JNDI name java:/OracleDSX. I tried putting in the java:/ prefix for grins but it fails. Something change in 3.2? TIA, Rod What is the exact error you are getting? Is it comp not bound? I got this for two reasons: (1) forgot to add classes12.jar to the classpath (doh!) (2) jndi.properties for the ejb must now contain this: java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces Notice the new org.jboss.naming: on the front. -- Guy Rouillier --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Database JNDI Name Not Found
Rod Macpherson wrote: Had the jar so must be an incompatibility with the JNDI properties as you suggest. Here is what we have now: properties.put(java.naming.factory.initial, org.jnp.interfaces.NamingContextFactory); properties.put(java.naming.provider.url, localhost:1099); properties.put(java.naming.factory.url.pkgs, org.jboss.naming); How does item number (2) in your solution list blend with the above? properties.put(java.naming.factory.url.pkgs, org.jboss.naming:org.jnp.interfaces); But always follow Scott's advice before looking at mine gr. BTW, what does your lookup look like? Thx, Rod -Original Message- From: Guy Rouillier [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 3:44 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Database JNDI Name Not Found Rod Macpherson wrote: On 3.0.7 my oracle-service.xml file specifies OracleDSX as the JNDI name and everything runs fine. Switched to 3.2 and it cannot find JNDI name java:/OracleDSX. I tried putting in the java:/ prefix for grins but it fails. Something change in 3.2? TIA, Rod What is the exact error you are getting? Is it comp not bound? I got this for two reasons: (1) forgot to add classes12.jar to the classpath (doh!) (2) jndi.properties for the ejb must now contain this: java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces Notice the new org.jboss.naming: on the front. -- Guy Rouillier --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user