• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

webService - Error during deployment

New Here ,
Jul 25, 2007 Jul 25, 2007

Copy link to clipboard

Copied

I've created a cfc and a function, set the the function access to remote. When I attempt to hit the webservice
/usr/local/jrun_2006_02_02/servers/atcc1/cfusion-ear/cfusion-war/WEB-INF/cfc-skeletons/testwsBeanInfo.java:1: cannot access java.beans.SimpleBeanInfo
bad class file: /usr/local/jdk1.5.0_05/jre/lib/rt.jar(java/beans/SimpleBeanInfo.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
public class testwsBeanInfo extends java.beans.SimpleBeanInfo {

Can anyone lend some insight?

here is my cfc:

<cfcomponent displayname="testws" hint="testws" output="false">
<cffunction name="init" access="remote" output="no" returntype="string" displayname="init">
<cfset var testStr = "fook">
<cfreturn testStr>
</cffunction>
</cfcomponent>

This is a devnet version if that makes any difference.

TOPICS
Advanced techniques

Views

283

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jul 25, 2007 Jul 25, 2007

Copy link to clipboard

Copied

Start by testing under a 1.4.2 JDK. 1.4.2_15 should be fine. CFMX6.x and CFMX7.x are known to have issues with the 1.5 and 1.6 JRE's. These versions of CFMX do not support the newer versions of the JDK - 1.5, 1.6. CF8 comes with and the 1.6 JRE and will be available shortly.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 21, 2008 Oct 21, 2008

Copy link to clipboard

Copied

LATEST
So, if I am running CF MX 6.1 and jdk1.5.0.12, how can I compile the webservice java file?

I'm getting this error on the rt.jar file.

cannot access java.lang.Object
bad class file: C:\jdk1.5.0_12\jre\lib\rt.jar(java/lang/Object.class)
class file has wrong version 49.0, should be 48.0

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation