Xpages 使用XSP初学者工具包时出现的问题
我按照说明从openntf安装XSP初学者工具包。视频中提到的一切我都能做到,但我无法激活它 当我在我的应用程序中激活插件并尝试打开它时,我得到一个错误500。有人知道吗 服务器控制台告诉我: 日志文件包含:Xpages 使用XSP初学者工具包时出现的问题,xpages,Xpages,我按照说明从openntf安装XSP初学者工具包。视频中提到的一切我都能做到,但我无法激活它 当我在我的应用程序中激活插件并尝试打开它时,我得到一个错误500。有人知道吗 服务器控制台告诉我: 日志文件包含: <extendedDataElements name="CommonBaseEventLogRecord:Exception" type="string"> <values>java.lang.RuntimeException: com.ibm.xsp.F
<extendedDataElements name="CommonBaseEventLogRecord:Exception" type="string">
<values>java.lang.RuntimeException: com.ibm.xsp.FacesExceptionEx: javax.faces.FacesException: java.lang.InstantiationException: org.openntf.xsp.starter.renderkit.AbstractHtmlTagRenderer
	at com.ibm.designer.runtime.domino.adapter.ComponentModule.initModule(ComponentModule.java:461)
	at com.ibm.domino.xsp.module.nsf.NSFComponentModule.initModule(NSFComponentModule.java:498)
	at com.ibm.domino.xsp.module.nsf.NSFService.createNSFModule(NSFService.java:752)
	at com.ibm.domino.xsp.module.nsf.NSFService.loadModule(NSFService.java:735)
	at com.ibm.domino.xsp.module.nsf.NSFService.doServiceInternal(NSFService.java:588)
	at com.ibm.domino.xsp.module.nsf.NSFService.doService(NSFService.java:482)
	at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.doService(LCDEnvironment.java:350)
	at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.service(LCDEnvironment.java:306)
	at com.ibm.domino.xsp.bridge.http.engine.XspCmdManager.service(XspCmdManager.j</values>
<values>ava:272)
Caused by: com.ibm.xsp.FacesExceptionEx: javax.faces.FacesException: java.lang.InstantiationException: org.openntf.xsp.starter.renderkit.AbstractHtmlTagRenderer
	at com.ibm.xsp.config.CLBootStrap.initContext(CLBootStrap.java:89)
	at com.ibm.xsp.config.BootStrap.init(BootStrap.java:82)
	at com.ibm.xsp.config.ConfigureCoreListener.contextInitialized(ConfigureCoreListener.java:39)
	at com.ibm.designer.runtime.domino.adapter.ComponentModule.initModule(ComponentModule.java:453)
	... 8 more
Caused by: javax.faces.FacesException: java.lang.InstantiationException: org.openntf.xsp.starter.renderkit.AbstractHtmlTagRenderer
	at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:417)
	at com.ibm.xsp.config.CLBootStrap.initContext(CLBootStrap.java:81)
	... 11 more
Caused by: java.lang.InstantiationException: org.openntf.xsp.starter.renderkit.AbstractHtmlTagRenderer
	at java.lang.J9VMInternals.newInstan</values>
<values>ceImpl(Native Method)
	at java.lang.Class.newInstance(Class.java:1549)
	at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:926)
	at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:965)
	at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:489)
	at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:410)
	... 12 more
</values>
</extendedDataElements>
java.lang.RuntimeException:com.ibm.xsp.FacesExceptionEx:javax.faces.FacesException:java.lang.InstantiationException:org.openntf.xsp.starter.renderkit.AbstractHtmlTagRenderer
;在com.ibm.designer.runtime.domino.adapter.ComponentModule.initModule(ComponentModule.java:461)和#xA ;在com.ibm.domino.xsp.module.nsf.NSFComponentModule.initModule(NSFComponentModule.java:498)和#xA ;在com.ibm.domino.xsp.module.nsf.NSFService.createNSFModule(NSFService.java:752)和#xA ;在com.ibm.domino.xsp.module.nsf.NSFService.loadModule(NSFService.java:735)和#xA ;在com.ibm.domino.xsp.module.nsf.NSFService.doServiceInternal(NSFService.java:588)和#xA ;在com.ibm.domino.xsp.module.nsf.NSFService.doService(NSFService.java:482)和#xA ;在com.ibm.designer.runtime.domino.adapter.LCDEnvironment.doService(LCDEnvironment.java:350)和#xA ;在com.ibm.designer.runtime.domino.adapter.LCDEnvironment.service(LCDEnvironment.java:306)和#xA ;位于com.ibm.domino.xsp.bridge.http.engine.XspCmdManager.service(XspCmdManager.j
ava:272)和#xA;原因:com.ibm.xsp.FacesExceptionEx:javax.faces.FacesException:java.lang.InstanceException:org.openntf.xsp.starter.renderkit.AbstractHtmlTagRenderer
;在com.ibm.xsp.config.CLBootStrap.initContext(CLBootStrap.java:89)和#xA ;在com.ibm.xsp.config.BootStrap.init(BootStrap.java:82)和#xA ;com.ibm.xsp.config.ConfigureCoreListener.contextInitialized(ConfigureCoreListener.java:39)和#xA ;在com.ibm.designer.runtime.domino.adapter.ComponentModule.initModule(ComponentModule.java:453)和#xA ;。。。8个以上
;原因:javax.faces.FacesException:java.lang.InstanceException:org.openntf.xsp.starter.renderkit.AbstractHtmlTagRenderer
;com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:417)和#xA ;在com.ibm.xsp.config.CLBootStrap.initContext(CLBootStrap.java:81)和#xA ;。。。还有11个
;原因:java.lang.InstanceException:org.openntf.xsp.starter.renderkit.AbstractHtmlTagRenderer
;位于java.lang.J9VMInternals.newInstan
ceImpl(本地方法)和#xA ;在java.lang.Class.newInstance(Class.java:1549)和#xA ;在com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:926)和#xA ;在com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:965)和#xA ;在com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:489)和#xA ;com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:410)和#xA ;。。。还有12个
;
org.openntf.xsp.starter.renderkit.AbstractHtmlTagRenderer的初学者工具包中提供了一个组件。尝试创建该组件时遇到错误。它不是一个设计用于特定方式的组件,它实际上是为了显示需要为组件创建什么-org.openntf.xsp.starter.AbstractHtmlTag是组件,META-INF中的html.xsp-config定义了Domino Designer可用的属性,html faces config将组件添加到服务器,并定义用于组件的Java类和用于呈现程序的Java类(以显示html)。org.openntf.xsp.starter.renderkit.AbstractHtmlTagRenderer负责将内容打印到浏览器
我没有像现在这样使用初学者工具包,但我确实使用它作为我在ICON UK会议的基础我现在使用bootstrap4xpages库作为osgi插件的起点。它更容易理解和操作。我仍然在为SSJS绞尽脑汁,但除此之外,一切都很好。是的,添加新的SSJS函数是令人费解的。有一些常量映射到顶部的整数。构造函数调用addFunction()将该常量映射到@Function名称-我不记得第三个参数是什么,它是SSJS返回值类型还是参数类型。然后,NotesFunction.call()有一个switch语句,根据常量的整数映射到相关的Java函数。然后还需要Java方法来编写代码。Nathan T.Freeman使OpenNTF Domino API的整个代码更加自动化,自动添加所选类的所有方法。很抱歉,您的级别对我来说太高了。我一个字也不懂。你能推荐一本好的文档/书吗?我忘了问:我可以把视图也放到插件中吗?