You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2003/08/30 23:11:05 UTC
DO NOT REPLY [Bug 22842] New: -
flow: importPackage/importClass problems creating InitialContext()
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22842>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22842
flow: importPackage/importClass problems creating InitialContext()
Summary: flow: importPackage/importClass problems creating
InitialContext()
Product: Cocoon 2
Version: 2.1
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: sitemap components
AssignedTo: dev@cocoon.apache.org
ReportedBy: skrul@yahoo.com
>From flow, the following works:
var initCtx = new Packages.javax.naming.InitialContext();
However, the following does not:
importPackage(Packages.javax.naming);
...
var initCtx = new InitialContext();
returns the error: org.mozilla.javascript.EvaluatorException:
"file:/home/steve/mdc/cocoon-2.1/build/webapp/clavin/flow/global.js", line 16:
Java constructor for "javax.naming.InitialContext" with arguments "" not found.
and
importClass(Packages.javax.naming.InitialContext);
...
var initCtx = new InitialContext();
returns java.lang.NullPointerException