1 Reply Latest reply: Apr 12, 2012 3:52 PM by Dharani Mishra RSS

Getting error while deploying aspectized war file on Jboss 5.0  - ERROR [AbstractKernelController] Error installing to Parse: name=vfsfile:/C:/jboss....jboss-aop.xml state=Not Installed mode=Manual requiredState=Parse

Dharani Mishra Newbie

Hi,

I am new to AOP. I have a web application that has been aspectized using jboss-aop-2.0.0.GA..

I am using compile time weaving method. I have created a web archive(war) that contains the aspectized classes.

 

I am able to run the application in standalone mode. How ever, when I deploy the war file on the application server, I get error which I am giving below:

 

I have done the followings :

 

1. cloned default server and named it mypocserver

2. added the war file into server/mypocserver/deploy folder

2. copied jboss-aop.xml to server/mypocserver/deploy folder

3. copied server\mypocserver\deployers\jboss-aop-jboss5.deployer\pluggable-instrumentor.jar to jboss-5.0.0.GA\bin\pluggable-instrumentor.jar

4. added following lines to run.bat

set JAVA_OPTS=%JAVA_OPTS% -Djboss.aop.path=%JBOSS_HOME%\server\myPOCserver\deploy\jboss-aop.xml (to set jboss.aop.path)

set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME% -javaagent:pluggable-instrumentor.jar (I know it is needed for load time weaving. I tried it without setting this property first, but it did not work)

 

But while starting the server, I am getting the following error:

 

org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/C:/jboss/jboss-5.0.0.GA/server/mypocserver/deploy/jboss-aop.xml

at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)

at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:337)

at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:297)

at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:269)

at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:230)

at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)

at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)

at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)

at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)

at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)

at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)

at org.jboss.Main.boot(Main.java:209)

at org.jboss.Main$1.run(Main.java:547)

at java.lang.Thread.run(Thread.java:662)

Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Failed to resolve schema nsURI= location=aop

at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)

at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)

at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:199)

at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:170)

at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:132)

at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:118)

at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:256)

at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:239)

at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:330)

... 22 more

Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to resolve schema nsURI= location=aop

at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:313)

at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)

at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)

at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)

at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)

at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)

at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.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:199)

... 30 more

2012-03-09 16:36:45,832 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Parse: name=vfsfile:/C:/jboss/jboss-5.0.0.GA/server/mypocserver/deploy/jboss-aop.xml state=Not Installed mode=Manual requiredState=Parse

org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/C:/jboss/jboss-5.0.0.GA/server/mypocserver/deploy/jboss-aop.xml

at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)

at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:337)

at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:297)

at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:269)

at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:230)

at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)

at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)

at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)

at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)

at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)

at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)

at org.jboss.Main.boot(Main.java:209)

at org.jboss.Main$1.run(Main.java:547)

at java.lang.Thread.run(Thread.java:662)

Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Failed to resolve schema nsURI= location=aop

at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)

at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)

at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:199)

at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:170)

at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:132)

at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:118)

at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:256)

at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:239)

at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:330)

... 22 more

Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to resolve schema nsURI= location=aop

at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:313)

at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)

at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)

at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)

at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)

at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)

at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.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:199)

... 30 more

 

 

 

Will appreciate if somebody can let me know what I am doing wrong here.

 

Thanks in advance

D Mishra

  • 1. Re: Getting error while deploying aspectized war file on Jboss 5.0  - ERROR [AbstractKernelController] Error installing to Parse: name=vfsfile:/C:/jboss....jboss-aop.xml state=Not Installed mode=Manual requiredState=Parse
    Dharani Mishra Newbie

    I tried following instruction given in 'injboss' folder and modified -javaagent option to provide correct path. However, now I get the below error. Any help is highly appreciated :

     

    00:15:05,846 ERROR [AbstractKernelController] Error installing to Create: name=AspectManager state=Configured java.lang.NullPointerException
            at org.jboss.aop.asintegration.jboss5.JBoss5Integration.getDomainRegistry(JBoss5Integration.java:125)
            at org.jboss.aop.asintegration.jboss5.JBoss5Integration.createScopedClassPoolFactory(JBoss5Integration.java:137)

    ...

    ...

    ...

    *** DEPLOYMENTS IN ERROR: Name -> Error
    AspectManager -> java.lang.NullPointerException

    *** DEPLOYMENTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
    AspectManagerJMXRegistrar -> AspectManager{Installed:**ERROR**}
    AOPClassLoaderDeployer -> AspectManager{Installed:**ERROR**}
    AOPDeploymentAopMetaDataDeployer -> jboss.kernel:service=Kernel{Installed:**ERROR**}, AspectManager{Installed:**ERROR**}
    JMXRegistrationAdvice$AspectBinding -> AspectManager{Installed:**ERROR**}
    JMXStartStopAdvice$AspectBinding -> AspectManager{Installed:**ERROR**}
    JMXCreateDestroyAdvice$AspectBinding -> AspectManager{Installed:**ERROR**}
    BeansDeploymentAopMetaDataDeployer -> AspectManager{Installed:**ERROR**}, jboss.kernel:service=Kernel{Installed:**ERROR**}