7 Replies Latest reply: Nov 6, 2012 4:17 PM by Frank.Hampshire-Oracle RSS

    OPA 10.4.1 on JBoss 6.1 - can not resolve path: plugins

    963664
      Having difficulties in deploying my web-determinations.war to JBoss 6.1.
      Same thing works well in OPM (Build and Debug).

      PS: Getting the same error when deploying the examples provided in the OPA Java Runtime.

      Any suggestions ?

      Error Log:
      2012-09-21 16:35:40,657 INFO [STDOUT] (ResourceContainer.invoker.nonDaemon-6) 0 [ResourceContainer.invoker.nonDaemon-6] WARN com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext - Plugin directory could not be initialised. No plugins will be loaded
      2012-09-21 16:35:40,657 INFO [STDOUT] (ResourceContainer.invoker.nonDaemon-6) java.lang.IllegalArgumentException: can not resolve path: plugins
      2012-09-21 16:35:40,657 INFO [STDOUT] (ResourceContainer.invoker.nonDaemon-6)      at com.oracle.util.plugins.PluginRegistry.addPluginsFromDir(PluginRegistry.java:118)
      2012-09-21 16:35:40,657 INFO [STDOUT] (ResourceContainer.invoker.nonDaemon-6)      at com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.init(WebDeterminationsServletContext.java:159)
      2012-09-21 16:35:40,658 INFO [STDOUT] (ResourceContainer.invoker.nonDaemon-6)      at com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.<init>(WebDeterminationsServletContext.java:116)
      2012-09-21 16:35:40,658 INFO [STDOUT] (ResourceContainer.invoker.nonDaemon-6)      at com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.init(WebDeterminationsServlet.java:73)
      2012-09-21 16:35:40,658 INFO [STDOUT] (ResourceContainer.invoker.nonDaemon-6)      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1208)
      2012-09-21 16:35:40,659 INFO [STDOUT] (ResourceContainer.invoker.nonDaemon-6)      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1108)
      2012-09-21 16:35:40,659 INFO [STDOUT] (ResourceContainer.invoker.nonDaemon-6)      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3628)

      Edited by: 960661 on Sep 21, 2012 1:43 PM
        • 1. Re: OPA 10.4.1 on JBoss 6.1 - can not resolve path: plugins
          Kevin Wan
          This is only a warning when web determinations is deployed on an application server where the war file is not expanded. It can be ignored if you are not using plugins. See 'Install and register plugins' topic of Oracle Policy Automation Developer's Guide for how to install and register plugins.
          • 2. Re: OPA 10.4.1 on JBoss 6.1 - can not resolve path: plugins
            963664
            Thanks for clarifying. After the server start, the web-determinations doesn't list the rules deployed.
            Same war file deployed on Tomcat works fine (list the rules, screen navigation everything works well).

            Am I missing something ?
            • 3. Re: OPA 10.4.1 on JBoss 6.1 - can not resolve path: plugins
              Kevin Wan
              What's your settings for rulebase loading properties in applications.properties file? Can you see summary screen when you go to http://<web-determinations url>/startsession/<rulebase>/ in browser?
              • 4. Re: OPA 10.4.1 on JBoss 6.1 - can not resolve path: plugins
                963664
                Sorry for the delayed response. Yes, I could see the summary page. But plugins are not loaded.
                I tried adding plugin JAR to web-inf\lib and adding ; seperated fully qualified class names to application.properties.
                • 5. Re: OPA 10.4.1 on JBoss 6.1 - can not resolve path: plugins
                  Kevin Wan
                  If your plugin works on Tomcat, the only extra thing you need on JBoss is to put the plugin jar to the lib directory and add ; separated fully qualified class names to application.properties file.

                  Can you send me the project and the plugin jar if it still doesn't work?
                  • 6. Re: OPA 10.4.1 on JBoss 6.1 - can not resolve path: plugins
                    963664
                    Its working now, I assumed it wasn't working by looking at the logs. Accessing the rulebase "/JBossPOC/startsession/JBossPOC/" - i could see that plugin is working.

                    Do i need to make any other changes to remove the following warnings ?

                    12:12:52,522 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "JBossPOC.war"
                    12:12:55,346 WARN [com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext] (MSC service thread 1-4) Plugin directory could not be initialised. No plugins will be loaded: java.lang.IllegalArgumentException: can not resolve path: plugins
                         at com.oracle.util.plugins.PluginRegistry.addPluginsFromDir(PluginRegistry.java:118) [determinations-utilities.jar:]
                         at com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.init(WebDeterminationsServletContext.java:159) [web-determinations.jar:]
                         at com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.<init>(WebDeterminationsServletContext.java:116) [web-determinations.jar:]
                         at com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.init(WebDeterminationsServlet.java:73) [web-determinations.jar:]
                         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) [jbossweb-7.0.13.Final.jar:]
                         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.13.Final.jar:]
                         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655) [jbossweb-7.0.13.Final.jar:]
                         at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873) [jbossweb-7.0.13.Final.jar:]
                         at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
                         at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
                         at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
                         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_07]
                         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_07]
                         at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_07]
                    • 7. Re: OPA 10.4.1 on JBoss 6.1 - can not resolve path: plugins
                      Frank.Hampshire-Oracle
                      That message is just a warning. I know its a bit scary with the stack trace, but it won't cause any problems.

                      If you want to turn off the warning off you can edit the log4j.xml file at WEB-INF/classes/configuration and set the general logging level to "error".