Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss
Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Weblogic 6SP2 EJBC error with JBuilder5

121 views
Skip to first unread message

Nicolas GANDRIAU

unread,
Jul 17, 2001, 8:01:50 AM7/17/01
to

Hi,
I am currently evaluating JBuilder 5 Enterprise with Weblogic 6SP2 on Windows2000.
I designed a very simple Session Bean, which compile very well when BAS 4.5
is the targeted AppServer.
If I change the targeted AppServer for Weblogic 6 SP2, the call to weblogic.ejbc
generates the following errors :

"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


Marcus Oreiless

unread,
Jul 17, 2001, 4:16:50 PM7/17/01
to
Hi Nicolas,

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...

0 new messages