Xpages 使用XSP初学者工具包时出现的问题

Xpages 使用XSP初学者工具包时出现的问题,xpages,Xpages,我按照说明从openntf安装XSP初学者工具包。视频中提到的一切我都能做到,但我无法激活它 当我在我的应用程序中激活插件并尝试打开它时,我得到一个错误500。有人知道吗 服务器控制台告诉我: 日志文件包含: <extendedDataElements name="CommonBaseEventLogRecord:Exception" type="string"> <values>java.lang.RuntimeException: com.ibm.xsp.F

我按照说明从openntf安装XSP初学者工具包。视频中提到的一切我都能做到,但我无法激活它

当我在我的应用程序中激活插件并尝试打开它时,我得到一个错误500。有人知道吗

服务器控制台告诉我:

日志文件包含:

<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&#xA;&#x9;at com.ibm.designer.runtime.domino.adapter.ComponentModule.initModule(ComponentModule.java:461)&#xA;&#x9;at com.ibm.domino.xsp.module.nsf.NSFComponentModule.initModule(NSFComponentModule.java:498)&#xA;&#x9;at com.ibm.domino.xsp.module.nsf.NSFService.createNSFModule(NSFService.java:752)&#xA;&#x9;at com.ibm.domino.xsp.module.nsf.NSFService.loadModule(NSFService.java:735)&#xA;&#x9;at com.ibm.domino.xsp.module.nsf.NSFService.doServiceInternal(NSFService.java:588)&#xA;&#x9;at com.ibm.domino.xsp.module.nsf.NSFService.doService(NSFService.java:482)&#xA;&#x9;at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.doService(LCDEnvironment.java:350)&#xA;&#x9;at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.service(LCDEnvironment.java:306)&#xA;&#x9;at com.ibm.domino.xsp.bridge.http.engine.XspCmdManager.service(XspCmdManager.j</values>
    <values>ava:272)&#xA;Caused by: com.ibm.xsp.FacesExceptionEx: javax.faces.FacesException: java.lang.InstantiationException: org.openntf.xsp.starter.renderkit.AbstractHtmlTagRenderer&#xA;&#x9;at com.ibm.xsp.config.CLBootStrap.initContext(CLBootStrap.java:89)&#xA;&#x9;at com.ibm.xsp.config.BootStrap.init(BootStrap.java:82)&#xA;&#x9;at com.ibm.xsp.config.ConfigureCoreListener.contextInitialized(ConfigureCoreListener.java:39)&#xA;&#x9;at com.ibm.designer.runtime.domino.adapter.ComponentModule.initModule(ComponentModule.java:453)&#xA;&#x9;... 8 more&#xA;Caused by: javax.faces.FacesException: java.lang.InstantiationException: org.openntf.xsp.starter.renderkit.AbstractHtmlTagRenderer&#xA;&#x9;at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:417)&#xA;&#x9;at com.ibm.xsp.config.CLBootStrap.initContext(CLBootStrap.java:81)&#xA;&#x9;... 11 more&#xA;Caused by: java.lang.InstantiationException: org.openntf.xsp.starter.renderkit.AbstractHtmlTagRenderer&#xA;&#x9;at java.lang.J9VMInternals.newInstan</values>
    <values>ceImpl(Native Method)&#xA;&#x9;at java.lang.Class.newInstance(Class.java:1549)&#xA;&#x9;at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:926)&#xA;&#x9;at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:965)&#xA;&#x9;at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:489)&#xA;&#x9;at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:410)&#xA;&#x9;... 12 more&#xA;</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的整个代码更加自动化,自动添加所选类的所有方法。很抱歉,您的级别对我来说太高了。我一个字也不懂。你能推荐一本好的文档/书吗?我忘了问:我可以把视图也放到插件中吗?