Please help, time sensitive... Class path
I'm trying to set up apple's push notification on my new CF server. I have a set of files that I need to use for this to work. However, I cannot get Coldfusion to "pick" them up and use the classes. I've tried for 6 hours to add a class path. My code to use the class looks like this: com.notnoop.apns. My error is that it cannot find the classpath. I've tried putting the com folder into the (cf install directory)/lib and tried manually adding the class path but no luck. Help please.
<!-- alert user -->
<cffunction name="alertUser" access="remote" returntype="string" output="no">
<cfargument name="send_token" type="string" required="yes">
<cfset returnString = "Notification Sent">
<cfset APNS = createObject( "java", "com.notnoop.apns.APNS" )>
<cfset APNSService = createObject( "java", "com.notnoop.apns.APNS" ).newService()
.withCert("/secretLink", "******")
.withSandboxDestination()
.build() />
<cfset payload = createObject( "java", "com.notnoop.apns.APNS" ).newPayload()
.badge(1)
.alertBody("Alert")
.actionKey("View")
.sound("PushNotification.caf")
.build()/>
<cfset token = '#send_token#'>
<cfset APNSNotification = createObject ("java", "com.notnoop.apns.SimpleApnsNotification").init(javacast("string",token),javacast("string",payload)) />
<cfset APNSService.push(APNSNotification)>
<cfreturn returnString >
</cffunction>
<!-- -->
<!-- -->
<!-- -->
