Skip to Content
avatar image
Former Member

Problem build a Portal Application : package *** does not exist


we have a problem with Netweaver Development Studio 7.3 building an Potal Application. We checked out the  SAP Portal - Ajax Framework  from the svn. We use a local Development Infrastructure. We added the missing jar Files to the java build path via. "Add external libary" but everytime we try to build the project we getting this:

[javac] Compiling 1 source file to C:\Users\Dschenke\Desktop\eclipse\workspace.jdi\LocalDevelopment\t\70E4EA59739031D87940594D2F9C54DA\classes [javac] ERROR: C:\Users\Dschenke\Desktop\eclipse\workspace.jdi\LocalDevelopment\tds_ajax_framework\\ajax_mobile_framework\_comp\src.core\de\itc\tds\mobile\portal\ package javax.servlet.http does not exist [javac] ERROR: import javax.servlet.http.HttpSession; [javac] ERROR:                      ^ [javac] ERROR: C:\Users\Dschenke\Desktop\eclipse\workspace.jdi\LocalDevelopment\tds_ajax_framework\\ajax_mobile_framework\_comp\src.core\de\itc\tds\mobile\portal\ package com.sapconsulting.portal.utils.html does not exist [javac] ERROR: import com.sapconsulting.portal.utils.html.EnhancedPortalResponse; [javac] ERROR:                                       ^ [javac] ERROR: C:\Users\Dschenke\Desktop\eclipse\workspace.jdi\LocalDevelopment\tds_ajax_framework\\ajax_mobile_framework\_comp\src.core\de\itc\tds\mobile\portal\ package com.sapconsulting.portal.utils.html.elements does not exist [javac] ERROR: import com.sapconsulting.portal.utils.html.elements.HtmlFactory; [javac] ERROR:                                                ^ [javac] ERROR: C:\Users\Dschenke\Desktop\eclipse\workspace.jdi\LocalDevelopment\tds_ajax_framework\\ajax_mobile_framework\_comp\src.core\de\itc\tds\mobile\portal\ package com.sapportals.portal.prt.component does not exist [javac] ERROR: import com.sapportals.portal.prt.component.*; [javac] ERROR: ^ [javac] ERROR: C:\Users\Dschenke\Desktop\eclipse\workspace.jdi\LocalDevelopment\tds_ajax_framework\\ajax_mobile_framework\_comp\src.core\de\itc\tds\mobile\portal\ package com.sapportals.portal.prt.pom does not exist [javac] ERROR: import com.sapportals.portal.prt.pom.IEvent; [javac] ERROR:                                 ^ [javac] ERROR: C:\Users\Dschenke\Desktop\eclipse\workspace.jdi\LocalDevelopment\tds_ajax_framework\\ajax_mobile_framework\_comp\src.core\de\itc\tds\mobile\portal\ package com.sapportals.portal.prt.resource does not exist [javac] ERROR: import com.sapportals.portal.prt.resource.IResource; [javac] ERROR:                                      ^ [javac] ERROR: C:\Users\Dschenke\Desktop\eclipse\workspace.jdi\LocalDevelopment\tds_ajax_framework\\ajax_mobile_framework\_comp\src.core\de\itc\tds\mobile\portal\ cannot find symbol [javac] ERROR: symbol: class AbstractPortalComponent

The six Errors corrospond exactly to the six imports in the java File:

import javax.servlet.http.HttpSession;import com.sapconsulting.portal.utils.html.EnhancedPortalResponse;import com.sapconsulting.portal.utils.html.elements.HtmlFactory;import com.sapportals.portal.prt.component.*;import com.sapportals.portal.prt.pom.IEvent;import com.sapportals.portal.prt.resource.IResource;public class FrameworkPageComponent extends AbstractPortalComponent {..

We have not any Idea how to go on. We googeld 2 days on the problem and didn't found a solution.  In the Internet there is a lot stuff talking about adding external jar files as a development component, but as we are using Netweaver 7.3 I think this is outdated. Various Post and Tutorial as the Docu say that adding the jar file to the classpath is the correct way but it didn't work for us. If I comment the portalapp.xml out, it didn't affet the error log of the build process, but here is the portalapp.xml

<?xml version="1.0" encoding="UTF-8" standalone="no"?><application alias="affs">  <application-config>    <property name="Vendor" value=""/>    <property name="SecurityArea" value="NetWeaver.Portal"/>    <property name="PrivateSharingReference" value=","/>  </application-config>  <components>    <component name="layout">      <component-config>        <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>        <property name="ResourceBundleName" value="pagebuilder_nls"/>        <property name="SafetyLevel" value="no_safety"/>      </component-config>      <component-profile>        <property name="ComponentType" value="com.sapportals.portal.layout"/>        <property name="" value="platform">          <property name="inheritance" value="final"/>        </property>        <property name="LayoutTagLibrary" value="/SERVICE/"/>        <property name="" value="FrameworkPageLayout.jsp"/>        <property name="" value="container">          <property name="title" value="Content"/>          <property name="orientation" value="vertical"/>        </property>        <property name="" value="2"/>        <property name="AuthScheme" value="anonymous"/>        <property name="Title" value="AFP Layout"/>        <property name="EPCFLevel" value="1"/>        <property name="SupportedUserAgents" value="(*,*,*)">          <property name="validvalues" value="7/(*,*,*)"/>        </property>      </component-profile>    </component>    <component name="iview">      <component-config>        <property name="ClassName" value=""/>        <property name="SafetyLevel" value="no_safety"/>      </component-config>      <component-profile>        <property name="" value="false"/>        <property name="AuthScheme" value="anonymous"/>        <property name="EPCFLevel" value="1"/>        <property name="SupportedUserAgents" value="(*,*,*)">          <property name="validvalues" value="7/(*,*,*)"/>        </property>      </component-profile>    </component>  </components>  <services/></application>

So if u have any idea let us know.

Greetings David

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Aug 06, 2012 at 04:01 PM

    Its because of the Jar reference is missing at build time..when ever you deal with DCs, adding external libs will not work. You need to add the JARs as DC reference.

    SAP wuld have given standard DCs which contains these JARs.. Else you can put these JAR in a DC and create a public part..then add this public part to other DC reference.

    See my blog on how to reference external libs in DCs.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 29, 2012 at 02:07 AM

    Hi David,

    Did you get this resolved? I have the same problem with NWDS 7.3 SP7. I've got an external DC with my JSF libs. Added that to the web project. Classes resolve fine but when I build, it fails. At a loss...



    Add comment
    10|10000 characters needed characters exceeded