Problem to compile EJB [message #54971] |
Thu, 29 May 2003 21:24 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 #55161 is a reply to message #54971] |
Fri, 30 May 2003 01:46 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: yongw2.21cn.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> д
|
|
|
Re: Problem to compile EJB [message #55855 is a reply to message #55161] |
Fri, 30 May 2003 12:53 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: nick.mao.cibc.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> д
|
|
|
Re: Problem to compile EJB [message #55935 is a reply to message #55855] |
Fri, 30 May 2003 13:15 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: nick.mao.cibc.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.03251 seconds