Jboss 4.3 EAP in Eclipse asks credentials on server startup - eclipse

I am using eclipse Galileo and I am trying to start my JBoss 4.3 EAP.
When I start JBOSS from command line it runs fine. But when I start it from eclipse I get
the following pop up and my application is not deployed
your server is repsonding to jmx queries with a security exception.
you can try entering new credentials below or you can double click on your server and verify the host, jndi port, username and password are accurate.
you can also click ignore below to begin working with your server but deploying to and stopping the server may not function properly
My jboss from command line and my Eclipse both use the same jre

In JBoss EAP by default the JMX Console has turn on security domain and you need provide proper user and password to login in. But the default user is disabled .
You can turn in on by editing the $JBOSS_HOME/server/default/conf/props/jmx-console-users.properties (for default profile).
You can just uncomment the admin user or add your own (in that case also edit jmx-console-roles.properties file).

Related

ibm worklight console asking for credentials

I'm trying to run my first worklight application. after building it when i'm trying to start the worklight console from eclipse the work light console page opens and is asking me from userid and password. I tried the demo and my current windows credentials. Both dint work.
Apart from installing worklight in eclipse are we supposed to configure anything else? or do we have any default username and password for the console?
Check your user registry in your server.xml file (on Liberty profile) or your repository configuration on WAS. On a clean install on a liberty profile instance, try admin/admin.

I cannot open my GlassFish admin panel it demands user name and password

I'm trying to reach my GlassFish 4.0 console, which is at localhost 4848. I start my GlassFish server from my NetBeans, then I go my port. It starts itself and then it asks me for a password and username. But the problem is that I have just downloaded and run that and I haven't authenticated any password and user and I can't open my GlassFish server admin panel.
if you downloaded your AS instance from Oracle web site(separately from NetBeans)
https://glassfish.java.net/download.html
and start domain from console with
asadmin start-domain domain1
you would not have any troubles with authentication. However it looks like NetBeans puzzles you. You may find a solution here. See Quaternion's answer.

Administration console of OpenAM cannot be reached

I have trouble reaching the Administration console of the OpenAM server for a second time after a restart of the JBoss applicationserver on Windows 2008 Server R2 Datacenter.
I deploy OpenAM 9.5.2 (the opensso.war file) in the JBoss-4.2.3GA 'deploy' folder of its default profile.
I point my Internet Explorer 8 browser to: my.test.domain.com:8080/opensso
The page appears to create a Default or Custom Configuration for the OpenAM server
I successfully complete the wizard for creating a Custom Configuration
A pop-up with a 'Proceed to login' link appears after completing the configuration
I click this link and I can access the Admin console
Here is the thing:
When I restart JBoss and try to browse to the Admin console URL manually for a second time:
http://my.test.domain.com:8080/opensso/console
It will instead go to the page again to create a Default or Custom Configuration:
http://my.test.domain.com:8080/opensso/config/options.htm
And therefore I cannot access the Admin console anymore.
Note:
I verified that the URL: my.test.domain.com:8080/opensso/console is correct by opening
a second tab in IE8 before the restart of JBoss.
Been looking at doing this myself - this may provide the solution
https://wikis.forgerock.org/confluence/display/openam/Considerations+when+deploying+on+JBoss+AS+5.1
Indeed that will work. I discovered that you can alternatively add in your run.bat of JBoss:
-Dcom.sun.identity.configuration.directory= your configuration directory

Eclipse and GlassFish: remote deployment and debugging

I am currently using Eclipse to develop a fairly straight-forward Java EE dynamic web application. I have just been using Eclipse to deploy the web app to a GlassFish 3.1 server locally running on my dev machine for development and debugging purposes.
So far, so good. But now, I am looking into deploying the app to a remote GF server for further testing.
In Eclipse, I open the "Servers" tab and select the "New->Server" context menu. I enter the IP address of the remote server running GlassFish, but the "New Server" dialog won't let me proceed. Instead, it gives me the error message:
Remote Server is not secured: It
cannot be used remotely...
Some initial research suggests that remote deployment/debugging is currently not supported by Eclipse. Is that what Eclipse is trying to tell me with this weird error message? Surely "Remote deployment/debugging not supported" would be more apt. Am I overlooking something fundamental here?
Read http://blogs.oracle.com/quinn/entry/securing_adminstration_in_glassfish_server1
Access to remote servers can only be done if the server has been secured...
You want to make sure you have enabled secure administration. Generally you should do the following:
using ./asadmin change-admin-password command to set a password on the 'admin' user. By default there is none (so when it asks for your current admin password just hit Enter assuming you've never set one)
using ./asadmin start-domain to startup the default 'domain1'
using ./asadmin --host localhost --port 4848 enable-secure-admin will enable remote administration access (which you want) and tell Glassfish to start on the localhost at the default admin port 4848
finally use ./asadmin restart-domain to restart and apply those changes.
You should be able to now access the remote server and manage it via your Eclipse install. This works for Eclipse Luna and Glassfish4 open-source edition. Also note that you need to have a glassfish install on your Local development machine and point to that when it asks for the path to the Glassfish installation when setting up the server in Eclipse Wizard...despite the fact that you are connecting to a remote Glassfish instance. (See my SO post for more details/screenshots).
I am adding this because the current accepted answer only points to a link which is typically frowned upon here on SO since links have a tendency to go dead unexpectedly.

Store glassfish password in netbeans?

This is Netbeans 6.9.1 and a Glassfish 3.0.1 server registered as a remote domain. Somewhere along the line Netbeans stopped storing the Glassfish admin password, and it prompts me on startup. I actually have quite a few remote domains registered for different test and dev levels so this is very annoying.
How do I change configuration to start storing these passwords again? I really don't care if they're secured as these are development servers on an isolated network.
After some fiddling I found it's actually not the Netbeans version but the glassfish 3 support. If I register a glassfish 2.x server then the password setting is available.
Go to the services tab, expand Servers. Right click on the instance in question and view the properties. The password is right there.