白痴做Web应用之01:第一个坑,没有创建Artifact

一、创建一个工程


话说连Idea都没用过,只有从Google开始。幸好找到一个页面 http://wiki.jetbrains.net/intellij/Main_Page 。虽说里面列Application servers的没有Jetty,只有GlassFish、JBoss和Tomcat,但是也不能太白痴了,用Creating a simple Web application and deploying it to Tomcat参考一下还是可以的。


按照里面的步骤,创建一个新Project(from scratch)。和里面的步骤稍微不同的是,没有Project不能先添加Server。在Run/Debug Configurations窗口里的Server Tab里添加完Server之后,没有看见右下角有个小小的“Fix”按钮,这就是我的第一坑啊。


二、尝试运行


步骤里面说,“we can start the application straight away: in the Project tool window, right-click index.jsp and choose Run index.jsp on the context menu”,这个右键菜单最后我也没找到,估计是因为Idea版本不同吧。


快捷键F9运行,log输出

/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -DSTOP.PORT=0 -Dcom.sun.management.jmxremote= -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -DOPTIONS=jmx -Didea.launcher.port=7539 -Didea.launcher.bin.path=/Applications/IntelliJ IDEA 10.app/bin -Dfile.encoding=MacRoman -classpath start.jar:/Applications/IntelliJ IDEA 10.app/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain org.eclipse.jetty.start.Main etc/jetty-jmx.xml /private/var/folders/Qx/Qx89S7RcE-8i-KpNGg13PU+++TI/-Tmp-/context8484410741561993358config/contexts-config.xml
53592
STOP.KEY=1hpxj8x9fe2o0
2012-01-04 15:39:37.137:WARN:oejd.ContextDeployer:ContextDeployer is deprecated. Use ContextProvider
2012-01-04 15:39:37.140:INFO:oejs.Server:jetty-8.0.4.v20111024
2012-01-04 15:39:37.173:INFO:oejdp.ScanningAppProvider:Deployment monitor /Servers/jetty-distribution-8.0.4.v20111024/webapps at interval 1
2012-01-04 15:39:37.179:INFO:oejdp.ScanningAppP
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值