Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

warning message during ejbc

 
bksella sella
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I get this warning message when i compile the standard jar file using the command : java weblogic.ejbc <filename1>.jar <filename2>.jar


<Jul 1, 2004 3:43:42 PM IST> <Warning> <EJB> <BEA-010054> <EJB Deployment: DirectorBean has a class cmr.DirectorBean that is
in the classpath. This class should only be located in the ejb-jar file.>
<Jul 1, 2004 3:43:43 PM IST> <Warning> <EJB> <BEA-010054> <EJB Deployment: DirectorBean has a class cmr.DirectorLocalHome tha
t is in the classpath. This class should only be located in the ejb-jar file.>
<Jul 1, 2004 3:43:43 PM IST> <Warning> <EJB> <BEA-010054> <EJB Deployment: DirectorBean has a class cmr.Director that is in t
he classpath. This class should only be located in the ejb-jar file.>
<Jul 1, 2004 3:43:43 PM IST> <Warning> <EJB> <BEA-010054> <EJB Deployment: MovieBean has a class cmr.MovieBean that is in the
classpath. This class should only be located in the ejb-jar file.>
<Jul 1, 2004 3:43:43 PM IST> <Warning> <EJB> <BEA-010054> <EJB Deployment: MovieBean has a class cmr.MovieLocalHome that is i
n the classpath. This class should only be located in the ejb-jar file.>
<Jul 1, 2004 3:43:43 PM IST> <Warning> <EJB> <BEA-010054> <EJB Deployment: MovieBean has a class cmr.Movie that is in the cla
sspath. This class should only be located in the ejb-jar file.>

Can anyone get me teh reason for this warning ?

thanks
bksella
 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These warnings can be ignored. I'm sure weblogic.ejbc w'd have gone through fine depite these warnings.

uhhm. You w'd have built your EJB source code as class files to some directory and then jar-red them up?.
By any chance are those classes present in the classpath while running the command line?

These warnings can also be disabled by having the following entry in the weblogic-ejb-jar.xml file.

<disable-warning>BEA-010054</disable-warning>

When i ran,

java weblogic.GetMessage -detail -id BEA-010054

I got following output:

010054: EJB Deployment: {0} has a class {1} that is in the classpath. This class should only be loca
ted in the ejb-jar file.
Subsystem: EJB
Severity: Warning
Message Detail: EJB Deployment: {0} has a class {1} that is found in the classpath. This class shoul
d only be located in the ejb-jar file.
Cause: {1} is in the classpath.
Action: Remove this class from the classpath. It should only be in the ejb-jar.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic