Jenkins not showing updates/plugins available - java

I installed Java 1.8.0_72 along with tomcat 8 and jenkins 1.6, i currently having problems with installing plugins because the jenkins update center has no plugins/update available. I tried installing plugins manually on jenkins home path/plugins
Is there any other way? or any idea how to configure http proxy?

You can configure the proxy setting here: http(s)://<server-URL>/pluginManager/advanced
Keep in mind that an enterprise proxy (NTLM / NTLMv2 authenticating) might not work and that you might have to use something like cntml
For more information check:
cntlm SourceForge page

Related

How to configure proxy settings in NetBeans 8.2 RC?

I have an issue with NetBeans, I have been trying to install some plugins to the IDE but it show me an error:
Unable to connect to the Plugin Portal because of Connection reset
It says I have to check my proxy settings, but I am not using any proxy. I already put this: -J-Djava.net.preferIPv4Stack = true in the netbeans.conf file, but it doesn't work.
Any help is appreciated.
You can find the proxy settings under Tools > Options > General.
But you can consider downloading a newer version of NetBeans, since version 8.2 does not seems maintained anymore (it's pre-Apache).
The latest version as today is 12.4 and you can download at:
https://netbeans.apache.org/download/index.html

Auto deploy changed java code in Maven, Eclipse, Glassfish

I am new very much new to maven and spring technologies. I want to know how can we auto deploy the java server code without rebuilding the maven or without restarting the glass fish server? Currently I have to restart the server if any change I do in java code. I have also use one option in Eclipse to "Automatically publish when resources change" but no use.
You may want to take a look at JRebel, it reloads changes made to your code instantly without having to restart your application server.
The recent version of HotSwap Agent works very well for me with Eclipse and Payara Server (server derived from and compatible with GlasFish).
It's free and opensource and supports Java 8, including lambdas. It supports reloading of resources in a webapp running on GlassFish/Payara, including JAX-RS annotations, CDI bean definitions etc., without restarting whole application.
The only drawback is that you need to install the DCEVM plugin into the JDK, which has to be activated by a command line argument -XXaltjvm=dcevm. But this isn't intrusive and doesn't affect your JDK if you avoid the argument - you can activate it just for GlassFish/Payara Server when you add it to the JVM options in the domain configuration. When adding the -XXaltjvm=dcevm option, you also have to remove -client and -server option, because they take precedence.
So, essentially these steps are needed with the recent version of HotSwap agent and practically with any version of GlassFish and Payara Server:
install DCEVM as altvm into the JDK (run the installer with admin rights)
copy the hotswap-agent.jar into lib/ext in your domain directory
add the following arguments as JVM options in your domain configuration: -XXaltjvm=dcevm -javaagent:/path/to/hotswap-agent.jar
run the server in debug mode from your IDE
in Eclipse, all works out of the box, just avoid using the Publish button for the server. Check that "Never Publish automatically" is checked in the server Overview, when you double click on the server in the Servers view
in Netbeans, you need to disable "Deploy on save" in project configuration and enable "Apply code changes after save" in global Java Debugger options
There is some information in this Payara issue, although it isn't an easy to follow guide. Some more info in this HotSwap issue.

Can eclipse auto-detect proxy settings?Or can at least create my own local plugin from the update site?

I have a linux machine inside a "closed" network. I.e. no access to the internet.
I have a mac machine that can access the internet.
I installed eclipse in both.
I need to install a plugin in eclipse specifically EPIC for Perl development.
The site offers a link to source forge for offline installation so I downloaded it and tried to install it in my linux machine.
Problem here: The offline version in source forge is old and does not work due to a dependency issue in another plugin of eclipse and this dependency is solved in newest versions of the plugin.
So at this point since the offline version can not work and I don't have access to the internet for the update site to get the latest version I am stuck.
Moving on to Mac:
I have access to the internet but when I add the update site to install the plugin it fails to connect.
But the url is accessible by the browser so I believe that it is due to proxy settings.
When I look at the browser's settings I see that it is set to Auto detect proxy. So I can not copy the proxy ip/port from browser. Also I don't understand how/where the browser finds the proxy to connect to.
Is there a way to make eclipse to auto-detect proxy settings as well? I don't see such an option in Preferences->General->Network Connections.
So what can I do as I am stuck in both cases!
On the top of my head if there was a way to somehow download the files from the update site and create a local installation it would solve my problem in both machines.
But is this possible? How?
What can I do to solve my problems?

Can this java application run on Heroku?

I have no experience setting up java applications and no experience with Heroku but I have this java application I would like to know if I can easily run on Heroku.
https://github.com/difi/oxalis is the github repo and here is some install instructions for a standalone server:
make sure that Maven is installed.
make sure that Tomcat 7 and Metro 2.1.1 are installed
make sure that the Tomcat manager is available on port 8080 with user manager/manager
make sure that Tomcat is also up
and running on SSL at localhost:8443
make sure that keystore.jks is
installed in a known directory (separate instructions for
constructing the keystore)
change
oxalis-commons/src/main/filters/soc.properties to reflect your local
preferences
Is this possible to set up on Heroku?
It seems like it should run on Heroku but a few changes might be necessary. You will not need to run Tomcat with SSL since Heroku provides the HTTPS in front of the Tomcat app. You will probably have to update the Maven build to pull in Tomcat via webapp-runner. The properties file should probably be replaced with Config Vars. The only part that seems like it might be tricky is the Metro piece. It's not clear how Metro is being pulled into the system and used.

NetBeans Java to JavaEE

I have downloaded the Netbeans version of Java (and not JavaEE). Now I need to create a web application using the IDE. Can you please confirm the website to download the plugin and get the JavaEE features in the IDE.
PS: I am looking for URL where I can download the .nbm file because proxy settings may not allow automatic updates.
Try using the plugin manager
Tools -> Plugins -> Available Plugins
If you're having proxy issues then
Tools -> General -> Proxy Settings
and set your proxy settings.
If you do fin the URL for the nbms you can either use the plugin manager mentioned above, or use the update folder as mentioned in Geertjans' blog.
The website that holds the numerous plugins that implement the Java EE features of NetBeans 7 is here: http://dlc.sun.com.edgesuite.net/netbeans/updates/7.0/uc/final/distribution/modules/enterprise/
You may need to get some other plugins from http://dlc.sun.com.edgesuite.net/netbeans/updates/7.0/uc/final/distribution/modules/websvccommon/, too.
I would encourage you to ask questions about the proxy issues that you are running into with the Update Center. Doing the update manually will be a frustrating experience.
My Netbeans is the version from the Ubuntu 12.04 Software Center repository (7.0). I solved this by checking the options "Certified Plugins","Netbeans Distribution" and "Plugins Portal", which, by default, were unchecked for active. You can find this on
Tools -> Plugins -> Available Plugins
In the "Settings" (last) tab.
By making this, reload the "Avaible Plugins" (that was empty for me) and, after some seconds, lots of categories will appear. Look for Java Web and EE and install them (I found only the Java Web plugin).

Categories

Resources