Giter Club home page Giter Club logo

devcenter-embedded-tomcat's Introduction

Deploy

Create a Java Web Application using Embedded Tomcat

This tutorial will show you how to create a simple Java web application using embedded Tomcat.

Prerequisites

  • Basic Java knowledge, including an installed version of the JVM and Maven.
  • Basic Git knowledge, including an installed version of Git.
  • A Java web application. If you don't have one follow the first step to create an example. Otherwise skip that step.

Skip The Application Creation

If you want to skip the creation steps you can clone the finished sample and then skip to the 'Deploy Your Application to Heroku' section:

$ git clone [email protected]:heroku/devcenter-embedded-tomcat.git

Follow the Guide

If you would like to create the application yourself, then follow the Dev Center guide on how to Create a Java Web Application using Embedded Tomcat.

devcenter-embedded-tomcat's People

Contributors

idelvall avatar inodb avatar jamesward avatar jkutner avatar jsimone avatar ryanbrainard avatar vtiurin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

devcenter-embedded-tomcat's Issues

JSTL does not work?

Hello,

I come from Heroku Dev Center and tried this project, which did not worked with JSTL tag library.
It throws
"The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application", by just adding original index.jsp page the directive:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

Can you tell me how do you resolve this please?

Tera

How do you use jstl or other tag libraries with an embedded instance?

I followed your tutorial and have been successful up until I started adding tag libraries to my jsps. I am getting

org.apache.jasper.JasperException: The absolute uri: [http://java.sun.com/jsp/jstl/core] cannot be resolved in either web.xml or the jar files deployed with this application

Any ideas how to resolve this? Thank you very much.

Needs more stuff to really help real world apps

So, I understand that this project is just about getting embedded Tomcat to deploy a simple app. But simple app doesn't cut it here for those of us actually using this to help deploy and run a real world app. For instance, your jsp page is just html. There is no jsp-ish about it. You need to include some includes, some taglibs because that is where most people will mess up and it not work, but there is no where to go to get help.

This would also help with any other dependencies needed in the pom file that aren't in the pom file in this project.

about '/manager' page

How can I reach the page '/manager' ,There is a '404' when i try to reach '/manager' ,How to fix it

thank you

mvn install gives error

i cloned this repo, and ran mvn install, it gave this error -

HelloServlet.java:[12,1] error: annotations are not supported in -source 1.3

tomcat-users.xml?

Can't see any description in the tutorial or code.

How can i add a tomcat-users.xml file for the embedded tomcat ?

How to run the project without source code

I run after the settings, and it works to run the project.

But when I copy the dictionary target to somewhere else say my desktop and run the script again:

C:\Users\ljjn1246\Desktop>target\bin\webapp.bat

But it says it can't find the webapp path:

警告: Unable to determine web application context.xml C:\Users\ljjn1246\Desktop\
src\main\webapp
java.io.FileNotFoundException: C:\Users\ljjn1246\Desktop\src\main\webapp (系统找
不到指定的路径。)
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(Unknown Source)
        at java.util.zip.ZipFile.<init>(Unknown Source)
        at java.util.jar.JarFile.<init>(Unknown Source)
        at java.util.jar.JarFile.<init>(Unknown Source)

Is there a way to separate the source code from the package ?

SSL enable server

I've been able to successfully embed tomcat 8 into my app, but am having issues getting it work with self signed certificates in a keystore.jks to use with ssl/tls encryption. is there any help you can offer?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.