You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Veerasamy, Thirumalai (Cognizant)" <VT...@chn.cognizant.com> on 2004/03/20 14:11:22 UTC

[WAS-EJBDeploy] Any idea what parameters they pass to ejbdeploy through WSAD

Hi, 

  I know this mail is not meant for this group, but since the
maven-plugin is available I thought I can post this question.

 Any idea what parameters they pass to ejbdeploy through WSAD?

Regards,
Thiru


-----Original Message-----
From: Veerasamy, Thirumalai (Cognizant) 
Sent: Friday, March 19, 2004 9:34 PM
To: 'Maven Users List'
Subject: RE: How can I generate Deploy and RMIC Code for IBM Websphere,
I couldn't find any plugins

I found one more thing,

  The deployment code is created in the temporary files whereas the rmic
code is created <currentdir>/ejbModule/<packagename>/<stubs>, so while
compiling these classes are missed, but the files are created. Do we
need to pass something to RMIC.

  Anybody has faced this before?

Regards,
Thiru


-----Original Message-----
From: Veerasamy, Thirumalai (Cognizant) 
Sent: Friday, March 19, 2004 9:13 PM
To: Maven Users List
Subject: RE: How can I generate Deploy and RMIC Code for IBM Websphere,
I couldn't find any plugins

Hi,

   It creates the stubs but it doesn't compile those files and put it in
the jar file. Now I have set the java_home to IBM JDK, but still it
doesn't happen, any idea? How to trouble shoot? Is it that it is not
able to compiling the code since the folder is different or something.
The output log is given below. 

I found one more thing that the maven.was40.ejb.deployOptions property
is not used in the plugin code. I added to it.

    <java className="com.ibm.etools.ejbdeploy.EJBDeploy"
          fork="true"
          classpathRef="ejbdeploy.classpath">
      <env key="JAVA_HOME" value="${maven.was40.home}/java"/>
      <env key="PATH" value="${maven.was40.home}/java/bin"/>
      <jvmarg value="-Xmx512m"/>
      <sysproperty key="websphere.lib.dir"
value="${maven.was40.home}/lib"/>
      <arg value="${maven.was40.ejb.file}" />
      <arg value="${workingDir}" />
      <arg value="${maven.was40.ejb.out.file}" />
      ** <arg line="${maven.was40.ejb.deployOptions}"/> ** //added by me
      <arg value="-cp"/>
      <arg value="${cpMaven}"/>
    </java>

    [java] Generating deployment code
    [java]   Processing session bean: AttributeManagerEJB
    [java]   Processing session bean: ContentEJB
    [java]   Processing session bean: CacheLoaderEJB
    [java]   Processing session bean: CollectionManagerEJB
    [java]   Processing session bean: VisitorManagerEJB
    [java]   Processing session bean: ShareDataEJB
    [java]   Processing session bean: VisitorDataAccessEJB
    [java] Building: /vsrm-ejb-2.2.jar.
    [java]   Invoking Java Builder on /vsrm-ejb-2.2.jar.
    [java]   Scrubbing output folder
    [java]   Analyzing packages
    [java]   Analyzing sources
    [java]   Compiling content of ejbModule/com/mmm/vsrm/service
    [java]   Copying all resources on the classpath
    [java]   Build done.
    [java]   Java build completed
    [java] Invoking RMIC.
    [java] Building: /vsrm-ejb-2.2.jar.
    [java]   Invoking Java Builder on /vsrm-ejb-2.2.jar.
    [java]   Reading resource change information for : vsrm-ejb-2.2.jar
    [java]   Updating resources on the classpath
    [java]   Build done.
    [java]   Java build completed
    [java]   Building: /vsrm-ejb-2.2.jar. Invoking Java Builder on
/vsrm-ejb-2.2.jar.
    [java]   Building: /vsrm-ejb-2.2.jar. Reading resource change
information for : vsrm-ejb-2.2.jar
    [java]   Building: /vsrm-ejb-2.2.jar. 
    [java]   Building: /vsrm-ejb-2.2.jar. Updating resources on the
classpath
    [java]   Building: /vsrm-ejb-2.2.jar. Build done.
    [java]   Building: /vsrm-ejb-2.2.jar. 
    [java]   Building: /vsrm-ejb-2.2.jar. Java build completed
    [java]   Building: /vsrm-ejb-2.2.jar. Invoking Validation on
/vsrm-ejb-2.2.jar.
    [java]   Building: /vsrm-ejb-2.2.jar. 
    [java]   Updating.
    [java] Shutting down workbench.
    [java] EJBDeploy complete.
    [java] 0 Errors, 6 Warnings, 0 Informational Messages


-----Original Message-----
From: dion@multitask.com.au [mailto:dion@multitask.com.au] 
Sent: Friday, March 19, 2004 5:56 PM
To: Maven Users List
Subject: RE: How can I generate Deploy and RMIC Code for IBM Websphere,
I couldn't find any plugins

"Veerasamy, Thirumalai (Cognizant)" <VT...@chn.cognizant.com> wrote
on 
19/03/2004 11:07:07 PM:

> I could see this code in goal "was40:generate-ejb-code"
> 
>     <java className="com.ibm.etools.ejbdeploy.EJBDeploy"
>           fork="true"
>           classpathRef="ejbdeploy.classpath">
>       <env key="JAVA_HOME" value="${maven.was40.home}/java"/>
>       <env key="PATH" value="${maven.was40.home}/java/bin"/>
>       <jvmarg value="-Xmx512m"/>
>       <sysproperty key="websphere.lib.dir"
> value="${maven.was40.home}/lib"/>
>       <arg value="${maven.was40.ejb.file}" />
>       <arg value="${workingDir}" />
>       <arg value="${maven.was40.ejb.out.file}" />
>       <arg value="-cp"/>
>       <arg value="${cpMaven}"/>
>     </java>
> 
> which set the java_home automatically. As I told you I am using ver
1.1
> plugin. I think it was not there in ver 1.0 plugin. Do you still want
me
> to set the java_home and path there? 

Yes. RMIC will fail without the IBM JDK on the path. Which, under
windows 
xp for me, doesn't happen using the plugin. The above was my attempt to 
get it to work, but it is not consistent. 
--
dIon Gillard, Multitask Consulting

Re: [WAS-EJBDeploy] Any idea what parameters they pass to ejbdeploy through WSAD

Posted by di...@multitask.com.au.
I believe I've found the problem with the was40 plugin.

You can either rebuild it from CVS when I commit the changes, or drop me a 
private email and I'll send it to you.
--
dIon Gillard, Multitask Consulting



"Veerasamy, Thirumalai (Cognizant)" <VT...@chn.cognizant.com> wrote on 
21/03/2004 12:11:22 AM:

> Hi, 
> 
>   I know this mail is not meant for this group, but since the
> maven-plugin is available I thought I can post this question.
> 
>  Any idea what parameters they pass to ejbdeploy through WSAD?
> 
> Regards,
> Thiru
> 
> 
> -----Original Message-----
> From: Veerasamy, Thirumalai (Cognizant) 
> Sent: Friday, March 19, 2004 9:34 PM
> To: 'Maven Users List'
> Subject: RE: How can I generate Deploy and RMIC Code for IBM Websphere,
> I couldn't find any plugins
> 
> I found one more thing,
> 
>   The deployment code is created in the temporary files whereas the rmic
> code is created <currentdir>/ejbModule/<packagename>/<stubs>, so while
> compiling these classes are missed, but the files are created. Do we
> need to pass something to RMIC.
> 
>   Anybody has faced this before?
> 
> Regards,
> Thiru
> 
> 
> -----Original Message-----
> From: Veerasamy, Thirumalai (Cognizant) 
> Sent: Friday, March 19, 2004 9:13 PM
> To: Maven Users List
> Subject: RE: How can I generate Deploy and RMIC Code for IBM Websphere,
> I couldn't find any plugins
> 
> Hi,
> 
>    It creates the stubs but it doesn't compile those files and put it in
> the jar file. Now I have set the java_home to IBM JDK, but still it
> doesn't happen, any idea? How to trouble shoot? Is it that it is not
> able to compiling the code since the folder is different or something.
> The output log is given below. 
> 
> I found one more thing that the maven.was40.ejb.deployOptions property
> is not used in the plugin code. I added to it.
> 
>     <java className="com.ibm.etools.ejbdeploy.EJBDeploy"
>           fork="true"
>           classpathRef="ejbdeploy.classpath">
>       <env key="JAVA_HOME" value="${maven.was40.home}/java"/>
>       <env key="PATH" value="${maven.was40.home}/java/bin"/>
>       <jvmarg value="-Xmx512m"/>
>       <sysproperty key="websphere.lib.dir"
> value="${maven.was40.home}/lib"/>
>       <arg value="${maven.was40.ejb.file}" />
>       <arg value="${workingDir}" />
>       <arg value="${maven.was40.ejb.out.file}" />
>       ** <arg line="${maven.was40.ejb.deployOptions}"/> ** //added by me
>       <arg value="-cp"/>
>       <arg value="${cpMaven}"/>
>     </java>
> 
>     [java] Generating deployment code
>     [java]   Processing session bean: AttributeManagerEJB
>     [java]   Processing session bean: ContentEJB
>     [java]   Processing session bean: CacheLoaderEJB
>     [java]   Processing session bean: CollectionManagerEJB
>     [java]   Processing session bean: VisitorManagerEJB
>     [java]   Processing session bean: ShareDataEJB
>     [java]   Processing session bean: VisitorDataAccessEJB
>     [java] Building: /vsrm-ejb-2.2.jar.
>     [java]   Invoking Java Builder on /vsrm-ejb-2.2.jar.
>     [java]   Scrubbing output folder
>     [java]   Analyzing packages
>     [java]   Analyzing sources
>     [java]   Compiling content of ejbModule/com/mmm/vsrm/service
>     [java]   Copying all resources on the classpath
>     [java]   Build done.
>     [java]   Java build completed
>     [java] Invoking RMIC.
>     [java] Building: /vsrm-ejb-2.2.jar.
>     [java]   Invoking Java Builder on /vsrm-ejb-2.2.jar.
>     [java]   Reading resource change information for : vsrm-ejb-2.2.jar
>     [java]   Updating resources on the classpath
>     [java]   Build done.
>     [java]   Java build completed
>     [java]   Building: /vsrm-ejb-2.2.jar. Invoking Java Builder on
> /vsrm-ejb-2.2.jar.
>     [java]   Building: /vsrm-ejb-2.2.jar. Reading resource change
> information for : vsrm-ejb-2.2.jar
>     [java]   Building: /vsrm-ejb-2.2.jar. 
>     [java]   Building: /vsrm-ejb-2.2.jar. Updating resources on the
> classpath
>     [java]   Building: /vsrm-ejb-2.2.jar. Build done.
>     [java]   Building: /vsrm-ejb-2.2.jar. 
>     [java]   Building: /vsrm-ejb-2.2.jar. Java build completed
>     [java]   Building: /vsrm-ejb-2.2.jar. Invoking Validation on
> /vsrm-ejb-2.2.jar.
>     [java]   Building: /vsrm-ejb-2.2.jar. 
>     [java]   Updating.
>     [java] Shutting down workbench.
>     [java] EJBDeploy complete.
>     [java] 0 Errors, 6 Warnings, 0 Informational Messages
> 
> 
> -----Original Message-----
> From: dion@multitask.com.au [mailto:dion@multitask.com.au] 
> Sent: Friday, March 19, 2004 5:56 PM
> To: Maven Users List
> Subject: RE: How can I generate Deploy and RMIC Code for IBM Websphere,
> I couldn't find any plugins
> 
> "Veerasamy, Thirumalai (Cognizant)" <VT...@chn.cognizant.com> wrote
> on 
> 19/03/2004 11:07:07 PM:
> 
> > I could see this code in goal "was40:generate-ejb-code"
> > 
> >     <java className="com.ibm.etools.ejbdeploy.EJBDeploy"
> >           fork="true"
> >           classpathRef="ejbdeploy.classpath">
> >       <env key="JAVA_HOME" value="${maven.was40.home}/java"/>
> >       <env key="PATH" value="${maven.was40.home}/java/bin"/>
> >       <jvmarg value="-Xmx512m"/>
> >       <sysproperty key="websphere.lib.dir"
> > value="${maven.was40.home}/lib"/>
> >       <arg value="${maven.was40.ejb.file}" />
> >       <arg value="${workingDir}" />
> >       <arg value="${maven.was40.ejb.out.file}" />
> >       <arg value="-cp"/>
> >       <arg value="${cpMaven}"/>
> >     </java>
> > 
> > which set the java_home automatically. As I told you I am using ver
> 1.1
> > plugin. I think it was not there in ver 1.0 plugin. Do you still want
> me
> > to set the java_home and path there? 
> 
> Yes. RMIC will fail without the IBM JDK on the path. Which, under
> windows 
> xp for me, doesn't happen using the plugin. The above was my attempt to 
> get it to work, but it is not consistent. 
> --
> dIon Gillard, Multitask Consulting
> [attachment "InterScan_Disclaimer.txt" deleted by dIon 
> Gillard/Multitask Consulting/AU] 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org