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/19 19:06:43 UTC

RE: Wesphere deploy code

Hi
 
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
 


		
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!

Wesphere deploy code on Linux

Posted by jeff mutonho <ej...@yahoo.com>.
Hi
 
Please guys help me. I've hit a snag and have tried a few things without any success.The websphere deploy tool is failing to finish generating deploy code for my project because somehow it can't locate the classes (?).There's part of my console output(with the error message) :
                                                                            
    [exec]   Validation of Vasc_Persistence-1.1 by WS-I Message Validator has started...
    [exec]                                                                                
    [exec]   Validation of Vasc_Persistence-1.1 by WS-I Message Validator is complete. All
    [exec]                                                                                
    [exec]   Removing EJB XML Validator messages on Vasc_Persistence-1.1 has started...
    [exec]                                                                                
    [exec]   Messages removed.
    [exec]                                                                                
    [exec]   Validation of Vasc_Persistence-1.1 by EJB XML Validator has started...
    [exec]                                                                                
    [exec]   Validation of Vasc_Persistence-1.1 by EJB XML Validator ended abnormally. The
    [exec]                                                                                
    [exec]   Removing Map Validator messages on Vasc_Persistence-1.1 has started...
    [exec]                                                                                
    [exec]   Messages removed.
    [exec]                                                                                
    [exec]   Validation of Vasc_Persistence-1.1 by Map Validator has started...
    [exec]
    [exec]   Validation of Vasc_Persistence-1.1 by Map Validator is complete. All known pr
    [exec]                                                                                
    [exec] [*Warning] /Vasc_Persistence-1.1(Method: findByPrimaryKey(net.msl.vasc.busobject.GroupKey), Class: net.msl.vasc.busobject.GroupEjbHome): CHKJ2433W: Cannot validate findByPrimaryKey(net.msl.vasc.busobject.GroupKey) because net.msl.common.busobject.BusinessObjectKey cannot be reflected. Check the classpath.
    [exec] 
    [exec]                                                                                
    [exec] [*Error] /Vasc_Persistence-1.1(Class: net.msl.vasc.busobject.GroupKey): CHKJ2907E: Type net.msl.vasc.busobject.GroupKey, or one of its supertypes, cannot be reflected. Check the classpath.                                                                 
 
I can't think of anything I might need to look at.
 
jeff mutonho


jeff mutonho <ej...@yahoo.com> wrote:
>Are the schema files in the right place under META-INF?

There is a directory called Schema under META-INF and it contains all the schema files.
Isn't that the correct place?

jeff mutonho


Dion Gillard wrote:
On Thu, 19 Aug 2004 10:06:43 -0700 (PDT), jeff mutonho
wrote:
> Hi
> 
> 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 :
> 

> [exec] Processing CMP entity bean: GroupEjb
> [exec]

> [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

Are the schema files in the right place under META-INF?
-- 
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!?
New and Improved Yahoo! Mail - 100MB free storage!
		
---------------------------------
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.

Re: Wesphere deploy code

Posted by jeff mutonho <ej...@yahoo.com>.
>Are the schema files in the right place under META-INF?
 
There is a directory called Schema under META-INF and it contains all the schema files.
Isn't that the correct place?
 
jeff mutonho


Dion Gillard <di...@gmail.com> wrote:
On Thu, 19 Aug 2004 10:06:43 -0700 (PDT), jeff mutonho
wrote:
> Hi
> 
> 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 :
> 

> [exec] Processing CMP entity bean: GroupEjb
> [exec]

> [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

Are the schema files in the right place under META-INF?
-- 
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!?
New and Improved Yahoo! Mail - 100MB free storage!

Re: Wesphere deploy code

Posted by Dion Gillard <di...@gmail.com>.
On Thu, 19 Aug 2004 10:06:43 -0700 (PDT), jeff mutonho
<ej...@yahoo.com> wrote:
> Hi
> 
> 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 :
> 

> [exec]   Processing CMP entity bean: GroupEjb
> [exec]

>     [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

Are the schema files in the right place under META-INF?
-- 
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