Discussion:
[Middlegen-user] Why is JBoss *creating* tables?
Gavin Sinclair
2003-10-01 06:17:02 UTC
Permalink
Hi,

I have spent a lot of time playing with the Middlegen demo, and am
grateful for the effort that has been put into it.

I have spent even more time trying to adapt it to the EJB situation I have
at work, where about 10 tables in an Oracle database need to have entity
beans modelled on them. So I have adapted the sample's build.xml, as is
intended, and have been mostly successful. However, when I run JBoss, I
get the following error message:

org.jboss.deployment.DeploymentException: Error while creating table; -
nested throwable: (java.sql.
SQLException: [DataDirect][Oracle JDBC Driver][Oracle]ORA-00904: invalid
column name
)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.createTable(JDBCStartCommand.java:178)
.....


Now I understand that in the demo, hsqldb is used and it creates tables
all the time. Well, I think I understand. Anyway, I don't see why this
would carry over to Oracle. And having scoured the build script,
configuration files, generated code, etc., I don't see what is directing
JBoss (3.2.1) to exhibit this behaviour.

Does anyone have a possible explanation for this? I haven't given much
detailed information, because it appears to be an artifact of the demo
that hopefully someone will recognise. However, if build.xml or anything
else is required, I'll be happy to provide it. Some baseline information:
- I have removed the airline.ear file and the hsqldb-ds.xml files
from the deploy directory, so there should be no influence from them
- I'm using middlegen v2.0-b1

Thanks very much for any help provided,
Gavin
Eivind Waaler
2003-10-01 06:40:05 UTC
Permalink
Doesn't JBoss create the tables if it can't find them? Could it be that
your jdbc connection in JBoss is not set up with the same schema etc. as
the one Middlegen uses?

Just guessing here really, have not had this problem myself.

.eivind
Post by Gavin Sinclair
Hi,
I have spent a lot of time playing with the Middlegen demo, and am
grateful for the effort that has been put into it.
I have spent even more time trying to adapt it to the EJB situation I have
at work, where about 10 tables in an Oracle database need to have entity
beans modelled on them. So I have adapted the sample's build.xml, as is
intended, and have been mostly successful. However, when I run JBoss, I
org.jboss.deployment.DeploymentException: Error while creating table; -
nested throwable: (java.sql.
SQLException: [DataDirect][Oracle JDBC Driver][Oracle]ORA-00904: invalid
column name
)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.createTable(JDBCStartCommand.java:178)
.....
Now I understand that in the demo, hsqldb is used and it creates tables
all the time. Well, I think I understand. Anyway, I don't see why this
would carry over to Oracle. And having scoured the build script,
configuration files, generated code, etc., I don't see what is directing
JBoss (3.2.1) to exhibit this behaviour.
Does anyone have a possible explanation for this? I haven't given much
detailed information, because it appears to be an artifact of the demo
that hopefully someone will recognise. However, if build.xml or anything
- I have removed the airline.ear file and the hsqldb-ds.xml files
from the deploy directory, so there should be no influence from them
- I'm using middlegen v2.0-b1
Thanks very much for any help provided,
Gavin
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Gavin Sinclair
2003-10-01 20:57:02 UTC
Permalink
Really? Create them if it can't find them? I wasn't aware of that,
and don't like it at all. Hmmm... it's posible that I didn't specify
a schema in the datasource descriptor in JBoss. Thanks!

Gavin
Post by Eivind Waaler
Doesn't JBoss create the tables if it can't find them? Could it be that
your jdbc connection in JBoss is not set up with the same schema etc. as
the one Middlegen uses?
Just guessing here really, have not had this problem myself.
.eivind
Post by Gavin Sinclair
Hi,
I have spent a lot of time playing with the Middlegen demo, and am
grateful for the effort that has been put into it.
I have spent even more time trying to adapt it to the EJB situation I have
at work, where about 10 tables in an Oracle database need to have entity
beans modelled on them. So I have adapted the sample's build.xml, as is
intended, and have been mostly successful. However, when I run JBoss, I
org.jboss.deployment.DeploymentException: Error while creating table; -
nested throwable: (java.sql.
SQLException: [DataDirect][Oracle JDBC Driver][Oracle]ORA-00904: invalid
column name
)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.createTable(JDBCStartCommand.java:178)
.....
Now I understand that in the demo, hsqldb is used and it creates tables
all the time. Well, I think I understand. Anyway, I don't see why this
would carry over to Oracle. And having scoured the build script,
configuration files, generated code, etc., I don't see what is directing
JBoss (3.2.1) to exhibit this behaviour.
Does anyone have a possible explanation for this? I haven't given much
detailed information, because it appears to be an artifact of the demo
that hopefully someone will recognise. However, if build.xml or anything
- I have removed the airline.ear file and the hsqldb-ds.xml files
from the deploy directory, so there should be no influence from them
- I'm using middlegen v2.0-b1
Thanks very much for any help provided,
Gavin
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Konstantin Priblouda
2003-10-01 06:53:04 UTC
Permalink
Post by Gavin Sinclair
Hi,
I have spent a lot of time playing with the
Middlegen demo, and am
grateful for the effort that has been put into it.
I have spent even more time trying to adapt it to
the EJB situation I have
at work, where about 10 tables in an Oracle database
need to have entity
beans modelled on them. So I have adapted the
sample's build.xml, as is
intended, and have been mostly successful. However,
when I run JBoss, I
org.jboss.deployment.DeploymentException: Error
while creating table; -
nested throwable: (java.sql.
SQLException: [DataDirect][Oracle JDBC
Driver][Oracle]ORA-00904: invalid
column name
)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.createTable(JDBCStartCommand.java:178)
Post by Gavin Sinclair
.....
Now I understand that in the demo, hsqldb is used
and it creates tables
all the time. Well, I think I understand. Anyway,
I don't see why this
would carry over to Oracle. And having scoured the
build script,
configuration files, generated code, etc., I don't
see what is directing
JBoss (3.2.1) to exhibit this behaviour.
Does anyone have a possible explanation for this? I
haven't given much
detailed information, because it appears to be an
artifact of the demo
that hopefully someone will recognise. However, if
build.xml or anything
else is required, I'll be happy to provide it. Some
- I have removed the airline.ear file and the
hsqldb-ds.xml files
from the deploy directory, so there should be no
influence from them
- I'm using middlegen v2.0-b1
Loko at the error message carefully - it says that it
does not like DB column name. Most probably is that
some property name is reserved word in oracle.

regards,

=====
----[ Konstantin Pribluda ( ko5tik ) ]----------------
Zu Verst�rkung meines Teams suche ich ab Sofort einen
Softwareentwickler[In] f�r die Festanstellung.
Arbeitsort: Mainz
Skills: Programieren, Kentnisse in OpenSource-Bereich
----[ http://www.pribluda.de ]------------------------

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
Gavin Sinclair
2003-10-01 20:55:05 UTC
Permalink
Post by Konstantin Priblouda
Post by Gavin Sinclair
Does anyone have a possible explanation for this? I
haven't given much
detailed information, because it appears to be an
artifact of the demo
that hopefully someone will recognise. However, if
build.xml or anything
else is required, I'll be happy to provide it. Some
- I have removed the airline.ear file and the
hsqldb-ds.xml files
from the deploy directory, so there should be no
influence from them
- I'm using middlegen v2.0-b1
Loko at the error message carefully - it says that it
does not like DB column name. Most probably is that
some property name is reserved word in oracle.
Well, I created the tables in Oracle a few weeks ago. But I will take
a closer look, like you suggested; maybe middlegen has mis-transcribed
something.

Thanks for the tip,
Gavin
Russell Simpkins
2003-10-02 02:34:01 UTC
Permalink
Have you read anything about j2ee? Rtfm.

-----Original Message-----
From: middlegen-user-***@lists.sourceforge.net
[mailto:middlegen-user-***@lists.sourceforge.net] On Behalf Of Gavin
Sinclair
Sent: Wednesday, October 01, 2003 6:56 PM
To: Eivind Waaler
Subject: Re: [Middlegen-user] Why is JBoss *creating* tables?

Really? Create them if it can't find them? I wasn't aware of that,
and don't like it at all. Hmmm... it's posible that I didn't specify
a schema in the datasource descriptor in JBoss. Thanks!

Gavin
Post by Eivind Waaler
Doesn't JBoss create the tables if it can't find them? Could it be
that
Post by Eivind Waaler
your jdbc connection in JBoss is not set up with the same schema etc.
as
Post by Eivind Waaler
the one Middlegen uses?
Just guessing here really, have not had this problem myself.
.eivind
Post by Gavin Sinclair
Hi,
I have spent a lot of time playing with the Middlegen demo, and am
grateful for the effort that has been put into it.
I have spent even more time trying to adapt it to the EJB situation I
have
Post by Eivind Waaler
Post by Gavin Sinclair
at work, where about 10 tables in an Oracle database need to have
entity
Post by Eivind Waaler
Post by Gavin Sinclair
beans modelled on them. So I have adapted the sample's build.xml, as
is
Post by Eivind Waaler
Post by Gavin Sinclair
intended, and have been mostly successful. However, when I run
JBoss, I
Post by Eivind Waaler
Post by Gavin Sinclair
org.jboss.deployment.DeploymentException: Error while creating table;
-
Post by Eivind Waaler
Post by Gavin Sinclair
nested throwable: (java.sql.
invalid
Post by Eivind Waaler
Post by Gavin Sinclair
column name
)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.createTable(JDBCStartCom
mand.java:178)
Post by Eivind Waaler
Post by Gavin Sinclair
.....
Now I understand that in the demo, hsqldb is used and it creates
tables
Post by Eivind Waaler
Post by Gavin Sinclair
all the time. Well, I think I understand. Anyway, I don't see why
this
Post by Eivind Waaler
Post by Gavin Sinclair
would carry over to Oracle. And having scoured the build script,
configuration files, generated code, etc., I don't see what is
directing
Post by Eivind Waaler
Post by Gavin Sinclair
JBoss (3.2.1) to exhibit this behaviour.
Does anyone have a possible explanation for this? I haven't given
much
Post by Eivind Waaler
Post by Gavin Sinclair
detailed information, because it appears to be an artifact of the
demo
Post by Eivind Waaler
Post by Gavin Sinclair
that hopefully someone will recognise. However, if build.xml or
anything
Post by Eivind Waaler
Post by Gavin Sinclair
else is required, I'll be happy to provide it. Some baseline
- I have removed the airline.ear file and the hsqldb-ds.xml files
from the deploy directory, so there should be no influence from
them
Post by Eivind Waaler
Post by Gavin Sinclair
- I'm using middlegen v2.0-b1
Thanks very much for any help provided,
Gavin
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Gavin Sinclair
2003-10-02 02:43:02 UTC
Permalink
I've certainly read a reasonable amount. All references will be
gratefully followed up.
Post by Russell Simpkins
Have you read anything about j2ee? Rtfm.
-----Original Message-----
Sinclair
Sent: Wednesday, October 01, 2003 6:56 PM
To: Eivind Waaler
Subject: Re: [Middlegen-user] Why is JBoss *creating* tables?
Really? Create them if it can't find them? I wasn't aware of that, and
don't like it at all. Hmmm... it's posible that I didn't specify a
schema in the datasource descriptor in JBoss. Thanks!
Gavin
Post by Eivind Waaler
Doesn't JBoss create the tables if it can't find them? Could it be
that
Post by Eivind Waaler
your jdbc connection in JBoss is not set up with the same schema etc.
as
Post by Eivind Waaler
the one Middlegen uses?
Just guessing here really, have not had this problem myself.
.eivind
Post by Gavin Sinclair
Hi,
I have spent a lot of time playing with the Middlegen demo, and am
grateful for the effort that has been put into it.
I have spent even more time trying to adapt it to the EJB situation I
have
Post by Eivind Waaler
Post by Gavin Sinclair
at work, where about 10 tables in an Oracle database need to have
entity
Post by Eivind Waaler
Post by Gavin Sinclair
beans modelled on them. So I have adapted the sample's build.xml, as
is
Post by Eivind Waaler
Post by Gavin Sinclair
intended, and have been mostly successful. However, when I run
JBoss, I
Post by Eivind Waaler
Post by Gavin Sinclair
org.jboss.deployment.DeploymentException: Error while creating table;
-
Post by Eivind Waaler
Post by Gavin Sinclair
nested throwable: (java.sql.
invalid
Post by Eivind Waaler
Post by Gavin Sinclair
column name
)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.createTable(JDBCStartCom
mand.java:178)
Post by Eivind Waaler
Post by Gavin Sinclair
.....
Now I understand that in the demo, hsqldb is used and it creates
tables
Post by Eivind Waaler
Post by Gavin Sinclair
all the time. Well, I think I understand. Anyway, I don't see why
this
Post by Eivind Waaler
Post by Gavin Sinclair
would carry over to Oracle. And having scoured the build script,
configuration files, generated code, etc., I don't see what is
directing
Post by Eivind Waaler
Post by Gavin Sinclair
JBoss (3.2.1) to exhibit this behaviour.
Does anyone have a possible explanation for this? I haven't given
much
Post by Eivind Waaler
Post by Gavin Sinclair
detailed information, because it appears to be an artifact of the
demo
Post by Eivind Waaler
Post by Gavin Sinclair
that hopefully someone will recognise. However, if build.xml or
anything
Post by Eivind Waaler
Post by Gavin Sinclair
else is required, I'll be happy to provide it. Some baseline
- I have removed the airline.ear file and the hsqldb-ds.xml files
from the deploy directory, so there should be no influence from
them
Post by Eivind Waaler
Post by Gavin Sinclair
- I'm using middlegen v2.0-b1
Thanks very much for any help provided,
Gavin
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Fabrizio Di Giuseppe
2003-10-02 12:08:10 UTC
Permalink
Post by Gavin Sinclair
And having scoured the build script,
configuration files, generated code, etc., I don't see what is
directing
JBoss (3.2.1) to exhibit this behaviour.
That's a JBoss configuration files issue. The jboss file
jbosscmp-jdbc.xml inside META-INF indicates if a table must be created
or not. That's file is generated by xdoclet. So you have to change the
xdoclet ant task. Take a look at this build file fragment:

<ejbdoclet
destdir="${xdoclet.generated}/src"
excludedtags="@version,@author" ejbspec="2.0"
force="${xdoclet.force}"
...

<jboss
version="3.0" xmlencoding="UTF-8" typemapping="Oracle9i"
datasource="java:/EntityDB" destDir="${xdoclet.generated}/META-INF"
createTable="false" removeTable="false"
/>

...

</ejbdoclet>

The jboss subtask has the two options to control the table creation and
deletion: createTable and removeTable.

Bye
Gavin Sinclair
2003-10-02 12:40:02 UTC
Permalink
Post by Fabrizio Di Giuseppe
Post by Gavin Sinclair
And having scoured the build script,
configuration files, generated code, etc., I don't see what is directing
JBoss (3.2.1) to exhibit this behaviour.
That's a JBoss configuration files issue. The jboss file
jbosscmp-jdbc.xml inside META-INF indicates if a table must be created
or not. That's file is generated by xdoclet. So you have to change the
[...]
Thank you very much, Fabrizio.

Regards,
Gavin
Trieu, Danny
2003-10-03 15:15:04 UTC
Permalink
HI, I followed you instruction but still I've got the following exception:

09:39:26,625 INFO [MainDeployer] Deployed package:
file:/D:/jboss/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/airline.
09:42:23,109 ERROR [LogInterceptor] RuntimeException:
java.lang.NullPointerException
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createBeanClassInstance(JDBC
StoreManager.java:555)
at
org.jboss.ejb.plugins.CMPPersistenceManager.createBeanClassInstance(CMPPersi
stenceManager.java:137)
at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createBeanC
lassInstance(CachedConnectionInterce
at
org.jboss.ejb.EntityContainer.createBeanClassInstance(EntityContainer.java:2
26)
at
org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:146
)
at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInt
erceptor.java:79)
at
org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor
java:61)

-----Original Message-----
From: Russell Simpkins [mailto:***@hotmail.com]
Sent: Wednesday, October 01, 2003 9:31 PM
To: middlegen-***@lists.sourceforge.net
Subject: RE: [Middlegen-user] Why is JBoss *creating* tables?


Have you read anything about j2ee? Rtfm.

-----Original Message-----
From: middlegen-user-***@lists.sourceforge.net
[mailto:middlegen-user-***@lists.sourceforge.net] On Behalf Of Gavin
Sinclair
Sent: Wednesday, October 01, 2003 6:56 PM
To: Eivind Waaler
Subject: Re: [Middlegen-user] Why is JBoss *creating* tables?

Really? Create them if it can't find them? I wasn't aware of that,
and don't like it at all. Hmmm... it's posible that I didn't specify
a schema in the datasource descriptor in JBoss. Thanks!

Gavin
Post by Eivind Waaler
Doesn't JBoss create the tables if it can't find them? Could it be
that
Post by Eivind Waaler
your jdbc connection in JBoss is not set up with the same schema etc.
as
Post by Eivind Waaler
the one Middlegen uses?
Just guessing here really, have not had this problem myself.
.eivind
Post by Gavin Sinclair
Hi,
I have spent a lot of time playing with the Middlegen demo, and am
grateful for the effort that has been put into it.
I have spent even more time trying to adapt it to the EJB situation I
have
Post by Eivind Waaler
Post by Gavin Sinclair
at work, where about 10 tables in an Oracle database need to have
entity
Post by Eivind Waaler
Post by Gavin Sinclair
beans modelled on them. So I have adapted the sample's build.xml, as
is
Post by Eivind Waaler
Post by Gavin Sinclair
intended, and have been mostly successful. However, when I run
JBoss, I
Post by Eivind Waaler
Post by Gavin Sinclair
org.jboss.deployment.DeploymentException: Error while creating table;
-
Post by Eivind Waaler
Post by Gavin Sinclair
nested throwable: (java.sql.
invalid
Post by Eivind Waaler
Post by Gavin Sinclair
column name
)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.createTable(JDBCStartCom
mand.java:178)
Post by Eivind Waaler
Post by Gavin Sinclair
.....
Now I understand that in the demo, hsqldb is used and it creates
tables
Post by Eivind Waaler
Post by Gavin Sinclair
all the time. Well, I think I understand. Anyway, I don't see why
this
Post by Eivind Waaler
Post by Gavin Sinclair
would carry over to Oracle. And having scoured the build script,
configuration files, generated code, etc., I don't see what is
directing
Post by Eivind Waaler
Post by Gavin Sinclair
JBoss (3.2.1) to exhibit this behaviour.
Does anyone have a possible explanation for this? I haven't given
much
Post by Eivind Waaler
Post by Gavin Sinclair
detailed information, because it appears to be an artifact of the
demo
Post by Eivind Waaler
Post by Gavin Sinclair
that hopefully someone will recognise. However, if build.xml or
anything
Post by Eivind Waaler
Post by Gavin Sinclair
else is required, I'll be happy to provide it. Some baseline
- I have removed the airline.ear file and the hsqldb-ds.xml files
from the deploy directory, so there should be no influence from
them
Post by Eivind Waaler
Post by Gavin Sinclair
- I'm using middlegen v2.0-b1
Thanks very much for any help provided,
Gavin
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
middlegen-user mailing list
middlegen-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/middlegen-user


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
middlegen-user mailing list
middlegen-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/middlegen-user


This message and any attachments are for the intended recipient(s) only and may contain privileged, confidential and/or proprietary information about Downey Savings or its customers, which Downey Savings does not intend to disclose to the public. If you received this message by mistake, please notify the sender by reply e-mail and delete the message and attachments.
Trieu, Danny
2003-10-03 15:16:08 UTC
Permalink
I follow you instruction, but still I've got the following exeption:

09:39:26,625 INFO [MainDeployer] Deployed package:
file:/D:/jboss/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/airline.
09:42:23,109 ERROR [LogInterceptor] RuntimeException:
java.lang.NullPointerException
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createBeanClassInstance(JDBC
StoreManager.java:555)
at
org.jboss.ejb.plugins.CMPPersistenceManager.createBeanClassInstance(CMPPersi
stenceManager.java:137)
at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createBeanC
lassInstance(CachedConnectionInterce
at
org.jboss.ejb.EntityContainer.createBeanClassInstance(EntityContainer.java:2
26)
at
org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:146
)
at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInt
erceptor.java:79)
at
org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor
java:61)

-----Original Message-----
From: Fabrizio Di Giuseppe [mailto:***@ianus.net]
Sent: Thursday, October 02, 2003 7:08 AM
To: middlegen-***@lists.sourceforge.net
Subject: Re: [Middlegen-user] Why is JBoss *creating* tables?
Post by Gavin Sinclair
And having scoured the build script,
configuration files, generated code, etc., I don't see what is
directing
JBoss (3.2.1) to exhibit this behaviour.
That's a JBoss configuration files issue. The jboss file
jbosscmp-jdbc.xml inside META-INF indicates if a table must be created
or not. That's file is generated by xdoclet. So you have to change the
xdoclet ant task. Take a look at this build file fragment:

<ejbdoclet
destdir="${xdoclet.generated}/src"
excludedtags="@version,@author" ejbspec="2.0"
force="${xdoclet.force}"
...

<jboss
version="3.0" xmlencoding="UTF-8"
typemapping="Oracle9i"
datasource="java:/EntityDB"
destDir="${xdoclet.generated}/META-INF"
createTable="false" removeTable="false"
/>

...

</ejbdoclet>

The jboss subtask has the two options to control the table creation and
deletion: createTable and removeTable.

Bye



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
middlegen-user mailing list
middlegen-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/middlegen-user


This message and any attachments are for the intended recipient(s) only and may contain privileged, confidential and/or proprietary information about Downey Savings or its customers, which Downey Savings does not intend to disclose to the public. If you received this message by mistake, please notify the sender by reply e-mail and delete the message and attachments.
Trieu, Danny
2003-10-03 15:19:06 UTC
Permalink
Sorry, I mean this exception:
ejbdoclet:

BUILD FAILED
file:D:/middlegen-2.0-b1/samples/build.xml:299: Class
xdoclet.modules.jboss.ejb.JBossSubTask doesn't support the "createtable"
attribute.

Total time: 10 seconds

-----Original Message-----
From: Fabrizio Di Giuseppe [mailto:***@ianus.net]
Sent: Thursday, October 02, 2003 7:08 AM
To: middlegen-***@lists.sourceforge.net
Subject: Re: [Middlegen-user] Why is JBoss *creating* tables?
Post by Gavin Sinclair
And having scoured the build script,
configuration files, generated code, etc., I don't see what is
directing
JBoss (3.2.1) to exhibit this behaviour.
That's a JBoss configuration files issue. The jboss file
jbosscmp-jdbc.xml inside META-INF indicates if a table must be created
or not. That's file is generated by xdoclet. So you have to change the
xdoclet ant task. Take a look at this build file fragment:

<ejbdoclet
destdir="${xdoclet.generated}/src"
excludedtags="@version,@author" ejbspec="2.0"
force="${xdoclet.force}"
...

<jboss
version="3.0" xmlencoding="UTF-8"
typemapping="Oracle9i"
datasource="java:/EntityDB"
destDir="${xdoclet.generated}/META-INF"
createTable="false" removeTable="false"
/>

...

</ejbdoclet>

The jboss subtask has the two options to control the table creation and
deletion: createTable and removeTable.

Bye



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
middlegen-user mailing list
middlegen-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/middlegen-user


This message and any attachments are for the intended recipient(s) only and may contain privileged, confidential and/or proprietary information about Downey Savings or its customers, which Downey Savings does not intend to disclose to the public. If you received this message by mistake, please notify the sender by reply e-mail and delete the message and attachments.
Loading...