Bug 129473 - NPE in WSDynamicPolicy when starting WebSphere 6.0.2.5 server instance in the Eclipse servers view
Summary: NPE in WSDynamicPolicy when starting WebSphere 6.0.2.5 server instance in the...
Status: NEW
Alias: None
Product: WTP ServerTools
Classification: WebTools
Component: jst.server (show other bugs)
Version: 1.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Sinan Konya CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-25 20:51 EST by Jeff Fischer CLA
Modified: 2007-04-02 01:29 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Fischer CLA 2006-02-25 20:51:59 EST
If the "enforce Java 2 security" option is enabled in the security section of the WebSphere admin console, a NullPointerException is thrown from line 103 of the com.ibm.ws.security.policy.WSDynamicPolicy class when starting up via the "Start" option of the WTP "Servers" view. If one decompiles this class, it is shown that the WebSphere codebase is looking for a System property entitled "java.security.policy". As a result, I was able to establish a workaround by entering the following line into the "VM Arguments" field of the Launch Configuration for the server in question: "-Djava.security.policy=C:\IBM\WebSphere\AppServer\profiles\AppSrv01\properties\server.policy". Of course, the path to this file will differ from system to system. It is my suggestion that during the initial server configuration steps, a new field be added to support user specification of a valid policy file for this purpose.