Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- +--------------------------------------------------------------------------------------------------+
- | JSP Setup |
- +--------------------------------------------------------------------------------------------------+
- This guide will walk you through my jsp setup.
- http://www.tutorialspoint.com/jsp/jsp_quick_guide.htm
- +------------+
- | Tomcat |
- +------------+
- -- Useful Links
- -- Starting/Stopping
- -- https://docs.oracle.com/cd/E20593_01/doc.560/e23613/app_tomcat.htm
- -- A bit about tomcat here
- -- http://www.tutorialspoint.com/jsp/jsp_quick_guide.htm
- -- Stack overflow answer that helped me setup my path.
- -- http://stackoverflow.com/questions/9361623/catalina-home-environmental-variable-is-not-defined-correctly
- -- Instructions
- -- Download Tomcat Zip
- -- http://tomcat.apache.org/
- -- Extract somewhere
- -- I extracted mine C:\tomcat
- -- Setup the classpath environment variable.
- -- Define a variable called CATALINA_HOME that points to wherever you put your tomcat files.
- -- Add %CATALINA_HOME%\bin to the path variable.
- -- Each entry should be seperated by a semicolon.
- -- Make sure that the JDK is setup in the path variable.
- -- Add an entry if it isn't there for the JDK, mine was in C:\Program Files\Java\jdk1.8.0_25
- -- Make sure that you close any open command prompts, as only new windows will see your variable changes.
- -- Run Tomcat
- -- If you get CATALINA_HOME environmental variable is not defined correctly
- -- See this link: http://stackoverflow.com/questions/9361623/catalina-home-environmental-variable-is-not-defined-correctly
- -- Check the following
- -- JDK and %CATALINA_HOME%\bin in path.
- -- Close all command prompts or shells.
- -- CATALINA_HOME entry.
- -- Navigate to the directory and run startup.bat you should get output similar to this:
- -- c:\tomcat\bin>startup.bat
- Using CATALINA_BASE: "C:\tomcat"
- Using CATALINA_HOME: "C:\tomcat"
- Using CATALINA_TMPDIR: "C:\tomcat\temp"
- Using JRE_HOME: "C:\Program Files\Java\jdk1.8.0_25"
- Using CLASSPATH: "C:\tomcat\bin\bootstrap.jar;C:\tomcat\bin\tomcat-juli.jar"
- -- Open a browser tab and navigate to http://localhost:8080/
- -- Should get the tomcat homepage.
- -- http://imgur.com/a/LmkDT
- -- Adding pages
- -- Let's start by making a test page.
- -- Call this testpage.jsp and put it in the webapps\ROOT directory of your tomcat directory.
- -- <html>
- <head><title>Test Page</title></head>
- <body>
- <% out.println("Tomcat is best cat."); %>
- </body>
- </html>
- -- At this point your tomcat is setup!
- +-----------+
- | Derby |
- +-----------+
- http://db.apache.org/derby/papers/DerbyTut/ns_intro.html#ns_sample
- -- Derby is a small footpring DB that I am going to use for any small projects.
- -- Download derby(just use the latest, this will be irrellevant.
- -- Here is a tutorial for setting up the networked derby, I used the embedded, however.
- -- http://www.vogella.com/tutorials/ApacheDerby/article.html
- +-----------+
- | Hibernate |
- +-----------+
- https://kaanmutlu.wordpress.com/2011/07/30/hibernate-installationsetup-on-eclipse-ide/
- http://www.tutorialspoint.com/hibernate/hibernate_tutorial.pdf
- http://db.apache.org/derby/docs/10.2/tuning/rtunproper27355.html
- http://karussell.wordpress.com/2009/06/09/hibernate-cfg-xml-settings-for-derby-oracle-and-h2/
- -- Download hibernate(I used 3.6.10)
- -- Make a library in your IDE.
- -- Add the hibernate3.jar to the library.
- -- Add all of the jars in the lib/required directory to the hibernate library.
- -- Add the hibernate library to your IDE.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement