This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes warning message during ejbc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "warning message during ejbc" Watch "warning message during ejbc" New topic
Author

warning message during ejbc

bksella sella
Ranch Hand

Joined: Jul 31, 2003
Posts: 32
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

Joined: Mar 06, 2001
Posts: 1209
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.
 
GeeCON Prague 2014
 
subject: warning message during ejbc