I'm working on a Sonar Plugin where I need to make some REST calls inside the Sensor/Decorator. How do I get the URL of the Sonar Host?
Thanks!
If you are refering to the Server base URL (Settings - General)
I did it like this:
settings.getString("sonar.core.serverBaseURL")
sonar.core.serverBaseURL is the key for the setting.
This returns http://localhost:9000 on my local test-machine. ;)
Related
I'm totally confused with openshift+netbeans. This is my openshift app and repository address
When I try to "Clone repository" in order to develop locally I meet "Incorrect credentials for repository at ssh..." I also noticed that it is not possible to put the URL provided by openshift to "Repository URL" field in Netbeans "Clone repository" tool. Clone repository screenshot
I meet "Incorrect credentials for repository at ssh..."
Yes, as expected, because you use (in Netbeans) strange and unknown username.
Format of ssh-URL is well-known and predefined. For SSH-served Git-repos it's
ssh://[USERNAME#]HOSTNAME:[PORT]/PATH/TO/REPO.git
optional parameters are []-ed
If Netbeans doesn't accept username in URL, you must use same name, as suggested in app's configuration (long HEX-string), for SSH, not username ...#yandex.ru (this is login for OpenShift, not for SSH).
And you can start from getting functional SSH-connection (SSH-client with interactive authentication) before configuring VCS settings in Netbeans
OK, it works! So the solution is:
Repository URL like: ssh://myapp-mydomen.rhcloud.com/~/git/caswp.git/
User name is like: 123e31f89f5cf29a111110e (you can find it on OPENSHIFT ONLINE on app page)
I used "private key". The file name is - id_rsa Normally you can find it in folder - C:\Users\UserName.ssh\
From my experience I can tell that its just an user information miss match issue. I have two repository at bitbucket.org. I was trying to clone with wrong username/password from netbeans where Netbeans checks authentication.
Suddenly i notice that and correct the username/password and BANG it works... no error!!!.
when I go to Install new software and select an update site, I get a "HTTP Proxy Authentication Required" error.
I have searched the internets for quite some time, and I still did not get an answer.
Facts:
I get this error for every update site.
I am able to access the update site link both in an internal or external browser.
I am using the "native" proxy in eclipse network settings.
direct proxy in eclipse network settings does not work either.
our helpdesk told me that it's not possible to set up the manual proxy in eclipse network settings (or they don't know)
I've tried manually inserting a proxy server:port that I found in a proxy.pac file that I've discovered, no luck...
I've tried reinstalling Eclipse, re-adding and/or reloading repositories and deleting repo cache dir
I'm using: -Djava.net.preferIPv4Stack=true in ini file
I've tried mirroring the repositories using both methods, but log file gives the same proxy error
My system:
Eclipse for PHP Developers
Version: Luna Service Release 1a (4.4.1)
Build id: 20150109-0600
Windows 7, 64bit
Just add this at the end of your eclipse.ini :
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4
In my case I had to set the proxy also to manual (SOCKS should be unchecked). But then, no more hassle.
It basically disables the default Apache HTTP client and will use an HTTP client based on the JRE URL connection.
See: https://wiki.eclipse.org/Disabling_Apache_Httpclient
Edit:
There is a new Apache HTTP client version for which the parameter value has changed:
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient45
To disable both use:
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient45,org.eclipse.ecf.provider.filetransfer.httpclient4
I could solve the same problem by going to "Windows" → "Preferences" → "Network Connections" and set "Active Provider" to "Direct". See more details and a screenshot in my answer here.
Switch to the manual proxy options
Enter your proxy, user and password
Do it for al except SOCKS. SOCKS you may leave empty.
I've tried a lot of solutions in Google, but nothing :(
I was going to forget about eclipse, but suddenly it worked :)
In the end I talked to a guy who manages the proxy settings in our company and luckily he did some changes to the proxy server and now I'm able to install addons & update software from within eclipse :-)
For my proxy settings, I HAD to leave SOCKS proxy configuration empty after entering manual proxy settings for both HTTP and HTTPS.
Leaving them all empty didn't work, and filling them all out didn't work either.
It worked for me using this in eclipse.ini:
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient45,org.eclipse.ecf.provider.filetransfer.httpclient4
Source: https://wiki.eclipse.org/Disabling_Apache_Httpclient45
If you are using eclipse through a virtual machine, then set the network settings to manual in Eclipse. That should solve the issue.
How do I change Netbeans's webserver port from 8383?
I know I could install and use a separate webserver, but I'd prefer to just use the embedded one.
Some of what I've read online makes me think it might not be possible to change the port. But, then bug https://netbeans.org/bugzilla/show_bug.cgi?id=222570 makes it sound like using other than 8383 is possible.
I can't find such a setting with the UI. I searched under the installation directory for 8383 and can't find anything.
So, how do I do this? I'm using Netbeans 8.0.1.
Thanks.
ADDITIONAL INFO:
I'm using the internal webserver that comes with Netbeans.
I don't think this is possible, definitely not via UI. Looking at the java class, port number seems to be hardcoded in the source. You would have to build the particular NetBeans module and then replace the one in NetBeans installation folder with yours module.
From what I can tell from the issue, it fixes cases when default port 8383 is occupied, IDE uses different one (increment by 1) and thanks to the fixed bug, this incremented port is also used in browser (prior the fix, even with incremented port, old 8383 was being used in browser).
You can file enhancement with request for it.
Under Window / Services / Servers you'll find every registered server. Right-click on your server, choose "Properties" and under the "Connection"-tab you can define your port.
(You haven't mentioned which server you are using, but that's the way where you usually define your port).
I can't find Servers option either and I'm using NetBeans v8.0.2. But you can use an external server [ex. IIS, Apache] as an workaround: right-click the project in Project Window > Properties > Run. Then change the Web Server to External and Project URL to your desired address.
If your project is not in an web accessible directory you must make it web accessible first by configuring your web server or adding it in an web accessible location.
We have implemented the Wiris tool into an application, but when you open the editor in Chrome for example you need to click the shield and select 'Load unsafe script' each time. As a note the application it is integrated with is https.
I know that when you inspect the tool there are three links in the markup:
http://www.wiris.net/demo/editor/editor?lang=en
http://www.wiris.com/editor3/docs/manual/latex-support
http://www.wiris.com/editor3/docs/manual
I can only assume that because these are http they are triggering the security option each time the editor is opened. Does anyone know if it is possible to launch the editor with https so that it can be used more efficiently.
In the configuration.ini file for WIRIS there is a variable called wirisimageserviceprotocol.
You could try setting the value of that to https like this:
wirisimageserviceprotocol = https
Reference: WIRIS Configuration
Hi am trying to create a Staging Server for Confluence and I cloned the VM and updated Confluence settings. Now after login I get
javax.servlet.ServletException: org.jasig.cas.client.validation.TicketValidationException:
ticket 'ST-224-7T1R0Olcgf3BJfvwOjJ3-cas' not recognized
Referer URL
https://sso.server.com:8445/cas/login?service=https%3A%2F%2F10.1.1.59%3A8443%2Fhomepage.action
The original Confluence still works but the Staging one errors our.
Any Ideas?
This is a bug but there is a workaround. See: http://www.liferay.com/community/forums/-/message_boards/message/13347927 .
Summary:
Disable the Terms of Use (Control Panel > Portal Settings > Users >
Terms of Use Required)
Disable the password reminder query. Put the
line users.reminder.queries.enabled=false in the file
portal-ext.properties .
I had the same problem as you, tried this recipe and it worked. Good luck!