This week's book giveaways are in the AI and JavaScript forums.
We're giving away four copies each of GANs in Action and WebAssembly in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • 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
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

HELP: Jndi names disappear when deploying

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys. I've got a problem. When I use websphere studio 5.1 to development our financial application on, everything works fine. When I look at the ejb-jar.xml file, the jndi name always appears in the input box. When I generate the .EAR file, and import it into the websphere application server, some, but not all of the jndi names are gone. I that have to manually capture them, before I can start the application. I don't think the bean is missing, for after I captured the JNDI name, and I run the application, it does lookup the bean and communication between the respective components work.
Could anybody please help, for this really wastes my time.
Thanx
Martin Coetzee (South Africa)
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, this is interesting. The JNDI names are stored in the file ibm-ejb-bnd-ext.xmi inside your EJB-JAR file. You're telling me that when you export your EAR file that this file changes? If so that's a bug.
Here's what you need to do. Copy the contents of this file (which you can see if you move to the "Resource" perspective) into another document outside of WAS. Then export your EAR, and use Winzip or something else to explode it and then look at the same file inside the EJB-JAR file and copy its contents out again. If they really are different, then you need to send your EAR and the two file versions off to IBM and open a PMR.
BTW, go ahead and post the differences you see here, too. I'd like to see this for my own curiosity.
Kyle
[ March 18, 2004: Message edited by: Kyle Brown ]
 
Martin Coetzee
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kyle....Very nice web site...Okay...Here is my ibm-ejb-jar.xml file located inside wsad


And here is the file in the exported JAR file.


One of the entities jndi name it cannot find as soon as I do deployment is:
- Account
- Identification
I hope you can help me....
 
Martin Coetzee
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Damn....How do I paste the values into this site?
 
Martin Coetzee
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the typical problems people get with this binding file? We are about 5 people developing on this application, and we also use CVS. Could there be any integration errors with CVS?
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Martin,
I just checked the two files out you posted and they're identical. I think you may have pasted in one of the files wrong. Any chance you could email me the files to the address on my web site?
Also, yes there are problems that can happen with CVS and this file. However, CVS should make you do a compare on this file when you merge your local copies back into the trunk. If you ignore the changes they would obviously be lost.
Kyle
 
My pie came with a little toothpic holding up this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!