File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Deployment Exception    Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Deployment Exception    " Watch "Deployment Exception    " New topic
Author

Deployment Exception

Lee Mark
Ranch Hand

Joined: Mar 05, 2009
Posts: 46
Hello i have following exception while deploying my webapp (which uses rich faces).

Exception while deploying the app : java.io.IOException: org.xml.sax.SAXParseException: The content of element type "filter" must match "(icon?,filter-name,display-name?,description?,filter-class,init-param*)".


my web.xml is as follows


it is getting deployed in glassfishV3 prelude in rest all the app. server it is giving the mentioned exception(jetty,jboss,glassfishV2)

Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

(icon?,filter-name,display-name?,description?,filter-class,init-param*)


Could it be the fact that filter-name and display-name are transposed in your XML? Maybe if you reversed them the design-time compiler will stop barking?

-Cameron McKenzie
Lee Mark
Ranch Hand

Joined: Mar 05, 2009
Posts: 46






now
Error loading deployment descriptors for module [Application_war_1.0-SNAPSHOT] Line 45 Column 21 -- Deployment descriptor file WEB-INF/web.xml in archive [Application]. Element type "dispatcher" must be declared.
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:380)
at com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(ModuleDeployer.java:423)
at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:157)
at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:179)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:191)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223)
Caused by: org.xml.sax.SAXParseException: Element type "dispatcher" must be declared.
at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:304)
at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:226)
at com.sun.enterprise.deployment.archivist.Archivist.readStandardDeploymentDescriptor(Archivist.java:480)
at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:305)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:213)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:763)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:744)
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:349)
... 10 more
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deployment Exception
 
Similar Threads
NullPointerException in AutoScrollPhaseListener
Handling session timeout
Problem with RichFaces
Problem with RichFaces Calendar control
javax.faces.application.ViewExpiredException