Duc Bui
Duc Bui

Reputation: 33

Searching for Weblogic class: MessageLoggerRegistryListener

Currently I'm working with EJB services running on Weblogic 12c Server. When I write a JUnit test to call EJB services, an error appears with:

java.lang.NoClassDefFoundError:
weblogic/i18n/logging/MessageLoggerRegistryListener

Anyone knows where is this class from? I googled it but got no result.

Upvotes: 1

Views: 1066

Answers (3)

user2090791
user2090791

Reputation: 1

Set WL_HOME in your environment variable correctly:

Variable name: WL_HOME

Variable value: your weblogic 12c installation path like: C:/Oracle/Middleware/Oracle_Home/wlserver/server

Upvotes: 0

hdost
hdost

Reputation: 873

Additionally if you are doing this in a maven project, and you're using the Oracle Maven repository, you can use

<dependency>
    <groupId>com.oracle.weblogic</groupId>
    <artifactId>wlclient</artifactId>
    <version>12.1.3-0-0</version>
    <scope>provided</scope>
</dependency>

Upvotes: 0

Brian Ochs
Brian Ochs

Reputation: 1119

This class can be found in the /wlserver/modules/features/weblogic.server.merged.jar and in the /wlserver/server/lib/wlclient.jar files.

Upvotes: 2

Related Questions