Advertisement

08.27.2008 at 02:41PM PDT, ID: 23683704
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.0

Why is WLST throwing a File Not Found Exception when the file is there?

Asked by Bbouch in BEA WebLogic Application Server, Java Programming Language, Python Scripting Language

Tags: , , ,

I have a WLST script (jython) that is supposed to import a jar into an Aqualogic Data Services Platform (3.0) cluster running on Weblogic 9.2 MP2.

The script is able to connect to the adminServer, and create an edit session, but when it trys to import the jar, it gets an error that seems to indicate the Jar it is trying to import is not found.  The jar is in the same directory as the script, so I am not sure what the problem is.

In all fairness, though, I am releatively new to Jython, and scripting, so its possible I am not reading the results accurately.  If anyoe has thoughts on why I may be receving this error, I would love to hear them.

The line that the script is failing on is:
    wlst.invoke('importJar',[dataspaceName,importJarFilePath,deploymentOptions],['java.lang.String','java.lang.String','com.bea.dsp.management.deployment.session.DeploymentOptions'])

I have already echoed out the variables being used, and they seem ok, so I'm stumped on where to go from here.
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
[java] Importing MyCompanyDataServices-artifacts.jar
 
     [java] Location changed to custom tree. This is a writable tree with No root.
     [java] For more help, use help(custom)
 
 
 
     [java] This Exception occured at Wed Aug 27 15:59:35 EDT 2008.
     [java] javax.management.MBeanException: Exception thrown in operation importJar
     [java]     at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:211)
     [java]     at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:224)
     [java]     at javax.management.remote.rmi.RMIConnectionImpl_922_WLStub.invoke(Unknown Source)
     [java]     at weblogic.management.remote.common.RMIConnectionWrapper$15.run(ClientProviderBase.java:606)
     [java]     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
     [java]     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
     [java]     at weblogic.security.Security.runAs(Security.java:61)
     [java]     at weblogic.management.remote.common.RMIConnectionWrapper.invoke(ClientProviderBase.java:604)
     [java]     at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.invoke(RMIConnector.java:972)
     [java]     at weblogic.management.scripting.EditHandler.invoke(EditHandler.java:390)
     [java]     at weblogic.management.scripting.WLScriptContext.invoke(WLScriptContext.java:325)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:585)
     [java]     at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:160)
     [java]     at org.python.core.PyMethod.__call__(PyMethod.java:96)
     [java]     at org.python.core.PyObject.__call__(PyObject.java:248)
     [java]     at org.python.core.PyObject.invoke(PyObject.java:2016)
     [java]     at org.python.pycode._pyx19.invoke$39(c:\TEMP\3\wlstTemp\wlst_module1.py:577)
     [java]     at org.python.pycode._pyx19.call_function(c:\TEMP\3\wlstTemp\wlst_module1.py)
     [java]     at org.python.core.PyTableCode.call(PyTableCode.java:208)
     [java]     at org.python.core.PyTableCode.call(PyTableCode.java:404)
     [java]     at org.python.core.PyFunction.__call__(PyFunction.java:184)
     [java]     at org.python.core.PyObject.__call__(PyObject.java:248)
     [java]     at org.python.core.PyObject.invoke(PyObject.java:2016)
     [java]     at DspCommonCommands$py.importDataSpace$10(C:\MyApp\Workspaces\DataServices\MyCompanyDataServices\.\DspCommonCommands.py:59)
     [java]     at DspCommonCommands$py.call_function(C:\MyApp\Workspaces\DataServices\MyCompanyDataServices\.\DspCommonCommands.py)
     [java]     at org.python.core.PyTableCode.call(PyTableCode.java:208)
     [java]     at org.python.core.PyTableCode.call(PyTableCode.java:404)
     [java]     at org.python.core.PyFunction.__call__(PyFunction.java:184)
     [java]     at org.python.core.PyObject.__call__(PyObject.java:248)
     [java]     at org.python.core.PyObject.invoke(PyObject.java:2016)
     [java]     at org.python.pycode._pyx18.importToALDSPDomain$1(C:\MyApp\Workspaces\DataServices\MyCompanyDataServices\importDataServices.py:31)
     [java]     at org.python.pycode._pyx18.call_function(C:\MyApp\Workspaces\DataServices\MyCompanyDataServices\importDataServices.py)
     [java]     at org.python.core.PyTableCode.call(PyTableCode.java:208)
     [java]     at org.python.core.PyTableCode.call(PyTableCode.java:267)
     [java]     at org.python.core.PyFunction.__call__(PyFunction.java:172)
     [java]     at org.python.pycode._pyx18.f$0(C:\MyApp\Workspaces\DataServices\MyCompanyDataServices\importDataServices.py:68)
     [java]     at org.python.pycode._pyx18.call_function(C:\MyApp\Workspaces\DataServices\MyCompanyDataServices\importDataServices.py)
     [java]     at org.python.core.PyTableCode.call(PyTableCode.java:208)
     [java]     at org.python.core.PyCode.call(PyCode.java:14)
     [java]     at org.python.core.Py.runCode(Py.java:1135)
     [java]     at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:167)
     [java]     at weblogic.management.scripting.WLST.main(WLST.java:106)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:585)
     [java]     at weblogic.WLST.main(WLST.java:29)
     [java] Caused by: com.bea.dsp.management.exceptions.ManagementException: Deployment unit validation failed. Cause: File not found
     [java]     at com.bea.dsp.management.session.impl.SessionMBeanImpl.importJar(SessionMBeanImpl.java:169)
     [java]     at com.bea.dsp.management.session.impl.DataspaceSynchronizedSessionMBeanImpl.importJar(DataspaceSynchronizedSessionMBeanImpl.java:28)
     [java]     at com.bea.dsp.management.session.impl.SecureSessionMBeanImpl.importJar(SecureSessionMBeanImpl.java:35)
     [java]     at com.bea.dsp.management.session.impl.BroadcastingSessionMBeanImpl.importJar(BroadcastingSessionMBeanImpl.java:37)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:585)
     [java]     at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:414)
     [java]     at javax.management.StandardMBean.invoke(StandardMBean.java:323)
     [java]     at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
     [java]     at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
     [java]     at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
     [java]     at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
     [java]     at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:149)
     [java]     at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:149)
     [java]     at weblogic.management.mbeanservers.internal.SecurityInterceptor.invoke(SecurityInterceptor.java:426)
     [java]     at weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterceptor$10.run(AuthenticatedSubjectInterceptor.java:377)
     [java]     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
     [java]     at weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterceptor.invoke(AuthenticatedSubjectInterceptor.java:375)
     [java]     at weblogic.management.jmx.mbeanserver.WLSMBeanServer.invoke(WLSMBeanServer.java:310)
     [java]     at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1408)
     [java]     at javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81)
     [java]     at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1245)
     [java]     at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1348)
     [java]     at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:782)
     [java]     at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown Source)
     [java]     at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:550)
     [java]     at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:440)
     [java]     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
     [java]     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
     [java]     at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:436)
     [java]     at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:58)
     [java]     at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:975)
     [java]     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
     [java]     at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
     [java] Unexpected error: wlstModule.WLSTException
     [java] Unexpected error:  wlstModule.WLSTException
     [java] Problem invoking WLST - Traceback (innermost last):
     [java]   File "C:\MyApp\Workspaces\DataServices\MyCompanyDataServices\importDataServices.py", line 72, in ?
     [java]   File "C:\MyApp\Workspaces\DataServices\MyCompanyDataServices\importDataServices.py", line 43, in importToALDSPDomain
     [java]   File "C:\MyApp\Workspaces\DataServices\MyCompanyDataServices\.\DspCommonCommands.py", line 59, in importDataSpace
     [java]   File "c:\TEMP\3\wlstTemp\wlst_module1.py", line 587, in invoke
     [java] WLSTException: 'Error occured while performing invoke : Error while doing an invoke.Exception thrown in operation importJar Deployment unit validation failed. Cause: File not found Use dumpStack() to view the full stacktrace'
 
 
[+][-]08.27.2008 at 03:52PM PDT, ID: 22330060

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.27.2008 at 03:55PM PDT, ID: 22330075

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.27.2008 at 03:59PM PDT, ID: 22330097

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.27.2008 at 04:08PM PDT, ID: 22330141

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.27.2008 at 04:09PM PDT, ID: 22330144

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.30.2008 at 02:48PM PDT, ID: 22353326

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.30.2008 at 04:07PM PDT, ID: 22353497

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.23.2008 at 10:24AM PDT, ID: 22788528

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: BEA WebLogic Application Server, Java Programming Language, Python Scripting Language
Tags: Oracle (BEA), WebLogic, 9.2 MP2, WLST scripting
Sign Up Now!
Solution Provided By: Bbouch
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628