Bill Lasley

Ranch Hand
+ Follow
since Jun 10, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Bill Lasley

Go to WebSphere InfoCenter and select your WebSphere version. Expand by selecting "Show" and then open or download the System Administration guide. Search it for "Shared Library" and it will give you examples in both JACL and Jython. You can also find lots of scripting examples in InfoCenter itself.
18 years ago
There is also the versionInfo.sh (or .bat for Windows) script in the WebSphere bin directory. This will give you the version number (and build date) of all the installed WebSphere components. To get a list of options, run with the -? or -help option. Option -long gives you the most detail, but make sure you also specify -file someFileName to capture all the output.
19 years ago
I believe you need to download and install FixPack 1 for your WAS 5.1 runtime. Part of that FixPack is to upgrade the JDK from 1.4.1 to to 1.4.2.

You can get fixpack1 at http://www-1.ibm.com/support/docview.wss?rs=180&uid=swg24007195

I don't think you will be able to install the fixpack if your runtime is a stub (base_v51_stub); it has to be a full WebSphere installation (base_v51).
19 years ago
Are you sure about that? I think the default JRE for WAS 5.1 is 1.4.1. WAS 5.1.1 upgrades to JRE 1.4.2. Check by executing $WAS_HOME/java/bin/java -version.
WebSphere ships with an IBM JDK that MUST be used. Upgrade the JDK by applying the appropriate fixpack(s). For example, to upgrade the JDK from 1.4.1 to 1.4.2, apply fixpack1. You don't normally just get an IBM JDK and install it. WebSphere libraries are very dependent on the JDK.

I'm not aware of a public website to down the IBM JDK only.
19 years ago
WAS 6.0 and WAS 5.1 can coexist, but you there are a number of port numbers that will need to be changed. Read the document, Migrating, coexisting, and interoperating in the WAS 6 infocenter at http://www-306.ibm.com/software/webservers/appserv/was/library/

If you can afford it, install WAS 6.0 on another server, to avoid having to change port numbers (assuming you are using default ports).

If your application conforms to J2EE standards you should not have any problems.

Bill Lasley
http://www.versant.com
19 years ago
There are two versions of Cloudscape: an embedded version and a network server version. I don't know, but I assume you need to use the embedded version. Execute the cview.bat in %WAS_HOME%/cloudscape/bin/embedded. This will display the database admin GUI, the use of which, is intuitively obvious.

service.properties is a text file with internal database configuration information. When you create a database, a directory structure gets created, with a number of files, of which service.properties is one. Following is an example:

SysschemasIndex2Identifier=225
db2j.serviceProtocol=com.ibm.db2j.database.Database
SyscolumnsIdentifier=144
SysconglomeratesIndex1Identifier=49
SysconglomeratesIdentifier=32
db2j.serviceLocale=en_US
SyscolumnsIndex2Identifier=177
SysschemasIndex1Identifier=209
SysconglomeratesIndex3Identifier=81
SystablesIndex2Identifier=129
SyscolumnsIndex1Identifier=161
SysschemasIdentifier=192
db2j.storage.propertiesId=16
SysconglomeratesIndex2Identifier=65
SystablesIdentifier=96
SystablesIndex1Identifier=113

Bill Lasley
Versant Corp.
http://www.versant.com
19 years ago
See https://coderanch.com/t/76739/Websphere/manifest-classpath

Put log4j.jar at the root of your EAR, then identify the JAR on the EJB.jar MANIFEST.MF Class-Path. If your web application uses log4j as well, you will have to create another JAR which contains your uniquely named properties files (otherwise the EJB jar property file will always be used because it will be loaded first by the application classloader).

Bill Lasley
Versant Corp.
http://www.versant.com
19 years ago
1. Change the context root (in application.xml) from /application to /.
2. In web.xml, create a welcome-file-list entry and within that add a welcome-file entry for index.html. Sorry, I tried to input an example but the forum software will not show it properly.

The /application part of the URI is the web application context. By changing it to the root context (/), the user can enter xxx.xxx.com/SOME RESOURCE NAME. By making index.html a welcome file (page to display if the user does not enter a resource), the user only has to enter www.xxx.xxx.com and the index.html page will be displayed.

By the way, there can be only 1 web application with a particular context root per virtual host. So, assuming you are using default_host, only your application can use the root context (/). If another application is already using the root context, you can create another virtual host and deploy your application to that. In either case, don't forget to regenerate the websphere plugin so your web server picks up the change. It is best to just stop/start your web server after regenerating the plugin.

Bill Lasley
Versant Corp.
http://www.versant.com
[ June 20, 2005: Message edited by: Bill Lasley ]
19 years ago
Look in $WAS_HOME\samples\lib\PetStore.
19 years ago
There is no free trial of WAS ND. After all, the product retails for $15,000/CPU. Here http://www-128.ibm.com/developerworks/downloads/?S_TACT=105AGX38&S_CMP=eCtlgUS are the IBM trial software downloads.

Bill Lasley
Versant Corp.
http://www.versant.com
19 years ago
com.ibm.websphere.management classes are in wjmxapp.jar. However, you will not be able to use the classes to accomplish what you want. The EAR must already be deployed, or you must be deploying the EAR, to WebSphere before you can use this package to examine/manipulate it.

"... create from that an deploy xml which is in my own format to deploy into Websphere." I'm not sure what that means. You can only deploy a valid J2EE module (EAR, EJB jar, WAR) to WebSphere. What if the EAR contains utility jars? Do you intend to read the MANIFEST.MF of every module in the EAR? What if instead the application is deployed using shared libraries? If you are trying to do some type of automation, you could use wsadmin scripts or ant.

Bill Lasley
Versant Corp.
http://www.versant.com
19 years ago
You can download it from http://java.sun.com/developer/releases/petstore/

Bill Lasley
Versant Corp.
http://www.versant.com
19 years ago
The WebSphere management API is not going to help you understand the contents of an EAR. Look to the J2EE specification for that (See http://java.sun.com/j2ee/1.4/download.html).

The WebSphere Java Doc (including com.ibm.websphere.management.*) can be downloaded from http://www-306.ibm.com/software/webservers/appserv/was/library/. Select your version of WebSphere, then the link "WebSphere Help System plug-in: Javadoc".

Bill Lasley
Versant Corp.
http://www.versant.com
19 years ago