Win a copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java this week in the Agile and Other Processes 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
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Entity EJB & env-entry problem with WebLogic7

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there
This is my first post here
I've got some problems with the environment entries of an entity EJB.
Actually, i coudn't find the way to set them up right into the description file (ejb-jar.xml)
According to the "EJB deployment descriptor reference", <env-entry> can be used in both Entity & Session EJB but when i try to deploy with the following ejb-jar.xml :

WebLogic7.0 throw a parsing error and says that is not a valid tag according to the DTD....
As a consequence, i'm forced to edit by hand the descriptor using the WebLogic Console
This is working fine but this is pretty time consuming since my EJB is currently under development and i have to deploy/re-deploy quite often....
Any idea ?
Many thanx in advance
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
security-identity should come after env-entry according to the ejb-jar.xml's DTD document...
 
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Lasse Koskela:
security-identity should come after env-entry according to the ejb-jar.xml's DTD document...


are you sure? it kind of sounds strange that an env-entry *must* be accompanied/followed by a security-identity element. I mean am kind of wondering as to how c'd they be linked. Is'nt it optional?
 
Ranch Hand
Posts: 8943
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lasse is right.
<!ELEMENT entity (description?, display-name?, small-icon?,
large-icon?, ejb-name, home?, remote?, local-home?,
local?, ejb-class, persistence-type, prim-key-class,
reentrant, cmp-version?, abstract-schema-name?,
cmp-field*, primkey-field?, env-entry*, ejb-ref*,
ejb-local-ref*, security-role-ref*, security-identity?,
resource-ref*, resource-env-ref*, query*)>

Env entry is optional.
 
Franck Tranchant
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right !
Putting the <env-entry> between <primkey-field> and <security-identity> works perfectly.
Thank you guys
 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Franck Tranchant:
Right !
Putting the <env-entry> between <primkey-field> and <security-identity> works perfectly.
Thank you guys


oops! am sorry. I did'nt notice that you are using a security-indentity element as well. Otherwise, I guess, even the security-indentity element is optional.
 
"Don't believe every tiny ad you see on the internet. But this one is rock solid." - George Washington
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!