I have been working this issue for a week. Most recently I did a fresh glassfish 9.1_02 install, and deployed the nightly build of opensso from 04/05/2008. I obtained the nightly build of the samples from WSS Agent, and attempted to deploy the StockQuoteClient. On the command window side I get this.
C:\openssosamples0405\samples\glassfish\StockQuoteClient>ant
Buildfile: build.xml
all:
-pre-compile:
[exec] parsing WSDL...
[exec]
[exec]
[exec] generating code...
[exec]
[exec] com\samples\ObjectFactory.java
[exec] com\samples\PriceType.java
[exec] com\samples\QuoteRequestType.java
[exec] com\samples\QuoteResponseType.java
[exec] com\samples\StockQuotePortType.java
[exec] com\samples\StockService.java
[exec] com\samples\package-info.java
[exec]
[exec] compiling code...
[exec]
[exec] javac -d C:\openssosamples0405\samples\glassfish\StockQuoteClient\build\classes -classpath C:\Program Files\Java\jdk1.6.0_11\lib
\tools.jar;C:\GlassFishESB\glassfish\lib\appserv-jstl.jar;C:\GlassFishESB\glassfish\lib\javaee.jar;C:\GlassFishESB\glassfish\lib\webservices
-rt.jar;C:\GlassFishESB\glassfish\lib\webservices-tools.jar;C:\GlassFishESB\glassfish\lib\commons-logging.jar;C:\GlassFishESB\glassfish\lib\
mail.jar;C:\GlassFishESB\glassfish\lib\activation.jar; -Xbootclasspath/p:C:\GlassFishESB\glassfish\lib\endorsed\webservices-api.jar;C:\Glass
FishESB\glassfish\lib\endorsed\webservices-api.jar C:\openssosamples0405\samples\glassfish\StockQuoteClient\build\classes\com\samples\Object
Factory.java C:\openssosamples0405\samples\glassfish\StockQuoteClient\build\classes\com\samples\PriceType.java C:\openssosamples0405\samples
\glassfish\StockQuoteClient\build\classes\com\samples\QuoteRequestType.java C:\openssosamples0405\samples\glassfish\StockQuoteClient\build\c
lasses\com\samples\QuoteResponseType.java C:\openssosamples0405\samples\glassfish\StockQuoteClient\build\classes\com\samples\StockQuotePortT
ype.java C:\openssosamples0405\samples\glassfish\StockQuoteClient\build\classes\com\samples\StockService.java C:\openssosamples0405\samples\
glassfish\StockQuoteClient\build\classes\com\samples\package-info.java
compile:
war:
[copy] Copying 14 files to C:\openssosamples0405\samples\glassfish\StockQuoteClient\web\WEB-INF\classes
[war] Building war: C:\openssosamples0405\samples\glassfish\StockQuoteClient\dist\StockQuoteClient.war
deploy:
[exec] CLI171 Command deploy failed : Deploying application in domain failed; Error loading deployment descriptors for module [StockQuo
teClient] -- null
[exec]
BUILD SUCCESSFUL
Total time: 3 seconds
C:\openssosamples0405\samples\glassfish\StockQuoteClient>
Note in the deploy command, it fails.
in the glassfish log I have this
ADM1006:Uploading the file to:[C:\Users\Vincent Lewis\AppData\Local\Temp\s1astempdomain1server756411963\StockQuoteClient.war]
Exception occured in J2EEC Phasejava.lang.RuntimeException
com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [StockQuoteClient] -- null
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:390)
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: java.lang.RuntimeException
at com.sun.enterprise.deployment.runtime.common.PrincipalNameDescriptor.getPrincipal(PrincipalNameDescriptor.java:85)
at com.sun.enterprise.deployment.node.runtime.web.WebBundleRuntimeNode.addDescriptor(WebBundleRuntimeNode.java:284)
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:453)
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.openArchive(ApplicationArchivist.java:786)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:744)
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:349)
... 10 more
Caused by: java.lang.ClassNotFoundException: com.sun.identity.wss.security.SecurityPrincipal
at com.sun.enterprise.loader.EJBClassLoader.findClassData(EJBClassLoader.java:741)
at com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:631)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
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
I have tried various ways of getting the com.sun.identity.wss.security.SecurityPrincipal into the classpath, but everything I try breaks something. I would really appreciate a hand with this, I have seen similar issues but none look resolved. Seems this simple deployment should work "out of the box".
Thanks in advance.
[Message sent by forum member 'vlewis' (vlewis)]
http://forums.java.net/jive/thread.jspa?messageID=340966