Skip to main content

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

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
5 replies [Last post]
zavens00
Offline
Joined: 2012-09-11

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

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

zavens00
Offline
Joined: 2012-09-11

the web.xml and server.log

zavens00
Offline
Joined: 2012-09-11

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

zavens00
Offline
Joined: 2012-09-11

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

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