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.
Related
I am new to Java development and working with Activiti BPM.
I am getting started with them.
Activiti BPM says its verified with Eclipse Kepler. However I am using Eclipse Neon currently. I am trying to install Activiti plugin. It says it has to uninstall some plugins like Hana Cloud Plugins to continue with installation.
However I need both the plugins. So thought of using Eclipse Kepler to use Activiti BPM. But it supports till Apache Server 7 only ( and I have Apache 9 with Eclipse Neon )
Please suggest me a possible solution
1) Use Different eclipses to work with Hana Cloud Platform tools, Activiti BPM (Is it possible to setup multiple Apache Servers in same pc like Apache7 and Apache 9)
2) Can be done in Same Eclipse
May be its a quite silly question, please guide me as i am beginner.
Of Course it does!!
I have installed activiti with Eclipse Neon and Apache tomcat 8/9 and it works pretty well.
I have also written a super detailed blog post on this, which starting from the setup, shows how to create not one but two fully working (although, simple) workflows.
You can check it out here and see if it helps.
I've just found this http://bpmn20inaction.blogspot.com.es/2015/08/activiti-designer-5180-released.html
There is a comment on the page saying this:
"Hi Maxence, I've moved on to the Flowable project (http://flowable.org). You can find an updated Designer (with Mars and Neon support) on http://flowable.org/designer/update"
I haven't had time to test it yet (I'll try later at the office)
I hope it helps
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.
So here's where I'm at:
I've installed the Apache Tomcat Server successfully.
I've configured the JAVA_HOME path successfully, and created a /common/lib directory (as opposed to plain /lib) to get around an issue with NetBeans recognising recent versions of Tomcat.
If I select GlassFish 4.0 as my server, instead of Tomcat, everything's fine -- but I don't want GlassFish 4.0 as my server, as I'm working through a book on Java WebApps and don't want to run into intractable problems further down the line.
When I select Tomcat as my server, I run into the problem that the dropdown menu to select my "Java EE Version" decides it doesn't want to give me any options at all.
Has anyone experienced this problem before, or can anyone offer a rough guess as to what my problem might be?
Thanks in advance!
EDIT: Update - it's not a problem with the JDK classpath of Tomcat. Tomcat works fine on the .jsp files it came bundled with.
I had the similar problem with Tomcat 8. But after downloading Tomcat 7.0.47 I can now choose from Java EE 5 and 6. Hope that helps.
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?
I am bit confused no how to use JCAPS. I have Netbeans 6.0.1. Is it necessary to have Netbeans 6.1 to use JCAPS?
Secondly how do I use JCAPS?
I am new to Java so hopefully I'll find good support here.
JCAPS (6.1 at least) is intimately tied to Netbeans 6.1 and Glassfish 2.1; you've got no other choice than using what is installed by JCAPS.
Maybe you should try to learn the basis of Java SE programming, and Java-ee packaging (concept of EAR files) and deployment before investigating JCAPS
Also take a look at: https://stackoverflow.com/questions/2091959/any-jcaps-tutorials