jahia 7.0 template editing support - jahia

jahia 7.0 template editing doesn't work on linux env. It gives error on template creation from admin studio.
Cause level : 0 (level 0 is the most precise exception)
org.jahia.ajax.gwt.client.service.GWTJahiaServiceException:
java.io.IOException: Cannot run program "/home/jahia/maven3.0.4/bin"
(in directory "/home/jahia/jahia70/tomcat/webapps/ROOT/WEB-INF/var/sources"):
error=13, Permission denied

Bharat,
you need to edit Jahia.properties and fill in the full path name to your maven binary, example:
mvnPath = /opt/local/maven3/bin/mvn
I noticed that the installer fill's in the directory, but jahia needs to maven executable, similar to the svnPath and gitPath.
Obviously what Pat aid, the permissions need to work out, but usually this should be good.
After this it should work.

It seems that the user who run maven command doesn't have permissions for /home/jahia/jahia70/tomcat/webapps/ROOT/WEB-INF/var/sources.
Maybe you can check:
The permissions of : /home/jahia/jahia70/tomcat/webapps/ROOT/WEB-INF/var/sources
The user who run the Jahia process (Jahia process could be : tomcat process or jboss process or maybe somethnig else) (in my case it's : tomcat user)
And change the permissions considering that.

It was issue of maven path. path should be upto maven executable.
mvnPath = /opt/local/maven3/bin/mvn

Related

Error while installing Weblogic in windows 10

While installing the Weblogic in windows 10 using jar file, I am getting the error message as Unable to access or modify the system registry. Select Run as Administrator when opening the Command Prompt and try again. though am executing as Administrator. From the log file I got the below error.
WARNING [1] com.oracle.cie.common.jni.WinRegistryHelper - Create Key Failed: HKEY_LOCAL_MACHINE\Software\Oracle
2017-10-06 11:19:54,972 SEVERE [1] com.oracle.cie.nextgen.launcher.PlatformHelper - createRegistry to add a value failed
2017-10-06 11:19:54,972 SEVERE [1] com.oracle.cie.nextgen.launcher.Launcher - Unable to access or modify the system registry. Select Run as Administrator when opening the Command Prompt and try again.
I understood that on making the System Registry entry HKEY_LOCAL_MACHINE\Software\Oracle, it is failing because the same entry already exists in my system as HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE. Though system registry is case-insensitive, weblogic is failing on making entries to this registry. Is there any solution to overcome this? The same issue has been already posted in different sites but not yet answered.Any help to solve this issue will be really appreciable.
I had the same problem, the next lines works to solve the problem.
Open cmd like administrator.
java -d64 -jar fmw_12.2.1.3.0_wls.jar If you don't have correctly configured the JAVA_HOME, you can replace the word "java", for the path where you have installed de JDK. Something like this:
C:\JRockit\jdk1.8.0_144\bin\java.exe

SonarQube installation failing to start service

I'm installing sonarqube on Windows Server 2012.
I have followed the following steps:
Downloaded sonarqube4.4 and extracted to C:\Sonarqube
Downloaded Java JDK 1.7.0_60 and jre 1.7.0_67 as well as jre7
Installed Windows SDK 7 and .NET Framework 4
Navigated to C:\sonar\bin\windows x86-64 and ran StartSonar.bat as an administrator, this ran ok with no output and Ihad to hot ctrl- Z to break
I then ran \windows-x86-64\InstallNTService.bat as an administrator and I am seeing the sonarQube services was launched, but failed to start.
Not sure what the problem is.
I believe you first ran \windows-x86-64\InstallNTService.bat successfully and then StartSonar.bat unsuccessfully (the inverse order of what you describe).
You probably have [this problem]: http://qualilogy.com/fr/wp-content/uploads/sites/2/2013/09/Sonar_ServiceLaunchError2.jpg
Windows could not start the Sonar service on Local Computer.
Error 1067: The process terminated unexpectedly.
In that case, the solution is to change the user/rights to launch the Sonar service: https://qualilogy.com/en/migrate-sonarqube-tomcat-to-windows-service/
Go to the Services window, find the Sonar service, and open the Properties windows to change the user it logs on as to one with sufficient permissions.
I was able to solve this problem by creating a new folder named “Temp” in C:\Windows\System32\config\systemprofile\AppData\Local\
The Log-File will show only
--> Wrapper Started as Service
Cleaning or creating >temp directory C:\Program Files (x86)\SonarQube\sonarqube\temp
<-- Wrapper Stopped
The SonarQube service was launched, but failed to start.
After a long search, I came up to this site http://zen-and-art-of-programming.blogspot.de/2013/03/installing-and-running-sonar-source.html.
Solution:
Navigate to C:\Windows\system32\config\systemprofile\AppData\Local\ and create the directory Temp
2: Set the user rights to full access
3: Run the StartNTService.bat

Permissions issue when building a project

I am trying to get a project to build on a machine but i get the following:
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(744,5): warning MSB3075: The command "regsvr32 /s "C:\builds\working\\Win32\Debug\projx86.dll"" exited with code 5. Please verify that you have sufficient rights to run this command.
The previous error was converted to a warning because the task was called with ContinueOnError=true.
Build continuing because "ContinueOnError" on the task "Exec" is set to "true".
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(756,5): error MSB8011: Failed to register output. Please try enabling Per-user Redirection or register the component from a command prompt with elevated permissions.
The user account i am using is an Administrator on the machine so should that not have the highest privileges?
I can go to the startup and right click and run as administrator and that might sort it, but im trying to do an automated build and run of this project, so i cant use that method.
Anyone know how i might fix this?
Solution Explorer ->[YourProject]->Properties->Linker ->General->Per-user Redirection "TRUE"
I found this same issue when working on an C++ ATL project.
In my case, when I added a new ATL class I was missing a line in the resource file (.rc) that adds a resource type "registry" of the new class resource file (.rgs) . This creates the same permission issue stated above.
#LittleFairy answer is probably the best. But you could run Visual Studio as administrator.
Note: You need to explicitly start Visual Studio as administrator. Just the user account having admin rights isn't enough.

org.apache.felix.framework.cache.BundleArchive: Unable to create archive directory

googling I gound that this error is shown when windows can't run a .bat
I'm getting this when I'm running roo comand in my workspace.
OS -> windows 7, 32 bits
jdk -> jdk1.6.0_22
roo -> spring-roo-1.1.0.RELEASE
The hole error message is:
ERROR: Unable to create system bundle directory.
ERROR: org.apache.felix.framework.cache.BundleArchive: Unable to create archive directory.
Repeated hundreds of times.
I followed all these steps, but anyway I'm getting the error. Does anybody know why??
I read another similar problem, which was solved moving from OpenJDK to JDK 1.6. But I have already JDK 1.6
Thanks in advance
I also have same issue today on windows 7, 64 bit. after spending some time solved it.
Goto %ROO_HOME%/bin ( for me ROO_HOME = C:\Program Files\springsource\spring-roo-1.1.5.RELEASE)
Right Click Roo.bat and select option 'Run As administrator' from pop-up.
----------------------------------OR-----------------------------
In Run box ( last option in Start button pop-up), type cmd
Instead of hitting Enter, use CTRL + SHIFT + ENTER. Click yes on pop-up box
Command prompt with Administrative Properties will come up, type ROO and it comes up.
( C:\Windows\System32\cmd.exe)
I had the same problem. I did not have the aprropiate rights to the installation folder of roo. Then I changed my rights and everything worked fine.
It's probably because you are running as a 'normal' user yet the internal Felix OSGI container, by default, tries to create a felix-cache directory in the working directory.
Two solutions which are probably better than simply elevating your permissions:
Set the org.osgi.framework.storage system property (e.g. -Dorg.osgi.framework.storage=C:\Users\MyUsername)
Run it from a different working directory, one that you have write permissions for

Hudson as service on Windows - file system permissions

For some months we've run Hudson on a Windows XP "server" under a user account. This means someone manually logs in and starts Hudson via a .bat file (that sets up a few environment variables, then runs java -jar hudson.war)
However a few recent power cuts have resulted in the requirement to have Hudson start automatically at the time the server boots up. So I've turned to looking at Hudson running as a Windows Service. This would allow Hudson to start automatically with Windows, and would not require a specific user account.
I've managed to install it as a service, and I've changed hudson.xml so that the batch file is run rather than java directly. I do this because we build with git on Cygwin and SHELLOPTS=igncr must be set before bash starts java/Hudson.
The service seems to start properly, and the web interface is present and functional. However, it appears that the user that Hudson is now running under is unable to write/modify existing jobs in C:\hudson:
FATAL: Could not checkout 4a121704f178123c36f6ab4e861b3c771953b187
hudson.plugins.git.GitException: Could not checkout 4a121704f178123c36f6ab4e861b3c771953b187
at hudson.plugins.git.GitAPI.checkout(GitAPI.java:382)
at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:529)
at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:521)
at hudson.FilePath.act(FilePath.java:676)
at hudson.FilePath.act(FilePath.java:660)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:521)
at hudson.model.AbstractProject.checkout(AbstractProject.java:833)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:314)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:266)
at hudson.model.Run.run(Run.java:948)
at hudson.model.Build.run(Build.java:112)
at hudson.model.ResourceController.execute(ResourceController.java:93)
at hudson.model.Executor.run(Executor.java:118)
Caused by: hudson.plugins.git.GitException: Error performing c:\cygwin\bin\git.exe checkout -f 4a121704f178123c36f6ab4e861b3c771953b187
at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:302)
at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:276)
at hudson.plugins.git.GitAPI.checkout(GitAPI.java:380)
... 12 more
Caused by: hudson.plugins.git.GitException: Command returned status code 1: error: git checkout-index: unable to create file .gitignore (Permission denied)
error: git checkout-index: unable to create file .gitmodules (Permission denied)
error: git checkout-index: unable to create file Makefile (Permission denied)
I'm not really a Windows sort of person, but I thought perhaps if I added "Full Access" Security permissions to C:\hudson for the user "LOCAL_SERVICE" then that might fix it. Alas, it did not. I also tried full permissions for the user "Everyone" but that also did not solve the problem.
What am I missing here? Is there any way to allow a process running as a Service unfettered access to a subdirectory on a local disk?
How about you change the user that the service is running as. So create a new "technical" user account whose password nobody knows (except an envelope in your safe) and make this user the owner of all your hudson job folders. This also has the advantage that you can take permissions away from hudson. This way a Hudson job can not act as an admin on your windows machine.
The advantage of a service compared to a scheduled job is, that it restarts when it crashes.
Instead of running it as a service, maybe you should use Task Scheduler to set the process to run at logon, then have the user account auto-login. This is probably going to be much less hassle than dealing with service permissions, especially if you have to communicate with other machines.

Resources