[JBoss JIRA] Created: (JBAS-4545) Modification of jsp causes redeploy of war
by Scott M Stark (JIRA)
Modification of jsp causes redeploy of war
------------------------------------------
Key: JBAS-4545
URL: http://jira.jboss.com/jira/browse/JBAS-4545
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Web (Tomcat) service
Reporter: Scott M Stark
Assigned To: Scott M Stark
Fix For: JBossAS-5.0.0.Beta3
Adding content to a war is resulting in a failed redeploy of the war.
[starksm@succubus deploy]$ touch jmx-console.war/tst.jsp
17:23:34,670 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.Beta3 (build: SVNTag=JBoss_5_0_0_Beta3 date=200707111842)] Started in 25s:815ms
17:25:30,753 INFO [TomcatDeployment] undeploy, ctxPath=/jmx-console, vfsUrl=jmx-console.war
17:25:30,840 ERROR [WebAppParsingDeployer] Error during deploy: vfsfile:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta3/server/default/deploy/jmx-console.war/
org.jboss.deployers.spi.DeploymentException: Error parsing meta data jmx-console.war/WEB-INF/web.xml
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at org.jboss.deployers.vfs.spi.deployer.ObjectModelFactoryDeployer.parse(ObjectModelFactoryDeployer.java:90)
at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:86)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:201)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:177)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:140)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:164)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstall(DeployersImpl.java:657)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstall(DeployersImpl.java:623)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:587)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:304)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1257)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:685)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:813)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:735)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:573)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:374)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:426)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:340)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:287)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:219)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: vfsfile:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta3/server/default/deploy/jmx-console.war/WEB-INF/web.xml@4,46
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:173)
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:180)
at org.jboss.deployers.vfs.spi.deployer.ObjectModelFactoryDeployer.parse(ObjectModelFactoryDeployer.java:86)
... 28 more
Caused by: java.lang.NullPointerException
at org.jboss.util.xml.JBossEntityResolver.loadClasspathResource(JBossEntityResolver.java:506)
at org.jboss.util.xml.JBossEntityResolver.resolvePublicID(JBossEntityResolver.java:314)
at org.jboss.util.xml.JBossEntityResolver.resolveEntity(JBossEntityResolver.java:244)
at org.apache.xerces.util.EntityResolverWrapper.resolveEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:169)
... 30 more
17:25:30,848 ERROR [AbstractKernelController] Error installing to Parse: name=vfsfile:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta3/server/default/deploy/jmx-console.war/ state=Not Installed mode=Manual requiredState=Parse
org.jboss.deployers.spi.DeploymentException: Error parsing meta data jmx-console.war/WEB-INF/web.xml
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at org.jboss.deployers.vfs.spi.deployer.ObjectModelFactoryDeployer.parse(ObjectModelFactoryDeployer.java:90)
at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:86)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:201)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:177)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:140)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:164)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstall(DeployersImpl.java:657)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstall(DeployersImpl.java:623)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:587)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:304)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1257)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:685)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:813)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:735)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:573)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:374)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:426)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:340)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:287)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:219)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: vfsfile:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta3/server/default/deploy/jmx-console.war/WEB-INF/web.xml@4,46
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:173)
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:180)
at org.jboss.deployers.vfs.spi.deployer.ObjectModelFactoryDeployer.parse(ObjectModelFactoryDeployer.java:86)
... 28 more
Caused by: java.lang.NullPointerException
at org.jboss.util.xml.JBossEntityResolver.loadClasspathResource(JBossEntityResolver.java:506)
at org.jboss.util.xml.JBossEntityResolver.resolvePublicID(JBossEntityResolver.java:314)
at org.jboss.util.xml.JBossEntityResolver.resolveEntity(JBossEntityResolver.java:244)
at org.apache.xerces.util.EntityResolverWrapper.resolveEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:169)
... 30 more
17:25:30,850 WARN [HDScanner] Failed to process changes
org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
*** CONTEXTS IN ERROR: Name -> Error
vfsfile:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta3/server/default/deploy/jmx-console.war/ -> java.lang.NullPointerException
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:552)
at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:379)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:288)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:219)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 6 months
[JBoss JIRA] Created: (JBAS-4343) NullPointerException causing bad password exception in LdapLoginModule when the role attribute is not set for a given entry
by pgillis (JIRA)
NullPointerException causing bad password exception in LdapLoginModule when the role attribute is not set for a given entry
---------------------------------------------------------------------------------------------------------------------------
Key: JBAS-4343
URL: http://jira.jboss.com/jira/browse/JBAS-4343
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: JBossAS-4.0.5.GA
Environment: Linux, kernel 2.6.20, i686
Reporter: pgillis
Priority: Minor
The org.jboss.security.auth.spi.LdapLoginModule class is throwing a NullPointerException that is causing authentication to fail in cases where, in my mind, it should be succeeding.
The NPE is thrown when a record is encountered that does not have the attribute listed in roleAttributeID. There are two issues here:
1. The error that shows up in the log is a BadPassword error. This is misleading, if anything it should be a configuration error.
2. The roles are for authorization not authentication. When this exception gets thrown, authentication is failing.
It seems reasonable for an LDAP attribute to be useful in identifying roles even if it isn't defined for every record. You can get around this problem with a more complex realm definition in login-config.xml, but shouldn't have to...thanks...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 6 months