It looks like you are missing slf4j-api.jar  Add that, and this error
should go away.


On Sun, Jul 27, 2014 at 8:31 PM, KonradZuse <[email protected]>
wrote:

> The error is
>
> [2014-07-27T21:07:46.123-0400] [glassfish 4.0] [SEVERE] [NCLS-CORE-00026]
> [javax.enterprise.system.core] [tid: _ThreadID=36
> _ThreadName=admin-listener(3)] [timeMillis: 1406509666123] [levelValue:
> 1000] [[
>   Exception during lifecycle processing
> java.lang.Exception: java.lang.IllegalStateException:
> ContainerBase.addChild: start: org.apache.catalina.LifecycleException:
> java.lang.IllegalArgumentException: javax.servlet.ServletException:
> java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
>         at
> com.sun.enterprise.web.WebApplication.start(WebApplication.java:168)
>         at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
>         at
> org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291)
>         at
> org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352)
>         at
>
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:497)
>         at
>
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
>         at
>
> org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
>         at
>
> com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:527)
>         at
>
> com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at javax.security.auth.Subject.doAs(Subject.java:360)
>         at
>
> com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)
>         at
>
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)
>         at
>
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)
>         at
>
> com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
>         at
>
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1762)
>         at
>
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)
>         at
> com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)
>         at
>
> com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)
>         at
>
> org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:297)
>         at
>
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)
>         at
>
> org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
>         at
>
> org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
>         at
>
> org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
>         at
>
> org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
>         at
>
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
>         at
>
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
>         at
>
> org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
>         at
>
> org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
>         at
> org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
>         at
>
> org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
>         at
>
> org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
>         at
>
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
>         at
>
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
>         at
>
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
>         at
>
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
>         at
>
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
>         at java.lang.Thread.run(Thread.java:744)
> ]]
> [2014-07-27T21:07:46.124-0400] [glassfish 4.0] [SEVERE] []
> [javax.enterprise.system.core] [tid: _ThreadID=36
> _ThreadName=admin-listener(3)]
>  [timeMillis: 1406509666124] [levelValue: 1000]
> [[  Exception while loading the app]]
>
> [2014-07-27T21:07:46.124-0400] [glassfish 4.0] [SEVERE] [AS-WEB-GLUE-00192]
> [javax.enterprise.web] [tid: _ThreadID=36 _ThreadName=admin-listener(3)]
> [timeMillis: 1406509666124] [levelValue: 1000]
> [[Undeployment failed for context /WebViewer]]
>
> [2014-07-27T21:07:46.144-0400] [glassfish 4.0] [SEVERE] []
> [javax.enterprise.system.core]
>  [tid: _ThreadID=36 _ThreadName=admin-listener(3)] [timeMillis:
> 1406509666144] [levelValue: 1000]
>  [[ Exception while loading the app : java.lang.IllegalStateException:
> ContainerBase.addChild: start: org.apache.catalina.LifecycleException:
> java.lang.IllegalArgumentException: javax.servlet.ServletException:
> java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory]]
>
>
> I do see in my runtime dependensies in the" apache webapp tutorial" there
> are the following
>
> jcl-over-slf4j
> logback-classic
> stormpath ------ I pknow I don't need this
> commons-codec
> httlp-client
> httlp-core
> jackson-core-asl
> jackson-mapper-asl
> logback-core
> stormpath-sdkhttp
>
> So I;'m curious if I should have any of these in my appkication?
>
> All I have is the downloaded Shiro-core and Shiro-web both ver 1.2.3
>
> I also do notice there is a logback.xml file in the apache tutorial, which
> I'm not sure if I need or not, but it seems like I am missing the first one
> jcl-over-slf4j, since it says "java.lang.NoClassDefFoundError:
> org/slf4j/LoggerFactory"
>
> I tried downloading the slf4j, but it didn't work, so Idk :(
>
>
>
> --
> View this message in context:
> http://shiro-user.582556.n2.nabble.com/Apache-Shiro-First-Use-in-NetBeans-tp7578762p7580107.html
> Sent from the Shiro User mailing list archive at Nabble.com.
>

Reply via email to