Policy Automation for B2C Service

Get Involved. Join the Conversation.

Topic

    Ricardo Torres Leon
    Error while trying to Deploy OPA Hub on Local Server
    Topic posted January 3, 2018 by Ricardo Torres Leon 
    334 Views, 2 Comments
    Title:
    Error while trying to Deploy OPA Hub on Local Server
    Content:

    Hey Guys I am currently trying to setup the OPA Private Cloud on my local system so I can get some practice in.  The problem is that whenever I try to install the Hub I get the following errors in my log:

    2018-01-03 10:46:41,416  INFO (WLST) - 
    2018-01-03 10:46:41,416  INFO (WLST) - Initializing WebLogic Scripting Tool (WLST) ...
    2018-01-03 10:46:41,416  INFO (WLST) - 
    2018-01-03 10:46:53,490  INFO (WLST) - Welcome to WebLogic Server Administration Scripting Shell
    2018-01-03 10:46:53,491  INFO (WLST) - 
    2018-01-03 10:46:53,491  INFO (WLST) - Type help() for help on available commands
    2018-01-03 10:46:53,491  INFO (WLST) - 
    2018-01-03 10:46:53,495  INFO (WLST) - Problem invoking WLST - Traceback (innermost last):
    2018-01-03 10:46:53,496  INFO (WLST) -   File "C:\Hub\opa\bin\opahub_wlst_deploy.py", line 119, in ?
    2018-01-03 10:46:53,496  INFO (WLST) - TypeError: call of non-function ('file' object)
    2018-01-03 10:46:53,496  INFO (WLST) - 
    2018-01-03 10:46:53,557  INFO (com.oracle.determinations.hub.exec.customer.FullInstallCommand) - Error Deploying OPA Web applications. wlst execution did not succeed
    2018-01-03 10:46:53,558  INFO (com.oracle.determinations.hub.exec.customer.FullInstallCommand) - ** Installation was not successful **
    2018-01-03 10:46:53,558  INFO (com.oracle.determinations.hub.exec.customer.FullInstallCommand) - Error Deploying OPA Web applications. wlst execution did not succeed
    2018-01-03 10:46:53,558  INFO (com.oracle.determinations.hub.exec.customer.FullInstallCommand) - 
    Database Creation: 
    2018-01-03 10:46:53,558  INFO (com.oracle.determinations.hub.exec.InstallDatabaseCommand) - Database was successfully created for 10
    2018-01-03 10:46:53,559  INFO (com.oracle.determinations.hub.exec.customer.FullInstallCommand) - 
    Web Application Creation: 
    2018-01-03 10:46:53,560  INFO (com.oracle.determinations.hub.exec.customer.BuildPrivateCloudEarCommand) - Web applications built to dir: C:\Hub\opa\deploy\10
    2018-01-03 10:46:53,561  INFO (com.oracle.determinations.hub.exec.customer.FullInstallCommand) - 
    Web Application Deployment: 
    2018-01-03 10:46:53,561  INFO (com.oracle.determinations.hub.exec.customer.DeployWebappsWLSTCommand) - There was some problems deploying the web applications
    2018-01-03 10:46:53,561  INFO (com.oracle.determinations.hub.exec.customer.DeployWebappsWLSTCommand) - wlst execution did not succeed
    2018-01-03 10:46:53,562  INFO (com.oracle.determinations.hub.exec.customer.FullInstallCommand) - Web applications available for manual deployment 

     

    When i try to manually deploy it on my server I get the following error:

    <Jan 3, 2018 10:09:26,677 AM PST> <Error> <HTTP> <BEA-101165> <Could not load user defined filter in web.xml: com.oracle.determinations.hub.web.HubAuthenticationFilter.
    java.lang.AssertionError
    at com.oracle.determinations.hub.runtime.monitor.HubRuntimeMonitor.addIdentityManagementChangeListener(HubRuntimeMonitor.java:556)
    at com.oracle.determinations.hub.web.HubAuthenticationFilter.init(HubAuthenticationFilter.java:67)
    at weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterManager.java:400)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:326)
    at weblogic.security.service.SecurityManager.runAsForUserCode(SecurityManager.java:197)
    Truncated. see log file for complete stacktrace
    <Jan 3, 2018 10:13:27,332 AM PST> <Error> <HTTP> <BEA-101216> <Servlet: "DeterminationsServerSOAPServlet" failed to preload on startup in Web application: "/2/determinations-server".
    com.oracle.determinations.interview.engine.exceptions.RulebaseLoadingException: Rulebase 'error getting rulebases' can not be loaded. Reason: Error getting datasource connection: 
    at com.oracle.determinations.server.plugins.HubPolicyModelLoader.getRulebaseInfos(HubPolicyModelLoader.java:173)
    at com.oracle.determinations.hub.runtime.HubDataSourceRulebaseResolver.getRulebaseInfos(HubDataSourceRulebaseResolver.java:148)
    at com.oracle.determinations.interview.engine.RulebaseService.getRulebaseInfos(RulebaseService.java:58)
    at com.oracle.determinations.server.ServiceRegistry.buildEnpointMap(ServiceRegistry.java:109)
    at com.oracle.determinations.server.ServiceRegistry.initRulebaseServices(ServiceRegistry.java:89)
    Truncated. see log file for complete stacktrace
    Caused By: com.oracle.determinations.hub.exception.HubStorageException: Error getting datasource connection: 
    at com.oracle.determinations.hub.storage.jdbc.JNDIConnectionFactory.getConnection(JNDIConnectionFactory.java:151)
    at com.oracle.determinations.hub.storage.jdbc.JNDIConnectionFactory.getConnection(JNDIConnectionFactory.java:61)
    at com.oracle.determinations.hub.storage.jdbc.ConfigPropertyDAOImpl.getHubFeatureSet(ConfigPropertyDAOImpl.java:316)
    at com.oracle.determinations.hub.storage.jdbc.RulebaseDAOImpl.getActivatedRulebases(RulebaseDAOImpl.java:214)
    at com.oracle.determinations.hub.service.impl.PolicyModelServiceImpl.getAllDeployed(PolicyModelServiceImpl.java:74)
    Truncated. see log file for complete stacktrace
    Caused By: javax.naming.LinkException:  [Root exception is javax.naming.NameNotFoundException: While trying to lookup 'opaHub.ds.2' didn't find subcontext 'opaHub'. Resolved ''; remaining name 'opaHub/ds/2']; Link Remaining Name: 'opaHub.ds.2'
    at weblogic.jndi.internal.WLNamingManager.getObjectInstance(WLNamingManager.java:114)
    at weblogic.jndi.internal.BasicNamingNode.resolveObject(BasicNamingNode.java:1037)
    at weblogic.jndi.internal.ApplicationNamingNode.resolveObject(ApplicationNamingNode.java:186)
    at weblogic.jndi.internal.BasicNamingNode.resolveObject(BasicNamingNode.java:1009)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:223)
    Truncated. see log file for complete stacktrace
    Caused By: javax.naming.NameNotFoundException: While trying to lookup 'opaHub.ds.2' didn't find subcontext 'opaHub'. Resolved ''; remaining name 'opaHub/ds/2'
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1292)
    at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:349)
    at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:227)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:214)
    at weblogic.jndi.internal.ServerNamingNode.lookup(ServerNamingNode.java:527)
    Truncated. see log file for complete stacktrace
     
    Any help would be greatly appreciated.

     

     

    Comment