0

This awful project I know have to put my ands on makes wide (and obnoxious) use of static methods coming from other modules which I now jarred-out and declared as dependency of the (now lightweight) webapp.

now glassfish seems to have a problem with that.

it's literally a java.lang.NoClassDefFoundError of a certain class that is included in WEB-INF/lib

EJB Container initialization error
java.lang.NoClassDefFoundError: Could not initialize class yyy.ohyeah.commons.util.Logger

(i'll try to reduce and anonymize the class and put it as a comment)

Here's where the issues arise:

import yyy.ohyeah.commons.util.Logger;

@Path("achievement")
@Produces("application/json")
@Stateless
public class MyResource {

    private final static Log log = Logger.getLogger(MyResource.class.getName());
4

1 回答 1

0

您需要包含所有依赖项 jar。在这种情况下,您似乎需要 apache commons logging jar。

于 2012-06-29T19:13:33.217 回答