Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Problem to compile EJB
Problem to compile EJB [message #54971] Thu, 29 May 2003 21:24 Go to next message
Eclipse UserFriend
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 messageGo to next message
Eclipse UserFriend
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 messageGo to next message
Eclipse UserFriend
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 messageGo to next message
Eclipse UserFriend
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>
д
Re: Problem to compile EJB [message #55985 is a reply to message #55935] Fri, 30 May 2003 13:40 Go to previous message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
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>
> д
Previous Topic:Patching files (org.eclipse.compare.internal.patch)
Next Topic:New Wizard Problem
Goto Forum:
  


Current Time: Sun Jun 30 13:52:48 GMT 2024

Powered by FUDForum. Page generated in 0.03397 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top