Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Running WebSpherev5.1 in Eclipse 3.0 FAILING

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to get WebSphere v5.1 to run as a 'Run' Target inside Eclipse 3.0. I think I'm VERY close to getting this to work. I took the startServer.bat and the setupCmdLine.bat scripts, and used them to create my run task. I have all my dependencies (I think) in my bootstrap classpath.

The error I'm getting is below. It looks like the class loader is failing to find the properties file that is in 'processintf.jar', that the PropsLoader class is looking for. Here is the (decompiled) code.. I think the null pointer is happening where I put '--->', because the properties file is failing to be loaded by the class loader!. PLEASE HELP!

public class PropsLoader
{
..

protected Properties loadProperties()
throws Exception
{
InputStream inputstream = getClass().getClassLoader().getResourceAsStream(propsFile);
Properties properties = new Properties();
---> properties.load(inputstream);
---> inputstream.close();
return properties;
}

private static String propsFile = "com/ibm/ws/process/processImpl.properties";

}


[Loaded com.ibm.ws.process.CreationParams from C:\WAS51\lib\processintf.jar]
[Loaded com.ibm.ws.process.ProcessFactory from C:\WAS51\lib\processintf.jar]
[Loaded com.ibm.ws.process.PropsLoader from C:\WAS51\lib\processintf.jar]
[Signaling in VM: java/lang/NullPointerException, message: ]
at com.ibm.ws.process.PropsLoader.loadProperties(Unknown Source)
at com.ibm.ws.process.ProcessFactory.loadProperties(Unknown Source)
at com.ibm.ws.process.ProcessFactory.getProcessImplClassName(Unknown Source)
at com.ibm.ws.process.ProcessFactory.getProcessObjectFactory(Unknown Source)
at com.ibm.ws.process.ProcessFactory.create(Unknown Source)
at com.ibm.ws.management.launcher.ProcessLauncher.launch(ProcessLauncher.java:66)
at com.ibm.ws.management.launcher.LaunchCommand.launchProcess(LaunchCommand.java:167)
at com.ibm.ws.management.tools.WsServerLauncher.runTool(WsServerLauncher.java:213)
at com.ibm.ws.management.tools.AdminTool.executeUtility(AdminTool.java:173)
at com.ibm.ws.management.tools.WsServerLauncher.main(WsServerLauncher.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
[User requests termination for Exception null)]
 
Bryan Jones
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried to explode the processintf.jar and reference the exploded folder in my classpath... NO LUCK! This is weird!
 
Bryan Jones
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This link, although for JBuilder, works within Eclipse 3.0 too.
http://www.visi.com/~gyles19/fom-serve/cache/433.html

The basic thing I was doing wrong was using the wrong Ws Launcher controller.

Specifically, I was doing this:
"com.ibm.ws.management.tools.WsServerLauncher" "${WAS_HOME}\config" "${WAS_CELL}" "${WAS_NODE}" ${WAS_SERVER}

THAT IS WRONG! It should be:
"com.ibm.ws.runtime.WsServer" "${WAS_HOME}\config" "${WAS_CELL}" "${WAS_NODE}" ${WAS_SERVER}
 
Why should I lose weight? They make bigger overalls. And they sure don't make overalls for tiny ads:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic