[WLST offline] How to assign machines to servers?
I've created machines and servers using WLST offline on Weblogic 8.1sp2.
How do I assign a machine to a server?
I would expect something like:
assign ("Machine","machinea","Server","servera")
"machinea" is the machine that I created, and "servera" is the server.
Unfortunately this does not work. I get the following error message:
"Cannot recognize the service assignment type: machine_server"
Kind regards,
Henrik
Hello Henrik,
It should be "assign servers to a machine". So the code will look like:
create('BEA_Server', 'Server')
create('myMachine', 'Machine')
assign('Server', 'BEA_Server','Machine', 'myMachine')
Thanks,
-satya
Henrik S. Pedersen wrote:
I've created machines and servers using WLST offline on Weblogic 8.1sp2.
How do I assign a machine to a server?
I would expect something like:
assign ("Machine","machinea","Server","servera")
"machinea" is the machine that I created, and "servera" is the server.
Unfortunately this does not work. I get the following error message:
"Cannot recognize the service assignment type: machine_server"
Kind regards,
Henrik
Similar Messages
-
[WLST offline] How to create a JMSJDBCStore?
How do I create a JMSJDBCStore using WLST offline?
I would expect the following code line to work:
mrjStore = create('myStore', 'JMSJDBCStore')
Unfortunately I get a Java exception when I execute the code.
I can create JMSFileStores without problems.
Rgds,
HenrikHello Henrik,
The code you used to create a JMSJDBCStore is correct. I think the
problem is that you did not have the required JDBCConnectionPools before
this line. At least one pool should be available before you can create a
JMSJDBCStore. This kind of check is enforced for some other operations.
One example is that you can't create a JDBCMultiPool if you do not have
a JDBCConnectionPool. Below is an example of JMSJDBCStore creation that
works:
readTemplate('c:/bea813/weblogic81/common/templates/domains/wls.jar')
cd('Security/mydomain/User/weblogic')
set('Password', 'weblogic')
cd('/')
pool=create('myPool', 'JDBCConnectionPool')
cd('JDBCConnectionPool/myPool')
set('DriverName', 'oracle.jdbc.driver.OracleDriver')
set('URL',
'jdbc:oracle:thin:@my-oracle-server:my-oracle-server-port:my-oracle-sid')
set('Properties', 'user=scott')
set('Password', 'tiger')
cd('/')
store=create('myStore', 'JMSJDBCStore')
store.setConnectionPool(pool)
store.setPrefixName('myPoolPre')
writeDomain('d:/temp/domains/wls/wls_0709')
closeTemplate()
exit()
BTW, I have changed the exception message to make this cause clearer but
the dev2dev post would not have this update for some time.
Thanks,
-satya
Henrik S. Pedersen wrote:
>
>
>
How do I create a JMSJDBCStore using WLST offline?
I would expect the following code line to work:
mrjStore = create('myStore', 'JMSJDBCStore')
Unfortunately I get a Java exception when I execute the code.
I can create JMSFileStores without problems.
Rgds,
Henrik -
WLST Offline Assign Application component
Hi, this is what I can do
assign('AppDeployment.SubDeployment','MyApp.*', 'Target', 'cluster1')
but if I try to do this I get an error
assign('AppDeployment.SubDeployment','MyApp.MyFaxEmailProcessSendingEjb.jar', 'Target', 'cluster1')
here is the error
assign() failed. Do dumpStack() to see details
dumpStack()
com.bea.plateng.domain.script.jython.WLSTException: com.bea.plateng.domain.script.ScriptException: U
nable to find the specified application or service
at com.bea.plateng.domain.script.jython.CommandExceptionHandler.handleException(CommandExcep
tionHandler.java:51)
at com.bea.plateng.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java
:1333)
at com.bea.plateng.domain.script.jython.WLScriptContext.assign(WLScriptContext.java:859)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)L
java.lang.Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;
(Unknown Source)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:160)
at org.python.core.PyMethod.__call__(PyMethod.java:96)
at org.python.core.PyObject.__call__(PyObject.java:248)
at org.python.core.PyObject.invoke(PyObject.java:2016)
at org.python.pycode._pyx5.assign$10(C:\WINNT\Temp\WLSTOfflineIni9379.py:62)
at org.python.pycode._pyx5.call_function(ILorg.python.core.PyFrame;)Lorg.python.core.PyObjec
t;(C:\WINNT\Temp\WLSTOfflineIni9379.py:???)
at org.python.core.PyTableCode.call(PyTableCode.java:208)
at org.python.core.PyTableCode.call(PyTableCode.java:404)
at org.python.core.PyFunction.__call__(PyFunction.java:184)
at org.python.core.PyObject.__call__(PyObject.java:314)
at org.python.pycode._pyx434.f$0(<console>:1)
at org.python.pycode._pyx434.call_function(ILorg.python.core.PyFrame;)Lorg.python.core.PyObj
ect;(<console>:???)
at org.python.core.PyTableCode.call(PyTableCode.java:208)
at org.python.core.PyCode.call(PyCode.java:14)
at org.python.core.Py.runCode(Py.java:1135)
at org.python.core.Py.exec(Py.java:1157)
at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:148)
at org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter.java:89)
at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java:70)
Caused by: com.bea.plateng.domain.script.ScriptException: Unable to find the specified application o
r service
at com.bea.plateng.domain.script.ScriptExecutor.doSvcAssignmentByName(ScriptExecutor.java:27
98)
at com.bea.plateng.domain.script.ScriptExecutor.processAssignmentByName(ScriptExecutor.java:
1302)
at com.bea.plateng.domain.script.jython.WLScriptContext.assign(WLScriptContext.java:855)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)L
java.lang.Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;
(Unknown Source)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:160)
at org.python.core.PyMethod.__call__(PyMethod.java:96)
at org.python.core.PyObject.__call__(PyObject.java:248)
at org.python.core.PyObject.invoke(PyObject.java:2016)
at org.python.pycode._pyx5.assign$10(C:\WINNT\Temp\WLSTOfflineIni9379.py:62)
at org.python.pycode._pyx5.call_function(ILorg.python.core.PyFrame;)Lorg.python.core.PyObjec
t;(C:\WINNT\Temp\WLSTOfflineIni9379.py:???)
at org.python.core.PyTableCode.call(PyTableCode.java:208)
at org.python.core.PyTableCode.call(PyTableCode.java:404)
at org.python.core.PyFunction.__call__(PyFunction.java:184)
at org.python.core.PyObject.__call__(PyObject.java:314)
at org.python.pycode._pyx434.f$0(<console>:1)
at org.python.pycode._pyx434.call_function(ILorg.python.core.PyFrame;)Lorg.python.core.PyObj
ect;(<console>:???)
at org.python.core.PyTableCode.call(PyTableCode.java:208)
at org.python.core.PyCode.call(PyCode.java:14)
at org.python.core.Py.runCode(Py.java:1135)
at org.python.core.Py.exec(Py.java:1157)
at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:148)
at org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter.java:89)
at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java:70)
at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java:44)
at weblogic.management.scripting.WLST.main(WLST.java:142)
I wonder why because the subDployment (component) is really there...
please help
Message was edited by:
AshantyHello Henrik,
It should be "assign servers to a machine". So the code will look like:
create('BEA_Server', 'Server')
create('myMachine', 'Machine')
assign('Server', 'BEA_Server','Machine', 'myMachine')
Thanks,
-satya
Henrik S. Pedersen wrote:
I've created machines and servers using WLST offline on Weblogic 8.1sp2.
How do I assign a machine to a server?
I would expect something like:
assign ("Machine","machinea","Server","servera")
"machinea" is the machine that I created, and "servera" is the server.
Unfortunately this does not work. I get the following error message:
"Cannot recognize the service assignment type: machine_server"
Kind regards,
Henrik -
JMS queue assignment with WLST offline WLS 8.1
Hi
I would like to know how to assign a JMSQueue to JMSserver under WLST offline and WLS 8.1
I've tried with assign(...) function or the setParent without success.
As far as I understand, the JMSQueue is always created under a JMS server, once created there how can I assign it to another server??
10xHi
I would like to know how to assign a JMSQueue to JMSserver under WLST offline and WLS 8.1
I've tried with assign(...) function or the setParent without success.
As far as I understand, the JMSQueue is always created under a JMS server, once created there how can I assign it to another server??
10x -
How to create users and groups using WLST Offline with Weblogic 8.1.4
How to create users and groups using WLST Offline with Weblogic 8.1.4?
Any ideas?Hi this is how i created a user using WLST Offline?
cd('/Security/' + domainName)
# Delete the default user name weblogic
# incase you want to remove the defualt user weblogic
delete('weblogic','User')
# Creating a new user defined
create(userName, 'User')
# Setting the password of the user you created.
cd ('/Security/' + domainName + '/User/' + userName)
cmo.setPassword(password)
Regards
Makenzo -
Cannot create TransactionParams of ConnectionFactory with WLST Offline
Hello dear WL users and geeks,
I'm trying to automate the creation of a weblogic domain using WLST Offline but I've got some problem with the configuration of a JMS ConnectionFactory : I don't know how to activate the XA-Connection factory setting.
Ok, here is the WLST code, results and thoughs are in comments (##) :
==================
## I start with a fresh install of Oracle Weblogic Server 11g R1 (10.3.3) (also tried 10.3.1, same problem) and use the Configuration Wizard to
## create a new Weblogic domain using the default "Basic Weblogic server domain template".
## First, read the domain
readDomain('Oracle/Middleware/user_projects/domains/base_domain/')
## Create a JMSServer
create('MyJMSServer', 'JMSServer')
assign('JMSServer', 'MyJMSServer', 'Server', 'AdminServer')
## Create a JMS Module
create('TestModule', 'JMSSystemResource')
## And now a ConnectionFactory
cd('/JMSSystemResource/TestModule/JmsResource/NO_NAME_0')
fact=create('TestConnFactory', 'ConnectionFactory')
fact.setJNDIName('someJNDIName')
updateDomain()
## Ok, let's see what is defined :
cd ('/JMSSystemResource/TestModule/JmsResource/NO_NAME_0/ConnectionFactory/TestConnFactory')
ls()
## -rw- DefaultTargetingEnabled false
## -rw- JNDIName someJNDIName
## -rw- LocalJNDIName null
## -rw- Name TestConnFactory
## -rw- Notes null
## -rw- SubDeploymentName null
## Uh oh. Why are the 'directories' TransactionParams and SecurityParams missing ? How am I supposed to edit the TransactionParams ?
## Maybe there is a createTransactionParams method ?
dir(fact)
## ['JNDIName', 'class', 'clientParams', 'defaultDeliveryParams', 'defaultTargetingEnabled', 'equals', 'flowControlParams', 'getClass',
## 'getClientParams', 'getDefaultDeliveryParams', 'getFlowControlParams', 'getInvocationHandler', 'getJNDIName', 'getLoadBalancingParams',
## 'getLocalJNDIName', 'getName', 'getNotes', 'getProxyClass', 'getSecurityParams', 'getSubDeploymentName', 'getTransactionParams',
## 'hashCode', 'isDefaultTargetingEnabled', 'isProxyClass', 'isSet', 'loadBalancingParams', 'localJNDIName', 'name', 'newProxyInstance', 'notes',
## 'notify', 'notifyAll', 'securityParams', 'setDefaultTargetingEnabled', 'setJNDIName', 'setLocalJNDIName', 'setName', 'setNotes',
## 'setSubDeploymentName', 'subDeploymentName', 'toString', 'transactionParams', 'unSet', 'wait']
## If I try to invoke any method related to transactionParams, I've got a null pointer exception
==================
Ok, now I'll use the web admin console to edit the transaction parameters : I start the Weblogic Server and go to the web-based Administration console.
In the Domain Structure tree, I go to base_domain > Services > Messaging > JMS Modules.
Then I click on my 'TestModule' module and then on my 'TestConnFactory' Connection Factory.
I go in the 'Transaction' tab and I enable the XAConnectionFactory checkbox.
Finally, I click on the save button.
Let's start a new WLST Offline session and see what's new :
==================
## Read the domain
readDomain('Oracle/Middleware/user_projects/domains/base_domain/')
## Check what is defined in my ConnectionFactory
cd ('/JMSSystemResource/TestModule/JmsResource/NO_NAME_0/ConnectionFactory/TestConnFactory')
ls()
## Hey look, the TransactionParams appeared :
## drw- TransactionParams
## -rw- DefaultTargetingEnabled true
## -rw- JNDIName someJNDIName
## -rw- LocalJNDIName null
## -rw- Name TestConnFactory
## -rw- Notes null
## -rw- SubDeploymentName null
## Go in there :
cd('TransactionParams/NO_NAME_0')
ls()
## -rw- TransactionTimeout 3600
## -rw- XAConnectionFactoryEnabled true
==================
So :
- Why the TransactionParams setting is not directly created or available when a new ConnectionFactory is created ?
- How can I create a JMS ConnectionFactory and edit its TransactionParams using only WLST Offline (i.e., without the admin console and without WSLT online) ?
Any help appreciated,
Thanks !Ok, I found a solution :
=============
cd ('/JMSSystemResource/TestModule/JmsResource/NO_NAME_0/ConnectionFactory/TestConnFactory')
create('DUMMY', 'TransactionParams')
ls('TransactionParams/NO_NAME_0')
## -rw- TransactionTimeout 0
## -rw- XAConnectionFactoryEnabled false
=============
But it seems strange to have to create a dummy TransactionParams. Is it the correct way to do it ? -
[WLST offline]: Cannot create distributed destination
We have a small problem with WLST and distributed destinations. I have made the following code:
readDomain ('< our domain path >/Demo8')
# Check that the queue exists
ls ('/JMSServer/cgJMSServer1/JMSQueue')
create ('myQueue1','JMSDistributedQueue')
cd ('JMSDistributedQueue')
cd ('myQueue1')
set ('JNDIName','myjndi')
create ('member1','JMSDistributedQueueMember')
cd ('JMSDistributedQueueMember')
cd ('member1')
set ('JMSQueue','queue1')
cd ('..')
cd ('..')
UpdateDomain()
The problems is, that the command "set ('JMSQueue','queue1')" fails.
Does anyone have an example of a successful WLST configuration of Distributed Destinations?
The error message from my script is:
Error: setJMSQueue() failed.
Error: set() failed.
Traceback (innermost last):
File "scr.py", line 19, in ?
File "initWls.py", line 46, in set
com.bea.plateng.domain.script.jython.WLSTException: java.lang.reflect.Invocation
TargetException
at com.bea.plateng.domain.script.jython.CommandExceptionHandler.handleEx
ception(CommandExceptionHandler.java:33)
Your help will really be appreciated....
Kind regards,
HenrikThe best way to create distributed destinations is to create physical destinations in single server mode and then create more servers and a cluster. wlst offline will automatically create distribued destinations and members. Considering that the recommended JMS architecture is homogeneous, there is little need to do it manually. An example:
readTemplate('c:/bea813/weblogic81/common/templates/domains/medrec.jar')
cd('JMSServer/MedRecJMSServer')
q=create('newQueue', 'JMSQueue')
q.setJNDIName('newQueue')
cd('/')
create('newServer1', 'Server')
create('newServer2', 'Server')
create('newCluster', 'Cluster')
assign('Server', 'newServer1,newServer2', 'Cluster', 'newCluster')
writeDomain('d:/temp/domains/813/medrec/medrec_0720')
closeTemplate(); -
WLST Offline, WLS 8.1.6 domain read Error
RedHat Linux 4 upd. 4, WLP 8.1. sp 6
Steps to repeat:
<pre>
[beauser@localhost ~]$ runWLSToffline.sh
Welcome to Weblogic Scripting Shell
wls_offline:/>readTemplate('/WLS/bea/weblogic81/common/templates/domains/wli.jar')
java.io.IOException: Unable to resolve input source.
java.util.MissingResourceException: Error parsing jdbcdrivers.xml
at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getGenericJDBCDriverInfo(JDBCAspectHelper.java:742)
at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getGenericJDBCDriverInfo(JDBCAspectHelper.java:208)
at com.bea.plateng.domain.aspect.ConfigAspectHelper.getXAPools(ConfigAspectHelper.java:855)
at com.bea.plateng.domain.aspect.ConfigAspectHelper.getNonXAMultiPools(ConfigAspectHelper.java:822)
at com.bea.plateng.domain.aspect.ConfigAspectHelper.getNonXAMultiPoolArray(ConfigAspectHelper.java:629)
at com.bea.plateng.domain.assignment.JDBCPoolJDBCDataSourceAssignment.createSourceTree(JDBCPoolJDBCDataSourceAssignment.java:57)
at com.bea.plateng.domain.assignment.AssignmentTree.buildModel(AssignmentTree.java:335)
at com.bea.plateng.domain.assignment.AssignmentTreeDefinition.createAssignment(AssignmentTreeDefinition.java:308)
at com.bea.plateng.domain.DomainTemplate.getAssignment(DomainTemplate.java:937)
at com.bea.plateng.domain.event.assignment.DependencyDeploymentAssignmentListener.JDBCDataSourceAssigned(DependencyDeploymentAssignmentListener.java:90)
at com.bea.plateng.domain.event.assignment.DependencyDeploymentAssignmentListener.doAssign(DependencyDeploymentAssignmentListener.java:55)
at com.bea.plateng.domain.event.assignment.AssignmentTreeListener.vetoableChange(AssignmentTreeListener.java:95)
at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:188)
at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:155)
at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:138)
at com.bea.plateng.common.comdev.TreeDataModel.setAttribute(TreeDataModel.java:191)
at com.bea.plateng.domain.assignment.AssignmentTree$SetInitialSelectionVisitor.visitTree(AssignmentTree.java:1020)
at com.bea.plateng.common.comdev.TreeVisitor.visit(TreeVisitor.java:24)
at com.bea.plateng.common.comdev.PreOrder.preVisit(PreOrder.java:34)
at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:42)
at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:47)
at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:47)
at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:47)
at com.bea.plateng.common.comdev.GeneralTree.accept(GeneralTree.java:220)
at com.bea.plateng.domain.assignment.AssignmentTree.buildModel(AssignmentTree.java:359)
at com.bea.plateng.domain.AutoDeployer.saveOriginalAssignments(AutoDeployer.java:712)
at com.bea.plateng.domain.AutoDeployer.init(AutoDeployer.java:674)
at com.bea.plateng.domain.AutoDeployer.<init>(AutoDeployer.java:177)
at com.bea.plateng.domain.DomainTemplate.<init>(DomainTemplate.java:155)
at com.bea.plateng.domain.DomainTemplate.<init>(DomainTemplate.java:128)
at com.bea.plateng.domain.TemplateBuilder.parseDomainTemplate(TemplateBuilder.java:568)
at com.bea.plateng.domain.TemplateBuilder.buildDomainTemplate(TemplateBuilder.java:1178)
java.io.IOException: Unable to resolve input source.
java.util.MissingResourceException: Error parsing jdbcdrivers.xml
at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getGenericJDBCDriverInfo(JDBCAspectHelper.java:742)
at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getGenericJDBCDriverInfo(JDBCAspectHelper.java:208)
at com.bea.plateng.domain.aspect.ConfigAspectHelper.getXAPools(ConfigAspectHelper.java:855)
at com.bea.plateng.domain.aspect.ConfigAspectHelper.getNonXAMultiPools(ConfigAspectHelper.java:822)
at com.bea.plateng.domain.aspect.ConfigAspectHelper.getNonXAMultiPoolArray(ConfigAspectHelper.java:629)
at com.bea.plateng.domain.assignment.JDBCPoolJDBCDataSourceAssignment.createSourceTree(JDBCPoolJDBCDataSourceAssignment.java:57)
at com.bea.plateng.domain.assignment.AssignmentTree.buildModel(AssignmentTree.java:335)
at com.bea.plateng.domain.assignment.AssignmentTreeDefinition.createAssignment(AssignmentTreeDefinition.java:308)
at com.bea.plateng.domain.DomainTemplate.getAssignment(DomainTemplate.java:937)
at com.bea.plateng.domain.event.assignment.DependencyDeploymentAssignmentListener.JDBCDataSourceAssigned(DependencyDeploymentAssignmentListener.java:90)
at com.bea.plateng.domain.event.assignment.DependencyDeploymentAssignmentListener.doAssign(DependencyDeploymentAssignmentListener.java:55)
at com.bea.plateng.domain.event.assignment.AssignmentTreeListener.vetoableChange(AssignmentTreeListener.java:95)
at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:188)
at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:155)
at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:138)
at com.bea.plateng.common.comdev.TreeDataModel.setAttribute(TreeDataModel.java:191)
at com.bea.plateng.domain.assignment.AssignmentTree$SetInitialSelectionVisitor.visitTree(AssignmentTree.java:1020)
at com.bea.plateng.common.comdev.TreeVisitor.visit(TreeVisitor.java:24)
at com.bea.plateng.common.comdev.PreOrder.preVisit(PreOrder.java:34)
at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:42)
at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:47)
at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:47)
at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:47)
at com.bea.plateng.common.comdev.GeneralTree.accept(GeneralTree.java:220)
at com.bea.plateng.domain.assignment.AssignmentTree.buildModel(AssignmentTree.java:359)
at com.bea.plateng.domain.assignment.AssignmentTreeDefinition.createAssignment(AssignmentTreeDefinition.java:308)
at com.bea.plateng.domain.DomainTemplate.getAssignment(DomainTemplate.java:937)
at com.bea.plateng.domain.DomainChecker.syncAssignments(DomainChecker.java:216)
at com.bea.plateng.domain.TemplateBuilder.buildDomainTemplate(TemplateBuilder.java:1192)
at com.bea.plateng.domain.script.ScriptExecutor.readTemplate(ScriptExecutor.java:365)
at com.bea.plateng.domain.script.jython.WLScriptContext.readTemplate(WLScriptContext.java:195)
java.io.IOException: Unable to resolve input source.
java.util.MissingResourceException: Error parsing jdbcdrivers.xml
at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getGenericJDBCDriverInfo(JDBCAspectHelper.java:742)
at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getGenericJDBCDriverInfo(JDBCAspectHelper.java:208)
at com.bea.plateng.domain.assignment.JDBCPoolJMSJDBCStoreAssignment.createSourceTree(JDBCPoolJMSJDBCStoreAssignment.java:59)
at com.bea.plateng.domain.assignment.AssignmentTree.buildModel(AssignmentTree.java:335)
at com.bea.plateng.domain.assignment.AssignmentTreeDefinition.createAssignment(AssignmentTreeDefinition.java:308)
at com.bea.plateng.domain.DomainTemplate.getAssignment(DomainTemplate.java:937)
at com.bea.plateng.domain.event.assignment.JMSServerServerAssignmentListener.getJDBCConnectionPool(JMSServerServerAssignmentListener.java:99)
at com.bea.plateng.domain.event.assignment.JMSServerServerAssignmentListener.doAssign(JMSServerServerAssignmentListener.java:50)
at com.bea.plateng.domain.event.assignment.AssignmentTreeListener.vetoableChange(AssignmentTreeListener.java:95)
at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:188)
at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:155)
at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:138)
at com.bea.plateng.common.comdev.TreeDataModel.setAttribute(TreeDataModel.java:191)
at com.bea.plateng.domain.assignment.AssignmentTree$SetInitialSelectionVisitor.visitTree(AssignmentTree.java:1020)
at com.bea.plateng.common.comdev.TreeVisitor.visit(TreeVisitor.java:24)
at com.bea.plateng.common.comdev.PreOrder.preVisit(PreOrder.java:34)
at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:42)
at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:47)
at com.bea.plateng.common.comdev.GeneralTree.accept(GeneralTree.java:220)
at com.bea.plateng.domain.assignment.AssignmentTree.buildModel(AssignmentTree.java:359)
at com.bea.plateng.domain.assignment.AssignmentTreeDefinition.createAssignment(AssignmentTreeDefinition.java:308)
at com.bea.plateng.domain.DomainTemplate.getAssignment(DomainTemplate.java:937)
at com.bea.plateng.domain.DomainChecker.syncAssignments(DomainChecker.java:216)
at com.bea.plateng.domain.TemplateBuilder.buildDomainTemplate(TemplateBuilder.java:1192)
at com.bea.plateng.domain.script.ScriptExecutor.readTemplate(ScriptExecutor.java:365)
at com.bea.plateng.domain.script.jython.WLScriptContext.readTemplate(WLScriptContext.java:195)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
at org.python.core.PyReflectedFunction.__call__(Lorg.python.core.PyObject;[Lorg.python.core.PyObject;[Ljava.lang.String;)Lorg.python.core.PyObject;(PyReflectedFunction.java:???)
wls_offline:/integration>
</pre>
As you can see the domain is opened, so is this error painfull, or is it a veeery verbose Warning?
Best regards,
ChristopherWell, maybe domain is onened, but I can't still get to configure the JDBC Pools:
wls_offline:/integration/JDBCConnectionPool>cd('cgPool')
java.io.IOException: Unable to resolve input source.
Error: cd() failed. Do dumpStack() to see details.
wls_offline:/integration/JDBCConnectionPool>dumpStack()
com.bea.plateng.domain.script.jython.WLSTException: java.util.MissingResourceException: Error parsing jdbcdrivers.xml
at com.bea.plateng.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:33)
at com.bea.plateng.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:897)
at com.bea.plateng.domain.script.jython.WLScriptContext.cd(WLScriptContext.java:372)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
So error mensioned above is not just warning - it block JDBC configuration.
I found that the WLST somoehow redefines whe WL_HOME, and instead of using the /WLS/bea/weblogic81 directory it uses user home dir /home/beauser ...
I had to create the symbolic links to $HOME/common and $HOME/server to make WLST Offline works.
Any one knows how can I change this path ?
I run WLST-offline via:
<pre>
. /WLS/bea/weblogic81/server/bin/setWLSEnv.sh
export HOME=$WL_HOME
echo HOME: "$HOME" "..." "~"
export CLASSPATH=$CLASSPATH:/home/beauser/wlst/wlst.jar:$WL_HOME/common/lib/jython.jar:/home/beauser/wlst/update012120053rdparty.jar:/home/beauser/wlst/update01212005/comdev.jar:/home/beauser/wlst/update01212005/config.jar:$WL_HOME/collom/lib:.
java com.bea.plateng.domain.script.jython.WLST_offline $*
</pre>
Message was edited by:
[email protected] -
How to assign area in site (in sap Retail) for different article.
Hi All Experts,
Can you tell me how to assign the space in layout tabs of site master data(wb01) in retails for the different products \merchandise category.
My aim is to see the contribution of article \Floor area in the store.
Ex- i have mobile ,tv and washing machine
now i 'll assign some area to these art(floor area)
Like 200 Sq mm for mobile ,1000for tv and 1500 for washing machine.
I want to assign in site master data so it comes automatically for every site.
Now i want to see the contribution of all these article \Floor area in the store.
Looking for your valuable suggestion.
PrashantNachy,
You can copy the overview iview of type workset map iview from standard ess role and give the area group name in that.
check the overview iview in the standard ess role
give application parameters as sap.xss.menuargrp=area group name&sap.xss.menuhdr=header name
Thanks
Bala Duvvuri
Edited by: Bala Duvvuri on Aug 5, 2010 7:35 AM -
How to assign resource (not personel resource) to Activity/WBS/Network
Hi,
can anybody show me how to assign resources (not personel resource) to Activity/WBS/Network, how to plan/manage resources in PS
Thank you
LongHi,
Resource Planning will work in Project in two methods.
1.work center:
In work center we will assign resources such as machines etc to execute the Projects
2. Workforce Planning:
In work force planing resource assignment to network activity will happen. Project Team will be assigned to WBSE. Capacity planning / levelling will happen through this functionality.
Refer the below URL to know more details of resource planing in projects
http://help.sap.com/erp2005_ehp_02/helpdata/en/ed/b7853488601e33e10000009b38f83b/frameset.htm
Hope this will help you.
Regards,
Rakesh Pradhan -
I am using O2 as my provider and am receiving email effectively but of recent cannot send email with two of my servers (tiscali and O2 ) having a note beside the server name in brackets saying (offline) - how do I change this?
I have taking my 3 email accounts offline and online again several times but to no avail vis the facility to do so under the toolbar - mailbox.
My gmail is the only one without this note and it is working.
Help - I know it is probably something simple but I am failing to spot it.See under "Mail Connection Doctor shows one or more red dots" on this page:
Mail: Troubleshooting sending & receiving email messages -
Assigning 2 DNS servers to VPN clients
It seems like I can only assign 2 DNS servers to VPN clients using the "dns-server" command in config-group-policy? How do I go about assigning more than 2?
what exactly does dns server-group do? Can I use that command to assign dns servers to vpn clients since I can add more than 2 dns servers?ciscoasa# sh run
: Saved
ASA Version 8.0(4)
hostname ciscoasa
enable password c.LHJMlCqC0Qvrsf encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
names
interface Ethernet0/0
speed 100
duplex full
nameif outside
security-level 0
ip address extip 255.255.255.240
interface Ethernet0/1
speed 100
duplex full
nameif inside
security-level 100
ip address 172.17.193.100 255.255.255.0
interface Ethernet0/2
shutdown
no nameif
no security-level
no ip address
interface Ethernet0/3
shutdown
no nameif
no security-level
no ip address
interface Management0/0
nameif management
security-level 100
ip address 192.168.1.1 255.255.255.0
management-only
boot config disk0:/exit
ftp mode passive
clock timezone mst -7
clock summer-time mdt recurring
dns domain-lookup inside
dns server-group TA-UAT
name-server 44.44.44.102
domain-name ta.corp.adds
access-list split_tunnel_list standard permit 172.17.193.0 255.255.255.0
access-list split_tunnel_list standard permit 44.44.44.0 255.255.255.0
access-list inside_nat0_outbound extended permit ip 172.17.193.0 255.255.255.0 192.168.20.0 255.255.255.0
access-list inside_nat0_outbound extended permit ip 44.44.44.0 255.255.255.0 192.168.20.0 255.255.255.0
access-list inbound_on_outside extended permit icmp any any
access-list inbound_on_outside extended permit tcp any host extip eq 5555
access-list inbound_on_outside extended permit tcp any host extip eq www
pager lines 24
logging enable
logging asdm informational
mtu outside 1500
mtu inside 1500
mtu management 1500
ip local pool vpnuserspool 192.168.20.101-192.168.20.254 mask 255.255.255.0
no failover
icmp unreachable rate-limit 1 burst-size 1
icmp deny any outside
asdm image disk0:/asdm-613.bin
no asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list inside_nat0_outbound
nat (inside) 1 44.44.44.0 255.255.255.0
nat (inside) 1 172.17.193.0 255.255.255.0
static (inside,outside) tcp extip 5555 172.17.193.96 5555 netmask 255.255.255.255
static (inside,outside) tcp extip www 172.17.193.1 www netmask 255.255.255.255
access-group inbound_on_outside in interface outside
route outside 0.0.0.0 0.0.0.0 extip 1
route inside 44.44.44.0 255.255.255.0 172.17.193.1 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
dynamic-access-policy-record DfltAccessPolicy
aaa authentication ssh console LOCAL
http server enable
http 192.168.20.0 255.255.255.0 inside
http 172.17.193.0 255.255.255.0 inside
http 192.168.1.0 255.255.255.0 management
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
crypto ipsec transform-set firstset esp-3des esp-md5-hmac
crypto ipsec security-association lifetime seconds 28800
crypto ipsec security-association lifetime kilobytes 4608000
crypto dynamic-map dyn1 1 set transform-set firstset
crypto dynamic-map dyn1 1 set security-association lifetime seconds 28800
crypto dynamic-map dyn1 1 set security-association lifetime kilobytes 4608000
crypto dynamic-map dyn1 1 set reverse-route
crypto map mymap 1 ipsec-isakmp dynamic dyn1
crypto map mymap interface outside
crypto isakmp enable outside
crypto isakmp policy 1
authentication pre-share
encryption 3des
hash sha
group 2
lifetime 43200
crypto isakmp nat-traversal 3600 -
Keep App Deployments while recreating the domain in WLST offline
What is the easiest way to keep the app deployments (that were assigned after the domain creation) while recreating the domain from the basic and extension templates in WLST offline while using the "OverWriteDomain' option?
I can use configToScript to create a deployment script, but that involves starting the domain after creating and running the script.
Trying to do as much as possible in the offline world.
As part of the recreate process, I can read the domain directory to see if it exists and go through the tree to see if there are any app deployments, keep that info in memory or write to a file and after the recreate is done assign the app deployments again and write the domain.
Looking for an easy way to export and import the AppDeployment data. Do not know if there is a JSON interface.I ended up doing this.
appdeps={}
try:
readDomain(dom.targetDomainDir)
cd('/AppDeployments')
apps=ls(returnMap='true')
for app in apps:
appdeps[app]=ls(app,returnMap='true', returnType='a')
except:
pass
try:
closeDomain()
except:
pass
deployApps(appdeps)
def deployApps(pAppDeps):
try:
cd('/')
for pAppDep in pAppDeps.keys():
try:
cd('/')
create(pAppDep,'AppDeployment')
cd('/AppDeployment/'+pAppDep)
for pEntry in pAppDeps[pAppDep].entrySet():
print 'setting key=' + pEntry.key + ',value=' + str(pEntry.value)
try:
if pEntry.value!=None:
set(pEntry.key,pEntry.value)
except:
pass
except:
pass
except:
pass -
WLST offline - Changing AdminServer name
Using WLST offline to create a domain by reading a template.
This creates a default admin server with name AdminServer.
Is there anyway to change the admin server's name from AdminServer to something else using WLST? or is there a way to override the default value?
ThanksWhat is the problem?
<i><b>cd('/Servers/AdminServer')
set('Name','myName')</b></i> -
Domain creation using WLST offline mode
Hi,
We are migrating from WL8.1SP5 to WL10MP2. After reading through the various options (WLST online, WLST offline, WLST.configToScript(), and Configuration Wizard) , I have concluded that we will use WLST in offline mode to create domains in our prod, qa, and dev environments. In 8.1 I had a silent script that would create domains for me repeatedly in any environment very easily. I want to map this script into the corresponding SOME_NAME.py script to be used for WL10MP2 domain.
I have the BEA provided basicWLSDomain.py (please see below) script. I have difficulty in understanding more than half of that script! I know the basic concept is to traverse the MBean tree and creat and/or set parameters. But I do not know which MBean I will need to modify/create.
Example 1:
readTemplate("C:/bea/wlserver_10.0/common/templates/domains/wls.jar")
cd('Servers/AdminServer')
Q1] I went through http://e-docs.bea.com/wls/docs90/wlsmbeanref/core/index.html but could not find either ServersMBean or AdminServerMBean.
Example 2:
cd('/')
create('myJMSServer', 'JMSServer')
cd('/')
create('myJmsSystemResource', 'JMSSystemResource')
cd('JMSSystemResource/myJmsSystemResource/JmsResource/NO_NAME_0')
Q2] What is a JMSSystemResource? (If I remember correctly, there is no such thing in WL8.1)
Q3] What is JmsResource?
Example 3:
cd('/')
create('myDataSource', 'JDBCSystemResource')
cd('JDBCSystemResource/myDataSource/JdbcResource/myDataSource')
create('myJdbcDriverParams','JDBCDriverParams')
cd('JDBCDriverParams/NO_NAME_0')
set('DriverName','com.pointbase.jdbc.jdbcUniversalDriver')
set('URL','jdbc:pointbase:server://localhost/demo')
set('PasswordEncrypted', 'PBPUBLIC')
set('UseXADataSourceInterface', 'false')
create('myProps','Properties')
cd('Properties/NO_NAME_0')
create('user', 'Property')
cd('Property/user')
cmo.setValue('PBPUBLIC')
cd('/JDBCSystemResource/myDataSource/JdbcResource/myDataSource')
create('myJdbcDataSourceParams','JDBCDataSourceParams')
cd('JDBCDataSourceParams/NO_NAME_0')
set('JNDIName', java.lang.String("myDataSource_jndi"))
cd('/JDBCSystemResource/myDataSource/JdbcResource/myDataSource')
create('myJdbcConnectionPoolParams','JDBCConnectionPoolParams')
cd('JDBCConnectionPoolParams/NO_NAME_0')
set('TestTableName','SYSTABLES')
Q4] Can you please explain the above snippet line by line?
Q5] Why are certain attributes set like this --- set('TestTableName','SYSTABLES') while certain attributes like below are set like this -- myq.setJNDIName('jms/myqueue')?
Example 4:
myq=create('myQueue','Queue')
myq.setJNDIName('jms/myqueue')
myq.setSubDeploymentName('myQueueSubDeployment')
cd('/')
cd('JMSSystemResource/myJmsSystemResource')
create('myQueueSubDeployment', 'SubDeployment')
Q6] What us a SubDeployment?
I apologize for the long question. I would greatly appreciate any help!
Thanks!
Edited by: user10045656 on Oct 29, 2008 11:03 AM
Edited by: user10045656 on Oct 29, 2008 11:06 AM1 - What is the best way to create a schema, for reporting application, during automated domain build process as we need to create new domains from the script and also be able to start and deploy applications on it. which will also require to have db schema for reporting application.
My suggestion would be to execute the scripts under /neelapu/bea/post31/RC4-samples/osb_10.3/dbscripts/oracle/*.sql with your automated process. OSB requires two simple tables WLI_QS_REPORT_DATA and WLI_QS_REPORT_ATTRIBUTE.
If reporting is not required then we can modify (I guess) in wlst offline mode to delete the below applications from domain.
<app-deployment>
<name>JMS Reporting Provider</name>
<target>osb_server1</target>
<module-type>ear</module-type>
<source-path>/neelapu/bea/xyz/load4/Oracle_OSB1/lib/common/jmsreportprovider.ear</source-path>
<deployment-order>125</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
</app-deployment>
<app-deployment>
<name>Message Reporting Purger</name>
<target>osb_server1</target>
<module-type>ear</module-type>
<source-path>/neelapu/bea/xyx/load4/Oracle_OSB1/lib/common/msgpurger.ear</source-path>
<deployment-order>126</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
</app-deployment>
Thanks
Manoj
Maybe you are looking for
-
Traditional chinese language support for pearl flip 8220?
I just got a pearl flip from T-Mobile. I'm happy with most features, however, there is no Chinese language support whatsoever. All the Chinese characters show up as black boxes. Anyone know of any fixes so that I can read and input Chinese (tradit
-
How to pass the FORM Fields value by Form Personalization
Hi ALL, I want to pass form filds values in to procedure. I am calling this procedure through form personalization of that form..... But it's not accepting any form field's value there... when i am passing hardcoded vales procedure is executing fine.
-
'HelloMidlet' wizard not working
Hi everybody, i've bought a SAMSUNG SGH-D980 which is apparently j2me compatible. I have downloaded the Eclipse plug-in from Samsung website and the SDK for samsung as well. Then I created an 'HelloMidlet' project using the Eclipse wizard on my pc. I
-
Anybody using MainStage as their only live mixer?
I'm interested in mixing small combo gigs and maybe even some corporate a/v stuff using MainStage on my MacBook Pro in place of a mixing board. I'd probably get a small MIDI controller like the Korg nanoKontrol for quick access to a few key parameter
-
Integrating Oracle Apps Calendars with Outlook
From Oracle Apps example :Oracle Learning Management you can schedule a resource (instructor) , many clients are asking for the ability to consolidate this scheduling with with the Outlook. Is there any known solution? Thanks in advance