[jira] Commented: (SLING-217) Scripting Resolver bundle compiled with JDK 6 may produce NoSuchMethodError

2008-02-01 Thread Felix Meschberger (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12564788#action_12564788
 ] 

Felix Meschberger commented on SLING-217:
-

cool .. 

What is the default runtime library used in Mac OS X?

 Scripting Resolver bundle compiled with JDK 6 may produce NoSuchMethodError
 ---

 Key: SLING-217
 URL: https://issues.apache.org/jira/browse/SLING-217
 Project: Sling
  Issue Type: Improvement
  Components: Scripting
Reporter: Felix Meschberger
Assignee: Felix Meschberger
 Fix For: 2.0.0


 Sometimes a NoSuchMethodError is thrown in the 
 DefaultSlingScript.verifyBindings method when filling the 
 javax.servlet.SimpleBindings object for the script evaluation.
 This happens, if the scripting/resolver bundle is compiled with JDK 1.6, that 
 is the generic SimpleBindings class contained in JDK 1.6. This causes the put 
 method to be bound to the parameters (String, Object) while the BSF 3 
 SimpleBindings class from the scripting/api bundle used in a JDK 1.5 
 environment has a put method taking (Object, Object).
 Now, one fix of course is to make sure, the scripting/resolver bundler is 
 compiled with JDK 1.5 instead of JDK 1.6. Another solution could be to use 
 the scripting/api bundle (or the BSF 3 library) on the boot class path for 
 the compilation.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (SLING-217) Scripting Resolver bundle compiled with JDK 6 may produce NoSuchMethodError

2008-02-01 Thread Carsten Ziegeler (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12564792#action_12564792
 ] 

Carsten Ziegeler commented on SLING-217:


Well, it seems that it is

/System/Library/Frameworks/JavaVM.framework/Classes/classes.jar

(java home points to a different directory tree)

 Scripting Resolver bundle compiled with JDK 6 may produce NoSuchMethodError
 ---

 Key: SLING-217
 URL: https://issues.apache.org/jira/browse/SLING-217
 Project: Sling
  Issue Type: Improvement
  Components: Scripting
Reporter: Felix Meschberger
Assignee: Felix Meschberger
 Fix For: 2.0.0


 Sometimes a NoSuchMethodError is thrown in the 
 DefaultSlingScript.verifyBindings method when filling the 
 javax.servlet.SimpleBindings object for the script evaluation.
 This happens, if the scripting/resolver bundle is compiled with JDK 1.6, that 
 is the generic SimpleBindings class contained in JDK 1.6. This causes the put 
 method to be bound to the parameters (String, Object) while the BSF 3 
 SimpleBindings class from the scripting/api bundle used in a JDK 1.5 
 environment has a put method taking (Object, Object).
 Now, one fix of course is to make sure, the scripting/resolver bundler is 
 compiled with JDK 1.5 instead of JDK 1.6. Another solution could be to use 
 the scripting/api bundle (or the BSF 3 library) on the boot class path for 
 the compilation.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (SLING-217) Scripting Resolver bundle compiled with JDK 6 may produce NoSuchMethodError

2008-02-01 Thread Felix Meschberger (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12564891#action_12564891
 ] 

Felix Meschberger commented on SLING-217:
-

Ok, the Sun compiler has another - albeit non-standard - flag: 
-Xbootclasspath/p:, which allows prepending classes to the default boot class 
path. So, this configuration works on my linux (and probably also on win) box:

configuration

compilerArgument-Xbootclasspath/p:${project.build.directory}/dependency/bsf-api.jar/compilerArgument
/configuration

Can you please verify, whether this also works on Mac ? Thanks.

 Scripting Resolver bundle compiled with JDK 6 may produce NoSuchMethodError
 ---

 Key: SLING-217
 URL: https://issues.apache.org/jira/browse/SLING-217
 Project: Sling
  Issue Type: Improvement
  Components: Scripting
Reporter: Felix Meschberger
Assignee: Felix Meschberger
 Fix For: 2.0.0


 Sometimes a NoSuchMethodError is thrown in the 
 DefaultSlingScript.verifyBindings method when filling the 
 javax.servlet.SimpleBindings object for the script evaluation.
 This happens, if the scripting/resolver bundle is compiled with JDK 1.6, that 
 is the generic SimpleBindings class contained in JDK 1.6. This causes the put 
 method to be bound to the parameters (String, Object) while the BSF 3 
 SimpleBindings class from the scripting/api bundle used in a JDK 1.5 
 environment has a put method taking (Object, Object).
 Now, one fix of course is to make sure, the scripting/resolver bundler is 
 compiled with JDK 1.5 instead of JDK 1.6. Another solution could be to use 
 the scripting/api bundle (or the BSF 3 library) on the boot class path for 
 the compilation.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.