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

InnerClasses in ejbCreate( )

0 views
Skip to first unread message

Perianayagam.T

unread,
Mar 28, 2003, 8:38:42 AM3/28/03
to

Iam getting a problem while ejbc of a bean...
This is comming when I add a create(..) and corresponding ejbcreate(), post()
in bean..


Here I have given the sign. of create method..

LocalDataRateEntity create(MulticastConnectionValue.RateBlock rate, int mcConPK)
throws CreateException;

This problem is comming only because of using an inner class (RateBlock in MulticastConnectionValue
)...if it is not so..it is going fine.

Can someone explain me the reason..

here goes the trace..

ejbc:
[ejbjar] building DataRateEntity.jar with 4 files
[ejbc] <Mar 28, 2003 3:03:05 PM IST> <Warning> <EJB> <EJB Deployment: DataRateEntityEJB
has a class com.hns.iag.com
monfunctions.sscm.ejb.ConnectionManager.DataRateEntityBean which is in the classpath.
This class should only be located
in the ejb-jar file.>
[ejbc] <Mar 28, 2003 3:03:05 PM IST> <Warning> <EJB> <EJB Deployment: DataRateEntityEJB
has a class com.hns.iag.com
monfunctions.sscm.ejb.ConnectionManager.LocalDataRateEntityHome which is in the
classpath. This class should only be loc
ated in the ejb-jar file.>
[ejbc] <Mar 28, 2003 3:03:05 PM IST> <Warning> <EJB> <EJB Deployment: DataRateEntityEJB
has a class com.hns.iag.com
monfunctions.sscm.ejb.ConnectionManager.LocalDataRateEntity which is in the classpath.
This class should only be located
in the ejb-jar file.>
[ejbc] H:\sscm\code\ejbcgen\com\hns\iag\commonfunctions\sscm\ejb\ConnectionManager\DataRateEntityBean_oym1io_LocalH
omeImpl.java:11: com.hns.iag.commonfunctions.sscm.ejb.ConnectionManager.DataRateEntityBean_oym1io_LocalHomeImpl
should b
e declared abstract; it does not define create(com.hns.iag.commonfunctions.sscm.bean.MulticastConnectionValue.RateBlock,
int) in com.hns.iag.commonfunctions.sscm.ejb.ConnectionManager.DataRateEntityBean_oym1io_LocalHomeImpl
[ejbc] public final class DataRateEntityBean_oym1io_LocalHomeImpl
[ejbc] ^
[ejbc] An exception has occurred in the compiler (1.3.1_06). Please file
a bug at the Java Developer Connection (ht
tp://java.sun.com/cgi-bin/bugreport.cgi). Include your program and the following
diagnostic in your report. Thank you.

[ejbc] java.lang.InternalError: isSubType 13
[ejbc] at com.sun.tools.javac.v8.code.Type.isSubType(Type.java:484)
[ejbc] at com.sun.tools.javac.v8.code.Type$ClassType.isSubType(Type.java:1019)
[ejbc] at com.sun.tools.javac.v8.code.Type.isSubTypes(Type.java:493)
[ejbc] at com.sun.tools.javac.v8.comp.Resolve.instantiate(Resolve.java:185)
[ejbc] at com.sun.tools.javac.v8.comp.Resolve.findMethod(Resolve.java:372)
[ejbc] at com.sun.tools.javac.v8.comp.Resolve.resolveQualifiedMethod(Resolve.java:808)
[ejbc] at com.sun.tools.javac.v8.comp.Attr.selectSym(Attr.java:1180)
[ejbc] at com.sun.tools.javac.v8.comp.Attr._case(Attr.java:1129)
[ejbc] at com.sun.tools.javac.v8.tree.Tree$Select.visit(Tree.java:963)
[ejbc] at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:234)
[ejbc] at com.sun.tools.javac.v8.comp.Attr.attribExpr(Attr.java:254)
[ejbc] at com.sun.tools.javac.v8.comp.Attr._case(Attr.java:778)
[ejbc] at com.sun.tools.javac.v8.tree.Tree$Apply.visit(Tree.java:785)
[ejbc] at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:234)
[ejbc] at com.sun.tools.javac.v8.comp.Attr.attribExpr(Attr.java:262)
[ejbc] at com.sun.tools.javac.v8.comp.Attr._case(Attr.java:618)
[ejbc] at com.sun.tools.javac.v8.tree.Tree$Exec.visit(Tree.java:699)
[ejbc] at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:234)
[ejbc] at com.sun.tools.javac.v8.comp.Attr.attribStat(Attr.java:276)
[ejbc] at com.sun.tools.javac.v8.comp.Attr.attribStats(Attr.java:294)
[ejbc] at com.sun.tools.javac.v8.comp.Attr._case(Attr.java:426)
[ejbc] at com.sun.tools.javac.v8.tree.Tree$Block.visit(Tree.java:492)
[ejbc] at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:234)
[ejbc] at com.sun.tools.javac.v8.comp.Attr.attribStat(Attr.java:276)
[ejbc] at com.sun.tools.javac.v8.comp.Attr._case(Attr.java:529)
[ejbc] at com.sun.tools.javac.v8.tree.Tree$Try.visit(Tree.java:642)
[ejbc] at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:234)
[ejbc] at com.sun.tools.javac.v8.comp.Attr.attribStat(Attr.java:276)
[ejbc] at com.sun.tools.javac.v8.comp.Attr.attribStats(Attr.java:294)
[ejbc] at com.sun.tools.javac.v8.comp.Attr._case(Attr.java:426)
[ejbc] at com.sun.tools.javac.v8.tree.Tree$Block.visit(Tree.java:492)
[ejbc] at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:234)
[ejbc] at com.sun.tools.javac.v8.comp.Attr.attribStat(Attr.java:276)
[ejbc] at com.sun.tools.javac.v8.comp.Attr._case(Attr.java:386)
[ejbc] at com.sun.tools.javac.v8.tree.Tree$MethodDef.visit(Tree.java:441)
[ejbc] at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:234)
[ejbc] at com.sun.tools.javac.v8.comp.Attr.attribStat(Attr.java:276)
[ejbc] at com.sun.tools.javac.v8.comp.Attr.attribClass(Attr.java:1429)
[ejbc] at com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:378)
[ejbc] at com.sun.tools.javac.v8.Main.compile(Main.java:247)
[ejbc] at com.sun.tools.javac.Main.main(Main.java:16)
[ejbc] Exec failed .. exiting
[ejbc] Java Result: 1
[ejbjar] building MulticastConnectionManagerSession.jar with 6 files
[ejbc] <Mar 28, 2003 3:03:14 PM IST> <Warning> <EJB> <EJB Deployment: ConnectionManagerSession
has a class com.hns.
iag.commonfunctions.sscm.ejb.ConnectionManagerSessionBean which is in the classpath.
This class should only be located i
n the ejb-jar file.>
[ejbc] <Mar 28, 2003 3:03:14 PM IST> <Warning> <EJB> <EJB Deployment: ConnectionManagerSession
has a class com.hns.
iag.commonfunctions.sscm.ejb.ConnectionManagerSessionHome which is in the classpath.
This class should only be located i
n the ejb-jar file.>
[ejbc] <Mar 28, 2003 3:03:14 PM IST> <Warning> <EJB> <EJB Deployment: ConnectionManagerSession
has a class com.hns.
iag.commonfunctions.sscm.ejb.ConnectionManagerSession which is in the classpath.
This class should only be located in th
e ejb-jar file.>

Ryan LeCompte

unread,
Mar 28, 2003, 9:18:06 AM3/28/03
to

Hello Perianayagam,

Which version of WLS are you using? I believe there was a bug with ejbc and inner
classes in an earlier version of WLS 6.1, and was later fixed in a service pack.
Hope this helps.

Best regards,

Ryan LeCompte
ryanle...@louisiana.edu
http://www.louisiana.edu/~rml7669

Perianayagam.T

unread,
Mar 28, 2003, 9:25:50 AM3/28/03
to

Hi Ryan..
Thanks for your Information.
Iam using WebLogic 6.1SP4

Form the error it is saying "some problem while compiling.." SO is the problem
weblogic related??

Ryan LeCompte

unread,
Mar 28, 2003, 9:40:49 AM3/28/03
to

Hello Perianayagam,

I don't believe this is a bug with WebLogic, as you are utilizing the latest service
pack for WLS 6.1. Notice that ejbc is complaining that the particular class in
question is already visible on the system classpath, and that it should only be
visible in the JAR. Perhaps ejbc is picking up another version of your class that
it finds on the classpath instead of the class that you actually want. Also, it
would be if you gave more details about the inner class itself and place(s) where
you are using it.

0 new messages