• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

container is generated but not able to deploy the bean

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Friends
I am new to weblogic just started going through it.
I am using weblogic 5.1.0 server,
How I went through in deployment procedure?
note : all the classes are public & are stored in the storekeeper directory. all the classes are compiled with no error.
I opened up deployer tool, created a new jar file in the myserver folder of weblogic.than added the bag.class,baghome.class,bagbean.class,inventoryitem.class,itemnotfoundexception.class in it.
than home jndi name is given as "BagHome" as specified in the client class in the lookup.also maintains conversational state check box is checked(because its statefull bean)
than this is saved. after this files in the edit panel shows two more files
weblogic-ejb-jar.xml & ejb-jar.xml & the path shown is meta-inf.
after this I clicked on the generate container.
container is generated successfuly,all the stub & skeleton files are generated and are there in the edit pannel of the deployer tool.
after this i click on the deploy button, but while deploying it is giving following error.

- with nested exception: [weblogic.ejb.common.DeploymentException: Problem creating deployment e:\weblogic\myserver\store2.jar from e:\weblogic\myserver\store2.jar; nested exception is:
java.lang.NoClassDefFoundError: storekeeper/InventoryItem]
Deployment failed.
-----------------------------------------------------------------
the thing is that InventoryItem is there in storekeeper & edit panel is also displaying it ,along with there are all stub & skeleton files are also there.this is an example of statefull beans.

Am I missing some thing,
Thanks in advance.
love
Lokesh
 
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It looks like you have some classpath problems. I would review the documentation to be sure you are setting any classpaths correctly. That 5.1 deployer is pretty lousy. Many people used their own scripts. You could also upgrade to 6.0.
 
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hI!
Well have u checked if the class for which there is a no class def found error is in the same package as the other..
u may also try to get the classpath set correctly for the same. NoClassDefFoundError occurs when the compiler cannot find the classes thru the classpath so please make sure the classpath settings are ok.
Regds
Gautham kasinath
 
Why am I so drawn to cherry pie? I can't seem to stop. Save me tiny ad!
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic