Remote access to Wildfly 10 (Server Starting at Eclipse) - wildfly

Im trying to remotely access to Wildfly from other pc in local network(no localhost) and I can only do that if I run the server (with standalone.bat) that way:
standalone.bat -b=0.0.0.0
The problem is that I don't wanna to do this manually each time I run the server, I tried editing standalone.xml that way:
<interfaces>
<interface name="management">
<inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:0.0.0.0}"/>
</interface>
<interface name="unsecure">
<inet-address value="${jboss.bind.address.unsecure:0.0.0.0}"/>
</interface>
</interfaces>
But dont work, also tried to do the same through the wildfly UI but also don't work, what im doing wrong?
Thanks in advance!

Open server configuration (double click on server). And click link "Open launch configuration" under "General Information". Add VM arguments. – "Qwertovsky"

Related

Build pipeline with .NET Core and Angular but npm build happens during publish task?

Have a .NET Core 2.2 app within a solution and have been using a publish profile to publish to a dev server. Now, Ive setup a Devops build pipleline to publish using a self-hosted agent on-prem. Mostly working but I can't see to get the npm build configuration right.
When I use my publish profile locally, Im using settings in the csproj file to control which options to use for npm build.
eg.
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
<!-- Use conditional builds based on build target setting eg. debug, dev, prod etc -->
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build " Condition=" '$(Configuration)' == 'Debug' " />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build --prod false --configuration=dev" Condition=" '$(Configuration)' == 'Test' " />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build --prod true --configuration=prod" Condition=" '$(Configuration)' == 'Release' " />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build:ssr --configuration=prod" Condition=" '$(BuildServerSideRenderer)' == 'true' And '$(Configuration)' == 'Release' " />
However, npm build within my build pipeline isnt run until the publish step. And then its the default "ng build" with no settings to use the correct angular environment value.
On the npm build task I use this for a custom command
build --prod false --configuration=dev
but it doesn't seem to get run during the build.
How can I get the correct npm build settings to run?
My build pipeline looks like this
a) I had the same issue and I resolved this by updating the package.json file by adding a
new command in the scripts(see attached image)
"build-staging": "ng build --configuration=staging"
Package.json
b) I also updated the Build Definition
npm build
c) I deleted the exec lines in .csproj file under publishrunwebpack node
e.csproj file
This resulted in running the correct nb build command based on the environment.

Android Build Error when using the barcodescanner and qrscanner at the same time

When I use the phonegap-plugin-barcodescanner plugin and the cordova-plugin-qrscanner plugin at the same time in a project, it won't compile for the android plattform. The error it outputs is duplicate permission element in the manifest. Upon checking I saw that this is indeed the case. However manual correction doesn't work as it will be regenerated automatically.
I documented the reproduction scenario further down. It is very simple. Maybe someone has an idea how to solve this issue? Or do you think this is a bug? But where should I open the issue in such a case?
Used version:
Ionic: 3.20.0
cordova: 8.0.0
Steps to reproduce:
Start a new project ionic start permissionissue blank (when it asks if it should integrate with the iOS and Android platform say yes, when it asks to install the ProSDK say no
Change into the project folder: cd permissionissue
Build it: ionic cordova build --release android -> Still everything is fine
Install the first plugin: ionic cordova plugin add phonegap-plugin-barcodescanner
Build it: ionic cordova build --release android -> Still everything is fine
Install the second plugin: ionic cordova plugin add cordova-plugin-qrscanner
Try to build it: ionic cordova build --release android -> Now it breaks
It will show the following error:
> Manifest merger failed with multiple errors, see logs
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or
--debug
option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 4s
23 actionable tasks: 3 executed, 20 up-to-date
(node:12659) UnhandledPromiseRejectionWarning: Error: .../permissionissue/platforms/android/gradlew: Command failed with exit code 1 Error output:
.../permissionissue/platforms/android/app/src/main/AndroidManifest.xml:19:5-90 Error:
Element uses-permission#android.permission.CAMERA at AndroidManifest.xml:19:5-90 duplicated with element declared at AndroidManifest.xml:16:5-65
.../permissionissue/platforms/android/app/src/main/AndroidManifest.xml:20:5-85 Error:
Element uses-feature#android.hardware.camera at AndroidManifest.xml:20:5-85 duplicated with element declared at AndroidManifest.xml:18:5-84
.../permissionissue/platforms/android/app/src/main/AndroidManifest.xml Error:
Validation failed, exiting
FAILURE: Build failed with an exception.
The generated Manifest looks like this:
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.FLASHLIGHT" />
<uses-feature android:name="android.hardware.camera" android:required="true" />
<uses-permission android:name="android.permission.CAMERA" android:required="false" />
<uses-feature android:name="android.hardware.camera" android:required="false" />
<uses-feature android:name="android.hardware.camera.front" android:required="false" />
As you can see the CAMERA is once requested by itself and once with required false.
I had similar issue using cordova-plugin-camera-preview & cordova-plugin-qrscanner
What helped me was:
1. Go to plugins/cordova-plugin-qrscanner/plugin.xml
remove entries within
<config-file target="AndroidManifest.xml" parent="/*">
...
</config-file>
run
ionic cordova platform remove android
run
ionic cordova platform add android
This is how my <platform> section look like, from plugin.xml of cordova-plugin-qrscanner
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="QRScanner">
<param name="android-package" value="com.bitpay.cordova.qrscanner.QRScanner"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<!-- <uses-permission android:name="android.permission.CAMERA" android:required="false" />
<uses-feature android:name="android.hardware.camera" android:required="false" />
<uses-feature android:name="android.hardware.camera.front" android:required="false" /> -->
</config-file>
<source-file src="src/android/QRScanner.java" target-dir="src/com/bitpay/cordova/qrscanner"/>
<framework src="src/android/qrscanner.gradle" custom="true" type="gradleReference"/>
</platform>
Worked for me, hope it help you as well.

Does Protractor 4 has any dependency?

I have been using protractor 3.3.0 and finally decided to move up to V4. I am behind a firewall, so using proxy setup. That setup works fine for v3.3.0, but I am not able to download any of V4. It always results in ECONNREFUSED with error
error on last attempt: Error: tunneling socket cound not be established, cause connect ECONNREFUSED <ip>:<port>"
is there any difference on how to download Protractor V4 and above? I have tried
npm install protractor (my package.json had "protractor": "^4.0.0")
npm install protractor (my package.json had "protractor": "4.0.4")
npm install protractor#4.0.0
npm install protractor#4.0.4
When I couldn't install it, I moved back to v3.3.0.. my package.json has "protractor": "^3.2.2")
The error you are seeing is a common one when connecting through proxies. Please see here for the discussion
And yes there are new dependencies/new versions of old dependencies in Protractor#4.0.4 which will trigger new downloads.
PLs see below for specific details
`
npm view protractor#4.0.4 dependencies
{ 'adm-zip': '0.4.7',
chalk: '^1.1.3',
glob: '^7.0.3',
jasmine: '2.4.1',
jasminewd2: '0.0.9',
optimist: '~0.6.0',
q: '1.4.1',
saucelabs: '~1.3.0',
'selenium-webdriver': '2.53.3',
'source-map-support': '~0.4.0',
'webdriver-manager': '^10.2.2' }
npm view protractor#3.3.0 dependencies
{ 'adm-zip': '0.4.7',
chalk: '^1.1.3',
glob: '~6.0',
jasmine: '2.4.1',
jasminewd2: '0.0.9',
optimist: '~0.6.0',
q: '1.4.1',
request: '~2.67.0',
saucelabs: '~1.0.1',
'selenium-webdriver': '2.52.0',
'source-map-support': '~0.4.0' }

phonegap facebook connect fail on iphone 4 and iphone 5

I'm developing an ios app with PhoneGap 3.4 which connects to facebook
I used this plugin to connect to facebook: https://github.com/phonegap/phonegap-facebook-plugin
everything works in emulators provided by xcode 5.1.
I tested the app on iphone 3gs and the connection to Facebook still works.
tested also with iphone 4s and facebook connection does not work: FB.login is not called.
the same happens on the iphone 5s.
no error in the xcode console and even in the safari console under developer mode.
the plugin is out of date
Make sure set your config.xml correctly
<access origin="https://m.facebook.com" />
<access origin="https://graph.facebook.com" />
<access origin="https://api.facebook.com" />
<access origin="https://*.fbcdn.net" />
<access origin="https://*.akamaihd.net" />
<feature name="org.apache.cordova.facebook.Connect">
<param name="ios-package" value="FacebookConnectPlugin" />
</feature>
OR
Use this command to install your facebook phonegap plugin
cordova plugin add https://github.com/phonegap/phonegap-facebook-plugin.git --variable APP_ID="XXXXXXXXXXXXXX" --variable APP_NAME=“YOUR_APP_NAME
Don't ever use plugman to install cordova plugin.

Notification plugin not working phonegap 3.0 for iphone

I am developing an app with phonegap 3.0.0. I need to show the confirm dialog so I added the Notification plugin from phonegap CLI with the following command (as described in CLI Documentation):
$ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs.git
But now I can't build the project. When I try to build it fails with following error:
** BUILD FAILED **
The following build commands failed:
CompileC build/CamTest.build/Debug-iphonesimulator/CamTest.build/Objects-normal/i386/CDVNotification.o CamTest/Plugins/org.apache.cordova.dialogs/CDVNotification.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
When I remove the Notification plugin everything works fine. I've also tried to add the following in my config.xml (CamTest/www/config.xml) to no effect:
<feature name="Notification">
<param name="ios-package" value="CDVNotification" />
</feature>
Please someone tell me how to work with plugins in Phonegap 3.0.0. I am trying it on iphone simulator. Thanks.
We were facing the same problem, but before we added the required lines in config.xml. So, the following two step process also mentioned in this and this link solved the problem.
On the command line
$ cordova plugin add
https://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs.git
In project's config.xml
<feature name="Notification">
<param name="ios-package" value="CDVNotification" />
</feature>