• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to use my own version of a JBoss domain in Netbeans 6.9.1

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to create a debug environment using NetBeans 6.9.1. I am using JBoss 4.2.3 AS and it is installed on my localhost.
When I go the Add Server INstance pop-up window all I can see is "all" and "default" and not my domain called "iopmme".

My question is, Can I use my domain, "iopmme", when adding a server instance in NetBeans? Is there a configuration file that I can edit to make my domain available?

Thanks in advance if you can help me with this frustrating problem.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
NetBeans should give you the option of using any of the configurations that appear in the jboss_home/server directory. Just now verified this.
nb.png
[Thumbnail for nb.png]
NetBeans server list
 
Raymond Champion
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

NetBeans should give you the option of using any of the configurations that appear in the jboss_home/server directory. Just now verified this.



Thanks for your response. I can edit the default file and rename it to what ever and it shows up. However, I have a different instance that I copied over from an existing application that does not show in NB. I have Googled for information pertaining to how to configure my special case. I printed out the JBoss docs and will go through those and see if it can help me to solve this issue. Thanks. I'll post a solution if I find one.
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Exactly what do you mean by "I have a different instance that I copied over from an existing application"? What application? What instance? Exactly what did you copy? Exactly where did you copy it? NetBeans will only let you pick one of the subdirectories for "server", it will never show you anything else.

As an example, If I have JBoss AS 4.2.3 installed in multiple locations (not a very far fetched idea on any of my PCs!), and one of them has server/foobar with an installed application, then I can copy foobar to another server directory for another copy of JBoss AS, and if NetBeans is configured to look at that specific installation of JBoss AS, then foobar will show up in the options. If I did anything else, it would probably not show up. I also suspect that if I copied server/otherapp from an installation of JBoss AS 4.0.5 to AS 4.2.3's server directory that 'otherapp' would not show up because key files within the server configuration expected for 4.2.3 would not appear.
 
Raymond Champion
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

What application? What instance? Exactly what did you copy? Exactly where did you copy it? NetBeans will only let you pick one of the subdirectories for "server", it will never show you anything else.



I copied an instance, Jboss/server/iopmee from JBoss on a linux machine, Centos, to a JBoss server on my Windows VM, JBoss/server/iopmee. I believed that since I copied over from one JBoss to the other on Windows, it would show up in NetBeans Add Server Instance popup window.
I believe that you are are correct in that I need to ensure that I have exactly the same version JBoss on both machines.

However, I have scraped trying to get it to work on Windows and will just try to get it to run on the Linux machine.
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Linux <=> Windows copies are tricky. If you copy files in binary mode then text files might have line endings that cause problems in some cases. On the other hand, if you copy the files in text mode then you will destroy the binary files. And if NetBeans loads key JARs files and attempts to load key classes in those JARs, then a destroyed binary is guarantee to fail. You might be better off replicating "default" (or "all" if that was your base config) as "iopmee" on the Windows machine and then copying over the files for your app from the Linux machine.

Unfortunately, since the key files that NetBeans looks for within the server config are hard-coded into NetBeans, it is next to impossible to determine what the key files are (you could get the NetBeans source and dig through that). If you could at least figure out the key files, then you could manually check those files. I still wonder what was going though the minds of the NetBeans developers when they hard-coded the names of key files; in Eclipse there are configuration files that are easily editable (they are XML) so that you can clone them for different JBoss AS versions, and so that you can tell which key files Eclipse is looking for for any specific version of JBoss AS.

Just had a thought - Process Monitor from sysinternals might give a clue as to the key files NetBeans is looking for. Set up the file monitor filter to be restricted to files in the iopmee directory and see what NetBeans attempts to locate.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic