1. Configuring Tomcat
Configure the path for Tomcat
Configuring Tomcat to use JDK versions
Add the Tomcat-juli.jar Package if Tomcat is 7.0
2. New a Web project.
2. Right-click the project to add struts support for the project.
Click Finish. The SRC directory has more struts.xml configuration files.
3. Use MyEclipse Database Explorer to establish a data source.
New a data source. Fill in the data source information.
Click Test Driver, if successful display:
Click OK and click Finish.
4. Add spring support for the project.
Select five packages, after which the jar Library installation as.
Click Next.
By default click Finish.
5. Add hibernate support to the project.
The default package, change jar Library installation.
Click Next.
Choose whether to establish Hibernate's own profile or merge it into Spring's configuration file. Select Merge, change the point check box, and click Next.
Select existing Spring configration File and click Next.
Select the data source that we just created. Click Next.
Remove the check box tick and click Finish.
6. Server.xml under the configuration Tomcat path
Under the Host node, add:
7. Error Handling:
Severity: Exception Starting filter Struts2
java.lang.ClassNotFoundException: Org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
User folders
\appdata\local\genuitec\myeclipse 8.5\configuration\org.eclipse.osgi\bundles\105\1\.cp\data\2.1\core
Struts2 all jar packages are copied to the Web-inf/lib folder under the project.
8, publish the project, you can now access the project JSP page.
9, follow-up work.
Add spring configuration and monitoring to Web. Xml as follows.
contextconfiglocation /web-inf/classes/application*.xml </context-param> < listener> Org.springframework. Web.context.ContextLoaderListener </listener> <!-end--
8, the end.
MyEclipse Build SSH Framework struts2.1+spring3.0+hibernate3.3