cancel
Showing results for 
Search instead for 
Did you mean: 

Developing JSF-Application using LSF-Components

former_member329581
Participant
0 Kudos

Hello,

im trying to develop an JSF-Application with NWDS. I followed this tutorials http://scn.sap.com/docs/DOC-16271 and http://scn.sap.com/docs/DOC-16272

it works well, but if I try to use the LSF-Components it crashed. Im added

<%@ taglib prefix="sap-f" uri="http://java.sap.com/jsf/core"%>

<%@ taglib prefix="sap-h" uri="http://java.sap.com/jsf/html"%>

and now I get an Expection when starting the Application

Caused by: com.sap.engine.services.servlets_jsp.jspparser_api.exception.JspParseException: Error in parsing the taglib tag in the JSP page. Cannot resolve URI: [http://java.sap.com/jsf/core]. Possible reason - validation failed. Check if your TLD is valid against its scheme.

Any Hints what I doing wrong und how to it working?

Regards Kay

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

I've found solution here Using the SAP Component Library for JSF - SAP NetWeaver Composition Environment Library - SAP Librar....

Put in your ear development component in file ""META-INF/application-j2ee-engine.xml"" that code:

<application-j2ee-engine xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xsi:noNamespaceSchemaLocation="application-j2ee-engine.xsd">

    <reference reference-type="weak">

    <reference-target target-type="library" provider-name="sap.com">

       tc~ui~faces

    </reference-target>

    </reference>

  </application-j2ee-engine>


And everything works!

Former Member
0 Kudos

For NDWI, you should make SWC dependency into FRAMEWORK and use public part tc/ui/faces.

Former Member
0 Kudos

Hi Kay,

I've followed the exact path as yourself and ended up with the same deployment exception.

Were you able to fix this issue?

Regards,

Gökhan

former_member329581
Participant
0 Kudos

Hi Gokhan,

unfortunately I've not found any solutions to this problem

Regards Kay

Former Member
0 Kudos

Hi Kay,

I'm using <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%> instead of the SAP URI and interestingly it works! I've tested on NW AS Java 7.3 / 7.31 and both seems fine.

Kind Regards,

Gökhan