I've been assigned the task of tracking down why a webpage is breaking under dotCMS. The page shows an error stack trace with a description that suggests it relates to SQL. I got access to the remote file system and was able to pull up the java file. The sql it is generating is failing when passed to a getResults method. I was wanting to see the value of that string of sql.
Maybe I could create a text file with that value through java. The previous programmer (that left the business) told me that I would need to shut down the server, clean plugins, deploy plugins and re-start the server so the source could be recompiled into jar files. I don't know how to do any of that at this point...and I wonder if those measures should only be taken when I'm deploying the fix.
I know Eclipse has logging abilities because I've dabbled with Android. I didn't know if there is a way that I could somehow remotely connect to the file. I found a tutorial for setting up eclipse with dotcms. It however wants me to check out the official dotcms source to my machine. I guess I don't understand how remote connections work with eclipse and if eclipse could even help with this issue. Noob question for sure!
When you want to run dotCMS from within eclipse it is not that hard. Remember that dotCMS is just tomcat with a default host deployed in it (the dotCMS application). You can download the dotCMS source here: http://dotcms.com/downloads/index.dot. Startup eclipse and add a tomcat server ( It is tomcat 6.0.26 at this moment), pointing the tomcat folder to the tomcat directory in the dotCMS install folder. You can start tomcat from eclipse this way.
You will have to deploy the plugins if you need to debug those. Below I describe it in detail, but dotCMS has a page on this on their official site as well: http://dotcms.com/plugins/plugin-faq.dot#HowInstall
Make sure you have access to the server that dotCMS is deployed on. On windows that would mean a remote desktop, and on linux you'll need ssh. If you have it running in eclipse on your local system then of course you're set already.
After logging in on the server make sure you have apache ant installed on your system. You can check if you have it by typing "ant -version" on the command line (in a dos box on windows). If you have it installed you'll see something like this:
Apache Ant version 1.8.0 compiled on March 11 2010
if you don't have it installed you can download it here: http://ant.apache.org/bindownload.cgi
install ant and make sure you put the /bin folder on the PATH, so you will be able to call ant from all directories
Now check if you have a JAVA jdk installed. You will need a jdk and not only a jre, because building the plugins includes compiling java files into classes. You can check if you have the jdk installed by typing "javac" on the command line. If you don't have it, install the latest java jdk from here : http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u3-download-1501626.html
install the jdk and make sure the /bin folder os on the PATH
Now stop dotCMS
Go to the root of the dotCMS folder and undeploy the plugins using this command:
ant undeploy-plugins
Now build the plugins
ant build-plugins.
And finally deploy them
ant deploy-plugins
Your plugins are redeployed now. You can restart dotCMS.
Related
While my workstation is not technically offline, NetBeans is not allowed to communicate with the OSUOSL site to pull the nb-javac library. Oddly enough, I can browse to the site & download the JAR file manually, but the company firewall won't let NetBeans do it.
Is there a way to install the jar file without letting NetBeans access the site?
Of note, if you are stuck with JDK 8, you are stuck (AFAICT). Try and get a more recent JDK and set the NetBeans default JDK to that (in the NetBeans /etc/netbeans.conf file).
If you do that, then as per the link #skomisa provided, you'll be good to go.
I have "Visual COBOL for Eclipse", which is an eclipse version based on Luna tailored for Cobol.
Now I would like to install m2e into it. Unfortunately I am sitting behind a crazy proxy that blocks random jars from be downloaded if the user agent is not a browser (as, e.g. eclipse)
Can I download m2e as a bundle from somewhere and tell Eclipse to install it from some directory? Or is there any other way to install m2e without Eclipse trying to download jars from the internet?
Minimally you should be able to go to the m2e releases page and click on "Show Directory Contents" (or just add /?d to the end of the URL), then download the files listed there. Unfortunately that requires manually downloading everything one file at a time.
With everything downloaded I would assume that you could give it to Eclipse as a local update site, or .zip it all up as an archived update site.
I think you'll want one of the 1.5.x releases for Luna, although it may not matter. I'm using Luna at the moment and have 1.5.1 installed.
I also quickly tried the approach listed here: How to Download Eclipse Update Site for Offline Use (using wget --recursive on the site mentioned above), but it doesn't seem to work on the Eclipse downloads site. Also since you mention that you want to get the file directly from the browser, that approach may not even work in your case either.
During migration of Eclipse rcp application created using eclipse 3.x (Indigo) to Eclipse 4.5.2 (Mars), there is no issue found while running the application from Eclipse 4.5.2.
Also while building the application on Jenkins using ant file, the installer is created. But after the installation of installer, the launch file (.exe) for launching an application is missing.
Also, there is a *cli.exe (command line executable) is present.
But after running it via command line, the below error comes:
Error: Could not find or load main class org.eclipse.core.launcher.Main
What could be the problem? I cannot add the console output of Jenkins, since it is very big.
Well first check your generated plugins directory, is there a org.eclipse.equinox.launcher bundle? If not do the following:
If you are using a feature build, check your feature.xml if org.eclipse.equinox.launcher is missing or if the wrong version is being used.
If you are using a plug-ins build, check your ApplicationName.product file if org.eclipse.equinox.launcher is missing or if the wrong version is being used.
Check your ant file, if there is a link to the following bundle:
plugins/org.eclipse.equinox.launcher_1.x.x.x.jar (x should be some version)
If so, probably the wrong version is used.
Finally one issue is resolved.. .exe is creating now after installing the installer.
The reason was I was missing some important plugins which should be added by adding delta packs(for multiple platform builds).
for more info about delta packs, refer https://wiki.eclipse.org/A_Brief_Overview_of_Building_at_Eclipse#Cross-platform_build
I have to use a Java library that has a lot of bugs on Mac OS X and I can't stop using it. I set up a VM (Ubuntu 13) and set up my development environment there, and that works. But is it possible to be able to keep developing on Mac and set-up IntelliJ IDEA 13.1 to compile -> run my project in a Vagrant environment? I could not find any tutorials with how to do that, and not even sure if that's possible.
you can continue working on mac/intelliJ to edit and compile your project files, to run it, it will depend what you are using.
To synchronize the files between your os and the vm, you should set up a vagrant sync the folder between the 2 machines.
Lets say you run your project on mac under /Users/name/project/myproject this project is setup on intelliJ so you can run from intelliJ and compile from there. add this to your Vagrantfile
config.vm.synced_folder "/Users/name/project/myproject", "/project"
It will create a /project directory in your vm.
To run your project, it really depends on your running configuration. For example you can configure a Tomcat remote Run configuration in IntelliJ so if you configure your vm information, it can manage your remote Tomcat installed on your vm. Synchronize your project folder with your Tomcat Webapps (sync_folder or symlink) and it should work.
I have to build a project using Ant from the command line. It is an EAR to be deployed on weblogic 8.1 and as such the classpath is set on the correct jrockit, shipped with the 8.1 server. However, the tool keeps using the jre7 (also installed on my machine), going as far as not even starting if i uninstall the jre7 and leading to problems such as "Cannot find class Object", and so on.
Before running ant, I run the %WEBLOGIC_HOME%/server/bin/setWLSenv.cmd file in the same console session. Both %WEBLOGIC_HOME% and %JAVA_HOME% are correctly set. The jre7, as far as I know, is not referenced in any environment variable nor in any of the build files. I am not permitted to modify the build.xml file, also I can't use Eclipse or any other GUI to build the project.
So, how can I persuade ant to use the correct JVM?