cancel
Showing results for 
Search instead for 
Did you mean: 

JSP Import Error

Former Member
0 Kudos

I'm very new to Netweaver, java and JSP, so please forgive me for what is hopefully a very simple question.

I've created a simple JSP page that needs 2 external JAR files to run.

<%@ page import="org.apache.commons.codec.binary.Base64" %>

<%@ page import="org.apache.commons.ssl.PKCS8Key" %>

I've included these 2 JARS in my class path of my Web Project:

commons-codec-1.3.jar

not-yet-commons-ssl-0.3.10.jar

They get included in the WAR file under web-inf-->classes and the EAR file has the WAR in it when I deploy it. However, I'm getting a syntax error when I run the JSP:

package org.apache.commons.codec.binary does not exist

import org.apache.commons.codec.binary.Base64;

package org.apache.commons.ssl does not exist

import org.apache.commons.ssl.PKCS8Key;

Can someone please explain to me how I'm supposed to include these JAR files correctly?

Thanks,

Jeff

Accepted Solutions (1)

Accepted Solutions (1)

former_member698570
Active Participant
0 Kudos

Hi,

the JAR-Files should be located under WEB-INF/lib.

If the lib directory does not exist create it manually using the resource perspective of NWDS. Then copy or better move the JAR Files to the location WEB-INF/lib. After that correct the JAVA Build Path so that the JARs are found in the new location.

If your imports work in NWDS you should be able to build WAR and EAR. Redeploy the EAR and your JSPs should work without errors

Cheers

Answers (0)