users@glassfish.java.net

Securing a Web Application in NetBeans 6.5 tutorial - deployment problem

From: <glassfish_at_javadesktop.org>
Date: Tue, 19 Aug 2008 02:39:05 PDT

Folks I need some help (apart from therapy!).

I have had a go at the above tutorial but on attempting to deploy the application, I get ‘com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [WebApplicationSecurity] – null’

Has anybody else out there encountered this or have any useful tips? If so I would be really grateful if they could share their experience.

Relevant files attached.

The resulting server log shown below (with middle cut out for brevity):-
18-Aug-2008 13:01:21 com.sun.enterprise.admin.servermgmt.launch.ASLauncher BuildCommand
INFO:
C:/Program Files/Java/jdk1.6.0_05\bin\java
-Dcom.sun.aas.instanceRoot=C:/Program Files/glassfish-v2ur1/domains/domain1
-Dcom.sun.aas.ClassPathPrefix=
-Dcom.sun.aas.ClassPathSuffix=
-Dcom.sun.aas.ServerClassPath=
-Dcom.sun.aas.classloader.appserverChainJars.ee=
-Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,j2ee-svc.jar
-Dcom.sun.aas.classloader.excludesList=admin-cli.jar,appserv-upgrade.jar,sun-appserv-ant.jar
-Dcom.sun.aas.classloader.optionalOverrideableChain.ee=
-Dcom.sun.aas.classloader.optionalOverrideableChain=webservices-rt.jar,webservices-tools.jar
-Dcom.sun.aas.classloader.serverClassPath.ee=/lib/hadbjdbc4.jar,C:/Program Files/glassfish-v2ur1/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,/lib/dbstate.jar,/lib/hadbm.jar,/lib/hadbmgt.jar,C:/Program Files/glassfish-v2ur1/lib/SUNWmfwk/lib/mfwk_instrum_tk.jar
-Dcom.sun.aas.classloader.serverClassPath=C:/Program Files/glassfish-v2ur1/lib/install/applications/jmsra/imqjmsra.jar,C:/Program Files/glassfish-v2ur1/imq/lib/jaxm-api.jar,C:/Program Files/glassfish-v2ur1/imq/lib/fscontext.jar,C:/Program Files/glassfish-v2ur1/imq/lib/imqbroker.jar,C:/Program Files/glassfish-v2ur1/imq/lib/imqjmx.jar,C:/Program Files/glassfish-v2ur1/lib/ant/lib/ant.jar,C:/Program Files/glassfish-v2ur1/lib/SUNWjdmk/5.1/lib/jdmkrt.jar
-Dcom.sun.aas.classloader.sharedChainJars.ee=appserv-se.jar,appserv-ee.jar,jesmf-plugin.jar,/lib/dbstate.jar,/lib/hadbjdbc4.jar,jgroups-all.jar,C:/Program Files/glassfish-v2ur1/lib/SUNWmfwk/lib/mfwk_instrum_tk.jar
-Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,C:/Program Files/Java/jdk1.6.0_05/lib/tools.jar,install/applications/jmsra/imqjmsra.jar,com-sun-commons-launcher.jar,com-sun-commons-logging.jar,C:/Program Files/glassfish-v2ur1/imq/lib/jaxm-api.jar,C:/Program Files/glassfish-v2ur1/imq/lib/fscontext.jar,C:/Program Files/glassfish-v2ur1/imq/lib/imqbroker.jar,C:/Program Files/glassfish-v2ur1/imq/lib/imqjmx.jar,C:/Program Files/glassfish-v2ur1/imq/lib/imqxm.jar,webservices-rt.jar,webservices-tools.jar,mail.jar,appserv-jstl.jar,jmxremote_optional.jar,C:/Program Files/glassfish-v2ur1/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,activation.jar,appserv-rt.jar,appserv-admin.jar,appserv-cmp.jar,C:/Program Files/glassfish-v2ur1/updatecenter/lib/updatecenter.jar,C:/Program Files/glassfish-v2ur1/jbi/lib/jbi.jar,C:/Program Files/glassfish-v2ur1/imq/lib/imqjmx.jar,C:/Program Files/glassfish-v2ur1/lib/ant/lib/ant.jar,dbschema.jar
-Dcom.sun.aas.configName=server-config
-Dcom.sun.aas.configRoot=C:/Program Files/glassfish-v2ur1/config
-Dcom.sun.aas.defaultLogFile=C:/Program Files/glassfish-v2ur1/domains/domain1/logs/server.log
-Dcom.sun.aas.domainName=domain1
-Dcom.sun.aas.installRoot=C:/Program Files/glassfish-v2ur1
-Dcom.sun.aas.instanceName=server
-Dcom.sun.aas.processLauncher=SE
-Dcom.sun.aas.promptForIdentity=true
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dcom.sun.enterprise.overrideablejavaxpackages=javax.help,javax.portlet
-Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
-Dcom.sun.enterprise.taglisteners=jsf-impl.jar
-Dcom.sun.updatecenter.home=C:/Program Files/glassfish-v2ur1/updatecenter

-Ddomain.name=domain1

-Djava.endorsed.dirs=C:/Program Files/glassfish-v2ur1/lib/endorsed

-Djava.ext.dirs=C:/Program Files/Java/jdk1.6.0_05/lib/ext;C:/Program Files/Java/jdk1.6.0_05/jre/lib/ext;C:/Program Files/glassfish-v2ur1/domains/domain1/lib/ext;C:/Program Files/glassfish-v2ur1/javadb/lib

-Djava.library.path=C:\Program Files\glassfish-v2ur1\lib;C:\Program Files\glassfish-v2ur1\lib;C:\Program Files\glassfish-v2ur1\bin;C:\Program Files\glassfish-v2ur1\lib

-Djava.security.auth.login.config=C:/Program Files/glassfish-v2ur1/domains/domain1/config/login.conf

-Djava.security.manager

-Djava.security.policy=C:/Program Files/glassfish-v2ur1/domains/domain1/config/server.policy

-Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager

-Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder

-Djavax.net.ssl.keyStore=C:/Program Files/glassfish-v2ur1/domains/domain1/config/keystore.jks

-Djavax.net.ssl.trustStore=C:/Program Files/glassfish-v2ur1/domains/domain1/config/cacerts.jks

-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver

-Djmx.invoke.getters=true

-Dsun.rmi.dgc.client.gcInterval=3600000

-Dsun.rmi.dgc.server.gcInterval=3600000.

.

.


.

SMGT0007: Self Management Rules service is enabled

Application server startup complete.

Exception occured in J2EEC Phasejava.lang.RuntimeException

com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [WebApplicationSecurity] -- 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:1772)

        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2923)

        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)

        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:508)

        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:

        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 'nickbeare' (nickbeare)]

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