You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Brian Relph <re...@gmail.com> on 2008/02/09 00:13:21 UTC

j4 and retrotranslator

Has anyone built a java 1.4 compatible struts2 application with maven2 using
the translated jars?  I installed the j4 struts2-core and xwork jars in my
repository.  But, I am still this error when installing my project using
maven:

...
INFO] war:war
[INFO] Packaging webapp
[INFO] Assembling webapp[healthe-user-claim-portlet] in
[C:\workspaces\hin-portal-test\healthe-user-claim-portlet\target\healthe-
user-claim-portlet-1.1.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Webapp assembled in[266 msecs]
[INFO] Building war:
C:\workspaces\hin-portal-test\healthe-user-claim-portlet\target\healthe-
user-claim-portlet-1.1.0-SNAPSHOT.war
[INFO] source:jar
[INFO] Building jar:
C:\workspaces\hin-portal-test\healthe-user-claim-portlet\target\healthe-
user-claim-portlet-1.1.0-SNAPSHOT-sources.jar
[INFO] retrotranslator:translate-war
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
----------------------------------------------------------------------------
[INFO] java.lang.String incompatible with java.lang.Boolean
...

Here are the relevant parts of my pom.xml:

...
<!-- Struts 2 -->
<dependency>
  <groupId>org.apache.struts</groupId>
  <artifactId>struts2-core-j4</artifactId>
  <version>2.0.11</version>
</dependency>

<dependency>
  <groupId>com.opensymphony</groupId>
  <artifactId>xwork-j4</artifactId>
  <version>2.0.4</version>
</dependency>

<dependency>
  <groupId>org.apache.struts</groupId>
  <artifactId>struts2-spring-plugin</artifactId>
  <version>2.0.11</version>
  <exclusions>
    <exclusion>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
    </exclusion>
    <exclusion>
      <groupId>org.apache.struts</groupId>
      <artifactId>struts2-core</artifactId>
    </exclusion>
  </exclusions>
</dependency>
...
...
<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>retrotranslator-maven-plugin</artifactId>
  <executions>
    <execution>
      <goals>
        <goal>translate-war</goal>
      </goals>
      <configuration>
        <classifier>jdk1.4</classifier>
        <attach>true</attach>
      </configuration>
    </execution>
  </executions>
</plugin>
...

Any suggestions?
-- 
Brian

Re: j4 and retrotranslator

Posted by Nils-Helge Garli Hegvik <ni...@gmail.com>.
Yeah, I had the same problem trying to build a struts 2 portlet for
WebSphere 5.1. I found that I had to downgrade the retrotranslator
plugin to version 1.0-alpha-2, I think it was.

Nils-H

On Feb 9, 2008 12:13 AM, Brian Relph <re...@gmail.com> wrote:
> Has anyone built a java 1.4 compatible struts2 application with maven2 using
> the translated jars?  I installed the j4 struts2-core and xwork jars in my
> repository.  But, I am still this error when installing my project using
> maven:
>
> ...
> INFO] war:war
> [INFO] Packaging webapp
> [INFO] Assembling webapp[healthe-user-claim-portlet] in
> [C:\workspaces\hin-portal-test\healthe-user-claim-portlet\target\healthe-
> user-claim-portlet-1.1.0-SNAPSHOT]
> [INFO] Processing war project
> [INFO] Webapp assembled in[266 msecs]
> [INFO] Building war:
> C:\workspaces\hin-portal-test\healthe-user-claim-portlet\target\healthe-
> user-claim-portlet-1.1.0-SNAPSHOT.war
> [INFO] source:jar
> [INFO] Building jar:
> C:\workspaces\hin-portal-test\healthe-user-claim-portlet\target\healthe-
> user-claim-portlet-1.1.0-SNAPSHOT-sources.jar
> [INFO] retrotranslator:translate-war
> [INFO]
> ----------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] java.lang.String incompatible with java.lang.Boolean
> ...
>
> Here are the relevant parts of my pom.xml:
>
> ...
> <!-- Struts 2 -->
> <dependency>
>   <groupId>org.apache.struts</groupId>
>   <artifactId>struts2-core-j4</artifactId>
>   <version>2.0.11</version>
> </dependency>
>
> <dependency>
>   <groupId>com.opensymphony</groupId>
>   <artifactId>xwork-j4</artifactId>
>   <version>2.0.4</version>
> </dependency>
>
> <dependency>
>   <groupId>org.apache.struts</groupId>
>   <artifactId>struts2-spring-plugin</artifactId>
>   <version>2.0.11</version>
>   <exclusions>
>     <exclusion>
>       <groupId>javax.servlet</groupId>
>       <artifactId>servlet-api</artifactId>
>     </exclusion>
>     <exclusion>
>       <groupId>org.apache.struts</groupId>
>       <artifactId>struts2-core</artifactId>
>     </exclusion>
>   </exclusions>
> </dependency>
> ...
> ...
> <plugin>
>   <groupId>org.codehaus.mojo</groupId>
>   <artifactId>retrotranslator-maven-plugin</artifactId>
>   <executions>
>     <execution>
>       <goals>
>         <goal>translate-war</goal>
>       </goals>
>       <configuration>
>         <classifier>jdk1.4</classifier>
>         <attach>true</attach>
>       </configuration>
>     </execution>
>   </executions>
> </plugin>
> ...
>
> Any suggestions?
> --
> Brian
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: j4 and retrotranslator

Posted by Antonio Petrelli <an...@gmail.com>.
2008/2/9, Brian Relph <re...@gmail.com>:
> <dependency>
>   <groupId>org.apache.struts</groupId>
>   <artifactId>struts2-core-j4</artifactId>
>   <version>2.0.11</version>
> </dependency>
>
> <dependency>
>   <groupId>com.opensymphony</groupId>
>   <artifactId>xwork-j4</artifactId>
>   <version>2.0.4</version>
> </dependency>

Are retrotranslated packages deployed in the repository? I thought
that the deployment was made only for 2.1.x package (I remember it
since I did it :-) )

Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org