Hi am trying to start tomcat in intellij 14 community edition. I have configured it as an external tools. in windows I could do it with by pointing the program to catalina.bat and in parameters i could type jpda start. But in linux machine i am pointing the program to Catalina.sh and in parameters i am typing jpda start.
But when i run it it is showing permission denied. Below is the exact error. how can i fix it?
Error:
Error running Tomcat: Cannot run program "/home/creative/work/apache-tomcat-8.0.12/bin/catalina.sh" (in directory "/home/creative/work/apache-tomcat-8.0.12/bin"): error=13, Permission denied
I gave a full permission to tomcat folder by executing the below command:
sudo chmod u=rwx,g=rwx,o=rwx apache-tomcat-8.0.12 -R
And it worked for me. May be not a optimal solution as i am new to linux.
And thanks for kenorb for helping me to figure out the solution.
Related
When I tried to run the DataStaxEnterprise-5.1.8-linux-x64-installer.runin my linux machine, it shows throws below error
There has been an error.
Upgrades from package/system installs are only possible as root user.
The application will exit now.
Can someone help me with this. Thanks in advance :-)
You're running it with insufficient privileges - you need to run it using sudo command as described in the DSE Admin Guide. From message I see that you may have already DSE installed, and need admin rights to upgrade the system.
I'm using VS2017 on my Windows PC and trying to debug on a Linux machine.
My app needs to run with higher permissions so how do I tell the debugger to run sudo with my application?
I found a workaround method.
Sudo instruction for my situation is for open the TTY port. so I use the "chmod o+rw /dev/ttyUSB0" to get the permission of access in VS2017.
VS2017 open tty port successfully without sudo.
You can find which one lib or tools you have to with permission, and then change it through the "chmod" instruction.
Thanks.
Open TTY OK in VS2017 Cross Platform
I have mintty 1.2-beta1(x86_64-pc-cygwin) installed on my Windows 7 64 bit.
Then I installed krb5-workstation version 1.12.1-2 to cygwin using Cygwin Net Release Setup Program.
But when I execute kinit or klist in cygwin, I got an error:
$ kinit
1 [main] kinit 3912 C:\cygwin64\bin\kinit.exe: *** fatal error - NtCreateEvent(lock): 0xC0000077
Hangup
Restarting cygwin or restarting windows didn't work either.
Could anybody help?
I had the same error when starting xterm, which just appears to flash briefly, then exit producing an xterm.exe.stackdump file. If you give xterm the -hold option you will see the NtCreateEvent error. The root cause of my problem was interference from AVG anti virus, and adding c:\cygwin64\bin\xterm.exe to AVG's exception list made xterm work again.
I'm not sure if it helps, but I had the same error code when I was trying to install CPANminus in Cygwin 64-bit. However the installation worked fine in the 32-bit version. It's not a full solution, but maybe you can try the 32-bit version of Cygwin.
I wanted to run gdm3 on my Windows 7 desktop and ran into the same problems as you had. After some fiddeling, I got a working solution that I'm (very) happy with, so I wanted to share this with you. I did the following (you need to do this only once):
Start the Cygwin Terminal (on your Windows PC)
From the terminal, run xlaunch.exe and follow the dialogs (I ended up using XDMCP; a good article about configuring that can be found here)
Safe the resulting config file to your desktop
From now on, you can just click on the dekstop icon to launch the remote (gdm3) desktop.
AVG seems to be causing the exception including a rsync.exe.stackdump.
If you get on the server side:
rsync: safe_read failed to read 1 bytes [Receiver]: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(276) [Receiver=3.1.1]
or client side:
rsync.exe fatal error - NtCreateEvent(lock): 0xC0000058
try disabling AVG. If it works when disabled, I added the rsync.exe as an AVG program exception and rsync is fine again.
I am new to Linux Platform. I have been given access to a server machine running on Linux ( but I don't know which Linux Platform it is running). I have been told that netbeans is installed on the machine. But, I find problem in searching the exact location where i open a framework window.
Any suggestion please.
Thanks in advance!!
You could always try
sudo locate netbeans
or
sudo find / -name netbeans
(Or without the sudo if you don't have the permissions.)
I have an external Tomcat server configured to run J2EE applications on my development (Gentoo Linux install) machine. This works great if the server is started prior to opening Netbeans and deploying the code [within the IDE]. This fails when I try to restart the server or to debug the server application. The error I get is that it is unable to find "catalina.sh" and the shutdown/start scripts for tomcat.
The Gentoo guide for this suggests that the scripts were outdated and were replaced with the init.d scripts. Does anyone have a suggestion on where I could find these scripts or how they solved this issue?
The lack of a script is due to an issue with the Gentoo Tomcat ebuild... all of the script files were in the bin directory of the src build.
Gentoo Bug Site
Solution:
1. un-tar the src
Copy all of the script files into the tomcat/bin directory
Change group ownership of the script files to tomcat
Enable execute and write group permissions to the script files