Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Portal Runtime Error ?

I create a par file containing a JspDynPage component, I deploy it as an iview. But when I preview it , the following exception raise.

Portal Runtime Error

An exception occurred while processing a request for :

iView : N/A

Component Name : N/A

Error in parsing taglib 'tagLib' tag in web.xml or .tld file of the taglib library..

Exception id: 04:22_23/05/06_0007_3561350

See the details for the exception ID in the log file

here is my jsp code:

<%@ taglib uri="tagLib" prefix="hbj" %>

<hbj:content id="myContext" >

<hbj:page title="PageTitle">

<script src="epcfproxy.js" language="javascript">

function onWakeUp(eventObj)

{

alert("this is epcf");

}

// Define Handler for Eventing

function consumerHandler(event)

{

alert(event.dataObject);

}

//EPCM.subscribeEvent("urn:com.sap:alarmClock", "morningCall", onWakeUp);

EPCM.subscribeEvent("urn:com.sapportals.training.portal.EpcfProducer","ClickEvent", consumerHandler);

</script>

<hbj:form id="myFormId" >

</hbj:form>

</hbj:page>

</hbj:content>

and here is my class code:

package com.test;

import com.sapportals.htmlb.*;

import com.sapportals.htmlb.enum.*;

import com.sapportals.htmlb.event.*;

import com.sapportals.htmlb.page.*;

import com.sapportals.portal.htmlb.page.*;

import com.sapportals.portal.prt.component.*;

public class reciever extends PageProcessorComponent {

public DynPage getPage(){

return new recieverDynPage();

}

public static class recieverDynPage extends JSPDynPage{

public void doInitialization(){

}

public void doProcessAfterInput() throws PageException {

}

public void doProcessBeforeOutput() throws PageException {

this.setJspName("receiverJsp.jsp");

}

}

}

Former Member
Former Member replied

Hi Robin,

Navigate to <b>\dist\PORTAL-INF\</b>portalapp.xml in your project in NWDS, you will find portalapp.xml

Check whether it looks like this,

<?xml version="1.0" encoding="utf-8"?>
<application>
  <application-config>
    <property name="SharingReference" value="com.sap.portal.htmlb"/>
  </application-config>
  <components>
    <component name="reciever">
      <component-config>
        <property name="ClassName" value="com.test.reciever"/>
      </component-config>
      <component-profile>
        <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
      </component-profile>
    </component>
  </components>
  <services/>
</application>

Else copy this and paste it there...

Regs,

jaga

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question