[ 
https://issues.apache.org/jira/browse/DAYTRADER-87?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12966401#action_12966401
 ] 

viola.lu commented on DAYTRADER-87:
-----------------------------------

Hi, Yannick: 
 You can find the daytrader ear under 
$daytrader_source\assemblies\javaee\daytrader-ear\target. Can you try that one 
on JBOSS. THanks in advance!

> DayTrader 2.2.x : Can not compile for Jboss5 / doc is not up to date (file 
> README.jboss5)
> -----------------------------------------------------------------------------------------
>
>                 Key: DAYTRADER-87
>                 URL: https://issues.apache.org/jira/browse/DAYTRADER-87
>             Project: DayTrader
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>    Affects Versions: 2.2
>         Environment:     * JDK 1.6_021
>     * Mandriva Linux 2010.1
>     * Maven 2.2.1
>            Reporter: Yannick LE NY
>             Fix For: 2.2.1
>
>         Attachments: daytrader-2.2-compile.log
>
>
> I try to compile Daytrader 2.2 for Jboss 5 with the documentation available 
> at 
> http://svn.apache.org/viewvc/geronimo/daytrader/branches/2.2/README.jboss5?revision=1032571&view=markup&sortby=rev&sortdir=down
> But this documentation is true/good for Daytrader 2.1.3 but not for daytrader 
> 2.2.
> 1) 
> Part (replace ejb folder by ejb3 folder)
> 96    3. Rename these files manually:
> 97    # 
> $DAYTRADER_SRC_HOME/modules/ejb/src/main/resources/META-INF/persistence.xml
> 98    --> 
> $DAYTRADER_SRC_HOME/modules/ejb/src/main/resources/META-INF/persistence.xml.bak
>  
> maybe should replace by
> 96    3. Rename these files manually:
> 97    # 
> $DAYTRADER_SRC_HOME/modules/ejb3/src/main/resources/META-INF/persistence.xml
> 98    --> 
> $DAYTRADER_SRC_HOME/modules/ejb3/src/main/resources/META-INF/persistence.xml.bak
>  
> 2)
> Now, the part  for OpenJPA PCEnhancer Ant task is not available in 
> $DAYTRADER_SRC_HOME/modules/ejb/pom.xml
> 114   5. Modify $DAYTRADER_SRC_HOME/modules/ejb/pom.xml to comment out 
> OpenJPA PCEnhancer Ant task:
> 115   <!--<plugin>
> 116   <artifactId>maven-antrun-plugin</artifactId>
> 117   <executions>
> 118   <execution>
> 119   <phase>compile</phase>
> 120   <configuration>
> 121   <tasks>
> 122   <path id="enhance.path.ref">
> 123   <fileset dir="${project.build.outputDirectory}">
> 124   <include name="**/*.class"/>
> 125   </fileset>
> 126   </path>
> 127   <pathconvert property="enhance.files"
> 128   refid="enhance.path.ref"
> 129   pathsep=" "/>
> 130   <java classname="org.apache.openjpa.enhance.PCEnhancer">
> 131   <arg line="-p persistence.xml"/>
> 132   <arg line="${enhance.files}"/>
> 133   <classpath>
> 134   <path refid="maven.dependency.classpath"/>
> 135   <path refid="maven.compile.classpath"/>
> 136   </classpath>
> 137   </java>
> 138   </tasks>
> 139   </configuration>
> 140   <goals>
> 141   <goal>run</goal>
> 142   </goals>
> 143   </execution>
> 144   </executions>
> 145   </plugin>--> 
> 3)  No ear file created 
> 174   8. Finally, copy the 
> $DAYTRADER_SRC_HOME/modules/ear/target/daytrader-ear-2.2-SNAPSHOT.ear
> 175   to your $JBOSS_INST_HOME/server/standard/deploy/ directory. 
> After compiling with success, I have nothing in  
> $DAYTRADER_SRC_HOME/modules/ear/target/daytrader-ear-2.2-SNAPSHOT.ear.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to