Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

no longer able to build ejb using appc (WLS 8.1)

2 views
Skip to first unread message

Tim Perrigo

unread,
Apr 21, 2003, 8:23:32 AM4/21/03
to
I'm in the process of re-writing some build files to make use of the new
appc compiler, but I started to get a rather confusing error. Although
the EJB builds (using ejbc) and deploys fine on WLS 7, when I try to
build using appc I get a slew of messages such as "In EJB MyEJB, the
bean class must implement directly or indirectly the
javax.ejb.SessionBean interface" (which it does), or "In EJB MyEJB,
method remove() defined in the local interface either does not exist in
the bean class, or it is not a public method in the bean class". A
portion of the error message is listed below. I'm sure it must be some
kind of problem with my configuration...has anyone seen this before?
Any suggestions?

Thanks in advance,
Tim


weblogic.utils.compiler.ToolFailureException: [J2EE:160121]Errors
encountered wh
ile compiling module 'D:\workspace\TRIPS\deployment\build':

In EJB VASKeyGeneratorEJB, the bean class must implement directly or
indirectly
the javax.ejb.SessionBean interface.

In EJB VASKeyGeneratorEJB, method remove() defined in the local
interface either
does not exist in the bean class, or it is not a public method. Each
method in
the local interface must have a corresponding public method in the bean
class.

In EJB VASKeyGeneratorEJB, method getEJBHome() defined in the local
interface ei
ther does not exist in the bean class, or it is not a public method.
Each method
in the local interface must have a corresponding public method in the
bean clas
s.

In EJB VASKeyGeneratorEJB, method getPrimaryKey() defined in the local
interface
either does not exist in the bean class, or it is not a public method.
Each met
hod in the local interface must have a corresponding public method in
the bean c
lass.

In EJB VASKeyGeneratorEJB, method getHandle() defined in the local
interface eit
her does not exist in the bean class, or it is not a public method. Each
method
in the local interface must have a corresponding public method in the
bean class
.

In EJB VASKeyGeneratorEJB, method isIdentical(javax.ejb.EJBObject)
defined in th
e local interface either does not exist in the bean class, or it is not
a public
method. Each method in the local interface must have a corresponding
public met
hod in the bean class.

In EJB VASKeyGeneratorEJB, method remove() defined in the local
interface either
does not exist in the bean class, or it is not a public method. Each
method in
the local interface must have a corresponding public method in the bean
class.

In EJB VASKeyGeneratorEJB, method getPrimaryKey() defined in the local
interface
either does not exist in the bean class, or it is not a public method.
Each met
hod in the local interface must have a corresponding public method in
the bean c
lass.

In EJB VASKeyGeneratorEJB, method isIdentical(javax.ejb.EJBLocalObject)
defined
in the local interface either does not exist in the bean class, or it is
not a p
ublic method. Each method in the local interface must have a
corresponding publi
c method in the bean class.

In EJB VASKeyGeneratorEJB, method getEJBLocalHome() defined in the local
interfa
ce either does not exist in the bean class, or it is not a public
method. Each m
ethod in the local interface must have a corresponding public method in
the bean
class.
- with nested exception:
[
In EJB VASKeyGeneratorEJB, the bean class must implement directly or
indirectly
the javax.ejb.SessionBean interface.

In EJB VASKeyGeneratorEJB, method remove() defined in the local
interface either
does not exist in the bean class, or it is not a public method. Each
method in
the local interface must have a corresponding public method in the bean
class.

In EJB VASKeyGeneratorEJB, method getEJBHome() defined in the local
interface ei
ther does not exist in the bean class, or it is not a public method.
Each method
in the local interface must have a corresponding public method in the
bean clas
s.

In EJB VASKeyGeneratorEJB, method getPrimaryKey() defined in the local
interface
either does not exist in the bean class, or it is not a public method.
Each met
hod in the local interface must have a corresponding public method in
the bean c
lass.

In EJB VASKeyGeneratorEJB, method getHandle() defined in the local
interface eit
her does not exist in the bean class, or it is not a public method. Each
method
in the local interface must have a corresponding public method in the
bean class
.

In EJB VASKeyGeneratorEJB, method isIdentical(javax.ejb.EJBObject)
defined in th
e local interface either does not exist in the bean class, or it is not
a public
method. Each method in the local interface must have a corresponding
public met
hod in the bean class.

In EJB VASKeyGeneratorEJB, method remove() defined in the local
interface either
does not exist in the bean class, or it is not a public method. Each
method in
the local interface must have a corresponding public method in the bean
class.

In EJB VASKeyGeneratorEJB, method getPrimaryKey() defined in the local
interface
either does not exist in the bean class, or it is not a public method.
Each met
hod in the local interface must have a corresponding public method in
the bean c
lass.

In EJB VASKeyGeneratorEJB, method isIdentical(javax.ejb.EJBLocalObject)
defined
in the local interface either does not exist in the bean class, or it is
not a p
ublic method. Each method in the local interface must have a
corresponding publi
c method in the bean class.

In EJB VASKeyGeneratorEJB, method getEJBLocalHome() defined in the local
interfa
ce either does not exist in the bean class, or it is not a public
method. Each m
ethod in the local interface must have a corresponding public method in
the bean
class.
]
at weblogic.appc.compileEJB(appc.java:714)
at weblogic.appc.compileInput(appc.java:446)
at weblogic.appc.runBody(appc.java:167)
at weblogic.utils.compiler.Tool.run(Tool.java:146)
at weblogic.utils.compiler.Tool.run(Tool.java:103)
at weblogic.appc.main(appc.java:961)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain
(CompilerTask.java:
275)
at weblogic.ant.taskdefs.j2ee.Appc.execute(Appc.java:179)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
at org.apache.tools.ant.taskdefs.CallTarget.execute
(CallTarget.java:143)

at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
at org.apache.tools.ant.taskdefs.CallTarget.execute
(CallTarget.java:143)

at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
at org.apache.tools.ant.taskdefs.CallTarget.execute
(CallTarget.java:143)

at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.Project.executeTargets
(Project.java:1255)
at org.apache.tools.ant.Main.runBuild(Main.java:609)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)

Total time: 11 seconds

Tim Perrigo

unread,
Apr 21, 2003, 11:43:46 AM4/21/03
to
Ryan,
Thanks for the response. I am using the GA release of WLS 8.1. I've
completely removed WLS7 from my system and double-checked all references
in my classpath, to make sure I didn't have any old jars lingering
around. I'm invoking appc through the wlappc ant task, as follows...

<target name="compile_ejb_debug">
<wlappc debug="true" compiler="javac" output="${path_build}/
${jar_name}" source="${path_build}">
<classpath refid="compile.classpath"/>
</wlappc>
</target>

...where path_build is a clean build directory to which the ejb classes
are copied (maintaining the appropriate package structure). The
deployement descriptors in a META-INF directory off the root of
path_build. Any suggestions?

Thanks,
Tim

In article <3ea40e97$1...@newsgroups.bea.com>, ryanle...@louisiana.edu
says...
>
> Hello Tim,
>
> Which version of WLS 8.1 are you using (beta or GA) ?
>
> Also, make sure that you don't have any jar files from WLS 7 still on your classpath,
> so that appc doesn't get confused. Also, how are you invoking appc?
>
> Best regards,
>
> Ryan LeCompte
> ryanle...@louisiana.edu
> http://www.louisiana.edu/~rml7669
>

Ryan LeCompte

unread,
Apr 21, 2003, 12:30:31 PM4/21/03
to

Hello Tim,

Which version of WLS 8.1 are you using (beta or GA) ?

Also, make sure that you don't have any jar files from WLS 7 still on your classpath,
so that appc doesn't get confused. Also, how are you invoking appc?

Best regards,

>..

>..

0 new messages