开发者

java .lang.IllegalArgumentException: PWC1430: Unable to add listener of type

How do you make sense of exceptions like this? It doesn't add up because the CatalogFacade does compile fine, and By the way, I do implement the classes they ask for. "Any of" seems like it's not needed to have all of them.

Exception while loading the app : java.lang.IllegalStateException:        ContainerBase.addChild: start: org.apache.catalina.LifecycleException:         java.lang.IllegalArgumentException: java.lang.IllegalArgumentException:

Which is Inside this surrounding error message, that seems a bit vague:

     [exec] remote failure: Error occurred during deployment: Exception while lo
ading the app : java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: java
.lang.IllegalArgumentException: PWC1430: Unable to add listener of type: com.sun
.javaee.blueprints.petstore.model.CatalogFacade, because it does not implement a
ny of the required ServletContextListener, ServletContextAttributeListener, Serv
letRequestListener, ServletRequestAttributeListener, HttpSessionListe开发者_运维知识库ner, or Htt
pSessionAttributeListener interfaces. Please see server.log for more details.
     [exec] Command deploy failed.

BUILD FAILED C:\LatestPS\trunk\ws\bp-project\app-server-ant.xml:379: exec returned: 1

I've been trying things all night . It's not clear. By the way, to the best of my knowledge..there's nothing significant at app-server-ant.xml:379..

Here's the Full log(I know it's quite big):

java .lang.IllegalArgumentException: PWC1430: Unable to add listener of type

Some more of files are here : http://www.adelazzam.com/so.html


The problem is there in the error-message. The <listener> you specify in your web.xml, CatalogFacade does not implement the required Listener interface, specified by the servlet specification.

Check the implementation of your CatalogFacade. Depending on what type of listener it should be (that is, what lifecycle events should it be notified of) it must implement one of ServletContextListener, ServletContextAttributeListener, ServletRequestListener, ServletRequestAttributeListener, HttpSessionListener, or HttpSessionAttributeListener.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜