Problem to compile EJB [message #54971] |
Thu, 29 May 2003 17:24  |
Eclipse User |
|
|
|
Originally posted by: nick.mao.cibc.com
I'm sure there must be something wrong, but I cannot figure it out. Here's
the problem.
I'm runing Ant in Eclipse 2.1 with the simple target below.
<!-- Run appc to create the deployable jar file -->
<target name="appc">
<java classname="weblogic.appc">
<arg line="-verbose ${dist}/basic_converter.jar"/>
</java>
</target>
I'm getting the following error.
appc:
[java] [J2EE:160106]ERROR: The source file,
'./dist/basic_converter.jar', could not be found.
[java] null
However, the file ./dist/basic_converter.jar DOES exist. I can simply run
the same script in DOS prompt under the same directory. Even in Eclispe, if
I put in a full path, it seems fine. I'm wondering what's wrong with the
relative path (./dist/).
In addition, with the full path, I'm getting another error.
appc:
[java] [appc] Created working directory: C:\Temp\appcgen
[java] java.lang.NoClassDefFoundError: javax/ejb/SessionBean
The class is in weblogic.jar file and the file is in classpath, otherwise
appc won't be able to start.
Hope someone can lend a hand. Thanks in advance.
Nick
|
|
|
|
|
|
Re: Problem to compile EJB [message #55985 is a reply to message #55935] |
Fri, 30 May 2003 09:40  |
Eclipse User |
|
|
|
Please log a bug report with all the relevant details against the Platform
Ant component
Darins
"Nick Mao" <nick.mao@cibc.com> wrote in message
news:bb7lfl$obd$1@rogue.oti.com...
> Sorry Yong, you are right. After I put it into system classpath and
> restarted Eclipse, it went. However, it DOES mean that classpath settings
in
> Eclipse has nothing to do with "fork".
>
> "Nick Mao" <nick.mao@cibc.com> wrote in message
> news:bb7k7n$n89$1@rogue.oti.com...
> > I did try fork. However, it doesn't seem to be copying the classpath
over.
> > It gives me an error, although weblogic.jar is defined in both project
> > classpath and Ant's ( and it's in my default system classpath as well).
> > Drives me nuts.
> >
> > appc:
> > [java] java.lang.NoClassDefFoundError: weblogic/appc
> > [java] Exception in thread "main"
> > [java] Java Result: 1
> >
> >
> > "Yong WANG" <yongw2@21cn.com> wrote in message
> > news:bb6d60$uqp$1@rogue.oti.com...
> > > I have encountered a similar problem before, I make a workaround to
set
> > the
> > > "fork" property to "true" in the "java" task, but i still do not know
> why
> > > ANT fails in the Eclipse while succeeds in the command line mode.
> > >
> > > "Nick Mao" <nick.mao@cibc.com>
> д
|
|
|
Powered by
FUDForum. Page generated in 0.03633 seconds