Mailing List
Cocoon - MVC web framework based on XML/XSL
Maven - Project building tool
Ant - A Java building tool
Axis - Java SOAP implementation
Lucene - Full-featured text search engine APIs
Fop - Create PDF, PCL, PS, SVG, XML driven by XSL formatting objects.
Log4J - A log library
POI - Java Excel, Word and other Microsoft Office files manipulating library
Oracle database, Microsoft SQL server ...
MySQL - an open source database
Red Hat Linux Installation and Config discussions ...
Click here to subscribe to Jakatar mailing list
log4j warning: No appenders could be found
java security AccessControlException: access denied (java io FilePermission clie
java lang InstantiationException: org apache tools ant Main
Apache Axis Tutorial
Struts <logic iterate >
log4j properties How to parse outpu to multiple files
configuring log4j with BEA Weblogic 8 1
How to use XSL FOP Java together
JSP precompile
Servlet File Download dialog problem (IE6,Adobe 6 0)
Proposal: Adding jar manifest classpath in jar and war plugins
Unsupported major minor version 48 0 problem while running the an
   telope task
java security AccessControlException: access denied (java io FilePermission
axis wsdl2java Ant Task usage
net sf hibernate MappingException: Error reading resource: test/User hbm xml
Building EAR ANT Script for websphere 5 0
jsp data into Excel
Classpath problem
Jboss 3 2 3+ vs Tomcat Axis Question
RE: How to include jars and add them into the MANIFEST MF/Class Path
Printing problem
Couldn 't find trusted certificate
Please : How can one install ant 1 6 0 under Eclipse 2 1 ?
Excel: Too many different cell formats
Running junit tests fails
XDoclet, Struts and Maven: Where to start? SOLUTION
1 3 final: now giving me java io FileNotFoundException (Too many
open files)
AXIS: tomcat timeout ?
Power your search with and, or, +, -, or "some phrase" operators.


2004-01-22       - By Conway, Ken

Reply:     1     2     3     4  

Thanks for the reply Doug. . .

I 'll fill in some more detail. I 've tried doing what you 've suggested
regarding using a <classpath > in the ant build file. Here 's the

<java classname= "weblogic.ejbc " fork= "true " >
<arg value= "-classpath "/ >
    <arg path= "${projectclasspath} "/ >
<arg value= "${deploy.dir}/${ejb}.temp.jar "/ >
<arg value= "${deploy.dir}/${ejb}.jar "/ >
<classpath path= "${ejbcpath} "/ >
</java >

where projectclasspath is a path containing all of the relavent classes
for the ejb compile and ejbcpath is the path to the weblogic.jar.

When I run ant with my environment CLASSPATH not set, life is grand on a
Windows 2003 Server but, on my HP Unix box, life goes south. I get a

If I run weblogic.ejbc from the command line (with my environment
CLASSPATH set) as follows:

Java weblogic.ejbc input.jar output.jar

Everything works fine. So therein lies the reason for my question. It
seems that there is some difference in my HP Envrionment that is
preventing me from running the ant task properly but, I know that it
will work if the environment CLASSPATH is set.


-- --Original Message-- --
From: Doug Lochart [mailto:dlochart@(protected)]
Sent: Thursday, January 22, 2004 11:59 AM
To: Ant Users List
Subject: Re: InstantiationException

You probably run into problems with your build because you are not
a <classpath > and using it in your scripts.
If you are doing this then maybe its a custom task that your build
on that isn 't getting loaded. If thats the case
put the jar of your custome task in the ANT_HOME/lib directory and voila
magic happens =)

If thats not it please give more info on why the build is failing. You
should try NOT to set a CLASSPATH when
you use ant ... it is so not necessary.


Now I 've gained some understanding
Of the only world that we see.
Things that I once dreamed of
Have become reality.

These walls that still surround me
Still contain the same old me,
Just one more who 's searching for
A world that ought to be.
-- -- Original Message -- --
From: "Conway, Ken " <Ken.Conway@(protected) >
To: <user@(protected) >
Sent: Thursday, January 22, 2004 1:33 PM
Subject: InstantiationException

Can anyone tell me what I need to do to run ant 1.6.0 with a CLASSPATH

Current if I try to do so, the following exception occurs:


at java.lang.Class.newInstance0(Native Method)

at java.lang.Class.newInstance(Unknown Source)



Of course, when I unset the CLASSPATH ant runs but I then run into
problems with my build process.

Ken Conway

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)