AnsweredAssumed Answered

Could not load module

Question asked by pruchai on Oct 16, 2012
Latest reply on Oct 16, 2012 by pruchai
I am developing a centralized web interface for Introscope configuration because it is a real pain to do it by hand across 2 datacenters and 9 different environments, which all have their own mis-configured Introscope, Spectrum and Splunk clusters.

My code generates JSON, which i convert to XML and validate against [font=Courier New]IntroscopeManagementModules1.0.xsd[font]
Validation is 100% successful, [font=Courier New]ManagmentModule.xml[font] is identical to one I extracted from a functioning Management Module,
file size the same too. I do not see any difference whatsoever.

But when i drop the .jar with [font=Courier New]ManagementModule.xml[font] and [font=Courier New]META-INF/MANIFEST.MF[font] into
the [font=Courier New]/path/to/introscope/deploy/[font], I get following messages in the [font=Courier New]em.log[font]. After messages appear, my module gets completely removed


This looks like an obvious permissions issue, but it is not. .jar file, and its contents are owned by wily user, and I am able to write to file as wily user,
I am able to touch, remove and rename it via command line, so it is not a permission issue.

10/15/12 04:13:54 PM PDT [ERROR] [Manager.Bootstrap] Cannot write to Management Module file: /opt/wily-deploy/pruchai-test.jar
10/15/12 04:13:54 PM PDT [ERROR] [Manager.Bootstrap] Could not read Management Module file /opt/wily-deploy/pruchai-test.jar
10/15/12 04:24:14 PM PDT [ERROR] [Manager.Bootstrap] Cannot write to Management Module file: /opt/wily-deploy/pruchai-test.jar
10/15/12 04:24:14 PM PDT [ERROR] [Manager.Bootstrap] Could not read Management Module file /opt/wily-deploy/pruchai-test.jar
In verbose mode, it logs this:
10/15/12 04:28:48 PM PDT [VERBOSE] [Manager.Bootstrap]
10/15/12 04:28:47 PM PDT [DEBUG] [Manager.MMHotDeployEntity] Performing hot MM deploy scan
10/15/12 04:28:47 PM PDT [DEBUG] [Manager.MMHotDeployEntity] Queue deployment management module job
10/15/12 04:28:47 PM PDT [DEBUG] [Manager.MMHotDeployEntity] Loading [deploy/pruchai-test.jar]
10/15/12 04:28:48 PM PDT [ERROR] [Manager.Bootstrap] Cannot write to Management Module file: /opt/wily-deploy/pruchai-test.jar
10/15/12 04:28:48 PM PDT [ERROR] [Manager.Bootstrap] Could not read Management Module file /opt/wily-deploy/pruchai-test.jar
10/15/12 04:28:48 PM PDT [VERBOSE] [Manager.Bootstrap]

java.io.IOException: Cannot write to Management Module file: /opt/wily-deploy/pruchai-test.jar
        at com.wily.introscope.server.enterprise.entity.bootstrap.BootstrapBundleLocator.loadFile(BootstrapBundleLocator.java:186)
        at com.wily.introscope.server.enterprise.entity.bootstrap.BootstrapBundleLocator.getBundleFileHelpers(BootstrapBundleLocator.java:84)
        at com.wily.introscope.server.enterprise.entity.bootstrap.BundleBootstrapper.createBundleFileHelpers(BundleBootstrapper.java:654)
        at com.wily.introscope.server.enterprise.entity.bootstrap.BundleBootstrapper.load(BundleBootstrapper.java:355)
        at com.wily.introscope.server.enterprise.entity.bundle.MMHotDeploy.dynamicallyDeploy(MMHotDeploy.java:170)
        at com.wily.introscope.server.enterprise.entity.bundle.MMHotDeploy.access$1(MMHotDeploy.java:161)
        at com.wily.introscope.server.enterprise.entity.bundle.MMHotDeploy$HotDeployer.run(MMHotDeploy.java:204)
        at com.wily.EDU.oswego.cs.dl.util.concurrent.QueuedExecutor$RunLoop.run(QueuedExecutor.java:88)
        at java.lang.Thread.run(Unknown Source)
10/15/12 04:28:49 PM PDT [DEBUG] [Manager.MMHotDeployEntity] Loaded successfully
While I was typing this post, I realized that I may need to sign the .jar, but before I go on a wild goose chase, I would like to get a second opinion .

Thanks

Outcomes