Issues Related to asadmin
getResource or getResourceAsStream, consider using getClass().getResource, which returns a URL object, then invoke the url.setUseCaches method to turn off caching for that jar file, and useurl.getInputStream() to obtain the stream.
Although turning off caching for access to the jar file can slow performance, this approach does allow the application to be undeployed or redeployed. Note also that if the getClass().getResourceAsStream method is used instead, then the jar file in which the resource is located is cached (this is the default Java runtime setting) and remains open until the server is stopped.
Issues Related to asadmin
asadmin start-domain Command Fails
The command asadmin
■Error: CLI143 There is more than one domain...
■Error: Could Not Start Domain
Error: CLI143 There is more than one domain...
Description
When issued with no arguments, the command asadmin
CLI143 There is more than one domain in C:\\Sun\\AppServer\\domains.
Please use operand to specify the domain.
CLI156 Could not start the domain null.
This error occurs when there is more than one domain in the domains directory, none of them is named domain1, and no domain is specified with the
Solution
Specify the domain when issuing the
asadmin
For example:
asadmin
Chapter 2 • Specific Issues | 31 |