Greg Brouelette

Ranch Hand
+ Follow
since Jan 23, 2002
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Greg Brouelette

Interesting, I do have EJB's in the project but I'm trying to just run the "worker bean" that is wrapped with the EJB. So I thought that I was avoiding any of the EJB code that needed to run in the server. But since it's in the EJB project it makes sense that there would be code that had to run within the server.
OK, I'll start to lookup Cactus and see what I can learn. Thanks for the tip.
18 years ago
Hi folks:
I'm trying to use JUnit to do a simple test. I have:
1) Added junit.jar to my classpath by putting it into the EAR project and then gonig to the manifest files in my EJB and WAR projects and telling hte Manifest to include junit.jar in the classpath.
2) Used the wizard to build a junit test case.
3) Added the code to perform the actual test.
4) Click on Run/Run As/Junit Test
At that point I get this error message in the console:
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(
at javax.naming.InitialContext.getDefaultInitCtx(

I don't see anything about this in my IBM WebSphere Bootcamp study guide. I've followed the instructions with their sample app (which was imported so we don't really know what the heck is in there) but when I try to follow the same directions in my own app it fails.
Any ideas or advice?
Thank you.
18 years ago

So you have you test environment set up in WSAD to run against a remote WebSphere Server

No, I have a test server running inside WSAD. It's not a remote server. By turning on "Admin Console" in the server's deployment descriptor and then right clicking on the server item in the server window while it's running I can start an admin console.
The initial problem is this: There are some people here who can access applications running on ther desktop (inside WSAD ) from an external browser by pointing to their IP address or machine name. (Anything other than localhost). On 4 of our computers we cannot seem to access them from anything other than localhost (and, obviously, from the same machine where the server is running).
The solution seems to be to make sure that there is a * in the virtual host setting and then to update the web server plug-in. But we can't update the web server plug-in ONLY on some machines. We can't figure out what's different from one computer to the others that makes one able to update and the others not.
19 years ago
In WSAD you can launch the same admin console for a test server that you'd see in WebSphere server. As I understand it, if I make a change to a virtual host setting I should refreash the web plugin.
But you/re right, I am essentially looking at the WebSphere server admin console. I'm just doing it via WSAD with the settings related to the WSAD internal test server.
19 years ago
When I try to update the Web Server plugin in WSAD 5.1 I'm getting this error.
No message text associated with key mbeanexception.on.plugincfg in bundle
I can't seem to find anything in the help system or on-line about it. Several people in our company are having the same issue. Any ideas what it might be and how to fix it?
Thank you
Here's the entire exception:
PLGC0009I: Generating for all servers on cell localhost, node localhost.
[9/19/03 10:37:00:007 PDT] 733cc279 TraceNLS u No message text associated with key mbeanexception.on.plugincfg in bundle
[9/19/03 10:36:59:976 PDT] 733cc279 PluginCfgActi E mbeanexception.on.plugincfg
[ September 19, 2003: Message edited by: Greg Brouelette ]
19 years ago
Check my posting in this thread (It's long so I won't reprint it here) It gives lots of detail about connecting to a database in WS 5.0
HOpe it helps
19 years ago
Absolutly. I run it on various flavors of Linux. It's easy to install. Just d-load it from Sun and run the install program. I make the group owner of the /usr/share/Java/JDK1.4/bin directory be a group called "java". I then make every user that needs to use the java programs a member of the java group.
Also, put that bin directory in your path and make an environment variable called JAVA_HOME that points to /usr/share/Java/JDK1.4/
That should do it.
19 years ago
Guess what I found in the Axis docs? Here's one of the drawbacks to deploying as a jws file:
"Configuration is limited, you cannot configure users or custom type mappings with this method."
So I have to learn the next method of deployment (using a wsdd file to describe my app) That will probably be the solution.
Thought I'd share that with you folks.
19 years ago
Hi folks:
I've been reading the docs and tutorials at Apache and trying to make the Apache/Tomcat-centric instructions work in WSAD. Here's what I have so far.
  • I have all the Axis jar files installed in my project.
  • I have a bean written that accesses my data and returns an object which I defined.
  • That bean also has an "Is Alive" method that just returns the string "I am Alive!"
  • I have a client written that accesses my bean
  • I've changed the name of my bean from to abc.jws and put it into the WebContent directory

  • So I call my bean's IsAlive method with my client and I see the proper output back at the client.
    If I call the method that returns an object instead of just a String then I can see that the call occurs on the server, the data is properly retrieved, the object is created and it tries to return that object. But on the client I see this error :
    Exception in thread "main" AxisFault
    faultCode: {}Server.userException
    faultString: org.xml.sax.SAXParseException: Document root element is missing.
    {}stackTrace: org.xml.sax.SAXParseException: Document r
    oot element is missing.
    at org.apache.crimson.parser.Parser2.fatal(
    at org.apache.crimson.parser.Parser2.fatal(
    and so on.
    If I call this URL:
    I can see that Axis is properly defining the wsdl for that object. The full object is defined with all the sub objects etc.
    I expect that I need to take that wsdl file and put it somewhere where my client can find it so it can properly decode the data stream. AM I on the right track? I seem to be stumped at this point.
    If it helps then this is how my client is calling the service:

    Thank you in advance for any help or advice you may have.
    I should add that the TCP monitor shows that while the message went into the web service, the only thing that came out was this:
    HTTP/1.1 200 OK
    Server: WebSphere Application Server/5.0
    Set-Cookie: JSESSIONID=00000S0FL1JQCBR0MFSVKCJVGCQ:-1;Path=/
    Cache-Control: no-cache="set-cookie,set-cookie2"
    Expires: Thu, 01 Dec 1994 16:00:00 GMT
    Content-Language: en-US
    Content-Length: 0
    Connection: close

    So the object is not being marshalled into XML. That must be why there's no root element. No elements came back.
    Any ideas why Axis isn't returning the object? Thank you.
    [ August 08, 2003: Message edited by: Greg Brouelette ]
    19 years ago
    OK, it looks like WS faked us out. Even thought I went to the Bootup/shutdown section and clicked the "Restart Now" button and then the confirm button it didn't actually reboot. An init 6 rebooted it for real and the file was unlocked.
    19 years ago
    I don't know of a standard Java Class that would do this. What I would suggest is to build a class that can hold the data from your input file as a data structure of some type. Then build a new class that extends JPanel. You would overwrite the paint method of that class to paint (using 2D Graphics) your graph based on the data structure that is passed to it. Then display that new class in the ContentPane of a JFrame (or wherever you need to put it).
    It's going to be a lot of "do it by hand" work to get it up and running though. Good luck.
    19 years ago
    Go to and download the excelent free book "Thinking In Java". Then get the example code as well. Bruce Eckel wrote a very good chapter on inheiritence and Object Oriented Design. Work through the first 3 or 4 chapters of that book and you'll understand it perfectly.
    Hope it helps.
    19 years ago
    Uma, WSAD ( WebSphere Studio Application Developer) is available from IBM's web site as a free demo. It's a fully functional IDE based on the Eclipse product. It's used to develop products for WebSPhere 5.0. It even has a built in WS 5.0 test server. You can d-load it and play with WS 5.0 code as much as you want.
    You should also check out the free Redbook from IBM entitled "WebSphere Studio Application Developer Programming Guide" It's available as a free pdf file on their site. That's where I learned most of what I know about WS 5.0. Also good is the redbook "EJB Development With WSAD". It's also available as a free pdf file from IBM's site.
    That will get you a LONG way towards understanding WS 5.0. I hope this helps.
    19 years ago
    Hi folks.
    I really hope our test server isn't totally fubar'd. We started experiencing weird behavior such as running a status on a virtual server and the status said the server was started. So we try to stop that virtual server and get a message saying the server is already stopped. Run a status again and it says it's started.
    So we try to delete that virtual server. It appears to have deleted but it took all night to save the configuration change. Now, when we try to save any change to any virtual server we get this message:
    cells/homer/nodes/homer/serverindex.xml is locked in the master configuration. Please try saving again.

    A reboot of the server didn't fix it. Now we can't add/delete/change anything having to do with a virtual server.
    Does anyone know how to unlock that file within WebSPhere 5.0? Or do you have any idea how to get our system behaving again?
    Thank you for any advice you may have
    19 years ago
    You're very welcome. I went through exactly the same pain you're going through about 4 months ago. Since I had the answer already written up in some documentation I wrote for our company it was easy to copy/paste it here.
    I'm glad it helped.
    19 years ago