2

Apparently I need wls-api.jar to compile the following:

import weblogic.security.principal.WLSUserImpl;

I've downloaded and extracted wls1213_dev.zip and added weblogic-classes.jar, but the WLSUserImpl class seems to be elsewhere.

Where can I find wls-api.jar (or the right jar file)?

udog
  • 1,490
  • 2
  • 17
  • 30

2 Answers2

1

Sorry to ask you these basic questions first but, did you look at this?

Which JAR contains the weblogic.servlet.security.ServletAuthentication class?

  • Did you also check the classpath to your server libs (and checked if provided)?
  • If you are using Maven, do you have the following

            <dependency>
                <groupId>weblogic</groupId>
                <artifactId>wls-api</artifactId>
                <version>${weblogic.version}</version>
                <scope>provided</scope>
            </dependency>
    

Ref : Using maven as build tool for Weblogic 10.3

I don't mean to offend you by underlining these simple checks first but that would be the first things I would have done. Let me know. Thx

Community
  • 1
  • 1
Apokai
  • 249
  • 2
  • 9
1

According to Oracle docs (https://docs.oracle.com/middleware/1212/wls/WLPRG/overview.htm#WLPRG134):

The wls-api.jar file is located in the wlserver/server/lib directory of your WebLogic Server distribution

Leandro Carracedo
  • 7,233
  • 2
  • 44
  • 50