Paco,
C:\Program Files\wlshell-2.1.0\bin>wlsh
by Paco Gomez (c) 2002 - 2007. www.wlshell.net
BEA Systems, Inc., BEA WebLogic JRockit(TM) 1.4.2_05 JVM R24.4.0-1, version ari-
38120-20041118-1131-win-ia32
provider: wlshell.connect.jmx.LocalConnector
version: error: couldn't create instance of provider class
provider: wlshell.connect.jmx.RemoteConnector
version: error: couldn't create instance of provider class
provider: wlshell.connect.jmx.weblogic.Connector
version: wlshell Connector version 2.1.0 for WebLogic 6.1, 7.0, 8.1, 9.2 and 1
0
Using WebLogic libraries:
WebLogic Server 8.1 SP4 Mon Nov 29 16:21:29 PST 2004 471647
WebLogic XMLX Module 8.1 SP4 Mon Nov 29 16:21:29 PST 2004 471647
WebLogic Integration 8.1 SP4 Tue Nov 30 10:34:16 PST 2004 471877
wlsh [not connected]> info -v
not connected
- heap size free/total/max (MB): 53/64/128
- user.dir: C:\Program Files\wlshell-2.1.0\bin
- java.class.path: C:\bea\JROCKI~1\lib\tools.jar;C:\bea\WEBLOG~1\server\lib\webl
ogic_sp.jar;C:\bea\WEBLOG~1\server\lib\weblogic.jar;=C:\Program Files\wlshell-2.
1.0\lib\wlshell-2.1.0.1.jar;C:\Program Files\wlshell-2.1.0\lib\wlshell-2.1.0.jar
;C:\Program Files\wlshell-2.1.0\lib\log4j-1.2.8.jar;C:\Program Files\wlshell-2.1
.0\lib\looks-1.1.2.jar;C:\Program Files\wlshell-2.1.0\lib\forms-1.0.2.jar;C:\Pro
gram Files\wlshell-2.1.0\lib\xconfig-2.0.jar;C:\Program Files\wlshell-2.1.0\lib\
xbean.jar;;C:\bea\WEBLOG~1\server\lib\wli.jar;C:\bea\WEBLOG~1\server\lib\knex.ja
r;C:\bea\WEBLOG~1\p13n\lib\p13n_system.jar
From: Paco Gomez <paco@...>
To: wlshell@yahoogroups.com
Sent: Friday, September 14, 2007 11:58:06 AM
Subject: RE: [wlshell] Re: Classcast Exception error
Sudhakar,
I was referring to the “ver” command inside wlshell. That produces detailed information of the libraries being used. Also please attach the output of the “info –v” command. As shown below,
Thanks,
Paco
wlsh [not connected]> ver
wlshell version 2.1.0
Java version:
BEA Systems, Inc., BEA JRockit(R), version R26.4.0-63_CR302700 -72606-1. 5.0_06-20061127- 1108-win- ia32
Connectors:
protocols: local
provider: wlshell.connect. jmx.LocalConnect or
version: wlshell Local JMX Connector version 2.1.0 for JMX 1.2 and higher
protocols: service:jmx: rmi
provider: wlshell.connect. jmx.RemoteConnec tor
version: wlshell Remote JMX Connector version 2.1.0 for JMX 1.2 with JMX Remote API 1.0
protocols: http, https, service:jmx: t3, t3, t3s
provider: wlshell.connect. jmx.weblogic. Connector
version: wlshell Connector version 2.1.0 for WebLogic 6.1, 7.0, 8.1, 9.2 and 10
Using WebLogic libraries:
WebLogic Server 10.0 SP0 Wed May 9 18:10:27 EDT 2007 933139
wlsh [not connected]> info -v
not connected
current path keys: [Type, Name, Application, Stream]
additional information:
- heap size free/total/max (MB): 51/64/128
- user.dir: c:\wlshell\wlshell- 2.1.0\bin
- java.class.path: c:\BEA-WL~3\ patch_wls1000\ profiles\ default\sys_ manifest_ classpath\ weblogic_ patch.jar; c:\BEA-WL~ 3\patch_wlw1000\ profiles\ d
efault\sys_manifest _classpath\ weblogic_ patch.jar; c:\BEA-WL~ 3\JROCKI~ 1\lib\tools. jar;C:\BEA- WL~3\WLSERV~ 1.0\server\ lib\weblogic_ sp.jar;C: \BEA
-WL~3\WLSERV~ 1.0\server\ lib\weblogic. jar;c:\BEA- WL~3\modules\ features\ weblogic. server.modules_ 10.0.0.0. jar;c:\BEA- WL~3\modules\ features\ com.
bea.cie.common- plugin.launch_ 2.1.0.0.jar; C:\BEA-WL~ 3\WLSERV~ 1.0\server\ lib\webservices. jar;c:\BEA- WL~3\modules\ ORGAPA~1. 5/lib/ant- all.jar;c:
\BEA-WL~3\modules\ NETSFA~1. 0/lib/ant- contrib.jar; C:\wlshell\ wlshell-2. 1.0\lib\wlshell- 2.1.0.jar; C:\wlshell\ wlshell-2. 1.0\lib\log4j- 1.2.8.jar
;C:\wlshell\ wlshell-2. 1.0\lib\looks- 1.1.2.jar; C:\wlshell\ wlshell-2. 1.0\lib\forms- 1.0.2.jar; C:\wlshell\ wlshell-2. 1.0\lib\xconfig- 2.0.jar;C: \w
lshell\wlshell- 2.1.0\lib\ xbean.jar; ;C:\BEA-WL~ 3\WLSERV~ 1.0\server\ lib\wli.jar; C:\BEA-WL~ 3\WLSERV~ 1.0\server\ lib\knex. jar;C:\BEA- WL~3\WLSERV~
1.0\p13n\lib\ p13n_system. jar
From: wlshell@yahoogroups .com [mailto:wlshell@ yahoogroups. com] On Behalf Of SUDHAKAR KR
Sent: Friday, September 14, 2007 10:45 AM
To: wlshell@yahoogroups .com
Subject: Re: [wlshell] Re: Classcast Exception error
Hello Paco,
Sorry. I overlooked. Please find attached.
Thanks
Sudhakar
----- Original Message ----
From: Paco Gomez <paco@pacogomez. com>
To: wlshell@yahoogroups .com
Sent: Friday, September 14, 2007 10:55:59 AM
Subject: RE: [wlshell] Re: Classcast Exception error
Sudhakar,
I didn’t see the output of the “ver” command. Can you execute “ver” within wlshell and send me the output?
Paco
From: wlshell@yahoogroups .com [mailto:wlshell@ yahoogroups. com] On Behalf Of SUDHAKAR KR
Sent: Friday, September 14, 2007 9:44 AM
To: wlshell@yahoogroups .com
Subject: Re: [wlshell] Re: Classcast Exception error
Hello Paco,
Thanks for replying.
I have followed your instructions and created the wlshell.log. Unfortunately, I had to mask some details such as server name, IP address, user id and password. I hope you understand.
please find attached the same.
Thanks
Sudhakar
----- Original Message ----
From: sfomad <paco@pacogomez. com>
To: wlshell@yahoogroups .com
Sent: Friday, September 14, 2007 10:01:43 AM
Subject: [wlshell] Re: Classcast Exception error
To find out what the issue is, can you start wlshell with the -d flag
(wlsh -d), execute "ver" to show the version and the connect command?
then send the wlshell.log file for review,
Paco
--- In wlshell@yahoogroups .com, "Sudhakar" <sudha22@... > wrote:
>
> Hello,
>
> I am having trouble connecting to one of the weblogic server which is
> running Weblogic 8.1 SP5. It is throwing the following exception
> shown below.
>
> Any help is greatly appreciated.
>
>
> ############ ######### ######
> From command line I just gave.
>
> wlsh
>
> Then,
>
> connect <server name>:port <userid> <password>
>
>
> ## RESPONSE ##
> connecting to
t3://<server name>:7001 as administrator. ..done
>
> connection information:
> - the server name is "server" and belongs to "domain name" domain
> - this server is running as the administration server
> - the shell is accessing all MBeans in this domain
> - the server version is:
> WebLogic Server 8.1 SP5 Mon Sep 19 23:06:54 PDT 2005 641358
> WebLogic XMLX Module 8.1 SP5 Mon Sep 19 23:06:54 PDT 2005 641358
> - see /ServerRuntime/ ahpst.documentdn a.com for more runtime
> information.
>
> connecting to servers... failed
> java.lang.ClassCast Exception:
> weblogic.jndi. internal. WLEventContextIm pl
> failed
> could not get information from the server(s)
>
> ## From WLSHELL.log# ######### ########
> 2007-09-12 17:30:58 ERROR - java.lang.ClassCast Exception:
> weblogic.jndi. internal. WLEventContextIm pl
> at
>
wlshell.jmx. weblogic. WebLogicMBeanSer verHelper. reloadServerList (Z)Z
> (WebLogicMBeanServe rHelper.java: 338)
> at wlshell.connect. jmx.weblogic. RemoteConnectorP re9.connect
> (Ljava.lang. String;Ljava. lang.String; Ljava.lang. String;Ljava. lang.Stri
> ng;)Z(RemoteConnect orPre9.java: 117)
> at wlshell.connect. jmx.weblogic. Connector. connect
> (Ljava.lang. String;Ljava. lang.String; Ljava.lang. String;Ljava. lang.Stri
> ng;)Z(Connector. java:95)
> at wlshell.commands. Session.connectC md
> (Ljava.lang. String;Ljava. lang.Object; Ljava.lang. Object;Ljava. lang.Obje
> ct;)Ljava.lang. Boolean;( Session.java: 238)
> at wlshell.eval. TreeEvaluator. evalConnect
> (Lwlshell.parser. SimpleNode; Ljava.io. PrintWriter; )Ljava.lang. Object;
> (TreeEvaluator. java:794)
> at wlshell.eval. TreeEvaluator. eval
> (Lwlshell.parser. SimpleNode; Ljava.io. PrintWriter;
)Ljava.lang. Object;
> (TreeEvaluator. java:147)
> at wlshell.eval. TreeEvaluator. evalCommand
> (Lwlshell.parser. SimpleNode; Ljava.io. PrintWriter; )Ljava.lang. Object;
> (TreeEvaluator. java:552)
> at wlshell.eval. TreeEvaluator. eval
> (Lwlshell.parser. SimpleNode; Ljava.io. PrintWriter; )Ljava.lang. Object;
> (TreeEvaluator. java:229)
> at wlshell.eval. TreeEvaluator. evalCommands
> (Lwlshell.parser. SimpleNode; Ljava.io. PrintWriter; )Ljava.lang. Object;
> (TreeEvaluator. java:363)
> at wlshell.eval. TreeEvaluator. eval
> (Lwlshell.parser. SimpleNode; Ljava.io. PrintWriter; )Ljava.lang. Object;
> (TreeEvaluator. java:141)
> at wlshell.eval. TreeEvaluator. evalScript
> (Lwlshell.parser. SimpleNode; Ljava.io. PrintWriter; )Ljava.lang. Object;
> (TreeEvaluator. java:297)
> at wlshell.eval. TreeEvaluator. eval
> (Lwlshell.parser. SimpleNode;
Ljava.io. PrintWriter; )Ljava.lang. Object;
> (TreeEvaluator. java:227)
> at wlshell.cl.CommandL ineImpl.eval
> (Lwlshell.parser. SimpleNode; Ljava.io. PrintWriter; )Ljava.lang. Object;
> (CommandLineImpl. java:59)
> at wlshell.cl.TextComm andLine.run( [Ljava.lang. String;)V
> (TextCommandLine. java:121)
> at wlshell.cl.TextComm andLine.main( [Ljava.lang. String;)V
> (TextCommandLine. java:36)
> at wlshell.Main. main([Ljava. lang.String; )V(Main.java: 48)
>
Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search.
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out.