~ryoji-kodakari/gt/jettyTiddlywiki.h2

« back to all changes in this revision

Viewing changes to src/main/java/jettyTiddlywiki/App.java

  • Committer: Ryoji Kodakari
  • Date: 2012-10-06 04:08:54 UTC
  • Revision ID: ryoji.kodakari@gmail.com-20121006040854-dhgcs713loi17023
initializer ロールバックする
/init -> / urlハンドル出来ず

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
package jettyTiddlywiki;
2
2
 
3
 
import jettyTiddlywiki.servlet.Initializer;
4
3
 
5
4
import org.eclipse.jetty.server.Connector;
6
5
import org.eclipse.jetty.server.Server;
16
15
{
17
16
        public static void main(String[] args) throws Exception
18
17
    {
19
 
                new Initializer().initialize();
20
18
        Server server = new Server();
21
19
        ContextHandlerCollection contexts = new ContextHandlerCollection();
22
20
        server.setHandler(contexts);
26
24
        WebAppContext webAppContext = new WebAppContext();
27
25
                webAppContext.setDescriptor(webAppContext + "war/WEB-INF/web.xml");
28
26
                webAppContext.setResourceBase("war");
29
 
                webAppContext.setContextPath("/");
 
27
                webAppContext.setContextPath("");
30
28
        contexts.addHandler(webAppContext);
31
29
        try {    
32
30
            server.start();