Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with Hello World app #16

Open
ufmemo opened this issue Oct 6, 2015 · 1 comment
Open

Help with Hello World app #16

ufmemo opened this issue Oct 6, 2015 · 1 comment

Comments

@ufmemo
Copy link

ufmemo commented Oct 6, 2015

We're in the process of evaluating lightweight Java web frameworks for Java & GAE. The Ninja framework documentation indicates this is a great fit. I have spent three full days trying to get a basic hello world styled app to run on GAE but haven't been able to get past this issue.

Uncaught exception from servlet
java.lang.ExceptionInInitializerError
at org.slf4j.LoggerFactory.reportMultipleBindingAmbiguity(LoggerFactory.java:259)
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:139)
at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:120)
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:331)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:283)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:304)
at ninja.utils.NinjaPropertiesImpl.(NinjaPropertiesImpl.java:40)
at ninja.servlet.NinjaServletListener.getInjector(NinjaServletListener.java:103)

I've tried to remove every reference to slf4j but no luck. Any help would be much appreciated. I've used the maven archetype for the GAE Blog application, created a basic GAE app and then imported all the Ninja dependencies, both yield the same frustrating results.

Thanks for the help in advance.

@raphaelbauer
Copy link
Contributor

Hey ufmemo,

the GAE is a bit of a diva sometimes. The latest GAE introduced a bug?
which results in the wrong dependencies being sent via the upload goal to
GAE.
The solution to your problem is to exclude the log stuff from the test
utils like so:

    <dependency>

        <groupId>org.ninjaframework</groupId>

        <artifactId>ninja-test-utilities</artifactId>

        <version>${ninja.version}</version>

        <scope>test</scope>

          <exclusions>

            <exclusion>

                <artifactId>logback-classic</artifactId>

                <groupId>ch.qos.logback</groupId>

            </exclusion>

        </exclusions>

    </dependency>

Cheers,

Raphael

On Tue, Oct 6, 2015 at 6:44 AM, ufmemo [email protected] wrote:

We're in the process of evaluating lightweight Java web frameworks for
Java & GAE. The Ninja framework documentation indicates this is a great
fit. I have spent three full days trying to get a basic hello world styled
app to run on GAE but haven't been able to get past this issue.

Uncaught exception from servlet
java.lang.ExceptionInInitializerError
at
org.slf4j.LoggerFactory.reportMultipleBindingAmbiguity(LoggerFactory.java:259)
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:139)
at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:120)
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:331)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:283)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:304)
at ninja.utils.NinjaPropertiesImpl.(NinjaPropertiesImpl.java:40)
at
ninja.servlet.NinjaServletListener.getInjector(NinjaServletListener.java:103)

I've tried to remove every reference to slf4j but no luck. Any help would
be much appreciated. I've used the maven archetype for the GAE Blog
application, created a basic GAE app and then imported all the Ninja
dependencies, both yield the same frustrating results.

Thanks for the help in advance.


Reply to this email directly or view it on GitHub
#16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants