logo       


Ant task can't find DontCloseLog4JLogSystem: msg#00000

Subject: Ant task can't find DontCloseLog4JLogSystem
Hi,

I am attempting to call the middlegen ant task and it
starts but fails with a ClassNotFoundException for the
class middlegen.DontCloseLog4JLogSystem. The middlegen
jar is in the classpathref that I provide in the
taskdef, and I've looked in the jar and verified that
the class is in there. The jar is obviously being
picked up because middlegen is starting, so I'm not
sure why it's not finding this class.

I'm guessing this is a problem with my setup, but
everything seems in order, so any advice on this would
be appreciated.

thanks,
Lou

My ant target:

   <target name="new_app:middlegen" if="setup.app.db">

       <taskdef name="middlegen"
classpathref="compile.classpath"
classname="middlegen.MiddlegenTask"/>

       <middlegen
           appname="${app.name}"
           prefsdir="middlegen_prefs"
           gui="false"
           databaseurl="jdbc:mysql://${db.host}/"
           driver="com.mysql.jdbc.Driver"
           username="${db.user}"
           password="${db.password}"
           catalog="${db.app.schema}"
         >
           <!-- Hibernate Plugin -->
           <hibernate
              
destination="${src.path}/nextag/${app.name}/bean"
               package="nextag.${app.name}.bean"
                genXDocletTags="true"
              
javaTypeMapper="middlegen.plugins.hibernate.HibernateJavaTypeMapper"
            />
       </middlegen>
     </target>

Error message:

[middlegen] Database URL:jdbc:mysql://localhost/
[middlegen] No <table> elements specified. Reading all
tables. This might take a while...
[middlegen] java.lang.ClassNotFoundException:
middlegen.DontCloseLog4JLogSystem





-------------------------------------------------------
SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate
online with coworkers and clients while avoiding the high cost of travel and
communications. There is no equipment to buy and you can meet as often as
you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe