Maven + GlashFish = aplikacja webowa
Strona [ 1 ] z 1
| andrew007 |
07-02-2010 19:48 |
|
Użytkownik Status: Offline Dołączył: 11-01-2009 Skąd: Opole |
Jak w mavenie ustawić serwer ? mianowicie tworzę projekt webowy w pon NetBeans, używam hibernate, tworzę encje na podstawie bazy, a przy tworzeniu stron JSF (2.0) mam komunikat : "Resolve Missing Server Problem" czego to dotyczy, i jak sobie z tym poradzić ?? Co robie źle? odnośnie Mavena jestem bardzo początkujący. |
|
|
| Koziołek |
07-02-2010 21:03 |
|
Użytkownik Status: Offline Dołączył: 27-04-2007 Skąd: Sterta |
Ale maven nie zrobi ci serwera. pokaż co masz skonfigurowane w pom.xml http://koziolekweb.pl - przemyślenia o życiu i śmierci i różnościach... Klingon multitasking systems do not support "time-sharing". When a Klingon program wants to run, it challenges the scheduler in hand-to-hand combat and owns the machine. |
|
|
| andrew_niezalogowany |
07-02-2010 22:04 |
|
|
<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>com.mycompany</groupId> <artifactId>mavenproject4</artifactId> <packaging>war</packaging> <version>1.0-SNAPSHOT</version> <name>mavenproject4 Java EE 6 Webapp</name> http://maven.apache.org <repositories> <repository> <id>java.net2</id> <name>Repository hosting the jee6 artifacts</name> http://download.java.net/maven/2 </repository> <repository> <id>unknown-jars-temp-repo</id> <name>A temporary repository created by NetBeans for libraries and jars it could not identify. Please replace the dependencies in this repository with correct ones and delete this repository.</name> </repository> </repositories> <dependencies> <dependency> <groupId>javax</groupId> <artifactId>javaee-web-api</artifactId> <version>6.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.2</version> <scope>test</scope> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate</artifactId> <version>3.2.5.ga</version> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-entitymanager</artifactId> <version>3.3.2.GA</version> </dependency> <dependency> <groupId>javax.sql</groupId> <artifactId>jdbc-stdext</artifactId> <version>2.0</version> </dependency> <dependency> <groupId>javax.transaction</groupId> <artifactId>jta</artifactId> <version>1.0.1B</version> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>ejb3-persistence</artifactId> <version>1.0.1.GA</version> </dependency> <dependency> <groupId>unknown.binary</groupId> <artifactId>mysql-connector-java-5.1.6-bin</artifactId> <version>SNAPSHOT</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.0.2</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.1-beta-1</version> <configuration> <failOnMissingWebXml>false</failOnMissingWebXml> </configuration> </plugin> </plugins> <finalName>mavenproject4</finalName> </build> <profiles> <profile> <id>endorsed</id> <activation> <property> <name>sun.boot.class.path</name> </property> </activation> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.0.2</version> <configuration> <!-- javaee6 contains upgrades of APIs contained within the JDK itself. As such these need to be placed on the bootclasspath, rather than classpath of the compiler. If you don't make use of these new updated API, you can delete the profile. On non-SUN jdk, you will need to create a similar profile for your jdk, with the similar property as sun.boot.class.path in Sun's JDK.--> <compilerArguments> <bootclasspath>${settings.localRepository}/javax/javaee-endorsed-api/6.0/javaee-endorsed-api-6.0.jar${path.separator}${sun.boot.class.path}</bootclasspath> </compilerArguments> </configuration> <dependencies> <dependency> <groupId>javax</groupId> <artifactId>javaee-endorsed-api</artifactId> <version>6.0</version> </dependency> </dependencies> </plugin> </plugins> </build> </profile> </profiles> </project> Czyli co tu może być nie tak, czy o co chodzi ?? |
|
|
| Koziołek |
07-02-2010 23:14 |
|
Użytkownik Status: Offline Dołączył: 27-04-2007 Skąd: Sterta |
Moim zdaniem problem leży w sposobie konfiguracji NB, który nie wie, że to jest projekt EE. Zrób tak, skonfiguruj plugin do netbeansa, bodajże się on maven-nbm-plugin nazywa, i każ mu skonfigurować projekt netbeansowy. Powinno pomóc, bo plugin dołączy odpowiednie flagi w konfiguracji projektu. http://koziolekweb.pl - przemyślenia o życiu i śmierci i różnościach... Klingon multitasking systems do not support "time-sharing". When a Klingon program wants to run, it challenges the scheduler in hand-to-hand combat and owns the machine. |
|
|
| __pejotr |
08-02-2010 10:23 |
|
|
może to coś pomoże: http://netbeans.org/kb/docs/javaee/maven-entapp.html |
|
|
|
|
|
Strona [ 1 ] z 1
| 1 użytkownik(ów) przegląda ten temat (1 gości) |
|---|
| (żadnych zarejestrowanych użytkowników) |










