Skip to main content

help me ! jsf2 + shiro1.2.1 + glassfish3.1.2 deploy exception

5 replies [Last post]
zavens00
Offline
Joined: 2012-09-11
Points: 0

Initializing...
未能在GlassFish Server 3.1.2上执行deploy?DEFAULT=E:\netbeans\mis1.5\mis-war\build\web&name=mis-war&contextroot=/mis-war&force=true
部署期间出": Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: javax.servlet.ServletException: com.sun.enterprise.container.common.spi.util.InjectionException: 为类创建托管对象时出": class org.apache.shiro.web.env.EnvironmentLoaderListener。有关详细信息, 请参阅 server.log。

when i delete following configuation in the web.xml ,the app can run normally.

    <listener>
        <listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class>
    </listener>

I'm bargaining on your help to solve this exception.
Thanks!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
DongbinNie
Offline
Joined: 2012-03-04
Points: 0

Hi zavens00,
pls. upload the web.xml and server.log.

zavens00
Offline
Joined: 2012-09-11
Points: 0

the web.xml and server.log

zavens00
Offline
Joined: 2012-09-11
Points: 0

My English is not good, please forgive.
Waiting for reply

zavens00
Offline
Joined: 2012-09-11
Points: 0

Now it seems to do, i import the packages :
commons-beanutils-1.8.0.jar
commons-logging-1.1.1.jar
commons-logging-api-1.1.jar
slf4j-api-1.6.6.jar

But, before I tried for a long time and I do it also.
Thank you DongbinNie.

Now another problem(warn):

警': PWC4011: Unable to set request character encoding to UTF-8 from context /mis-war, because request parameters have already been read, or ServletRequest.getReader() has already been called

How to solve?

DongbinNie
Offline
Joined: 2012-03-04
Points: 0

according to the warning, you should not invoke ServletRequest.setCharacterEncoding() after called ServletRequest.getReader() method.