2 Replies Latest reply on Jan 22, 2014 7:27 AM by Roland Tiefenbrunner

    Deploying quickstart picketlink-authenication-form leads to InstantiationException

    Roland Tiefenbrunner Newbie

      Hey guys ,

       

      Context:

      quickstarter: picketlink-authentication-form

      Glassfish 3.1.2.2.

      java.ee.bom version 2.5.2. and above

       

      During deployment the following exception occurred (needless to say that picketline is not working properly afterwards):

      The class [org.picketlink.authentication.web.AuthenticationFilter] is annotated with an invalid scope

       

       

      Any suggestions would be really appreciated!

       

       

       

      #|2014-01-16T15:55:33.735+0100|SEVERE|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=47;_ThreadName=Thread-2;|WebModule[/picketlink-authentication-form]PWC1270: Exception starting filter PicketLink Authentication Filter

      java.lang.InstantiationException

          at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:124)

          at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4685)

          at org.apache.catalina.core.StandardContext.start(StandardContext.java:5377)

          at com.sun.enterprise.web.WebModule.start(WebModule.java:498)

          at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)

          at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)

          at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733)

          at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2019)

          at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1669)

          at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)

          at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)

          at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)

          at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301)

          at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)

          at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)

          at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)

          at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)

          at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)

          at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)

          at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)

          at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)

          at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)

          at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)

          at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)

          at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)

          at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)

          at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)

          at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)

          at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)

          at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)

          at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)

          at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)

          at com.sun.grizzly.ContextTask.run(ContextTask.java:71)

          at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)

          at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)

          at java.lang.Thread.run(Thread.java:722)

      Caused by: java.lang.IllegalArgumentException: WEB0359: The class [org.picketlink.authentication.web.AuthenticationFilter] is annotated with an invalid scope

          at com.sun.enterprise.web.WebContainer.validateJSR299Scope(WebContainer.java:3412)

          at com.sun.enterprise.web.WebContainer.createFilterInstance(WebContainer.java:741)

          at com.sun.enterprise.web.WebModule.createFilterInstance(WebModule.java:1972)

          at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:253)

          at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:120)

          ... 41 more

      |#]