I've spent the last 6 hours or so trying to get my project over to GWT
2.0.x (I was using DWR before).

I'm using Eclipse 3.5.  I've ripped out everything other than the
server side code.  The only client side code that exists is what the
gwt-maven archetype puts in (Application.java, Application.gwt.xml,
Application.css and Application.xml, web.xml ... I may have missed
something else, but all the default stuff, similar to what
webAppCreator puts in).

I'm moved all my server side code to the server package.  It
compiles.  After doing a mvn gwt:clean gwt:compile gwt:run, everything
looks good until the devmode is supposed to come up ... it dies.  I
get ...

[gwt:run {execution: default-cli}]
using GWT jars from project dependencies : 2.0.3
establishing classpath list (scope = runtime)
create exploded Jetty webapp in c:\Documents and Settings\sxahlst
\Documents\techno\techno\techno\war
auto discovered modules [com.entity.techno.Application]
]

java.lang.SecurityException: sealing violation: can't seal package
org.mortbay.util: already loaded

I do not have jetty as one of my dependencies ... it gets added by
GWT.  I've been trying all sorts of thing to get this to work and
failing miserably.

Here is my pom.xml ...

<?xml version="1.0" encoding="UTF-8"?>
<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";>

        <!-- POM generated by gwt-maven-plugin archetype  -->
        <modelVersion>4.0.0</modelVersion>
        <groupId>com.entity</groupId>
        <artifactId>techno</artifactId>
        <packaging>war</packaging>
        <version>0.0.1-SNAPSHOT</version>

        <properties>

                <!-- convenience to define GWT version in one place -->
                <gwt.version>2.0.3</gwt.version>

                <spring.version>2.5.6</spring.version>

                <!--  tell the compiler we can use 1.5 -->
                <maven.compiler.source>1.5</maven.compiler.source>
                <maven.compiler.target>1.5</maven.compiler.target>

                
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

        </properties>

        <dependencies>

                <!--  GWT dependencies (from central repo) -->
                <dependency>
                        <groupId>com.google.gwt</groupId>
                        <artifactId>gwt-servlet</artifactId>
                        <version>${gwt.version}</version>
                        <scope>runtime</scope>
                </dependency>

                <dependency>
                        <groupId>com.google.gwt</groupId>
                        <artifactId>gwt-user</artifactId>
                        <version>${gwt.version}</version>
                        <scope>provided</scope>
                </dependency>

                <!-- test -->
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-aop</artifactId>
                        <version>${spring.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-beans</artifactId>
                        <version>${spring.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-context</artifactId>
                        <version>${spring.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-context-support</artifactId>
                        <version>${spring.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-core</artifactId>
                        <version>${spring.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-jdbc</artifactId>
                        <version>${spring.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-orm</artifactId>
                        <version>${spring.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-tx</artifactId>
                        <version>${spring.version}</version>
                </dependency>
                <dependency>
                        <groupId>commons-dbcp</groupId>
                        <artifactId>commons-dbcp</artifactId>
                        <version>1.2.2</version>
                </dependency>
                <dependency>
                        <groupId>org.hibernate</groupId>
                        <artifactId>hibernate</artifactId>
                        <version>3.2.6.ga</version>
                </dependency>
                <dependency>
                        <groupId>org.hibernate</groupId>
                        <artifactId>hibernate-entitymanager</artifactId>
                        <version>3.3.1.ga</version>
                </dependency>
                <dependency>
                        <groupId>concurrent</groupId>
                        <artifactId>concurrent</artifactId>
                        <version>1.3.4</version>
                </dependency>
                <dependency>
                        <groupId>org.hibernate</groupId>
                        <artifactId>hibernate-tools</artifactId>
                        <version>3.2.0.ga</version>
                </dependency>
                <dependency>
                        <groupId>log4j</groupId>
                        <artifactId>log4j</artifactId>
                        <version>1.2.15</version>
                </dependency>
                <dependency>
                        <groupId>javax.transaction</groupId>
                        <artifactId>jta</artifactId>
                        <version>1.0.1B</version>
                </dependency>
                <dependency>
                        <groupId>javax.mail</groupId>
                        <artifactId>mail</artifactId>
                        <version>1.4</version>
                </dependency>
                <dependency>
                        <groupId>rome</groupId>
                        <artifactId>rome</artifactId>
                        <version>0.9</version>
                </dependency>
                <dependency>
                        <groupId>rome</groupId>
                        <artifactId>rome-fetcher</artifactId>
                        <version>0.3</version>
                </dependency>
                <dependency>
                        <groupId>mysql</groupId>
                        <artifactId>mysql-connector-java</artifactId>
                        <version>5.1.6</version>
                </dependency>
                <dependency>
                        <groupId>javax.persistence</groupId>
                        <artifactId>persistence-api</artifactId>
                        <version>1.0</version>
                </dependency>

        </dependencies>

        <build>
                <outputDirectory>war/WEB-INF/classes</outputDirectory>
                <plugins>
                        <plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>gwt-maven-plugin</artifactId>
                                <version>1.2</version>
                                <executions>
                                        <execution>
                                                <goals>
                                                        <goal>compile</goal>
                                                        
<goal>generateAsync</goal>
                                        <!--            <goal>test</goal>   -->
                                                </goals>
                                        </execution>
                                </executions>
                                <configuration>
                                        
<runTarget>com.entity.techno.Application/Application.html</
runTarget>
                                </configuration>
                        </plugin>

                        <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-war-plugin</artifactId>
       <version>2.0.2</version>
       <configuration>
         <warSourceDirectory>war</warSourceDirectory>
         <webXml>src/main/webapp/WEB-INF/web.xml</webXml>
       </configuration>
     </plugin>
     <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
         <version>2.0.2</version>
         <configuration>
           <source>${maven.compiler.source}</source>
           <target>${maven.compiler.target}</target>
         </configuration>
     </plugin>

                </plugins>
        </build>

</project>

Any help or enlightenment will be greatly appreciated!

Steve

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to