Running JPOS Client and Server Simulator on the same machine throws error - jpos

I am following the instructions from here : http://jpos.org/blog/2013/07/setting-up-the-client-simulator/ to set up the client and server simulator. I am able to start one of them on my machine. If i start the server after the client is run, it throws this error :
"An instance of Q2 is already running. Shutting this instance"
I know its kind of self explanatory. But was wondering if there is a way to run both server and client simulators on the same machine.

Check your src/dist/deploy directory and remove the file 01_multi_instance_prevention.xml. That descriptor wasn't present in jPOS by the time the blog post was written and was installed when you calledinstallResources` as it's now part of the jPOS jar. We'll consider making that file optional.

Related

Web deploy failing, says DESTINATION NOT REACHABLE

I honestly don't know where to start apart from mentioning I've tried absolutely everything and I feel like banging my head against the wall!
I've configured my IIS according to the Microsoft docs and also added Web Deploy 3.6.
In my services I have the following running:
In my windows firewall I have opened port 8172:
In my IIS I have enabled remote connections:
Within IIS I have a Site which points to an empty folder, when I right click -> Deploy -> Configure Web Deploy publishing I get this:
Using this, I've set up a publish profile in VS like so:
But get this error why I try and 'Validate' the connection:
Severity Code Description Project File Line Suppression State
Error Web deployment task failed. (Could not connect to the remote computer ("server2021"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Learn more at: https://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE.)
This error indicates that you cannot connect to the server. Make sure the service URL is correct, firewall and network settings on this computer and on the server computer are configured properly, and the appropriate services have been started on the server.
Error details:
Could not connect to the remote computer ("server2021"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Learn more at: https://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE.
Unable to connect to the remote server
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
I can't even remote to this server, I'm accessing it using TeamViewer.
I've viewed EventViewer logs on my local machine and it just says the same error which VS is spitting out.
I honestly don't know what I'm doing and I'd really really appreciate any help

eclipse is waiting forever to start liberty server

I'm using windows 7, eclipse neon.3, liberty server 17.0.0.1, WebSphere® Application Server Liberty Tools 2016.0.0.v20170505_1729
I have a probem when starting the liberty server from eclipse. The server is actually starting fine, but eclipse is just showing the 'Starting'- status and never get confirmation that the server is actually started. After the predefined timeout, eclipse is giving up and stops the server.
If I start the server from command line, everythings works fine and eclipse confirmed that the server is running. Have tried both ibm sdk 8 and oracle.
What is actually the WDT (or eclipse) using for determing the server is started or not ?
WDT is looking for this message from the server: CWWKF0011I: The server is ready to run a smarter planet.
Please check the following link to make sure you have not changed something in the server configuration that is causing the tools to miss the message:
https://www.ibm.com/support/knowledgecenter/en/SSAW57_liberty/com.ibm.websphere.wlp.nd.multiplatform.doc/ae/r_limitations.html

TFS 2013 Build: Which process retrieves the build process template?

I'm currently trying to set up a build machine for continuous integration.
Our TFS project collection resides on one machine (TFSServer), while we've installed the build service, controller and agents on a different machine (TFSBuild).
When I queue a build, I get the following error:
TF215097: An error occurred while initializing a build for build definition
Exception Message: One or more errors occurred. (type AggregateException)
Exception Stack Trace: at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at Microsoft.TeamFoundation.Build.Client.FileContainerHelper.GetFile(TfsTeamProjectCollection projectCollection, String itemPath, Stream outputStream)
...
This seems to happen when the controller? tries to retrieve the build process template from the TFS server.
The inner exception is the following:
Exception Message: No connection could be made because the target machine actively refused it 127.0.0.1:8080 (type SocketException)
...
This is where I get confused, because a connection to localhost was attempted. I would've expected that the call be made to TFSServer instead.
Am I misunderstanding something? Or should I look in a different direction to solve my issue?
Edit: I have this feeling that the problem is caused because I had initially installed TFS Server on the build machine, and that some cached value points to the localhost server which used to exist, but not anymore...
Edit 2: I was not able to set up a controller on the build machine, for some reason it keeps looking for the build process template locally instead of the TFS server. So instead, I set up the controller on the TFS server, and the agents on the build machine and it seems to work fine.
Your build service might be still pointing to previous TFS server URL which was installed on the same build server. You can check this setting by launching TFS Administration Console and clicking Build configuration, then update it to point to the Team Project Collection configured on another box.

Websphere app server start issues even when no EARs in it

In RAD 7 I created a new server profile (using version 6.1) and tried to start this server without any projects added to it, with the intention of making sure the server starts up fine and then adding projects via the Add/Remove projects option. While I have done this many times before I have started getting this problem now:
1) Console says 'Server server1 open for e-business` but the server tab still shows that server is 'Starting...'
2) After several minutes I get the error saying server failed startup failed after 300 seconds.
3) Opening the FFDC log file shows the following exception
------Start of DE processing------ = [9/16/13 16:40:06:745 EDT] , key =
javax.naming.NameNotFoundException
com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info 1133
Exception = javax.naming.NameNotFoundException
Source = com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info
probeid = 1133
Stack Dump = javax.naming.NameNotFoundException: Name "RMIConnector" not found in context "".
at com.ibm.ws.naming.ipbase.NameSpace.lookupInternal(NameSpace.java:1095)
at com.ibm.ws.naming.ipbase.NameSpace.lookup(NameSpace.java:991)
at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info(WsnOptimizedNamingImpl.java:566)
at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete_info(WsnOptimizedNamingImplBase.java:2226)
at com.ibm.WsnOptimizedNaming._NamingContextImplBase._invoke(_NamingContextImplBase.java:284)
at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:627)
at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:480)
at com.ibm.rmi.iiop.ORB.process(ORB.java:512)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:1571)
at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2665)
at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2530)
at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:62)
at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1551)
4)I also see a server1_exception file with the following line in it
Index Count Time of last Occurrence Exception SourceId ProbeId
------+------+---------------------------+--------------------------
1 1 9/16/13 16:40:06:745 EDT javax.naming.NameNotFoundException
com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info 1133
------+------+---------------------------+--------------------------
I do have other server profiles created for other versions of the workspace but I'm sure none of them are running while I try to run the profile in question. I noticed this started happening when I stopped one profile, then switched to another one and tried to start that up. Since then I haven't been able to start any of the profiles old or new and I keep getting this error/exception. Any help would be appreciated.
This is usually due to connectivity problems between RAD and the application server. The causes of these errors are many different possible:
Change of credentials of the user you are trying to connect with. There should be error messages in your SystemOut.log of the server to support this.
Pure connectivity errors, such as the port configuration being wrong. Check which RMI/SOAP ports you are using by accessing your administrative console directly in a browser and make sure that you have the same ports configured in your RAD configuration. Try both SOAP and RMI and most important, do not trust the automatic settings (I have found them to be wrong in more than one time).

Test Controller exception: No such host is known

I'm getting following errors on the test controller machine, when I'm trying to run CodedUI Tests remotely:
(QTController.exe, PID 3032, Thread 12)
ControllerDeployment.DoDeployment: System.Net.Sockets.SocketException
(0x80004005): No such host is known
During controller and agent configuration no errors came up. And when I go to Manage test controller dialog in Visual Studio I can see all the agents active. But when I try to execute any CodedUI test remotely it's hanging forever.
Not sure if it's connected with the fact that I've upgraded client/controller/agents to 2012 versions recently, but I've started seeing the problem only after this upgrade.
From Microsoft KB 2643086:
This issue occurs because the test agent computer sends its Network
Basic Input/Output System (NetBIOS) name instead of sending its Fully
Qualified Domain Name (FQDN) name to the test controller computer.
When the DNS server of the test controller computer does not have the
IP address mapping of the NetBIOS name of the test agent computer, the
issue that is described in the "Symptoms" section occurs.
You should ensure you are using fully qualified domain names (FQDN).
There is also a hotfix is available from Microsoft. However, you have to contact Microsoft Customer Support Services to obtain the hotfix.
I had similar problem, still not completely resolved but a workaround is to install Visual Studio on controller box and keeping result DB on same box.
Mostly the issue is restriction / firewall on VPN which might be blocking incoming traffic on TCP ports of machine / laptop.

Resources