Using the WebLogic utilities
WebLogic's developer utilitiesWebLogic includes several Java utility programs to make installation and configuration easier, and to offer handy services. These programs are enumerated here. Some of the utility programs are covered in more detail in separate Administrator Guides, as noted.To use these utilities you must correctly set your classpath. AppletArchiverThe applet archiver utility runs an applet in a separate frame, remembers all of the downloaded classes and resources used by the applet, and packages these into either a .jar or a .cab file. (The cabarch tool is available from Microsoft.) More details are available in:Using the applet archiver to create a .jar or .cab archiveSyntax$ java utils.applet.archiver.AppletArchiver URL archive Arguments
ExamplesSee Using the applet archiver to create a .jar or .cab archive for more information and examples.dbpingThe dbping command-line utility tests the connection between a DBMS and your client machine, via a two-tier WebLogic jDriver. More details are available in:Testing connectionsSyntax$ java utils.dbping DBMS user password DB Arguments
ExamplesSee the examples for each specific database in Testing connections.eventsnoopYou must have a WebLogic Server running to use the eventsnoop utility, which registers you as a T3Client with an interest in some specified events, and then returns information about the events to stdout. Syntax$ java utils.eventsnoop WebLogicURL topiclist Arguments
Examples$ java utils.eventsnoop t3://localhost:7001 WEBLOGIC.TIME WEBLOGIC.LOG eventviewerThe eventviewer is a GUI interface that, like eventsnoop, registers interest in some specified events, and then returns information about the events. You must have a WebLogic Server running to use this utility. Syntax$ java utils.eventviewer WebLogicURL Arguments
Examples$ java utils.eventviewer t3://localhost:7001 getPropertyThe getProperty utility gives you details about your Java setup and your system. It takes no arguments. Syntax$ java utils.getProperty Example$ java utils.getProperty -- listing properties -- user.language=en java.home=c:\java11\bin\.. awt.toolkit=sun.awt.windows.WToolkit file.encoding.pkg=sun.io java.version=1.1_Final file.separator=\ line.separator= user.region=US file.encoding=8859_1 java.vendor=Sun Microsystems Inc. user.timezone=PST user.name=mary os.arch=x86 os.name=Windows NT java.vendor.url=http://www.sun.com/ user.dir=C:\weblogic java.class.path=c:\weblogic\classes;c:\java\lib\cla... java.class.version=45.3 os.version=4.0 path.separator=; user.home=C:\ licenseConverterBeginning with release 4.0, the default format for WebLogic licenses has changed from a class file that needed to be compiled to a new XML format. Although both the older-style class files and the new XML-format license files can still be used, some users may wish to convert their existing licenses to the newer format. The licenseConverter utility searches through your CLASSPATH, the WebLogic home directory, and the current directory and converts the first old-style class license file it finds into the newer XML-format license. The new XML-format file will be named WebLogicLicense.xml. If you already have a WebLogicLicense.xml file in one of those locations, the utility will display a message and quit. For information on where to place the converted file, see Location of the license files . For more information about WebLogic licenses see Installing a WebLogic license. Syntax$ java utils.licenseConverter Arguments
Example$ java utils.licenseConverter -w c:\weblogic
logToZipThis utility takes the contents of an HTTP server log file in (common log format), finds the Java classes loaded by the server in it, and creates an uncompressed .zip file that contains those Java classes. More details are available in:Creating a .zip file for an appletTo use this utility, you must have access to the log files created by the HTTP server. SyntaxFrom the document root directory of your HTTP server:$ java utils.logToZip logfile codebase zipfile Arguments
ExamplesThis example shows the creation of a zipfile for an applet that exists in the document root itself (i.e., no CODEBASE).
$ cd /HTTP/Serv/docs $java utils.logToZip /HTTP/Serv/logs/access "" app2.zip This example shows the creation of a zipfile for an applet that exists in a subdirectory of the document root.
C:\>cd \HTTP\Serv C:\HTTP\Serv>java utils.logToZip \logs applets\classes app3.zip MulticastTestThe MulticastTest helps you debug multicast problems when configuring a WebLogic Cluster. The utility sends out multicast packets and returns information about how multicast is working on your network. To use MulticastTest, start one copy of the utility on each node where you want to test multicast traffic. You should NOT run The MulticastTest utility specifying the same multicast address (the -a parameter) as that of a currently running WebLogic Cluster -- the utility is intended to verify that multicast is functioning properly prior to starting your clustered WebLogic Servers. For information on setting up multicast, you should consult the configuration documentation for the specific operating system/hardware of the WebLogic host. For more information on configuring a cluster, read the Administrators Guide document, Setting up a WebLogic Cluster. Syntax$ java utils.MulticastTest -n server100 -a 237.155.155.1
Information about the following statuses are printed to standard out:
Examples$ java utils.MulticastTest -N server100 -A 237.155.155.1 Set up to send and receive on Multicast on Address 237.155.155.1 on port 7001 Will send a sequenced message under the name server100 every 2 seconds. Received message 506 from server100 Received message 533 from server200 I (server100) sent message num 507 Received message 507 from server100 Received message 534 from server200 I (server100) sent message num 508 Received message 508 from server100 Received message 535 from server200 I (server100) sent message num 509 Received message 509 from server100 Received message 536 from server200 I (server100) sent message num 510 Received message 510 from server100 Received message 537 from server200 I (server100) sent message num 511 Received message 511 from server100 Received message 538 from server200 I (server100) sent message num 512 Received message 512 from server100 Received message 539 from server200 I (server100) sent message num 513 Received message 513 from server100 myipThe myip utility returns the IP address of this host. More details are available in:How to determine your IP addressSyntax$ java utils.myip Examples$ java utils.myip Host toyboat.toybox.com is assigned IP address: 192.0.0.1 pem2derThe pem2der utility converts an X509 certificate from PEM format to DER format. The .der file is written in the same directory as the source .pem file. Syntax$ java utils.pem2der pemFile Arguments
Examples$ java utils.pem2der graceland_org.pem Decoding .................................................................... .................................................................... .................................................................... .................................................................... ........................................... registerLogThe registerLog program allows you to register an interest in a topic and writes a message to the logfile that reflects your registration. You must have a WebLogic Server running to use this program. Syntax$ java utils.registerLog WebLogicURL topic Arguments
Examples$ java utils.registerLog t3://localhost:7001 STOCKS STOCKS Registration ID is 24 SchemaThe Schema utility lets you upload SQL statements to a database using the WebLogic JDBC drivers. For additional information on database connections, see the Developers Guide Using WebLogic JDBC. Syntax$ java utils.Schema driverURL driverClass -u user -p pswd -verbose SQLfile Arguments
ExampleTo be entered on a single line:$ java utils.Schema jdbc:cloudscape:demo;create=true COM.cloudscape.core.JDBCDriver -verbose examples/utils/ddl/demo.ddlA sample of a .ddl file: DROP TABLE ejbAccounts; CREATE TABLE ejbAccounts (id varchar(15), bal float, type varchar(15)); DROP TABLE idGenerator; CREATE TABLE idGenerator (tablename varchar(32), maxkey int); showLicensesThe showLicenses utility displays license information about WebLogic products installed in this machine. More details available in:Installing a WebLogic licenseSyntax$ java utils.showLicenses systemDisplays basic information about your computer's operating environment, including the manufacturer and version of your JDK, your CLASSPATH, and information about your operating system.Syntax$ java utils.system Examples$ java utils.system * * * * * * * java.version * * * * * * * 1.1.6 * * * * * * * java.vendor * * * * * * * Sun Microsystems Inc. * * * * * * * java.class.path * * * * * * * \java\lib\classes.zip;\weblogic\classes; \weblogic\lib\weblogicaux.jar;\weblogic\license ... * * * * * * * os.name * * * * * * * Windows NT * * * * * * * os.arch * * * * * * * x86 * * * * * * * os.version * * * * * * * 4.0 t3dbpingThe t3dbping utility tests a WebLogic JDBC connection to a DBMS, via any two-tier JDBC driver. You must have access to a WebLogic Server and a DBMS to use this utility. More details available in:Testing connectionsSyntax$ java utils.t3dbping WebLogicURL user pswd DBMS driverClass driverURL Arguments
ExamplesSee the examples for specific databases in Testing connections.verboseToZipTakes the standard out from running a Java application in verbose mode, finds the Java classes referenced, and creates an uncompressed .zip file that contains those Java classes. More details available in:Creating a .zip file for a Java applicationSyntaxFrom the document root directory of your HTTP server: $ java utils.verboseToZip inputFile zipFileToCreate Arguments
ExamplesUNIX example: $ java -verbose myapplication > & classList.tmp $ java utils.verboseToZip classList.tmp app2.zip NT example: $ java -verbose myapplication > classList.tmp $ java utils.verboseToZip classList.tmp app3.zip versionDisplays version information about installed WebLogic Server to stdout. Syntax$ java utils.version Examples$ java utils.version WebLogic Build: 4.0.1 04/05/1999 22:02:11 #41864 writeLicenseWrites information about all of your WebLogic licenses to a file called writeLicense.txt, located in the current directory. You can then email this file to WebLogic technical support. (support@weblogic.com) Syntax$ java utils.writeLicense -nowrite -Dweblogic.system.home=path Arguments
Examples$ java utils.writeLicense -nowrite * * * * * * System properties * * * * * * * * * * * * * java.version * * * * * * * 1.1.7 * * * * * * * java.vendor * * * * * * * Sun Microsystems Inc. * * * * * * * java.class.path * * * * * * * c:\weblogic\classes;c:\weblogic\lib\weblogicaux.jar; c:\java117\lib\classes.zip;c:\weblogic\license ... * * * * * * * os.name * * * * * * * Windows NT * * * * * * * os.arch * * * * * * * x86 * * * * * * * os.version * * * * * * * 4.0 * * * * * * IP * * * * * * Host myserver is assigned IP address: 192.1.1.0 * * * * * * Location of WebLogic license files * * * * * * No WebLogicLicense.class found No WebLogicLicense.xml license found in weblogic.system.home or current directory Found in the classpath: c:/weblogic/license/WebLogicLicense.xml Last Modified: 06/02/1999 at 12:32:12 * * * * * * Valid license keys * * * * * * Contents: Product Name : WebLogic IP Address : 192.1.1.0-255 Expiration Date: never Units : unlimited key : b2fcf3a8b8d6839d4a252b1781513b9 ... * * * * * * All license keys * * * * * * Contents: Product Name : WebLogic IP Address : 192.1.1.0-255 Expiration Date: never Units : unlimited key : b2fcf3a8b8d6839d4a252b1781513b9 ... * * * * * * WebLogic version * * * * * * WebLogic Build: 4.0.x xx/xx/1999 10:34:35 #xxxxx |
|
Copyright © 2000 BEA Systems, Inc. All rights reserved.
|