I am a novice programmer in using Apache Struts 2 MVC Framework. I want to setup Struts 2 within my existing Eclipse IDE and I don't want to harm other different works I do in Eclipse. Here is a list of things I do in Eclipse and other related works:
I am currently using eclipse ide for Java SE developers.
Already using PDT: Eclipse PHP Development within existing eclipse for php projects.
Also using Eclipse CDT:C/C++ Development Tool within existing eclipse.
My computer contains LAMP installed with Apache2 server for web development purpose.
So, I want keep all of these things intact while setting up Struts 2 within existing eclipse. I've seen many installation guidelines for Struts 2, but they didn't clarify well about situation similar to mine.Therefore, before full installation, i want answers of these questions below:
Can I install Struts 2 in eclipse IDE for java SE (not EE) developers ?
Installing Struts 2 requires Apache Tomcat installation, will this installation create any conflict with my existing Apache 2 server (which comes with LAMP)?
Yeah, you need Eclipse for Java EE and Tomcat web server installed. There you can create a dynamic web project and use Maven to manage artifacts and download dependencies. See how to Create Struts 2 Web Application With Artifacts In WEB-INF lib and Use Ant To Build The Application
Tomcat server by default uses port 8080, but Apache uses 80, unless you use the same port for both they won't conflict.
Related
I am working on an old jsp project. I have to modify it so that I can use it to meet my needs. I was facing issue while using any newer version of tomcat or java sdk. Therefore, I am using Tomcat 5.5.7 and java SDK 1.5. I have updated java class files of this project using eclipse helios (2012). But the implementation don't show up in my project. Like when I change the database name and run the project it still wants to use the old database name. I have tried to upgrade the whole project to a new version of tomcat and java sdk but it doesn't work. Can anyone help me with this?
Steps you need to take -
Import the project into eclipse - Create a new project, import using existing source files.
You need to setup the Java Facet of "Dynamic Web Application" along with some other Facets to make this application run successfully on the tomcat container inside of eclipse.
You need to install the server tools in eclipse. Using the Java EE perspective is very helpful.
When making changes to the JDK or the server runtime, as you mentioned, you will need to update the projects build path. Right click on the root of your project and go to the build path. Change the SDK version, change the runtime version of tomcat that is included with it. You will need to create a new Java Server runtime for any other versions of Tomcat you want to add to the project.
This is a complicated issue, and there is no specific answer, as your question is very broad. I would recommend watching some tutorials on "How to setup Web application projects in Eclipse." Maybe add Java 5 or 6 to the search to get older results.
I am using RAD 9 and I could not find the Dynamic Web Project option.Web options I have in RAD 9
I also tried to follow the steps mentioned in an existing thread:
Dynamic Web Project option missing in Eclipse
But when I tried to install Java EE Developer Tools under Web, XML, Java EE and OSGi Enterprise Development I got the following message. j2ee development tool already installed
Please let me know what am I doing wrong. Thanks
Select the Web Project option. IBM RAD has provided a wizard of its own.
I have downloaded Java EE 7. My question is what plugins should I download to make ECLIPSE working as good as it is possible with JAVA EE 7?
I mean I am new to servlets and JSP I have to be able to create Project that has all required files folders etc (Like when I create ordinary Java project in Eclipse).
I know my question is not to specific but in general:
I want to have all my files in one project (Like in ordinary Java project in ECLIPSE)
I want deploy it in easy way
What plugins I have to install on Eclipse to achieve this?
I am using TOMCAT server but when I installed JAVA EE 7 it installed GLASSFISH which one use?
The easiest way to build Java EE projects is to download new Eclipse IDE for Java EE Developers which is available here
Eclipse for Java EE Developers is everything what you need for your beginner projects. There is no point to look for anything else for your purposes in my opinion.
You can use tomcat or glassfish for your projects. You can configure it by yourself in Eclipse.
To do this go to menu bar.
Window/Show view/Other/type "server" than press OK
New window will show up with link "No servers are available. Click this link to create a new server"
New windows will appear where you can add server of your choice. Personally I prefer Tomcat.
If you have problems with it find beginners movies on youtube where you can easily find how someone else creates java ee projects in eclipse.
Hope that make sense for you.
Most of the plugins work in Java EE 7. To deploy it you can use an Ant File and can use any server (Tomcat, Glassfish, Jboss...).
Maybe, Git plugin will be useful to save your code in the cloud.
Not need to any plugin if you download java EE 7 jsp and servlet are standard for javaEE and when you create new jEE project it will contain all your folder as java standard with additional folder as web.xml and web-inf which contain your jsp pages ,you can user Maven to manage your project and i advice tomcat as server with jEE
I have followed the below link to install and configure JBOSS Tools in Eclipse Indigo to work on a JSF project
http://planet.jboss.org/post/jboss_tools_milestone_for_eclipse_3_7_m6_indigo
Steps i followed.
1.Installed Eclipse
2.Configured Proxy
3.Loaded the Urls as specified in above link
however many of the packages fails during installation and i cant see a JSF project in the new project list.
What could be wrong here?. Please help me with some pointers.
You're reading an outdated tutorial. Eclipse Indigo was already finalized a few weeks after that tutorial was written. Even more, it's already in SR1 stage. You can download it here. Finally, you can try to install the JBoss tools through the following URL:
http://download.jboss.org/jbosstools/updates/development/indigo/
It works at least for me.
Please note that you do not necessarily need JBoss Tools in order to be able to create a JSF project. It's already built in Eclipse for Java EE. Just create a new Dynamic Web Project. JSF is available as one of the project facets which is configureable in the Configuration option of the 1st step of the Dynamic Web Project wizard.
The JBoss Tools is just an additional plugin which eases JSF development with several additional (autocomplete) wizards.
See also:
JSF 2.0 tutorial with Eclipse and Glassfish - contains a lot of helpful screenshots
I use Eclipse as IDE. I use Eclipse to test my Java apps.
But now I want to make website with Spring, Hibernate. Can I do it through Eclipse only or I need to install GlassFish.
After installing GlassFish can I see some button on Eclipse which put required files automatically in required folders, I mean I don't want to manually copy the files in diff directories.
Do I add Spring, Hibernate in Eclipse or GlassFish?
Something like click on create web app.
You should install Oracle Enterprise Pack for Eclipse, which includes GlassFish tools. You can get it from here:
http://www.oracle.com/technetwork/developer-tools/eclipse/downloads/index.html
Alternative, if you have Eclipse IDE for Java EE Developers, got to Window -> Preferences -> Server -> Runtime Environments -> Add. Then click on "Download additional server adapters. That will show you a list of server adapters that Eclipse knows about, including GF Tools from OEPE. The wizard will guide you through the process of installing it.
Beyond that, if you need help using Java EE facilities of Eclipse, google "Eclipse WTP tutorial" or similar. There are many articles written on the topic.
No, you don't require Glassfish. You can use any Java web-app container like Jetty, Tomcat, Weblogic etc. Tomcat is the easiest to integrate with Eclipse.
I have used Glassfish previously, but much like stand-alone. I have never integrated Glassfish with Eclipse, but it seems like as easy as Tomcat integration. See here.
http://dlc.sun.com.edgesuite.net/glassfish/eclipse/
and
here
http://dlc.sun.com.edgesuite.net/glassfish/eclipse/GF-Tools-for-Eclipse-Guide12.pdf
As quoted in the guide
To publish Projects
To publish applications to the GlassFish Server, use the following procedure:
Select Servers view.
Select GlassFish Server.
Right click and select Publish fromServer popup menu.
The selected applications are published to the GlassFish Server.