I have just downloaded and installed Netbeans 7.2.1. Goind on the service tab and trying to start JavaDB. I have the following error :
java.security.AccessControlException: access denied ("java.util.PropertyPermission" "file.encoding" "read")
:(
a problem Java Security Manager
Can someone tell me how to resolve this to finally start javaDB by right clicking and choose "Start server" ?
Thank you
To solve this , You need to append this permission below to the java policy file that is shipped with JDK 1.7.:
permission java.util.PropertyPermission "file.encoding", "read";
The file can be found under : /jdk1.7.0/jre/lib/security/java.policy
Visit this link for more information. You can check this IBM document for configuration file descriptions.
I found a quick solution to this problem - Start your JavaDB from the command line\terminal like so:
<base folder>/db/bin/startNetworkServer -noSecurityManager
Then it runs fine without adding new permissions.
Related
I'm trying to install mongo DB on my local machine with the installer from the official website. But I'm continuously getting this message, can someone help?
I've tried the solution provided here but didn't help.
I suggest doing the following:
Hit Win+R to open up you run.exe then inside of it enter services.msc to open up services. Try locating the service under the name of MongoDB Server and set the Startup Type manually to Automatic - [In addition to that, you could set the username and password manually. If you get a message saying the user was granted login as a service right, try hitting retry on the MSI dialog and see if it starts].
Important:
Don't forget to save and close everything (services.msc) before continuing.
Also very important, you should (must) check your .NET framework version and update it to version 4.5 and above. You could download a software like eg Driver Booster to update all of your drivers and additional components that are outdated.
I ran into the same issue. My problem was the installation location. I was trying to install under C:\MongoDB. I resolved it by installing in the default MongoDb location which is C:\Program Files\MongoDB.
For me this is usually an issue with the configuration file %ProgramFiles%\MongoDB\Server\x.x\bin\mongod.cfg
At some time there was an invalid option "snmp" enabled (only valid in enterprise version).
Nowadays, although the installer asks for directories for data and logs it doesn't ALWAYS seem to use these, but defaults to %MONGO_DATA_PATH% or %MONGO_LOG_PATH%, respectively. I don't know where these should be defined, but the server fails at accessing c:\data\db (which doesn't exist). So you have to correct the paths.
I also faced this kind of error. But I just change the Network service to Local system in Log On As tab.
Follow my step-by-step below to resolve it:
Press Win+R, type: services.msc, then looking for MongoDB Server (MongoDB)
Double click on MongoDB Server (MongoDB).
Then it will open properties tab. On that tab click on Log On
After that check two items i.e. Local System account and Allow service to interact with desktop
After that press Apply and OK button. That's it, cheers!!
Open command prompt and copy the following command:-
"C:\Program Files\MongoDB\Server\4.2\bin\mongo.exe"
NOTE: This Tricks is work on my Windows 8.1 PC.
Comment out string with mp: in configuration file: %ProgramFiles%\MongoDB\Server\x.x\bin\mongod.cfg
Like this:
...
#snmp:
#mp:
Click Windows+r, type lusemgr.msc , Go to Groups and double click Administrators, Click Add, Click Advanced and click Find Now. Double click in Network Service (in bottom list) and click OK.
It worked for me.
Installing in the other locations other than the windows directory caused me this error. Reinstalling the setup with the recommended method of "complete" fixed it.
The problem occurs if you have Windows version previous to Windows 10.
Install the following update before installing MongoDB. Click on the link below.
https://support.microsoft.com/en-us/help/2999226/update-for-universal-c-runtime-in-windows
It worked for me.
The problem occurs if you have Windows version previous to Windows 7. Install the following update by going to below link you have to download
Windows6.1-KB2999226-x64.msu
#You have to download and install then go to servies.msu and start MongoDB server by Start also go into log on and set to #local machine
https://support.microsoft.com/en-us/help/2999226/update-for-universal-c-runtime-in-windows
I'm following the tutorials and samples of the official WSO2 ESB documentation. When I create (or load) a synapse configuration in the WSO2 Developer Studio I'm getting the error as shown below:
Save problems
Save could not be completed.
Reason:
resources\sunErrorHandler.esb_diagram (The system cannot find the path specified)
This error shows up when I want to open anything in the Design view. Even when I'm not trying to save anything.
So far I have tried to add the path specified in the error, but without success. I already found a workaround to be able to save and deploy my ESB configurations. By using "Save as" I'm able to keep the changes I made in the XML files. However the error stills shows up when I open the new version of the file.
Does anyone know a better solution to permanently resolve this error message?
I had this problem as well, running eclipse.exe as administrator fixed it.
Issue remains unresolved for my Eclipse + DevStudio 3.8.0 install on a Windows 10 environment. However since I was experiencing some other issues with the WSO2 ESB I decided to migrate to a Linux (Ubuntu) environment. This seems to work much better, the eclipse does not seem to have this issue on Linux.
Eclipse want to write in C:\Program Files\eclipse\resources. I solve problem by adding full permissions to group users on folder C:\Program Files\eclipse
If this happens in Mac you can provide the required permission to the "/Applications/IntegrationStudio.app/Contents/MacOS/resources" folder.
I have downloaded the latest version of spring tool suite (STS 3.6.2), when I tried to import spring getting started content, it return as below error:
Get started Guide
SunCertPathBuilderException: unable to find valid certification path to requested target
I have setup the proxy to visit internet, but I don't know how to import certifications in STS.
Please help.
Thanks.
James
I encountered the same problem and tried this:
Window -> Preferences -> Network Connections Change mode to Manual
It works fine now.
Go to the Windows -> Preferences -> General -> Network Connection
select the Active Provider option: Manual
then Click on Apply Button
It will be work
Find the file named “openssl.cnf”. Just delete it or rename it.
If you're using Ubuntu you can run the following command in the terminal:
sudo update-ca-certificates -f
Source: Ubuntu Manpage
If still not getting. Then remove s from https://start.spring.io. It should look like Click here
The above image is referred from spring tool suite official website. When you install a new sts it automatically adds secure connection. Hence we can access to that website currently with out secure only.
The default url i had was: https://start.spring.io
When i removed the 's' --> http://start.spring.io
Then it worked.
I guess it is to do with my network settings
I downloaded the Weblogic .zip file from the oracle's server but when I am trying to add the server to my Netbeans it gives an error that says "The entered installation directory is not properly structured."
I have also attached a screenshot to show it, can you please help me with the issue. I tried to find a solution online but there is nothing that actually solves my problem. For e.g someone said to update the IDE, so that didn't help.
This is a problem permission: https://community.oracle.com/thread/2582875
Just make sure that the user that is running netbeans has the same permissions on weblogic directory.
I'm guessing here, but you probably unpack the zip file but didn't run "configure.sh" to finish the WebLogic configuration.
Run ./configure.sh inside of your WebLogic folder and then try it again.
in netbeans for "Server Location" you should put MW_HOME\wlserver_10.3
presuming that you use "Domain Registration Type" Local Domain
then click Next, and netbeans will detect in Instance Properties
Domain like MW_HOME\user_projects\domains\sw_domain
just enter Username/Password and click Finish
The server location is:
*/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain
I'm using jboss + mysql for running ATG. I'm trying to open Admin Control Center through dyn/admin. However, I'm getting malformed help URL before I get login form. Once I logged in, I'm getting multiple alerts of same exception but with different help ids.
Did any one face this issue and found a workaround?
This issue has been observed because of not having protocol.jar in classpath while starting jboss server. You can follow this workaround to fix the issue.
Copy %DYNAMO_HOME%/DAS/lib/protocol.jar to C:\lib or any folder that is easily accessible to you.
Open Standalone.conf.bat
and add following line in the file.
set "JAVA_OPTS=%JAVA_OPTS% -Djava.endorsed.dirs=C:\lib"
Open the Jboss server after the above update is done. The error will be resolved.
Weblogic:
Copy the protocol.jar form DAS\lib to your domain lib folder and restart weblogic.
Ex: C:\Oracle\Middleware\user_projects\domains\base_domain\lib