I\'m trying to get a list of datasources off my server (Yes I am the server owner...this is not a hack).
I think I confused the issue by giving two examples - so I\'m e
If you dump your dbserv2 variable you will see that it is not an object, it is a Java Interface, which cannot be instantiated.
To do what you want you need to request the datasource service from the service factory.
dbserv2 = createobject("java","coldfusion.server.ServiceFactory").getDataSourceService();
dblist2 = dbserv2.getDatasources();