Glassfish v3 Mac - macos

I have trouble launching Glassfish v3 on Mac
In Windows, after installation of Glassfish v3 Shortcuts for Starting and Stopping server are added to Start Menu
In Mac how do I start the server? I tried executing ./asadmin start-domain domain1
but it gives me an error for missing .xml files
Any sort of help is appreciated,
Thank you

You don't mention how you installed, but it sounds like the install didn't complete correctly.
I start Glassfish on my Mac every day with
./asadmin start-domain
in the bin directory of the install home. Note that if you don't specify the domain, it uses domain1 as the default.
Try using the Unix installer, it's a self-extracting shell program - b69 is the latest for v3. After a complete install, it should work fine. The usual caveats (make sure you have enough diskspace, etc) apply.

Related

Install Memcached on Windows

While doing some web development, I needed to have Memcached (source code) installed on my local machine to closely simulate what was going on my server.
How to install Memcached on Windows?
Steps to install Memcached on Windows:
Download a stable version, in either 32-bit or 64-bit I have tested the 64-bit version.
Unzip it in some hard drive folder. For example C:\memcached
There will be memcached.exe file in the unzipped folder.
Open a command prompt (need to be opened as administrator).
Run c:\memcached\memcached.exe -d install
For start and stop run following command line
c:\memcached\memcached.exe -d start
c:\memcached\memcached.exe -d stop
As told in some previous comments the v1.4.4 is sometimes coming from a trusted source, sometimes not and it becomes hard to find. But there is now a very stable Windows native port for both 32 bits and 64 bits versions.
https://github.com/jefyt/memcached-windows
It's running well on our two PHP servers (PHP7 and PHP8).
Hope this helps.
Another Cygwin version is also available here and runs well too
https://github.com/nono303/memcached

"Failed loading ClientOU certificate at ..." while running a Hyperledger Fabric sample "Building Your First Network"

I'm trying to test my development environment and keep getting this error while going through the "Building Your First Network". I've installed the prerequisites on a Windows 10 Home edition so I'm using Docker Toolbox. The error is described as follows and happens just after a execute the ./byfn.sh up -l node command:
2019-11-14 17:06:26.982 UTC [msp] loadCertificateAt -> INFO 002 Failed loading ClientOU certificate at [/var/hyperledger/orderer/msp/cacerts\ca.example.com-cert.pem]: [could not read file /var/hyperledger/orderer/msp/cacerts\ca.example.com-cert.pem: open /var/hyperledger/orderer/msp/cacerts\ca.example.com-cert.pem: no such file or directory]
As you can see there is a backslash just before the ca.example.com-cer.pem which I think is causing the problem. Anyone have an idea of how I might solve this issue?
Docker Toolbox for windows doesn't provide a great experience for users. It's limited in how it can share windows directories with linux containers running in the linux VM it creates. I believe it can be made to work but you have to use very specific folders in your home directory and you would have to google it to find all the details but it's a lot more of a hassle.
You have other options of course
Upgrade to Windows Pro and use Docker for Windows (which doesn't have the same sharing limitations, but still not a great experience and you can still encounter problems sharing the directories)
Install a hypervisor such as virtualbox and run a linux desktop distribution such as ubuntu or mint and use that instead (which I would recommend and would suggest ubuntu 18.04 mate edition)
Wait until next year when hopefully microsoft will release WSL2 for everyone (including home edition) and then Docker won't need a linux VM running and it should be a much better experience trying to run linux containers on windows.
As mentioned by lindluni here
Backslash problem in Hyperledger 2.0.1 when orderer/peer look for .pem files
the problem arises when one creates crypto artifacts under Windows since "golang filepath.Join uses the current OS's filepath scheme". Hence, under Windows backslash is used in all the generated config.yaml files found in crypto-config/*. One can replace this backslashes before the deployment to fix the issue.

How to install Typo3 in Windows 10 with XAMPP?

I have installed XAMPP in Windows, It is working perfectly. but when I installed Typo3 version 8 and it Showed some errors
PHP OpenSSL extension not working.
PHP extension soap not loaded.
Current directory is not within in the current path.
Low PHP Script Execution Time.
PHP max_input_vars very low.
Windows apache thread stack size.
But I can't able to fix the following:
PHP OpenSSL extension not working.
PHP extension soap not loaded.
Current directory is not within in the current path.
Windows apache thread stack size.
What should I do?
Thank you
Here is the full configuration for the Apache On windows server. This working fine with my windows 10 with SSL.
<script src="https://gist.github.com/GhanshyamBhava/41d3a34acc11cec2a4828b0d4b2c840f.js"></script>
Hope this will work for you.
Greetings!
The errors above are not something you have to worry about.
You don't need openSSL for development, it is working without soap (maybe this is used by TER), you have to paste all typo3 src in root path because windows doesn't support symlinks.
But if you want to make all things work you have to use vagrant or docker.
Vagrant requires VirtualBox or other Virtual machine tool.
But docker has a boilerplate ready to use: https://github.com/webdevops/TYPO3-docker-boilerplate

Ubuntu programs won't run from command line but say they are installed

I am new to Linux and non-Microsoft web development (long time MS developer). I am making some kind of fundamental mistake when I install Linux programs but I don't know what.
I am trying to install spring-boot-cli for use to make a Java microservice. I am just trying to learn how. I followed the installation instructions I found here, ending up using the SDKMAN installation method: https://docs.spring.io/spring-boot/docs/current/reference/html/getting-started-installing-spring-boot.html
When I try to run spring --version, it says spring is not installed. When I go back and try to install it again, sdk says, "STOP! this is already installed."
I am having a similar problem with Maven. I try to run command line commands and it is not recognized, but it claims it is installed.
a bit unusual but at the terminal type:
> which spring
and then
> $PATH
should give you a starting point.

Node.js - tutorials on getting it to work with Cygwin on a Vista machine

All,
Am trying to get Node.js to work on Vista machine.
I installed Cygwin (as per the Github instructions) which appears to have been installed correctly. However, none of the commands are executing.
Are there any tutorials for the stages after the Cygwin installation?
PROBLEM: When any command is executed, I get 'Bash: command not found' error.
Not even command like 'c:\cygwin\bin' is executing.
When I type 'user' in cygwin command prompt, I get 'ntvdm has encountered an system error. Parameter incorrect'.
I thought the above error may be due to the firewall, disabling the firewall did not have any effect, running the program with admin rights also did not change the results...
Am confused and would love to get some guidance on what steps to go with next on getting Node.js up and running on a Windows Vista machine.
Many thanks,
UPDATE1:
We managed to make a bit more progress. It appears that we had not installed all the relevant files related to Cygwin. Upon re-download and reinstalled, it ran well, however, we have driven into another error. Error we get:
How to compile/install node.js(could not configure a cxx compiler!) (Ubuntu).
We followed the instructions as per the above thread (3rd post from top for Windows machines), however, we are still stuck at the same error.
Any guidance please?
Have you tried just using the Windows self contained binaries? http://node-js.prcn.co.cc/ This way you actually don't need to bother with Cygwin.
At first, i tried it your way too, using Cygwin. After smashing my head for the 10th time against a wall i just stopped trying and found a much cleaner solution.
I'm using VirtualBox running a Debain guest system to locally develop on my Windows 7 machine. Using VirtualBox, you can easily set up shared folders or port forwarding for node apps between your Windows machine and your Debian guest system.
Since you are using a plain Linux-system, all the compiling-pain is blown away.
If you plan to run node.js in production on a windows system: don't. I hardly believe node.js will be ever stable enough on windows-based systems using MINGW/Cygwin...
People seem to run into problems with Cygwin because they think that they are using a Windows machine.
If you install Cygwin, and open a bash shell prompt using the Cygwin icon, you are now in a UNIX environment and everything works the same as it would on UNIX. That includes building node.js.
I think you added some info to the question and I can see your problem. Yes, normally on Cygwin it has been possible to build node.js just as you would on any UNIX system, but that is no longer possible on Windows 7. Before running ./configure you have to:
Close all cygwin apps.
Double-click on C:\Cygwin\bin\ash.exe
Run ./rebaseall and when it completes, run ./perlrebase.
exit from the ash shell window.
At this point Cygwin will be back to normal and you can ./configure and make install.

Resources