150
Views
0
Helpful
0
Comments

Options
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 01-24-2014 01:32 PM
This document was generated from CDN thread
Created by: Vedran Zeljeznak on 06-10-2010 08:17:41 PM
hm, looks like i stumbled to an unusual problem:
i'm writing a web-app which runs within spring framework(v3.0.0) and Jetty(v6.1.25) and has a component that has to connect to CUCM via JTapi(Cisco JTAPI 6.1(4.1200)-2 Release).
The component runs fine within standard Java app (ran from .main() method) but when i run the component from Jetty+Spring container a ClassCastException happens on the following line of code:
CiscoProvider cProvider = (CiscoProvider) peer.getProvider ("10.0.0.102;login=user;passwd=pass");
Exception log: java.lang.ClassCastException: com.cisco.jtapi.ProviderImpl cannot be cast to com.cisco.jtapi.extensions.CiscoProvider
I don't know what could be the reason for this behavior.
Does anybody have any info or has witnessed/solved this "phenomenon"?
Subject: RE: java.lang.ClassCastException: com.cisco.jtapi.ProviderImpl cannot be ca
Replied by: Vedran Zeljeznak on 08-10-2010 06:55:24 AM
i''ve found the problem, two classLoaders(jettys and web-apps) were clashing in Jetty. Solution was to set Jettys classLoader as primary and everything worked normally.
Created by: Vedran Zeljeznak on 06-10-2010 08:17:41 PM
hm, looks like i stumbled to an unusual problem:
i'm writing a web-app which runs within spring framework(v3.0.0) and Jetty(v6.1.25) and has a component that has to connect to CUCM via JTapi(Cisco JTAPI 6.1(4.1200)-2 Release).
The component runs fine within standard Java app (ran from .main() method) but when i run the component from Jetty+Spring container a ClassCastException happens on the following line of code:
CiscoProvider cProvider = (CiscoProvider) peer.getProvider ("10.0.0.102;login=user;passwd=pass");
Exception log: java.lang.ClassCastException: com.cisco.jtapi.ProviderImpl cannot be cast to com.cisco.jtapi.extensions.CiscoProvider
I don't know what could be the reason for this behavior.
Does anybody have any info or has witnessed/solved this "phenomenon"?
Subject: RE: java.lang.ClassCastException: com.cisco.jtapi.ProviderImpl cannot be ca
Replied by: Vedran Zeljeznak on 08-10-2010 06:55:24 AM
i''ve found the problem, two classLoaders(jettys and web-apps) were clashing in Jetty. Solution was to set Jettys classLoader as primary and everything worked normally.
Labels: