users@glassfish.java.net

Another deployment exception. PrincipalNameDescriptor.getPrincipal(Princ...

From: <glassfish_at_javadesktop.org>
Date: Mon, 14 Dec 2009 14:06:15 PST

Hi all. TIA for any help. I was attempting to figure out why one of my WS modules was unauthorized to hit an ejb, in my test Enterprise Application. Then I came across this exception. Sounds like something to do with security realm principals. Ive checked and adjusted them to no avail. Only other posts Ive found, one not helpful, and the other to remove the empty string for the class that is associated with that principal. This EA had been working fine without any classes associated with those principals. If anyone can shed some light it would be great. Thanks


Exception occured in J2EEC Phasejava.lang.RuntimeException
com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [MyEnterpriseApp] -- null
        at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:406)
        at com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:359)
        at com.sun.enterprise.deployment.backend.AppDeployer.explodeArchive(AppDeployer.java:303)
        at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:207)
        at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
        at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
        at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
        at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
        at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
Caused by: java.lang.RuntimeException
        at com.sun.enterprise.deployment.runtime.common.PrincipalNameDescriptor.getPrincipal(PrincipalNameDescriptor.java:85)
        at com.sun.enterprise.deployment.node.runtime.application.ApplicationRuntimeNode.addDescriptor(ApplicationRuntimeNode.java:200)
        at com.sun.enterprise.deployment.node.DeploymentDescriptorNode.addNodeDescriptor(DeploymentDescriptorNode.java:195)
        at com.sun.enterprise.deployment.node.DeploymentDescriptorNode.endElement(DeploymentDescriptorNode.java:342)
        at com.sun.enterprise.deployment.node.SaxParserHandler.endElement(SaxParserHandler.java:474)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
        at com.sun.org.apache.xerces.internal.impl.dtd.XMLNSDTDValidator.endNamespaceScope(XMLNSDTDValidator.java:263)
        at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:2028)
        at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:901)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1774)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2930)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
        at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:298)
        at com.sun.enterprise.deployment.archivist.Archivist.readRuntimeDeploymentDescriptor(Archivist.java:527)
        at com.sun.enterprise.deployment.archivist.ApplicationArchivist.readRuntimeDeploymentDescriptor(ApplicationArchivist.java:455)
        at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:358)
        ... 11 more
Caused by: java.lang.ClassNotFoundException:
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at com.sun.enterprise.deployment.runtime.common.PrincipalNameDescriptor.getPrincipal(PrincipalNameDescriptor.java:78)
        ... 34 more
[Message sent by forum member 'javajoe83' ]

http://forums.java.net/jive/thread.jspa?messageID=376506