wood burning stoves*
The moose likes BEA/Weblogic and the fly likes Please Help Me -- error from ejbc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Please Help Me -- error from ejbc " Watch "Please Help Me -- error from ejbc " New topic
Author

Please Help Me -- error from ejbc

JHM Lin
Greenhorn

Joined: Nov 10, 2003
Posts: 9
Hello~~
While I use weblogic.ejbc to compile container managed persistence entity bean, I execute the following command:

D:\MyProject\Product>java -classpath .\lib\weblogic.jar weblogic.ejbc .\dist\Product0.jar .\dist\Product.jar

where .\dist\Product0.jar is source jar file
.\dist\Product.jar is target jar file
------------------------------------------------
The error message is:
ERROR: Error from ejbc: Installation file D:\MyProject\Product\.\lib\persistence\persistence.
does not exist. Could not initialize EJB container managed persistence.
ERROR: ejbc found errors

What's the problem with this command or anything else goes wrong?
Could anyone provide me with solution to this problem?
Thank you very much!
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
Hi,

try running the setEnv script from the domain before running the ejbc command and then don't worry about classpath, try again and let us know about other problems if you have some...
JHM Lin
Greenhorn

Joined: Nov 10, 2003
Posts: 9
Hello...
I try to run setEnv script in the domain before executing weblogic.ejbc,
but the same error message as mentioned above still appeared.
Could you give me some suggestions?

Best Regards!

JHM
JHM Lin
Greenhorn

Joined: Nov 10, 2003
Posts: 9
Hello...
I try to run setEnv script in the domain before executing weblogic.ejbc,
but the same error message as mentioned above still appeared.
Could you give me some suggestions?

Best Regards!

JHM
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
hi,

have you tryied to run some sample app? If the samples do run you problably doing something wrong. Try using the some of the sample build files as a template to run your app.
JHM Lin
Greenhorn

Joined: Nov 10, 2003
Posts: 9
Hello~~
I have some samples on hand, but they are not complete(they are just code snips). I write an CMP entity bean class, config JDBC connection pool and data source in weblogic console, and then use ejbgen to generate remote interface、home interface and deployment descriptor, finally , while I run ejbc, I have some trouble.
I am new to CMP, I am not sure whether I miss any required step while develop CMP component.
If you are convenient, would you give me a complete sample app, and give me some instructions about how to run the app. my email address is : hmlin.iem90g@nctu.edu.tw

Beat Regards
JHM Lin
Greenhorn

Joined: Nov 10, 2003
Posts: 9
Hello~~
I have some samples on hand, but they are not complete(they are just code snips). I write an CMP entity bean class, config JDBC connection pool and data source in weblogic console, and then use ejbgen to generate remote interface、home interface and deployment descriptor, finally , while I run ejbc, I have some trouble.
I am new to CMP, I am not sure whether I miss any required step while develop CMP component.
If you are convenient, would you give me a complete sample app, and give me some instructions about how to run the app. my email address is : hmlin.iem90g@nctu.edu.tw

Beat Regards
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
Hi Lin,

Weblogic has all the samples you need to start, they get installed under directory:

%BEA_HOME%weblogic81/samples/server/examples/src

open the file index.html where you'll find a list of various samples for weblogic, for ejb I suggest that you start from the basic ones.

regards.
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
The samples guide may also be a good resourse to help you starting with weblogic, you'll find it under:

%BEA_HOME%/weblogic81/samples/server/examples/src/examples/examples.html
JHM Lin
Greenhorn

Joined: Nov 10, 2003
Posts: 9
Oh~ thank you very much
You do help me a lot
mahek kusum
Greenhorn

Joined: Aug 16, 2004
Posts: 1
hello all & JHM Lin,

I'm seeing the same problem while ejbc target runs. I see the following error.

ejbc:
[java] [EJB:011001]Installation file C:\EntityApp
\bea\${WL_HOME}\server\lib\persistence\persistence.install does not exist. Could not
initialize EJB container-managed persistence.
[java] ERROR: ejbc couldn't invoke compiler

JHM, since you were seeing the exact same problem, can you please reply with your solution?

many thanks,
MK
makiey bartsch
Greenhorn

Joined: Feb 27, 2002
Posts: 11
hi,

ejbs cannot find javac - you need to put tools.jar in your classpath
please notice: ejbs has its own "classpath" parameter

starting from wls 8.1 you can use weblogic.appc tool to validate your app.

greetings,
makiey
 
Don't get me started about those stupid light bulbs.
 
subject: Please Help Me -- error from ejbc
 
Similar Threads
Problem while trying to create jar file for EJB deployment.
Error from ejbc? Help needed
Why am I getting this error (A beginners question)
EJBC Error
oracle blob with weblogic