---
title: "解决Websphere6.1版本过期问题"
author: "peahen"
date: "2009-09-16T10:15:57Z"
tags: []
slug: "websphere6-1"
draft: false
lastmod: "2009-10-11T14:35:19Z"
id: 469541
url: "https://peahen.iteye.com/blog/469541"
---

最近测试使用的WAS6.1 Linux基础版的60天试用期就要到了，但测试还需要一段时间，必须设法延长试用期。研究并测试了一下，解决该问题一般有两种方法：

    1、向前调整系统时间，例如向前调整一个月。不过如果这台服务器同时也安装了DB2，就不能使用该方法，因为安装在WAS上的Web应用访问数据库时可能会产生以下错误。

```
com.ibm.db2.jcc.a.SqlException: An error occurred during implicit system action
type "2".  Information returned for the error includes SQLCODE "-440", SQLSTATE
"42884" and message tokens "ROWNUMBER|FUNCTION"
```

    2、删除was.license文件。WAS在重启时会检查该文件是否存在，如果不存在就重新创建，再给60天试用期，启动时打印信息如下。

```
WSVR0025I: Creating temporary product license
WSVR0027I: The product will expire in 60 days.
ADMU0116I: Tool information is being logged in file
           /usr/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/server1/start
Server.log
ADMU0128I: Starting tool with the AppSrv01 profile
ADMU3100I: Reading configuration for server: server1
ADMU3200I: Server launched. Waiting for initialization status.
ADMU3000I: Server server1 open for e-business; process id is 13756
```