I have copied back ups of that file from various locations and had no luck.
The Java here fails.
import coldfusion.server.DataSourceService;
import coldfusion.server.ServiceFactory;
.
.
.
public WWWMapperAdaptor(String dataSourceName, String username)
throws Exception
{
// Get a service locator from the cold fusion server.
DataSourceService ds = ServiceFactory.getDataSourceService();
// Lookup the specific datasource.
dataSource = ds.getDatasource(dataSourceName);
this.username = username;
// Get the list of subscriptions belonging to this user.
// Loads data into the subscriptions and userData instance
variables.
fillInSubscriptions();
}
Specifically on this line:
DataSourceService ds = ServiceFactory.getDataSourceService();
But this CF works just fine.
// This will dump all of the services in CFMX
<cfobject type="JAVA" action="Create" name="factory"
class="coldfusion.server.ServiceFactory">
<cfdump var="#factory#">
// This will dump the datasources and drivers manipulating datasources is as
simple as modifying
// the structure datasources below
<cfobject type="JAVA" action="Create" name="factory"
class="coldfusion.server.ServiceFactory">
<cfset sqlexecutive = factory.getDataSourceService()>
<cfset drivers=sqlexecutive.drivers>
<cfset datasources=sqlexecutive.datasources>
<cfdump var="#sqlexecutive#" label="DataSource Factory">
<cfdump var="#datasources#" label="DataSources">
<cfdump var="#drivers#" label="Database Drivers">
Currently the class file is in a path referenced by the specific CF
instance. My Java developer feels that this is a class loader problem and
we are moving this class file to the same location as the system wide CF jar
files.
Shawn
-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: Friday, January 07, 2005 7:05 PM
To: CF-Server
Subject: RE: Factory problems
> We are trying to get CF MX 6.1 running as a J2EE application
> under JRun.
>
> We are getting this error when trying to load and initialize
> a Java Class object
>
> coldfusion.server.ServiceFactory$ServiceNotAvailableException:
> The DataSource service is not available.
>
> The object tag is as follows.
>
> <cfobject type="JAVA" action="Create" name="MapperAdaptor"
> class="com.newsstand.library.WWWMapperAdaptor">
>
> We then call the init function including the data source name
> that we use throughout the system and get the above error.
>
> All of this works just fine in stand alone mode.
Typically, you get that message when the neo-query.xml file is corrupted for
any reason.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:10:5083
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/10
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:10
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.10
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54