You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by jeff mutonho <ej...@yahoo.com> on 2004/08/18 15:39:26 UTC

Websphere deploy code

Hi guys.
I've successfully build all the sub-projects that form my application.Some of the sub-projects are EJB projects that will run on a Websphere 4.0  AppServer.
I know there's a Maven Websphere plugin for Websphere 4.0.I'm struggling to get documentation on how to generate the deploy code, how to go about building the WAR for the web project and eventually the EAR for the whole application.Any pointers , hints,etc
Please break it down for me :)
 
jeff mutonho

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Websphere deploy code (UPDATE)

Posted by jeff mutonho <ej...@yahoo.com>.
I'm trying to generate my ejb deploy code (for websphere ) by running "maven was40:generate-ejb-code" and all seems ok until i get an error message saying something about "delete with no primary key"(see below paste).The created dorectory  was40/ejbdeploy is empty :
 
There is part of my output from "maven was40:generate-ejb-code" :

[exec] Generating deployment code
[exec]
[exec]
[exec]   Processing session bean: UniqueIDEjb
[exec]
[exec]   Processing CMP entity bean: GroupEjb
[exec]
[exec] Building: /Support_Persistence-1.1.jar.
[exec]
[exec]
[exec]   Invoking Java Builder on /Support_Persistence-1.1.jar.
[exec]
[exec]   Scrubbing output folder
[exec]
[exec]   Analyzing packages
[exec]
[exec]   Analyzing sources
[exec]
[exec]   Compiling content of ejbModule/net/msl/support/busobject
[exec]
[exec]   Copying all resources on the classpath
[exec]
[exec]   Build done.
[exec]
[exec]   Java build completed
[exec] [*Error] An unexpected exception was thrown.  Halting execution.
[exec]
[exec]
[exec] Shutting down workbench.
    [exec] Shutting down workbench.
    [exec]
    [exec] delete with no primary key
    [exec] >com.ibm.etools.ejbdeploy.EJBDeploymentException (delete with no prim
ary key)
    [exec] >com.ibm.etools.codegen.api.GenerationException (delete with no prima
ry key)
    [exec] com.ibm.ObjectQuery.QueryException: delete with no primary key
    [exec]      at com.ibm.ObjectQuery.crud.queryplan.RdbDeleteQueryTemplate.ini
tialize(RdbDeleteQueryTemplate.java:68)
    [exec]      at com.ibm.ObjectQuery.crud.queryplan.RdbDeleteQueryTemplate.<in
it>(RdbDeleteQueryTemplate.java:21)
    [exec]      at com.ibm.ObjectQuery.crud.queryplan.RdbDeleteQueryTemplate.cre
ateFrom(RdbDeleteQueryTemplate.java:39)
    [exec]      at com.ibm.ObjectQuery.crud.queryplan.QuerySubplan.createQueryTe
mplates(QuerySubplan.java:104)
    [exec]      at com.ibm.ObjectQuery.crud.queryplan.QuerySubplan.initialize(Qu
erySubplan.java:182)
    [exec]      at com.ibm.ObjectQuery.crud.queryplan.QuerySubplan.<init>(QueryS
ubplan.java:37)
    [exec]      at com.ibm.ObjectQuery.crud.queryplan.QueryPlan.createSubplan(Qu
eryPlan.java:35)
    [exec]      at com.ibm.ObjectQuery.crud.queryplan.QueryPlan.initialize(Query
Plan.java:79)
    [exec]      at com.ibm.ObjectQuery.crud.queryplan.QueryPlan.<init>(QueryPlan
.java:29)
    [exec]      at com.ibm.ObjectQuery.crud.queryplan.WriteQueryCreator.createQu
eryPlan(WriteQueryCreator.java:66)
    [exec]      at com.ibm.ObjectQuery.crud.queryplan.WriteQueryCreator.deleteQu
eryPlan(WriteQueryCreator.java:87)
    [exec]      at com.ibm.ObjectQuery.crud.queryplan.WriteQueryCreator.createDe
leteQuery(WriteQueryCreator.java:48)
    [exec]      at com.ibm.etools.ejbdeploy.generators.SqlRemoveString.initializ
e(SqlRemoveString.java:97)
    [exec]      at com.ibm.etools.ejbdeploy.generators.PersisterClass.initialize
(PersisterClass.java:111)
    [exec]      at com.ibm.etools.ejbdeploy.generators.Persister.initialize(Pers
ister.java:56)
    [exec]      at com.ibm.etools.ejbdeploy.generators.CMPBeanDeploy.initialize(
CMPBeanDeploy.java:36)
    [exec]      at com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.deployCMP(
EJBDeployOperation.java:183)
    [exec]      at com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.run(EJBDep
loyOperation.java:587)
    [exec]      at com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.doit(EJBDe
ployOperation.java:228)
    [exec]      at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.invokeDe
ployment(BatchExtension.java:744)
    [exec]      at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.run(Batc
hExtension.java:904)
    [exec]      at com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.execute(Batch
Deploy.java:129)
    [exec]      at com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:68)
    [exec]      at com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:248)
BUILD SUCCESSFUL
 
 
jeff mutonho
 
 
 

Dion Gillard <di...@gmail.com> wrote:
On Wed, 18 Aug 2004 06:39:26 -0700 (PDT), jeff mutonho
wrote:
> Hi guys.
> I've successfully build all the sub-projects that form my application.Some of the sub-projects are EJB projects that will run on a Websphere 4.0 AppServer.
> I know there's a Maven Websphere plugin for Websphere 4.0.I'm struggling to get documentation on how to generate the deploy code, how to go about building the WAR for the web project and eventually the EAR for the whole application.Any pointers , hints,etc
> Please break it down for me :)

You build the war using maven's war goal.

If you're building these things inside WSAD, you might want to set:
maven.war.src=${basedir}/webApplication
maven.war.src.excludes=WEB-INF/classes/*
maven.war.manifest=${pom.build.sourceDirectory}/META-INF/MANIFEST.MF

or something similar.

As for generating the deployment code for the ejbs, see
http://maven-plugins.sourceforge.net/maven-was40-plugin/properties.html
and in particular the maven.was40.ejb.generateCode property.
-- 
http://www.multitask.com.au/people/dion/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Websphere deploy code

Posted by Dion Gillard <di...@gmail.com>.
On Wed, 18 Aug 2004 06:39:26 -0700 (PDT), jeff mutonho
<ej...@yahoo.com> wrote:
> Hi guys.
> I've successfully build all the sub-projects that form my application.Some of the sub-projects are EJB projects that will run on a Websphere 4.0  AppServer.
> I know there's a Maven Websphere plugin for Websphere 4.0.I'm struggling to get documentation on how to generate the deploy code, how to go about building the WAR for the web project and eventually the EAR for the whole application.Any pointers , hints,etc
> Please break it down for me :)

You build the war using maven's war goal.

If you're building these things inside WSAD, you might want to set:
maven.war.src=${basedir}/webApplication
maven.war.src.excludes=WEB-INF/classes/*
maven.war.manifest=${pom.build.sourceDirectory}/META-INF/MANIFEST.MF

or something similar.

As for generating the deployment code for the ejbs, see
http://maven-plugins.sourceforge.net/maven-was40-plugin/properties.html
and in particular the maven.was40.ejb.generateCode property.
-- 
http://www.multitask.com.au/people/dion/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org