カテゴリ
以前の記事
2024年 03月 2024年 01月 2023年 12月 2023年 08月 2023年 06月 2023年 05月 2023年 03月 2022年 08月 2021年 11月 2021年 10月 2021年 02月 2020年 12月 2020年 11月 2020年 10月 2020年 06月 2020年 05月 2018年 02月 2017年 12月 2017年 11月 2017年 09月 2017年 08月 2016年 07月 2016年 06月 2016年 05月 2015年 12月 2015年 10月 2015年 09月 2015年 07月 2015年 04月 2015年 03月 2015年 02月 2014年 07月 2012年 03月 2012年 02月 2011年 11月 2011年 06月 2011年 05月 2011年 04月 2011年 02月 2010年 11月 2010年 09月 2010年 06月 2009年 04月 2009年 03月 2009年 02月 2008年 12月 2008年 02月 2007年 10月 2007年 08月 2006年 04月 2006年 03月 2005年 08月 2005年 06月 2005年 04月 2005年 03月 2005年 01月 2004年 10月 2004年 07月 2004年 06月 2004年 05月 2004年 04月 2004年 03月 2004年 02月 フォロー中のブログ
その他のジャンル
ファン
記事ランキング
ブログジャンル
画像一覧
|
jetty-env.xml
src/main/webapp/WEB-INF に配置 以下PostgreSQLの例 Jettyのサイトにテンプレートがあったのでコピペ・・・ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://www.eclipse.org/jetty/configure.dtd"> <Configure class="org.eclipse.jetty.webapp.WebAppContext"> <New id="old_kakeibo" class="org.eclipse.jetty.plus.jndi.Resource"> <Arg></Arg> <Arg>jdbc/myjdbc</Arg> <Arg> <New class="org.postgresql.ds.PGConnectionPoolDataSource"> <Set name="User">rx21</Set> <Set name="Password">xxxxxxxxxx</Set> <Set name="DatabaseName">mydb</Set> <Set name="ServerName">localhost</Set> <Set name="PortNumber">5432</Set> </New> </Arg> </New> </Configure> #
by rx21
| 2015-02-28 14:04
| Program
備忘録として・・・・改行は無視・・・
Maven3 Jetty9 Mojarra?(JSF) EclipseLink(JPA) PostgreSQL9 Bootstrapもついでに ${}は無視・・・ まず pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>my.pkg.group.id</groupId> <artifactId>myprj</artifactId> <packaging>war</packaging> <version>0.0.1-SNAPSHOT</version> <name>myprj Maven Webapp</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependency> <dependency> <groupId>javax</groupId> <artifactId>javaee-web-api</artifactId> <version>7.0</version> </dependency> <dependency> <groupId>com.sun.faces</groupId> <artifactId>jsf-api</artifactId> <version>2.2.2</version> </dependency> <dependency> <groupId>com.sun.faces</groupId> <artifactId>jsf-impl</artifactId> <version>2.2.2</version> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.1.0</version> </dependency> <dependency> <groupId>net.bootsfaces</groupId> <artifactId>bootsfaces</artifactId> <version>0.6.0</version> </dependency> <dependency> <groupId>org.eclipse.persistence</groupId> <artifactId>eclipselink</artifactId> <version>2.5.0</version> </dependency> <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <version>9.4-1200-jdbc41</version> </dependency> </dependencies> <build> <finalName>myprj</finalName> <plugins> <plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <configuration> <webAppConfig> <throwUnavailableOnStartupException>true</throwUnavailableOnStartupException> </webAppConfig> <webApp> <contextPath>/myprj</contextPath> </webApp> </configuration> </plugin> </plugins> </build> </project> #
by rx21
| 2015-02-28 13:47
| Program
4.3.2の場合1.4だとなぜか動かないので1.3を引っ張ってくる必要があった
http://download.eclipse.org/technology/m2e/releases/1.3/ #
by rx21
| 2014-07-26 21:49
| Program
実際の取得
context = new InitialContext(); DataSource ds = ("java:comp/env/jdbc/hoge") context .lookup(connParam); conn = ds.getConnection(); 次回はMyBatisで・・・・ #
by rx21
| 2012-03-20 14:37
| Program
resources/jndi.properties
いらないかも・・・ java.naming.factory.url.pkgs=org.mortbay.naming java.naming.factory.initial=org.mortbay.naming.InitialContextFactory #
by rx21
| 2012-03-20 14:35
| Program
|
ファン申請 |
||