Hi,

Your ejb classes are in classpath. When ejbc finds these classes in the
classpath, it gives you these warnings. This is  becuase when client calls
the business functions of the ejb the only the classes used in ejb should be
used. Suppose you are making changes to your bean class but still not
updated your ejb jar , then there will be two version of the bean class. One
in your classpath and other in ejb when the server is running.

Cheers
Ashwani


----- Original Message -----
From: "Edward" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 08, 2002 1:41 PM
Subject: Why I get warning message when I compile my files?


> I create a Session EJB.My EJB contains three files,there are follows:
>
> file://CheckPassword.java
>
> package eino.loginEJB;
> import java.rmi.*;
> import javax.ejb.*;
> public class CheckPassword implements SessionBean {
>   private SessionContext sessionContext;
>   public void ejbCreate() {
>   }
>   public void ejbRemove() {
>   }
>   public void ejbActivate() {
>   }
>   public void ejbPassivate() {
>   }
>   public void setSessionContext(SessionContext sessionContext) {
>     this.sessionContext = sessionContext;
>   }
>   public String test()
>   {
>      return "OK";
>    }
> }
>
> file://CheckPasswordHome.java
>
> package eino.loginEJB;
> import java.rmi.*;
> import javax.ejb.*;
> public interface CheckPasswordHome extends EJBHome {
>   public CheckPasswordRemote create() throws RemoteException,
CreateException;
> }
>
> file://CheckPasswordRemote.java
>
> package eino.loginEJB;
> import java.rmi.*;
> import javax.ejb.*;
> import java.util.Enumeration;
> import java.util.Properties;
> import java.util.Vector;
> import java.io.*;
> public interface CheckPasswordRemote extends EJBObject {
>   public String test() throws java.rmi.RemoteException;
> }
>
> file://ejb-jar.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise
JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd";>
> <ejb-jar>
>     <enterprise-beans>
>         <session>
>             <ejb-name>CheckPassword</ejb-name>
>             <home>eino.loginEJB.CheckPasswordHome</home>
>             <remote>eino.loginEJB.CheckPasswordRemote</remote>
>             <ejb-class>eino.loginEJB.CheckPassword</ejb-class>
>             <session-type>Stateless</session-type>
>             <transaction-type>Container</transaction-type>
>         </session>
>     </enterprise-beans>
>     <assembly-descriptor>
>         <container-transaction>
>             <method>
>                 <ejb-name>CheckPassword</ejb-name>
>                 <method-name>*</method-name>
>             </method>
>             <trans-attribute>Required</trans-attribute>
>         </container-transaction>
>     </assembly-descriptor>
> </ejb-jar>
>
>
> I use JBuilder6 to Rebuild CheckPassword,it raise warning,like follows:
>
> "CheckPassword.ejbgrpx": Spaces in the temporary directory path may cause
WebLogic EJBC utility to produce fatal compile errors.
> "CheckPassword.ejbgrpx": <2002-6-8 PM 03:54:11> <Warning> <EJB> <EJB
Deployment: CheckPassword has a class eino.loginEJB.CheckPassword which is
in the classpath. This class should only be located in the ejb-jar file.>
> "CheckPassword.ejbgrpx": <2002-6-8 PM 03:54:11> <Warning> <EJB> <EJB
Deployment: CheckPassword has a class eino.loginEJB.CheckPasswordHome which
is in the classpath. This class should only be located in the ejb-jar file.>
> "CheckPassword.ejbgrpx": <2002-6-8 PM 03:54:11> <Warning> <EJB> <EJB
Deployment: CheckPassword has a class eino.loginEJB.CheckPasswordRemote
which is in the classpath. This class should only be located in the ejb-jar
file.>
>
> I don't know why it raise warnings,the file "ejb-jar.xml" is produced
automatically by JBuilder.
> Any idea will be appreciated!
> Edward
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to