Eivind,
Thanks for your response. It is definitely connecting to the db. It tells
me so in the ant output AND I see some kind of preference file output that
contains all my table names. I have tried running with the GUI and the
tables do show. When I click on the generate button, nothing happens.
I actually copied my ant setup from the sample files so they should be
pretty close, but I didn't try to actually run the samples.
Any ideas? Do you see anything missing in my syntax that should be there.
Its definitely seeing the tables but being stubborn about generating them!
Thanks again,
Bill Pfeiffer
----- Original Message -----
From: "Eivind Waaler" <[EMAIL PROTECTED]>
To: "Bill Pfeiffer" <[EMAIL PROTECTED]>
Cc: "middlegen-user" <[EMAIL PROTECTED]>
Sent: Wednesday, September 04, 2002 2:50 AM
Subject: Re: [Middlegen-user] repost:1.1 beta from cvs fails to generate
code
> Hi Bill,
>
> Are you sure the tables are being read? Have you tried running middlegen
> with the GUI? This should display your tables if everything is ok with the
> connection and reading of database..
>
> Have you got the samples running? A good start if you get the samples
> working might be to just replace the samples db settings with your own.
>
> .eivind
>
> On Tue, 3 Sep 2002, Bill Pfeiffer wrote:
>
> > Still can't get this working on the latest version from cvs. Should I
just fire up the debugger on ant to track this down? Does ejb generation
just not work on 1.1 beta and I should stick to 1.0? Any other ideas?
> >
> > Thanks for any info
> >
> > Bill Pfeiffer
> >
> > -------------------
> > I been playing almost all day with this attempting to get it to gen. It
connects fine and appears to read the tables but will NOT generate out my
beans.
> >
> > Here's the ant script:
> > -------------------------------
> > <target name="email_middlegen" description="Run Middlegen"
unless="middlegen.skip"
> > depends="check-driver-present,panic-if-driver-not-present" >
> >
> > <mkdir dir="${src.gen.dir}"/>
> >
> > <taskdef name="middlegen" classname="middlegen.MiddlegenTask"
> > classpathref="middlegen"/>
> >
> > <middlegen appname="espeed"
> > prefsdir="${src.dir}"
> > gui="false"
> > initialContextFactory="${java.naming.factory.initial}"
> > providerURL="${java.naming.provider.url}"
> > datasourceJNDIName="java:comp/env/jdbc/espeed"
> > driver="${database.driver}"
> > schema="UTILITY"
> > username="${database.userid}"
> > password="${database.password}"
> > databaseurl="${database.url}">
> >
> >
> > <!--
> > <table name="EMAIL_ITEM" generate="true" />
> > <table name="EMAIL_RECIPIENTS" generate="true" />
> > <table name="EMAIL_ATTACHMENTS" generate="true" />
> > <table name="EMAIL_ARGS" generate="true" />
> > <table name="EMAIL_TEMPLATE" generate="true" />
> > <table name="EMAIL_TEMPLATE_ARGS" generate="true" /> -->
> >
> > <CMP20 destination="${src.gen.dir}"
> > package="org.arbfile.ejb.email"
> > interfacepackage="org.arbfile.ejb.email.interfaces"
> > jndiprefix="org/arbfile/ejb/espeed/email/"
> > generatepk="true"
> > dataobject="true"
> > viewtype="local"
> > readonly="false"
> > >
> > <jboss/>
> > </CMP20>
> >
> >
> > Output from build:
> > ------------------------
> > C:\Work\AF\af-j2ee>C:\java\jakarta-ant-1.5\bin\ant.bat middlegen
> > Buildfile: build.xml
> >
> > middlegen:
> > Overriding previous definition of reference to middlegen
> > (middlegen.Middlegen 379 ) Registering plugin
simple->middlegen.Plugin
> > (middlegen.Middlegen 379 ) Registering plugin
java->middlegen.java.JavaPlugin
> > (middlegen.Middlegen 379 ) Registering plugin
plugin->middlegen.Plugin
> > (middlegen.Middlegen 379 ) Registering plugin
cmp20->middlegen.plugins.entitybean.CMP20Plugin
> > (middlegen.Middlegen 379 ) Registering plugin
bmp20->middlegen.plugins.entitybean.BMP20Plugin
> > (middlegen.Middlegen 379 ) Registering plugin
html->middlegen.plugins.html.HTMLReportPlugin
> > (middlegen.Middlegen 379 ) Registering plugin
sunjdo10->middlegen.plugins.jdo.sun.SunJDO10Plugin
> > (middlegen.Middlegen 379 ) Registering plugin
servlet->middlegen.plugins.servlet.ServletPlugin
> > (middlegen.Middlegen 379 ) Registering plugin
struts->middlegen.plugins.struts.StrutsPlugin
> > (middlegen.Middlegen 379 ) Registering plugin
jsp->middlegen.plugins.struts.JspPlugin
> >
> > check-driver-present:
> >
> > panic-if-driver-not-present:
> >
> > email_middlegen:
> > (middlegen.Middlegen 379 ) Registering plugin
simple->middlegen.Plugin
> > (middlegen.Middlegen 379 ) Registering plugin
java->middlegen.java.JavaPlugin
> > (middlegen.Middlegen 379 ) Registering plugin
plugin->middlegen.Plugin
> > (middlegen.Middlegen 379 ) Registering plugin
cmp20->middlegen.plugins.entitybean.CMP20Plugin
> > (middlegen.Middlegen 379 ) Registering plugin
bmp20->middlegen.plugins.entitybean.BMP20Plugin
> > (middlegen.Middlegen 379 ) Registering plugin
html->middlegen.plugins.html.HTMLReportPlugin
> > (middlegen.Middlegen 379 ) Registering plugin
sunjdo10->middlegen.plugins.jdo.sun.SunJDO10Plugin
> > (middlegen.Middlegen 379 ) Registering plugin
servlet->middlegen.plugins.servlet.ServletPlugin
> > (middlegen.Middlegen 379 ) Registering plugin
struts->middlegen.plugins.struts.StrutsPlugin
> > (middlegen.Middlegen 379 ) Registering plugin
jsp->middlegen.plugins.struts.JspPlugin
> > [middlegen] Database URL:jdbc:oracle:oci8:@WPFE9550
> > [middlegen] No <table> elements specified. Reading all tables. This
might take a while...
> > [middlegen] Updated preferences in
C:\Work\AF\af-j2ee\src\espeed-prefs.properties
> >
> > BUILD SUCCESSFUL
> > Total time: 8 seconds
> >
> > </middlegen>
> > </target>
> > --------------------------------
> >
> > Everything appears to work but nothing gets generated.
> >
> >
> > Bill Pfeiffer
> >
> >
> >
> > ----------------
> >
> > Also, when table elements are included in middlegen task it pukes with:
java.lang.IllegalArgumentException: argument type mismatch
> >
> >
> >
> >
>
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
middlegen-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/middlegen-user