i whant to ask, if there is simple way to start clean JSF project in Eclipse? I mean, so preoject with configuration and sample data?
I need something like Matt Raible's App Fuse, but created for Eclipse, Ivy and Jboss server
The simplest way is to
Download Glassfish 3.0.1 and install it.
Download Eclipse Java EE
In Eclipse, goto Help -> Eclipse Marketplace and install the Oracle Enterprise Pack for Eclipse
Create new web application using Glassfish as the server.
It is much easier with the Netbeans bundled with Glassfish.
You can try something like Matt Raible's App Fuse, if that's what you have in mind.
With configuration and data? No. How do you expect Eclipse or anything else to read your mind?
Related
I have installed Eclipse Luna for windows 64 bit. But I am not able to create a new Dynamic Web Project. I also installed Web, XML, Java EE and OSGi Enterprise Development , but still it shows only Static Web Project inside Web projects.
Is there anything else to be installed ?
you need the Web Tools Platform package for this
add it to your eclipse through Help > install new software.
Then add the software repository site location for WTP for your version of eclipse.
http://download.eclipse.org/webtools/updates/
I think the accepted answer is not the recommended solution. In Luna you should install Web Tools Platform via the Luna download site, not the WTC download site.
Here are the instructions:
https://wiki.eclipse.org/WTP_FAQ#How_do_I_install_WTP.3F
Here is what happens if you use WTP site:
Can't install WTP (Web Tools Platform) in Eclipse - something about missing dependencies...?
Yes, I see that the asker says he has done this, so I guess the accepted answer worked for him, but I think people should try this recommended method first.
You need to go to http://download.eclipse.org/releases/indigo or luna or whatever version of eclipse you are using and select Web, XML, Java EE and OSGi Enterprise Development.
i'm going to add service to my OSGI project and follow the tutorial to add "Component Definition" using eclipse wizard. so i navigate to menu "new->plug-in development->Component Definition" but i can't find there.
i'm using eclipse indigo and buckminster 3.7
i tried using eclipse juno and buckminster 4.2 still got the same problem.
so, is my buckminster installation wrong or something that i miss? thx for your help.
screenshot here
I GOT THE ANSWER
the problem is related to my eclipse. i'm using Eclipse Java Developer
rather than for EE Developer. when i reinstall the eclipse using for
EE Developer and install buckminster, i found the Component Definition
Wizard.
Maybe someone need this info. thx
You need to install the Plugin Development Environment. You don't actually nee the EE Developer version for this, you can install just this feature.
I am wondering how I can quickly deploy the java dynamic web project that I built using eclipse on my mac to my Linode linux server? I already have a wordpress website running on the server and have also downloaded tomcat V6 and eclipse. Would I be able to manually copy the source, build and WebContent file contents? I would like to learn best practices for application deployment in the future but this project is very simple and I would like to be able to make it live as soon as possible. If you could also recommend any step by step tutorials I would really appreciate it.
thanks so much
Timnit
You should consider to build a WAR. Eclipse is just an IDE, it helps to develop, not to deploy.
Build your war (you can use maven/ant/build it from eclipse) - whatever you chose.
Once its ready your "deployment task" becomes a matter of moving a single file from MAC to linux server.
Use Cargo. See how easily it can be integrated with Maven build. Here is an excellent blog post.
I am trying to create a small Java application using Tomcat and am having some trouble getting started. Are there any resources online that can point me in the right direction? I've tried http://www.online-etraining.com/creating-a-tomcat-web-application but it's saying to use version 5.x of TomCat. I am currently running Eclipse with TomCat 6.0 on a Windows 7 machine. Any help is greatly appreciated.
Thanks,
Sebastian
I suggest you use Eclipse Web Tools (WTP) 'Dynamic Web Project'
I've already covered how to set it up here ->
How do I properly deploy and structure projects in Eclipse against Tomcat?
It also talks about Tomcat 5.5, but that is because the OP there asked about that particular version. It actually works the same with 6.0 and even 7.0
I've covered how to get WTP installed here -> Integrating Tomcat7 and Eclipse Helios on Snow Leopard
This is also just for tomcat 5, but the steps should be similar:
http://www.ibm.com/developerworks/opensource/library/os-eclipse-tomcat/index.html
For my website, which is a Java Web App, I started of with http://static.springsource.org/docs/Spring-MVC-step-by-step/. Although, I'm not sure of you're planning to use MVC or not, but I highly recommend it.
I haven't been using Java extensively hence forget a lot fundamental things. Basically, I am working with a web-dynamic project (using Eclipse IDE with jdk 1.6), and during the build, I get errors that Cookie class and other web related classes cannot be found. What am I missing?
What Jars files do I need to add (and how)?
thanks
Think you need servlet-api.jar
Try here for any jar files you need http://www.java2s.com/Code/Jar/CatalogJar.htm
Sounds like you are missing servlet-api.jar
You can download it from the Maven repository.
Servlets are only part of the Enterprise Edition, not of the Standard Edition of Java. So you need the Java Enterprise Edition, AKA Java EE.
http://java.sun.com/javaee/
As others have said, you're missing the server api jar.
Having said that, downloading just the servlet api jar and not the server that goes with it means that you can't actually test your code.
In Eclipse, once you're installed a servlet container, such as Sun's Glassfish, Apache Tomcat, or Jetty, you can create a server instance of it so that Eclipse will compile against your server's servlet implementation. Creating a server instance also means that Eclipse's Run on Server command works.
IBM has a slightly outdated guide on Developing Web applications with Tomcat and Eclipse. The entire "Install the Web tools" section can be skipped if you have the Eclipse EE version, as Web Tools are already installed.