Tuesday, October 30, 2012

SRVE0255E: A WebGroup/Virtual Host to handle /ibm/console has not been defined

While doing some experiments with console, my server got corrupted and I was unable to login back on console.  Every time I try to access I get below error

SRVE0255E: A WebGroup/Virtual Host to handle /ibm/console has not been defined.

SRVE0255E: A WebGroup/Virtual Host to handle localhost:9062 has not been defined.

IBM WebSphere Application Server

I was able resolve this by reinstalling the admin console app.  In command prompt change directory to specific profile bin directory (if profile name is qcell  cd  to qcell/bin), and issue below command

wsadmin.sh -lang jython -f deployConsole.py remove

after successful removal of the application install with below command

wsadmin.sh -lang jython -f deployConsole.py install 

if prompts, give username and password, and restart server and try accessing the admin console.




  

Friday, September 28, 2012

WID runtime environment configurations and workspace settings

Once in a while workspaces in WID fail to get runtime environment, even when everything looks correct.  Going into project facets and clicking on runtimes would show the problem of unresolved WPS runtime environment.

Most of the time if you create a new workspace, it would solve the problem, just create a new workspace and import projects again.  

Each workspace stores runtime information in  .metadata folder ...

\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.wst.server.core.prefs file keeps the runtime information.  



Monday, February 20, 2012

Get BPEL application name BPEL template details

Once in a while, you may want to deploy multiple copies of the same application on server, in that case you can use serviceDeploy -uniqueCellID to create multiple copies of application and deploy on the same server. But all that applications uses the same BPEL template, in such case you may want to print which application is getting executed by printing additional details.

Below snippet can be used to print details of the process template and associated details.

Pass template name in API to get further details...








 
try {
    javax.naming.Context ctx = new javax.naming.InitialContext();
    Object obj = ctx.lookup("local:ejb/com/ibm/bpe/api/BusinessFlowManagerHome");
    LocalBusinessFlowManagerHome fmh = (LocalBusinessFlowManagerHome) javax.rmi.PortableRemoteObject.narrow(obj,com.ibm.bpe.api.LocalBusinessFlowManagerHome.class);
    BusinessFlowManagerService bfm = fmh.create();

    ProcessTemplateData ptd = bfm.getProcessTemplate("testBPEL");

    System.out.println("Process Template ID : " + ptd.getID());
    System.out.println("Application Name : " + ptd.getApplicationName());
    SimpleDateFormat formatter = new SimpleDateFormat("E, y-M-d 'at' hh:mm:ss.sss a zzz");
    System.out.println("Creation time : " + formatter.format(ptd.getCreationTime().getTime()));
    System.out.println("Valid from : " + formatter.format(ptd.getValidFromTime().getTime()));
    System.out.println("State : " + ptd.getState());
    System.out.println("" );
 }catch (Exception e)
{e.printStackTrace();}