Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please Help Me -- error from ejbc

 
JHM Lin
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh~ thank you very much
You do help me a lot
 
mahek kusum
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic