• 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

Entity EJB & env-entry problem with WebLogic7

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 8944
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Stinging nettles are edible. But I really want to see you try to eat this 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