"EjbGroupOne.ejbgrpx": <Jul 17, 2001 7:51:21 AM EDT> <Error> <EJB> <EJB Deployment: SessionEjbOneName has a class ejb.impl.SessionEjbOne which is in the classpath. This class should only be located in the ejb-jar file.>
"EjbGroupOne.ejbgrpx": <Jul 17, 2001 7:51:21 AM EDT> <Error> <EJB> <EJB Deployment: SessionEjbOneName has a class ejb.SessionEjbOneHome which is in the classpath. This class should only be located in the ejb-jar file.>
"EjbGroupOne.ejbgrpx": <Jul 17, 2001 7:51:21 AM EDT> <Error> <EJB> <EJB Deployment: SessionEjbOneName has a class ejb.SessionEjbOneRemote which is in the classpath. This class should only be located in the ejb-jar file.>
"EjbGroupOne.ejbgrpx": ERROR: Error from ejbc: ERROR: The classes which ejbc generated from your home and remote interfaces cannot be loaded. Please ensure that you have set the -d option to a writeable directory.
"EjbGroupOne.ejbgrpx": ERROR: ejbc found errors
I tried to modify the command line generated by JBuilder by every noticeable means and the only solution I found
was to replace the JBuilder compiler provided to EJBC by the SUN JDK 1.3.1 in the AppServer setup panel Tools->Enterprise Setup...
I still have the error messages about the classpath containing twice some classes, but the Enhanced Jar is correctly generated. The
deployement and test from JBuilder work fine with it too.
I was just wondering if there was a more official way to build JAR with EJB for Weblogic and I there was a way to configure the
classpath provided to weblogic.ejbc, to avoid the Error Messages.
Thank you
Here are some notes that worked for me in deploying a
session bean to BEA WLS6.0.
hope it helps -- Marcus.
Notes for compiling and deploying a session bean to WLS6x
1. You need to make couple of changes to your system variable.
> -- Control Panel | System | Advanced | Environment Variables .
Select
> TMP fom user variables list and edit it so that there are no spaces in the
> path specification. Weblogic is sensitive to spaces. I have used
> C:\WINNT\TEMP. It works.
>
> 2. When you create a project make sure that you are not using the default
> project path. For windows 2000 the default project path is C:\Document and
> Settings\Administrator\jbproject\untitled1. This creates problems because
of
> spaces in the Path. Use some other directory where there are no spaces.
>
> 3. open bcj.config from JBuilder5/bin and comment out the following line.
> copyenv CLASSPATH.
>
> 4. Make sure that you have specified the correct bea home directory name
in
> Environment Setup.
>
> 5. Goto Project Properties and fromm server tab make sure that you select
> Weblogic.
"Nicolas GANDRIAU" <ngan...@hotmail.com> wrote in message
news:3b54292e$1_1@dnews...