"ConfigureListener 的侦听器实例时出现异常"的问题

lyuewusheng 2009-02-25
我在使用netbeans编写jsf项目时,碰到了如下的问题,我用的是jdk6.0,netbeans6.5 ,glassfish v2,j2ee 5. 程序可以保证没有问题,因为即使一个非常简单的web程序都出现如下问题:
start
正在启动 Sun Java System Application Server 9.1_02 (build b04-fcs)...
MBeanServer 已启动: com.sun.enterprise.interceptor.DynamicInterceptor
CORE5098: AS 套接字服务初始化已完成。
CORE5076:使用 [Sun Microsystems Inc.] 的 [Java HotSpot(TM) Client VM, Version 1.6.0_03]
SEC1002:安全管理器处于关闭状态。
C:/Program Files/glassfish-v2ur2/domains/domain1/config/.__com_sun_appserv_pid
ADM0001:现在已启用 SunoneInterceptor
SEC1143: 正在装入策略提供程序 com.sun.enterprise.security.provider.PolicyWrapper。
WEB0114:在虚拟服务器 [server] 中禁用 SSO
WEB0114:在虚拟服务器 [__asadmin] 中禁用 SSO
ADM1079:AMX MBean 初始化已启动
ADM1504:这是标准 JMXConnectorServer 的 JMXServiceURL:[service:jmx:rmi:///jndi/rmi://172.17.77.106:8686/jmxrmi]。这是远程管理客户端使用标准 JMX 连接器进行连接的位置。
ADM1506:标准 JMX 连接器的状态:有效 = [true]
WEB0302: 正在启动 Sun-Java-System/Application-Server。
JBIFW0010: JBI framework ready to accept requests.
WEB0712:正在 8089 上启动 Sun-Java-System/Application-Server HTTP/1.1
WEB0712:正在 8181 上启动 Sun-Java-System/Application-Server HTTP/1.1
WEB0712:正在 4848 上启动 Sun-Java-System/Application-Server HTTP/1.1
WebModule[/TestApplication]PWC1275:将上下文初始化的事件发送到类 com.sun.faces.config.ConfigureListener 的侦听器实例时出现异常
java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
        at com.sun.faces.config.WebConfiguration.getServletContextName(WebConfiguration.java:208)
        at com.sun.faces.config.WebConfiguration.<init>(WebConfiguration.java:82)
        at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:139)
        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:228)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4523)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5184)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
        at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
        at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
        at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
PWC1306:前面的错误导致 context /TestApplication 启动失败
WebModule[/WebLogin]PWC1275:将上下文初始化的事件发送到类 com.sun.faces.config.ConfigureListener 的侦听器实例时出现异常
java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
        at com.sun.faces.config.WebConfiguration.getServletContextName(WebConfiguration.java:208)
        at com.sun.faces.config.WebConfiguration.<init>(WebConfiguration.java:82)
        at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:139)
        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:228)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4523)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5184)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
        at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
        at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
        at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
PWC1306:前面的错误导致 context /WebLogin 启动失败
WebModule[/button]PWC1275:将上下文初始化的事件发送到类 com.sun.faces.config.ConfigureListener 的侦听器实例时出现异常
java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
        at com.sun.faces.config.WebConfiguration.getServletContextName(WebConfiguration.java:208)
        at com.sun.faces.config.WebConfiguration.<init>(WebConfiguration.java:82)
        at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:139)
        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:228)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4523)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5184)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
        at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
        at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
        at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
PWC1306:前面的错误导致 context /button 启动失败
SMGT0007:已启用自管理规则服务
应用程序服务器启动完成。
lyuewusheng 2009-02-25
顺便说一下 ,我用的glassfish v2 是随netbeans6.5 一起安装的,
Clover.King 2009-04-23
我也有同样的问题
sujingmao 2009-10-28
我也遇到了这样的问题,请问解决了吗
ieanwfg201 2010-11-16
jar包问题?
Global site tag (gtag.js) - Google Analytics