Running two Jboss instances of different versions simultaneously - jboss

My application is scaled across two jboss versions Jboss 4 and Jboss 7. Jboss 4 intance is running through eclipse. When I try to run Jboss 7 throught [JBOSS_HOME]/bin/standalone.bat it doesn't start and shows the below error.
Calling "C:\jboss-as-7.1.1.Final\bin\standalone.conf.bat"
WARNING JBOSS_HOME may be pointing to a different installation - unpredictable results may occur.
Could not locate "C:\jboss\jboss-eap-4.3\jboss-as\jboss-modules.jar".
Please check that you are in the bin directory when running this script.
Press any key to continue . . .
What am I missing here?

standalone.bat tries to check if JBOSS_HOME variable is set and if not it tries to set it.
if "x%JBOSS_HOME%" == "x" (
set "JBOSS_HOME=%RESOLVED_JBOSS_HOME%"
)
Jboss 7 requires jboss-modules.jar which is located under jboss directory.
In your case it appears that JBoss 4 is already setting JBOSS_HOME to "C:\jboss\jboss-eap-4.3\jboss-as\". This is causin the problem.

If you are trying to test running your code in JBoss 4 and JBoss 7 and having them talk to simulate the server environment then you may want to set up VMs locally. That would be closer to what you will have when they are deployed.

Problem is resolved by configuring Jboss 7 via jboss developer studio plugin in eclipse. web ports of both Jboss 4 and Jboss 7 should be different as shown in the below screenshot.
http://postimg.org/image/a6782xcoj/

Related

Jprofiler and WebSphere 8 Integration Issue

I'm having some issues getting JProfiler connected to a remote WebSphere 8.5.5 instance that is running on Linux. When I start JProfiler on my Windows 10 machine I select the "Profile an application server, locally or remotely" and select the option to integrate with IBM WebSphere 8.x Application Server.
The part I'm having an issue with is the "Specify the remote address" section of setting up the profile. The setup says I need the profiling agent running on target JVM. I download the tar file from the JProfiler website and extract it on Linux machine and run jpenable as it says I should but I get this message.
"No suitable Java Virtual Machine could be found on your system. The version of the JVM must be at least 1.6 and at most 11. Please define INSTALL4J_JAVA_HOME to point to a suitable JVM."
I have made edits to the arguments file that came with the JProfiler in order to remedy this issue but I just can't seem to get JProfiler to see the IBM Java that WebSphere is using on this machine. I have tried using the INSTALL_JAVA_HOME_OVERRIDE variable in the arguments file by putting the full path to the WebSphere Java install. I have tried using the INSTALL4J_JAVA_PREFIX variable and I have created a INSTALL4J_JAVA_HOME variable in the arguments file and put the full path to the WebSphere Java.
Any help would be appreciated greatly appreciated in getting me around this issue. I have verified that WebSphere is using Java version 1.8.0_171.
but I just can't seem to get JProfiler to see the IBM Java that WebSphere is using on this machine.
That's because IBM JVMs are not supported for attach mode.
The setup says I need the profiling agent running on target JVM.
Generally, this is achieved by adding an -agentpath VM parameter to the profiled VM. The remote address that you are asked for in the wizard will be added as an option to that parameter. The wizard will then modify the server config file and add the complete VM parameter, so you don't have to it manually.
More information is available at
https://www.ej-technologies.com/resources/jprofiler/help/doc/main/profiling.html

What are the Issues that will Occur if I run multiple Tomcat in same Server?

I wanted to run tomcat 7 and tomcat 8 in my server. I wanted to know what are the thing that I should take care if I am doing the same.
So long as you install to different directories and adjust the server.xml settings so they run on different ports there should not be a problem.

JBOSS EAP 6.3.GA ILLEGAL SHUTDOWN ISSUE

I am using JBOSS EAP 6.3.GA on CentOs with open JDK 6 64 bit.
Previously, I started the JBOSS in standalone mode and it was working well.
Now, I was trying to start JBOSS in domain mode with 1 server only. It was working fine but after 20-30 mintues it shutdown itself with no error printing in log file.
I am unable to find what causes the error.
Need help.

How to run 2 instances of JBoss EPP (Enterprise Portal Platform) on the same machine

Is it possible to run 2 instances of JBoss EPP (Enterprise Portal Platform) on the same machine on different ports? JBoss Enterprise Portal Platform version is 5.2.2, which is based on JBoss AS 5.2.0
I'm learning portlets and I need to establish communication via WSRP between 2 portlets running on 2 different JBoss EPP instances.
As a last resort I may end up installing the second JBoss EPP instance on a virtual machine.
Any hints would be highly appreciated.
Update:
There are 2 options:
modify bindings-jboss-beans.xml and set
<parameter>${jboss.service.binding.set:ports-01}</parameter>
modify jboss startup script (run.conf, run.bat.conf): add
-Djboss.service.binding.set=ports-01 to $JAVA_OPTS
Yes you can run 2 instances of JBoss EPP on the same machine, by using differents ports (for example with "run -Djboss.service.binding.set=ports-01" on the second instance).
Did you encounter issues when doing it ?

GlassFish Server works on Netbeans 7.2 but not on 7.3

I have just installed Netbeans 7.3. Prepared a sample web application.
But Glassfish does not start.
Error message is "....\nbproject\build-impl.xml:1036: Deployment error: GlassFish Server 3+ Server start failed. Cant create start proccess.
See the server log for details."
Unfortunately nothing in the server log.
I deleted domains folder and server then recreated. Nothing changed. :(
Is it a bug related to http://netbeans.org/bugzilla/show_bug.cgi?id=217228 ?
Any solution?
My system is 64 Bit Windows 7 with Turkish locale.
Web application is Primefaces based, JSF 2.1
I think this is about language settings.
You can change localization settings in the netBeans configuration file($NETBEANSHOME/etc/netbeans.conf).
Just add "--locale en" to end of the "netbeans_default_options" line.
Also you can start glassfish with asaadmin tool with following these steps.
1- execute C:\Program Files\glassfish-3.1.2.2\bin\asaadmin.bat
2- start-domain