애플릿에 그리폰 애플릿을 실행할 때 브라우저에서 애플릿을 실행하는 데 문제가 있습니다. 브라우저 내 애플릿을 실행하려고 할 때이 오류가 발생했다 : -org.codehaus.groovy.runtime.metaclass.MissingPropertyExceptionNoStack : 해당 속성 없음 : 클래스 : griffon.swing.SwingApplet의 resourceResolver
org.codehaus.groovy.runtime.metaclass.MissingPropertyExceptionNoStack : 그런 특성 : 클래스 resourceResolver : griffon.swing.SwingApplet
내 HTML 이 같은 페이지 : -
<script src="http://java.com/js/deployJava.js"></script>
<script>
var attributes = {id: 'Mocha',
codebase:'http://localhost:8080/testapplet/applet',
code:'griffon.swing.SwingApplet',
archive:'griffon-swing-runtime-1.2.0.jar,griffon-rt-1.2.0.jar,groovy-all-2.0.6.jar,jcl-over-slf4j-1.7.2.jar,jul-to-slf4j-1.7.2.jar,log4j-1.2.17.jar,mocha.jar,slf4j-api-1.7.2.jar,slf4j-log4j12-1.7.2.jar',
width:'320', height:'240'} ;
var parameters = {fontSize:16,
java_arguments: "-Djnlp.packEnabled=false",
//jnlp_href:'http://localhost:8080/testapplet/applet/applet.jnlp',
draggable:'true',
image:'griffon.png',
boxmessage:'Loading Mocha',
boxbgcolor:'#FFFFFF', boxfgcolor:'#000000',
codebase_lookup: 'false'} ;
var version = '1.5.0' ;
deployJava.runApplet(attributes, parameters, version);
</script>
내 applet.jnlp : -
<jnlp
version="0.1"
codebase="http://localhost:8080/testapplet/applet"
href="applet.jnlp"
>
<information>
<title>mocha 0.1</title>
<vendor>cipon</vendor>
<homepage href="http://localhost:8080/testapplet"/>
<!--fallback description-->
<description>mocha 0.1</description>
<description kind="one-line">mocha 0.1</description>
<description kind="short">mocha 0.1</description>
<description kind="tooltip">mocha 0.1</description>
<!-- default icon -->
<icon href="griffon-icon-64x64.png" kind="default" width="64" height="64"/>
<!-- icon used for splash screen -->
<icon href="griffon.png" kind="splash" width="391" height="123"/>
<!-- icon used in selected -->
<icon href="griffon-icon-64x64.png" kind="selected" width="64" height="64"/>
<!-- icon used on disabled -->
<icon href="griffon-icon-64x64.png" kind="disabled" width="64" height="64"/>
<!-- icon used on rollover -->
<icon href="griffon-icon-64x64.png" kind="rollover" width="64" height="64"/>
<!-- icon used on shortcut -->
<icon href="griffon-icon-64x64.png" kind="shortcut" width="64" height="64"/>
<!-- to create shortcuts, uncomment this
<shortcut online="true">
<desktop/>
<menu submenu="Mocha"/>
</shortcut>
-->
<offline-allowed/>
</information>
<security>
<all-permissions/>
<!--<j2ee-application-client-permissions/>-->
</security>
<resources>
<property name="griffon.runmode" value="applet"/>
<property name="jnlp.packEnabled" value="true"/>
<j2se version="1.5+" />
<!-- auto-added jars follow, griffon-rt, app, and groovy -->
<jar href='griffon-swing-runtime-1.2.0.jar' main='true'/>
<jar href='griffon-rt-1.2.0.jar'/>
<jar href='groovy-all-2.0.6.jar'/>
<jar href='jcl-over-slf4j-1.7.2.jar'/>
<jar href='jul-to-slf4j-1.7.2.jar'/>
<jar href='log4j-1.2.17.jar'/>
<jar href='mocha.jar' main='false' />
<jar href='slf4j-api-1.7.2.jar'/>
<jar href='slf4j-log4j12-1.7.2.jar'/>
<!-- Add all extra jars below here, or the app may break -->
</resources>
<applet-desc
documentbase="http://localhost:8080/testapplet/applet"
name="MochaApplet"
main-class="griffon.swing.SwingApplet"
width="320"
height="240">
<!-- params are ignored when referenced from web page for 6u10 -->
<!--<param name="key1" value="value1"/>-->
<!--<param name="key2" value="value2"/>-->
</applet-desc>
</jnlp>
당신을 감사합니다.
환경에 대한 정보를 조금 더 주시겠습니까? MacOSX 1.7.5, Firefox 19.0.2, Java Plug-in 11.0.2.77, JRE 1.8.0-ea-b77 – aalmiray
Mac OS X 10.8.3, 사파리 6.0.3을 사용하여 문제를 재현 할 수있었습니다. , 브라우저 JRE 1.7.0_17. – cipon
브라우저에서 애플릿을로드하는 경우에만 오류가 발생하며 "그리폰 런 애플릿"으로 실행하는 경우에는 오류가 발생하지 않습니다. – aalmiray