Hi I´m trying run an flex application, calling a java
class, but when i add de destination tag in remoting-config file,
and then start Integrated Flex server, it´s send me next
exception.
error Could not pre-load servlet: MessageBrokerServlet
> [2]java.lang.UnsupportedClassVersionError:
radar/RadarBeans (Unsupported
> major.minor version 49.0)
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(Unknown Source)
> at java.security.SecureClassLoader.defineClass(Unknown
Source)
> at
>
jrunx.util.JRunURLClassLoader.defineClass(JRunURLClassLoader.java:188)
> at
>
jrunx.util.JRunURLClassLoader.findClass(JRunURLClassLoader.java:153)
> at
>
jrunx.util.JRunURLClassLoader.loadFromLoadClass(JRunURLClassLoader.java:
> 117)
> at
>
jrunx.util.JRunURLClassLoader.loadClass(JRunURLClassLoader.java:81)
> at
>
jrunx.util.JRunURLClassLoader.loadClass(JRunURLClassLoader.java:70)
> at java.lang.ClassLoader.loadClassInternal(Unknown
Source)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Unknown Source)
> at
flex.messaging.util.ClassUtil.createClass(ClassUtil.java:52)
> at
>
flex.messaging.factories.JavaFactory$JavaFactoryInstance.getInstanceClas
> s(Ja
> vaFactory.java:244)
> at
>
flex.messaging.factories.JavaFactory$JavaFactoryInstance.createInstance(
> Java
> Factory.java:251)
> at
>
flex.messaging.factories.JavaFactory.createFactoryInstance(JavaFactory.j
> ava:
> 93)
> at
>
flex.messaging.FactoryDestination.getFactoryInstance(FactoryDestination.
> java
> :76)
> at
flex.data.adapters.JavaAdapter.server(JavaAdapter.java:158)
> at
flex.data.adapters.JavaAdapter.setSettings(JavaAdapter.java:119)
> at
flex.messaging.Destination.createAdapter(Destination.java:279)
> at
flex.messaging.Destination.initDestination(Destination.java:103)
> at
>
flex.messaging.FactoryDestination.initDestination(FactoryDestination.jav
> a:58
> )
> at
flex.data.DataService.createDestination(DataService.java:90)
> at
>
flex.messaging.services.AbstractService.createDestinations(AbstractServi
> ce.j
> ava:82)
> at
>
flex.messaging.config.MessagingConfiguration.createServices(MessagingCon
> figu
> ration.java:187)
> at
>
flex.messaging.config.MessagingConfiguration.configureBroker(MessagingCo
> nfig
> uration.java:84)
> at
>
flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:105)
> at
>
jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.jav
> a:12
> 00)
> at
>
jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService
> .jav
> a:791)
> at
>
jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:
> 293)
> at
>
jrun.deployment.DeployerService.initModules(DeployerService.java:711)
> at
>
jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.
> java
> :242)
> at
jrun.deployment.DeployerService.deploy(DeployerService.java:430)
> at
>
jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.
> java
> :179)
> at
jrun.deployment.DeployerService.run(DeployerService.java:891)
> at
>
jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:23
> 0)
> at
>
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java
> :428
> )
> at
jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
> [1]flex.messaging.config.ConfigurationException: Error
instantiating
> application scoped instance of type 'radar.RadarBeans'
for destination
> 'contactradar'.
> at
>
flex.messaging.factories.JavaFactory.createFactoryInstance(JavaFactory.j
> ava:
> 117)
> at
>
flex.messaging.FactoryDestination.getFactoryInstance(FactoryDestination.
> java
> :76)
> at
flex.data.adapters.JavaAdapter.server(JavaAdapter.java:158)
> at
flex.data.adapters.JavaAdapter.setSettings(JavaAdapter.java:119)
> at
flex.messaging.Destination.createAdapter(Destination.java:279)
> at
flex.messaging.Destination.initDestination(Destination.java:103)
> at
>
flex.messaging.FactoryDestination.initDestination(FactoryDestination.jav
> a:58
> )
> at
flex.data.DataService.createDestination(DataService.java:90)
> at
>
flex.messaging.services.AbstractService.createDestinations(AbstractServi
> ce.j
> ava:82)
> at
>
flex.messaging.config.MessagingConfiguration.createServices(MessagingCon
> figu
> ration.java:187)
> at
>
flex.messaging.config.MessagingConfiguration.configureBroker(MessagingCo
> nfig
> uration.java:84)
> at
>
flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:105)
> at
>
jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.jav
> a:12
> 00)
> at
>
jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService
> .jav
> a:791)
> at
>
jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:
> 293)
> at
>
jrun.deployment.DeployerService.initModules(DeployerService.java:711)
> at
>
jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.
> java
> :242)
> at
jrun.deployment.DeployerService.deploy(DeployerService.java:430)
> at
>
jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.
> java
> :179)
> at
jrun.deployment.DeployerService.run(DeployerService.java:891)
> at
>
jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:23
> 0)
> at
>
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java
> :428
> )
> at
jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
> [0]flex.messaging.config.ConfigurationException: Unable
to create
> service
> 'flex.data.DataService' for 'data-service' due to the
following error:
> Error
> instantiating application scoped instance of type
'radar.RadarBeans' for
> destination 'contactradar'..
> at
>
flex.messaging.config.MessagingConfiguration.createServices(MessagingCon
> figu
> ration.java:202)
> at
>
flex.messaging.config.MessagingConfiguration.configureBroker(MessagingCo
> nfig
> uration.java:84)
> at
>
flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:105)
> at
>
jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.jav
> a:12
> 00)
> at
>
jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService
> .jav
> a:791)
> at
>
jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:
> 293)
> at
>
jrun.deployment.DeployerService.initModules(DeployerService.java:711)
> at
>
jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.
> java
> :242)
> at
jrun.deployment.DeployerService.deploy(DeployerService.java:430)
> at
>
jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.
> java
> :179)
> at
jrun.deployment.DeployerService.run(DeployerService.java:891)
> at
>
jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:23
> 0)
> at
>
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java
> :428
> )
> at
jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
>
It looks likeI´m running JDK 5.0 compiled classes under
a 1.4 or earlier JVM.
But how can I solve it and get that my application compile
and uses same jdk versions???
Thanks