jboss 7 as- unable to see jboss sample site or admin interface even after jboss has started - jboss

I am a newbie to working with jboss 7 as- I recently set it up on my server, and am able to start it as well.
However after starting it, when I access
http://IP_ADDRESS:8080
or
http://IP_ADDRESS:9990
Google Chrome gives an error that the page is unavailable.
How can such access be enabled? Also, I am using the startup-shutdown script for /etc/init.d as provided with jboss, do I have to modify the startup and shutdown commands in it, for enabling remote web access to the server interface?

Have you tried http://localhost:8080? If you're using the IP address of your PC it's probably the firewall that is blocking the access to it.

Related

Error creating an Application Server connection in JDeveloper

Background
I am using the Oracle JDeveloper Studio with SOA installed as my IDE. In JDeveloper I want to create a connection to a remote Weblogic server.
The remote server is running on my local machine, and I refer to it as remote to distinguish it from the Integrated Weblogic Server that comes with JDeveloper.
After reading this answer I attempted to add the following lines to the Windows 10 host file:
#
127.0.0.10 localhost2
::1 localhost2
These two pictures show the Application Server setup in JDeveloper: Picture 1, Picture 2
However I still receive the following error:
Server excetion is :
Connection refused from server
When create new server on random port such as 7013 and 7014 for ssl, test connection return:
Testing HTTP Authentication ... failed
Connection refused: connect
Testing JSR-160 Runtime ... failed
Cannot establish connection.
Testing JSR-160 DomainRuntime ... skipped
Testing JSR-88 ... skipped
Testing JSR-88-LOCAL ... skipped
Testing Server MBeans Model ... skipped
Testing App Controller ... skipped
Testing JSR-88-DEP-MGR ... skipped
Testing JSR-88-DEP-MGR-LOCAL ... skipped
Testing JNDI ... skipped
Testing JSR-160 Edit ... skipped
Testing HTTP ... failed
Connection refused: connect
0 of 12 tests successful.
Can anyone suggest some troubleshooting steps here?
Clarification
I need to clarify a few points to guide you to the correct answer.
Are you sure this is a separate Weblogic server running on localhost, not the Integrated Weblogic Server?
Are you sure the Integrated Weblogic server is not running?
Are you sure the Weblogic server you are attempting to connect to is running?
Troubleshooting
General Recommendations
Always run JDeveloper as Administrator
Located an utilize the *-diagnostic.log file and the standard out file
Utilize the JPS utility to see if the WLS process is running
Utilize the EM console to see what interface your server is listening on
Integrated Weblogic or Standalone Weblogic
Firstly, because you are new to Oracle SOA I need you to clarify if you have a Weblogic server installed locally separate from your Oracle BPM Studio ( JDeveloper ) IDE.
When creating a local SOA environment, JDeveloper comes with an Integrated Weblogic Server pre-installed. You don't need to install the Weblogic server separately.
To determine if you have a standalone Weblogic server installed on your local machine you could do a few things.
Do a search for startWebLogic.cmd. If that file is somewhere other than beneath %APPDATA% you likely have a standalone server
Secondly, with 11g ( maybe 12c ) you can check Add or Remove Programs to see if the installation is listed
You could also check to see if it's running by running a jps command in command prompt. This shows all Java processes currently running, and your Weblogic server runs as as a Java process. It will look something like the following
If you see a suspicious process you can run a jinfo <pid> to get more information about the process
You can also check Windows Services to see if you have a Weblogic service.
Most likely you don't even have a local Weblogic installed separate from JDeveloper's Integrated Server. In that case, please read the following section.
Integrated Weblogic Server
As stated before when you download Oracle BPM Studio ( JDeveloper with all the SOA plugins ) it comes with an Integrated server.
You first need to create a default domain and connection to this server.
First, open the Application Server panel.
You should now see the Application Server panel to the left side of your IDE
Remember, generally you are not installing the server here, you are just connecting to a server that is already installed from your IDE. The purpose being that you can deploy composites directly to the server from JDeveloper. Configuring the Integrated Server is a bit different, but the difference doesn't need to be explained here.
Right click on "Application Servers" and click New Application Server. This will display the following popup
Now walk through the steps of creating the default domain and server connection
Then test and finish. You should not have an integrated weblogic server running. To start the server you simply run -> Start Integrated Weblogic Server
If you Windows -> log you can see the server stdout and stderr rolling.
On windows you can also find these logs on Windows 10 by navigating to %APPDATA%\Roaming\JDeveloper\system12.2.1.3.42.170820.0914\DefaultDomain\servers\DefaultServer\logs in your system's file explorer.
Standalone Server
If for whatever reason you aren't using the Integrated Weblogic Server and instead have a standalone installation of Weblogic on your local machine you would first need to find where your Middleware Home directory is.
The environment variable is MW_HOME or ORACLE_HOME
Navigate to that directory and run startWeblogic.cmd. Then tail the out file to see if if it starts successful. From there, the process of creating a connection to the server in JDeveloper is no different than the steps listed above, except that you want to select "standalone" not "integrated".
Final Thoughts
If you want to create the Integrated Server and have already failed several times I would try the following
Stop the Integrated Server (if its running) and delete the default domain
Starting the server again (see above) will recreate the domain.
If that doesn't work delete the entire server connection and recreate. You may also want to delete the DefaultDomain folder in your %APPDATA%\JDeveloper folder

WildFly 8 Administration Console under Vagrant

I installed WildFly 8.2.1 under a CentOS image using Vagrant (with Virtualbox). My Vagrantfile includes a line for network forwarding and the "Welcome" page on localhost can be accessed normally in the host machine. When I try to access the Administration Console page, however, I get the following message:
An automatic redirect to the Administration Console is not currently available. This is most likely due to the administration console being exposed over a network interface different from the one to which you are connected to.
The same URL can be accessed normally when inside the VM. What do I have to do to make it work on the host computer?

VM from Google Cloud SQL rejecting connection

I have set up a google cloud sql server using the tutorial on youtube. However, Whenever I try to connect to it through the browser, the connect to it through the browser, the error i am getting is ERR_CONNECTION_REFUSED . The firewalls I have set up correlate to whats in the browser. I can also SSH into the VM. But the VM always rejects my connection. I have been trying for days.
Here are my VM Settings allowing http connections
Here is my VM External IP Address
Here is what the browser tells me when i attempt to connect.
Are you referring to this video https://www.youtube.com/watch?v=_kQXgjIfLgo?
In that video there are some steps missing such as install the web server (e.g. Apache) and PHP in the VM. After you install them, you can execute the following command in the VM:
php /var/www/index.php
If it works you can see the source code of the resulting page and if not you'll have an error to solve (maybe a package to install like php-mysql).
Once you can see the resulting page in the VM you can try to load the page through the browser of your machine. If it still doesn't work there is an Apache or network misconfiguration.

JBoss AS7 Management console not displaying

I have install JBoss AS7 on fedora and can run the server by executing
sudo /usr/share/jboss-as/bin/standalone.sh
and it starts successfully.
Visiting http://127.0.0.1:8080/ yields:
Welcome to AS 7 Your JBoss Application Server 7 is running.
However visiting http://127.0.0.1:9990/console yields a blank page.
in the output of sudo /usr/share/jboss-as/bin/standalone.sh I can see
14:25:53,744 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
Does any one have an idea of what is going on?
I faced the same issue with JBoss 7.1.1. I could identify 2 reasons -
I hosted the AS7.1 on a Linux server and was trying to access from a separate Win PC. As expected IP addresses were different. 127.0.0.1 would work for the system only. So, I had to change the IP addresses in file jboss-as-7.1.1.Final/standalone/configuration/standalone.xml
The port number 9990 was blocked. So, had to change firewall settings of Linux.
Hope this helps someone.
Did not use this type of JBoss.
However, my hunch is that you are not accessing the deployed war file of the console: I think you should try something like this: 127.0.0.1:9990/console or 127.0.0.1:9990/webconsole
Add the page to trusted sites. try reopening the page after that you will get the login prompt.
Also make sure you have created a username and password for the ManagementRealm
using adduser command
I fixed this problem by disabling the protocols filter on the company's endpoint antivirus. Try and look if you have any web threat filter or any protocols filter and disable it/them. Hope it works for you.
For me it was localhost showing a blank page when opening the admin console but 127.0.0.1 works just fine. All I did was delete browser cache and data.

Unable to Access Zend Server 5 CE after installation

I have previously installed WAMP on my windows, and now I am trying to install Zend Server 5 CE 5.3.1 Win x86.
During the installation of Zend Server, there is a step asking about:
web server port : 80
zend server interface port : 10081
I kept to the default. After the installation, I tried to access http://localhost,and is able to see zend test page. But I am unable to access http://localhost:10081/ZendServer, it was stated as page not found.
Is it a conflict of my WAMP and the Zend Server? I remembered stopping the apache for WAMP, before trying to access ZS. Could anyone please advise me how to fix it?
Thank you.
I'm having the same problem. It looked like another application was already using the port 10081.
To find out which application was using the port 10081 I used the following command (in a terminal). This will give you the PID (last column) of the application:
netstat -ano |find /i "established"
Then, I used the Windows Task Manager (Ctrl+Alt+Del). Go to the "Processes" tab. Then View/Columns menu and tick PID. You should be able to locate the application with the PID.
Personally, it was my antivirus, McAfee, who was using that port.
The easiest solution will probably be to cleanly uninstall both WAMP and Zend Server and afterwards just install Zend Server. On the other hand, it could be that another (unrelated) process is already using port 10081, so you might check that as well (using netstat for example) - checking the log files could help in finding this out as well.