[flex] Flex + LCDS + Java奇怪问题
666666
2008-02-29
最近看了Flex + LCDS + Java教程觉得不错,但是有个疑问,按照该教程建立的项目发布在安装有lcds的机 器上就可以进行java remoteobject的通信,可是如果将项目发布到没有安装过lcds的机器上好像不能使用remoteobject了,系统提示为“Error instantiating application scoped instance of type 具体的类名",可是如果将lcds自带samples发到没有安装过lcds的机器上的话,里面的实例一样可以运行java
remoteobject调用,向各位请教一下这是什么原因,该如何解决,谢谢了 开发用的环境为:myeclipse6+resin+flex3.0(插件版)+lcds2.5.1 具体的错误: /*******************************************************/ 信息: Creating new cache [Flex] Error instantiating application scoped instance of type 'com.test.First vaClass' for destination 'FirstJavaClassRemoteObject'. java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 4) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Weba ClassLoader.java:1815) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassL der.java:869) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassL der.java:1322) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassL der.java:1201) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at flex.messaging.util.ClassUtil.createClass(ClassUtil.java:60) at flex.messaging.factories.JavaFactoryInstance.getInstanceClass(JavaF toryInstance.java:91) at flex.messaging.factories.JavaFactoryInstance.createInstance(JavaFac ryInstance.java:77) at flex.messaging.factories.JavaFactory.createFactoryInstance(JavaFact y.java:111) at flex.messaging.FactoryDestination.createFactoryInstance(FactoryDest ation.java:241) at flex.messaging.FactoryDestination.getFactoryInstance(FactoryDestina on.java:224) at flex.messaging.FactoryDestination.getFactoryInstance(FactoryDestina on.java:212) at flex.messaging.services.remoting.adapters.JavaAdapter.validateInsta eSettings(JavaAdapter.java:296) at flex.messaging.services.remoting.adapters.JavaAdapter.start(JavaAda er.java:106) at flex.messaging.Destination.start(Destination.java:260) at flex.messaging.services.AbstractService.startDestinations(AbstractS vice.java:647) at flex.messaging.services.AbstractService.start(AbstractService.java: 3) at flex.messaging.MessageBroker.startServices(MessageBroker.java:1099) at flex.messaging.MessageBroker.start(MessageBroker.java:257) at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java: 6) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrappe java:1105) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java: 2) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardCont t.java:3951) at org.apache.catalina.core.StandardContext.start(StandardContext.java 225) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBa .java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java: 9) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:52 at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.j a:904) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig ava:867) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:4 ) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.ja :310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecy eSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:102 at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:101 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:4 ) at org.apache.catalina.core.StandardService.start(StandardService.java 50) at org.apache.catalina.core.StandardServer.start(StandardServer.java:7 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) /****************************************************************/ |
|
666666
2008-03-03
谢谢了,问题解决了,是jdk版本造成的,谢谢您的回答
|
|
lq611
2008-04-21
怎么 解决的能告诉一下吗 ?
|
|
true_cp
2008-07-28
lcds的自带sample里面已经包含lcds所需的库了,也就是说你部署了lcds-sample也就同时部署了lcds。
|
|
tmluwei
2008-10-16
lcds在哪可以下载呀?
|
|
caoqsh
2008-11-01
可能是你的jdk是1.6版本的造成的 改成JDK1.5就可以了
|
|
bosshung
2008-11-02
lcds到Adobe官方网站下载
网址为: [url][/url]http:www.adobe.com 不过先要注册一个账号,免费的 |