on 05-13-2009 12:51 PM
Hi
Is there anyone who has got experience in creating an own xslt helper?
I created an own xslt helper (just took the standard XsltHelperRuntimeLight and uploaded it under an own package).
I did the mapping in config. (System admin - System Config - KM - CM - WPC - editor - XSLT Helpers)
Now I'm getting the following error when I execute. Did I forget something?
Cannot render container :
com.sap.engine.lib.xml.util.NestedException:
Could not load class: com.company.nw.wpc.km.service.editor.xslt.XsltHelperRuntimeLight required for extension library.
-> java.lang.ClassNotFoundException: com.company.nw.wpc.km.service.editor.xslt.XsltHelperRuntimeLight
------------------------- Loader Info -------------------------
ClassLoader name: [com.sapportals.portal.prt.util.ApplicationClassLoader@18d88c3]
Parent loader name: [com.sapportals.portal.prt.util.ApplicationClassLoader@10e631f]
References: not registered! Resources: D:\usr\sap\NWD\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.nw.wpc.core\private\lib\com.sap.nw.wpc.core_core.jar
---------------------------------------------------------------
It seems my class isn't loaded..
I used this code to import my class in the xsl file
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:test_wpc="com.company.nw.wpc.km.service.editor.xslt.XsltHelperRuntimeLight">
And this one to use it
<span class="wpcnew"><xsl:value-of disable-output-escaping="yes" select="test_wpc:getString('xsl.xmsg.new', string(document/@locale))"/></span>
When I use a standard class in stead of mine, it works perfectly. So I assume it's a class mapping issue or my class isn't loaded at all.
Thanks for any help, thoughts or information about this topic!
Christof
Have you been able to solve this problem? Since i am too getting a ClassNotFound error for a custom class i made. I have put this class in a PAR file and uploaded it to the portal. The PAR project does not contain any other implementation or changes other than created when i create a Portal Project in NWDS...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It seems there was still something in cache.. Which seemed to make it work, but it wasn't working at all!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello
I found finally the solution..
http://help.sap.com/saphelp_nw04s/helpdata/en/26/227402890aa140ac967fe6000d93a1/frameset.htm
<xsl:script implements-prefix="chh" language="java" src="java:com.company.nw.wpc.km.service.editor.xslt.XsltHelperRuntimeLight"/>
Christof
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.