Error deploy BMP project using Tibco Business Studio - tibco

I try to deploy a BPM project but I get error when create application as such:
create.app:[AMXAdminTask] INFO - Processing 1 objects[AMXAdminTask]
INFO - Adding application...[AMXAdminTask] ERROR - Failed to add
Application 'com.example.bmpsample'[AMXAdminTask] ERROR - Follower
application component
urn:amx:BPMEnvironment/com.example.bmpsample/BMPSampleProcessFlow_1.0.0.201311211151
requires capability
com.tibco.amf.sca.model.componenttype.impl.RequiredCapabilityImpl#7396acb
(id: com.tibco.bx.capability.implementation.bx, version: 1.0.0, type:
factory) but the target application does not provide it.
BUILD
FAILEDD:\wsbmp.BSServers\scripts\com.example.bmpsample.deployment-build.xml:37:
Failed on error Total time: 7 seconds

I also got same error while deploying bpm project from studio, to resolve that below information will help you :
Summary When using TIBCO Business Studio to deploy a DAA that is
dependant on another DAA which is not in the deployed state results in errors
such as:
Follower application component
urn:amx:BPMEnvironment/com.example.appa/APPAProcessFlow requires
capability
com.tibco.amf.sca.model.componenttype.impl.RequiredCapabilityImp
l#7ee0f191 (id: com.tibco.bx.capability.implementation.bx,
version: 1.0.0, type: factory) but the target application does
not provide it.
Workaround Make sure the dependant DAA is deployed.
Thanks & Regards,
Srinivasa Reddy P

Related

Java Spring Boot: How to implement a JCo3 server with different message server

​Hi everyone one,
On my project, we are developing a spring boot application which is using JCo3.
It works fine for calling SAP from JAVA.
Now we are enhancing this application and we want to create a Jco server.
It will have to communicate with 2 different SAP system.
Each system have its own message server.
We customize each message server with several logon group according to our needs.
So we have created 2 classes to build up 2 Jco server one per system.
For server class, we hae base our development upon this blog:
https://blogs.sap.com/2017/08/25/sap-jco-server-example/
So we use a ServerDataProvider to use the parameters below
jco.server.connection_count=2
jco.server.progid=JCO_SERVER_SAP
jco.server.repository_map=SID(020)=S4
jco.server.mshost=myslanaddress.com
j
co.server.msserv=3601
jco.server.system_id=SID
We have 2 files to specify these parameters one per SAP system
The other system wil use a different progid.
When starting our application, everything goes well for the first bean instanciation.
As soon we arrived on the other, when trying to create the new Jco server
with for instance new progid JCO_SERVER_SAP and with new message server info)
with (server = JCoServerFactory.getServer(properties.getProperty(ServerDataProvider.JCO_PROGID));
The Constructor threw this exception; nested exception is com.sap.conn.jco.JCoRuntimeException: (136) JCO_ERROR_ILLEGAL_STATE: JCoServer JCO_SERVER_SAP is currently running. Current server state is STARTED
It is strange because in debug the progId is JCO_SERVER_CAR and not JCO_SERVER_SAP..
I foun this message (https://answers.sap.com/questions/12862862/how-to-implement-a-jco3-server-with-multiple-diffe.html) but I don’t know how to build such solution.
Do you have any clue ?
Thanks in advance for any help.
I tried to create and use
jco.server.repository_map
but it do not work.

How to update ear in websphere?

I've got an application (ear) installed in Websphere. Working fine.
I've setup a monitoring folder in websphere, where "deploymentProperties.props" is monitored for changes. Working fine.
My target is, that my application (ear) in websphere is updated, when "deploymentProperties.props" is changed. The change is triggered, but the update process does not work.
Propertyfile:
#
# Header
#
ResourceType=Application
ImplementingResourceType=Application
ResourceId=Deployment=nameOfApplication
# Properties
Name=nameOfApplication
Update=true
operationType=update
contentType=app
contentFile=C:\Folder\nameOfApplication.ear
useDefaultBindings=true
SystemOut.Log:
com.ibm.ws.management.wasresource.common.WASResourceException: com.ibm.ws.management.wasresource.common.WASResourceException: com.ibm.ws.management.wasresource.common.WASResourceOperationException: java.lang.Exception: Application install/uninstall failed ADMA5069E: ..
ADMA5069E: The installation of application {0} failed. This application was in the middle of a full update and therefore is uninstalled from the configuration session. Discard your current configuration session immediately to recover the application. Do not save changes to the WebSphere Application Server configuration repository. The application is not uninstalled from this repository. Until the current configuration session is discarded you do not see this application in the current session.
ErrorLog:
ADMA0128E: Invalid cell name was passed to the installApplication API for installing application {0}
Weird: When I try to update same ear, as the one already installed, the update process results with success.
Any hints?
thank you
According to this IBM KnowledgeCenter topic, you're missing the variable CreateDeleteCommandProperties=true in the properties file.

Websphere instalation v 7 Error

I'm trying to install websphere application server v7
I followed the steps
and when I click on next after after entering security administration password I got this error message
System Prerequisite Check
The system prerequisite check failed. The error messages are as follows:
 
Unable to retrieve information from the minimal service level (MSL) file of the installation.
thanks for helping
You can use the instructions in this IBM Technote to disable MSL checking (you'll need to substitute v70 for v80 in the property name). I must also point out that you're trying to install a version of WAS that goes out of service in 5 months. You may instead want to invest in installation of a more modern version of WAS like v9.

Trying to convert existing WCF service to Web Role can't deploy without errors

I've converted existing WCF application to web role by adding it with "Add web role project in solution". Convert menu doesn't offer me option to convert. Our application requires .NET 4.6.1
Application runs fine on full emulator. However deployment fails with two scenarios:
osFamily attribute set to "5" in Serviceconfiguration(no .NET 4.6.1 installation script required):
19:15:16 - Instance 0 of role Severa.API is restarting
Details: [11/28T17:15Z]Failed to load role entrypoint. System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Assembly.GetTypes()
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.GetRoleEntryPoint(Assembly entryPointAssembly)
--- End of inner exception stack trace ---
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.GetRoleEntryPoint(Assembly entryPointAssembly)
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.CreateRoleEntryPoint(RoleType roleTypeEnum)
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.InitializeRoleInternal(RoleType roleTypeEnum) Last exit time: [2016/11/28, 17:15:06.916]. Last exit code: 0.
osFamily attribute set to "4" in Serviceconfiguration with .NET 4.6.1 installation:
The feature named NetFx451 that is required by the uploaded package is not available in the OS * chosen for the deployment.
I've used the .NET installation script in other projects with success. Also I have added WebRole.CS class to the project.
Is the issue here that the webrole is not WCF type meaning some setting etc. is missing?
We've managed to identify and fix the issue.
I've enabled Fusion logging and immediately got the missing information.
What would have saved a lot of time and point us to right direction would have been to understand that web role in CS consists of two processes: WAIISHost which runs RoleEntryPoint code in startup and good old W3WP for the Web application itself.
WAIIShost can't read Web.config and requires an empty Web.config file named after name of the project and redeployed successfully. I followed instructions from this article:
Post about the issue

An error occurred while initializing a build for build definition invalid URI

Ive created a build definition in VS so that I can queue a build that can be used within Microsoft Test Manager.
However when I queue the build I get an error back:
An error occurred while initializing a build for build definition invalid URI: Invalid port specified.
I dont really know where to start to get to the root cause of this. Can someone point me in the right direction on where I could get more info so that I can narrow this down?
Have you made sure that the correct ports are available for TFS to communicate through?
You need to have 9191 open for Controllers to Agents for builds.

Resources