NetBeans6 beta1が出たのでDLして試して見た。
デフォだとWebアプリ作るときのアプリケーションサーバがGlassFishになってる。
Tomの方が好みだけど、とりあえずデフォで入れて見た。
入れ先は、Cドライブがしょぼいので、Dドライブを選択した。
その状態で、WebApplicationを新規作成。
Visual Web JavaServer Facesにチェックを入れてプロジェクトを作成する。
んでもって、static textを画面に貼り付けてHelloとうちこんだ。
おもむろに実行すると↓のスタックトレースを吐いて動かない…!?
ADM0013: A config exception occurred. Details are:
com.sun.enterprise.config.ConfigException: Error Flushing ConfigContext com.sun.enterprise.config.ConfigContext: Url=D:/Program Files/glassfish-v2-b58g/domains/domain1\config\domain.xml, ReadOnly=false, ResolvePath=true, LastModified Timestamp=1190186775846, isChanged=true, Autocommit=false, isConfigBeanNull=false
at com.sun.enterprise.config.impl.ConfigContextImpl.flush(ConfigContextImpl.java:344)
(略)
deployed with moduleid = Hello
ADM0013: A config exception occurred. Details are:
com.sun.enterprise.config.ConfigException: Error Flushing ConfigContext com.sun.enterprise.config.ConfigContext: Url=D:/Program Files/glassfish-v2-b58g/domains/domain1\config\domain.xml, ReadOnly=false, ResolvePath=true, LastModified Timestamp=1190186775846, isChanged=true, Autocommit=false, isConfigBeanNull=false
at com.sun.enterprise.config.impl.ConfigContextImpl.flush(ConfigContextImpl.java:344)
(略)
Undeployment of component [Hello] failed. Application Hello is referenced by server and must be referenced by no server instances or clusters.
OS:Windows Vista
Java:Java SE 6
前にインストールしてたTomcat6をアプリケーションサーバとして登録して、ハローワールドプロジェクトを作るとすんなり動いた。
謎い。