Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Problem deploying an entity bean

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I get the exception shown below when I try to deploy an entity bean.CXould some one tell me the complete procedure to deploy an entity bean.
I read somwhere that I should configure the datasource before deployment.What does he exactly mean by that.
Why am I getting the exception???
Exception:
Deployment[Open] failed:
EJBDeploy: setupWorkingDir(): Setting up working directory D:\WebSphere\AppServer\deployedEJBs\productWorkingDir
EJBDeploy: open(): Processing jar file D:\WebSphere\AppServer\deployableEJBs\product.jar
EJBJar: processJar(): Extracting jar file D:\WebSphere\AppServer\deployableEJBs\product.jar to directory D:\WebSphere\AppServer\deployedEJBs\productWorkingDir\__ejbjar
EJBJar: processJar(): Parsing manifest file for deployment descriptors
Found product.ser
EJBJar: loadJarClasses(): Adding all classes in .jar file to custom class loader
EJBJar: processJar(): Deserializing deployment descriptors
product.ser
EJBDeploy: open(): Verifying EJB com.dexterf.product.ProductBean
com.ibm.ejs.sm.exception.DeploymentException: Deployment[Open] failed:
EJBDeploy: setupWorkingDir(): Setting up working directory D:\WebSphere\AppServer\deployedEJBs\productWorkingDir
EJBDeploy: open(): Processing jar file D:\WebSphere\AppServer\deployableEJBs\product.jar
EJBJar: processJar(): Extracting jar file D:\WebSphere\AppServer\deployableEJBs\product.jar to directory D:\WebSphere\AppServer\deployedEJBs\productWorkingDir\__ejbjar
EJBJar: processJar(): Parsing manifest file for deployment descriptors
Found product.ser
EJBJar: loadJarClasses(): Adding all classes in .jar file to custom class loader
EJBJar: processJar(): Deserializing deployment descriptors
product.ser
EJBDeploy: open(): Verifying EJB com.dexterf.product.ProductBean
--------
com.ibm.ejs.sm.client.command.ExecutionException: Error during create.
at com.ibm.ejs.sm.client.RepositoryOpException.<init>(RepositoryOpException.java:51)
at com.ibm.ejs.sm.client.command.ExecutionException.<init>(ExecutionException.java:63)
at com.ibm.ejs.sm.client.command.DeployEJBTaskCommand.execute(DeployEJBTaskCommand.java:136)
at com.ibm.ejs.sm.client.command.CommandManager$ExecutionThread.run(CommandManager.java:282)
Prashanth
 
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
You have to specify the datasource for the entity bean from the datasource tab in WAS when u deploy it, i think yhe error you are getting is because of that only, do confirm that.
Regards,
Daman
 
Ram Pra
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi sidhu,
I really didn't get you,if you could explain it to me in detail what should be doing to specify the datasource ,it would be very nice of you.Bcoz as u said ,when i right clicked on the datasource tab,i saw the path to the default datasource "D:/WebSphere/AppServer/bin/myidb.prp".
Could you pls explain it to in detail..
Thanks
 
daman sidhu
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Prashanth,
Well ok heres what u need to do to deploy an entity bean in Websphere app server,
First you would have created that bean from visual age , there u map it to the database using schema and maps from the tools available there,
Generate the deployed code of your bean, then export the deployed code jar file to a location, say in ur was folder to deployable jars,
then start was, now first go to types tab, before that i am assuming you have the database table in place and the database driver loaded in was(if not do so from types tab itself) .
Now in types tab select a new datasource, specify the driver, i am using COM.ibm.db2.app.DB2Driver for DB2, you can find its jar file in db2zip file which is in sqllib/java folder...
Now when u have selected datasource select the driver and database( the one which has ur table ) etc.and create it.
then go to topology, first thing you do there is expand ur tree and try to find the name of datasource uve just created.
Right click on it to install it.
then u go to the default container( or the ejb container if uve made ur own application) right click there and then create ejb, give the jndi name, selece the jar file by browsing- and double click on the jar file - select the *.ser file which appears,
then go to the datasources tab there if uve installed the datasource select it from the list, then simple create it,it should work now.
Hope that this will help you, if you still have problems with it, get back to me, ill try to figure it out.
Cheers..
Daman
 
daman sidhu
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
by the way one thing ,all that i told you above is to be done in websphere app server admin console just for the sake of telling.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
Now im working with VisualAge and WebSphere with Db2.
Im finding difficult in deploying my entity bean in WAS.
I'm using "com.ibm.db2.jdbc.app.DB2Driver" as my deiver and i used "db2java.zip" for installing the driver.
But still im getting driver not found error while starting the container.
Pls can any one one give me the result.
Thanks in advance
Vishu
 
What kind of corn soldier are you? And don't say "kernel" - that's only for this tiny ad:
professionally read, modify and write PDF files from Java
https://products.aspose.com/pdf/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!