I am new to Java EE. Recently I had to implement an opensource balanced score card system for one of my clients. I stumbled upon BambooBSC. I successfully configured the project on a VM with the help of a VDI file (available on their github page).
Now I want to setup this project on my local machine. Since this project is based on J2EE platform, I already installed Apache Tomcat and Netbeans IDE on my local machine.
I cloned their repository on my system. And tried importing the project in my Netbeans IDE. Now the IDE shows me something like this.
I don't know what to do next. Seems like some external dependencies need to be provided to the project. But I am unable to figure it out. Please help me setup and run this project on my local machine. Will be deeply appreciated.
Thanks.
Do you absolutely need/want to work with Netbeans IDE?
Otherwise, you may consider using Eclipse IDE.
And follow this dedicated official documentation.
Anyway, you can notice the information about core-web, core-base and gsbsc-standard projects.
Let me know if you need further help.
Related
I'm trying to learn Tomcat but the problem for me is the that the Tomcat server has to be restarted each time I make changes to the code.
Is there any way to make Tomcat pick up changes to the code without having to restart the server?
Maybe an IDE (Like Eclipse or NetBeans) can be somehow used to develop for Tomcat and test all the changes right there in the IDE?
Well if your putting your latest compiled files(classes/resources) under WEB-INF/Classes or lib folder you dont have to restart the server. You can can configure IDE's like Eclipse to configure this way where they can put latest compiled files under right target folder. Rcent Eclipse version comes up plugin where you can configure it to use existing tomcat server. You can also explore Mongrel Plugin which also serves the same purpose .
Please have a look at "DCEVM". It's a Java runtime environment alternative that works just like a normal JRE but is able to reload class changes in almost all situations. Very cool, and it's free.
http://dcevm.github.io/
Installation is very straightforward, see explanation on the site.
How to set up Jersey 2.0 Web Services on IntelliJ IDE using Tomcat 7, with complete Maven support?
I have had quite a bit of trouble to put everything together to make it work. To hopefully save some time to people in the same situation, I have made a small guide.
I have taken the time to set up an IntelliJ 13.0 project for a web service using Jersey 2.0 and Tomcat 7, complete with Maven support.
Finally I managed to figure out the complete configuration and it works, so I have decided to give back to the stackoverflow community.
Here is a working template project on GitHub (you should only need to clone it and change the path of your Tomcat 7 installation).
Here are the relevant configuration screens that you can use to set up your Tomcat Home directory:
After cloning the project, go into run configurations.
Then change the tomcat home (here I used HomeBrew on the Mac)
I was getting a 404 error when accessing any of the WS's, I discovered I had to add all the Jersey and Glassfish JAR's to the lib directory under WEB-INF. Just create a lib folder and drag-and-drop all libs.
Fist of all, please make sure that you are using Ultimate Edition of IntelliJ Idea. Unfortunately, community edition does not support J2EE.
Second, here are the best instructions I found. It saved my day:
https://medium.com/#jamsesso/starting-out-with-jersey-apache-tomcat-using-intellij-6338d93ffd40
Sorry if this is the wrong kind of question but currently I have an Apache server which is configured for Pyjamas. All I used to have to do was: pyjsbuild example.py and the GUI would appear in my browser.
I decided to switch to Java, so I picked Vaadin as my framework. How do I do the equivalent for Vaadin? All I want to do is compile the java and have Apache recognise it.
I'm using linux and I'm very new to building web applications, previously I only ever built the GUI side of things, I never had to touch the server.
You need Apache Tomcat to serve java pages. Install it separatly or see http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html for information on how to hook them together.
Vaadin projects work just as any web project. You have to crate a WAR file.
For example, if you are using Eclipse, right-click on the project, choose "Export..." and under "Web" choose "WAR file".
If you are using Netbeans or something else, google "create war in netbeans/intellij/..." to find out how to do this step.
This will generate a file with the extension .war, which you will have to copy in the "webbaps" folder of your Tomcat installation. Restart Tomcat and the application will be automatically deployed.
If you do not have access to the webapps folder, go to Tocatmcat's "Manager App" in the browser and
under the section "Fichier WAR à déployer"(WAR file to depploy) choose the generated file and click Deploy.
To start with, make sure that go through Getting Started chapter in Book of Vaadin. In this chapter you will find overview of the required toolchain and step-by-step installation instructions. Your Linux distribution might have more documentation about installing JDK (For example, see Ubuntu wiki for Oracle JDK installation).
It will be convenient for you to connect Tomcat to Eclipse IDE. This makes starting Tomcat and updating your application easy. For example, see this [blog] for some videos about connecting Eclipse to Tomcat.
Please note that using Eclipse is just one approach and later you might want to see if IntelliJ IDEA or command line works better for you.
I have a jboss(5.1.0.GA)/seam(2.2.0.GA) app that gives me a lot of work everytime I need to setup a development environment for it.
What I want is to port the build to maven, and have it setup all the development environment for me(including downloading and configuring the AS).
How could I acomplish something like that? Currently the build is managed by eclipse and has a default java ee project structure(projects for ear, ejb and jsf) so a simple example of porting an eclipse java ee project to maven with the above requeriments will suffice.
I found these two posts which can explain how you can use seam-gen and convert it to use maven.
This might be helpful for you.
Post 1 and Post 2
I'm trying to write a simple java applet program, but it seems that I'm missing the javax.servlet.* class definitions.
Using:
apple snow
eclipse Java EE ide
Do I need to add a specific JAR file to my project and if so, which one?
I have Macports installed in case something from the ports might be helpful.
This is all result of misconceptions (Applets have nothing to do with the actual problem) and ignorance about Eclipse (if offers builtin ways to seamlessly integrate and link the one and the other, the Java EE variant has already a Tomcat plugin, you just have to integrate the server and associate it with the web project).
In the future you should be more precise and detailed about the problem (and thus not telling like "...it seems that..."). Post the relevant code snippet which caused the problem. Post the actual error message (with stacktrace, if any). Post the steps to accomplish to reproduce the problem. Also see: How To Ask Questions The Smart Way.
I've answered several times before how to get started with Eclipse+Tomcat+Servlets, you may find it useful as well:
Question about installing Java EE locally?
Tomcat servlet problem - class not found
CLASSPATH, Java Buld Path (eclipse), and WEB-INF\LIB : what to use, when, and why?
Thank for all of your helpful comments.
I installed tomcat 6 and it contains the missing jar in order to compile the project.
Nice plug-in to load tomcat applications :
Sysdeo Eclipse Tomcat Launcher plugin - http://www.eclipsetotale.com/tomcatPlugin.html
Using Netbeans i was able to properly compile tomcat applications just by creating a new java web application. for now i'll stick to netbeans, it also has a nice gui for connecting to the server and seeing the installed applications and their status.