Solved

problem with web.xml 'ejb-ref-name' tag in J2EE application

Posted on 2013-05-30
8
562 Views
Last Modified: 2014-04-22
Hi,
I've got the following problem in my web.xml file.
At line
<local>it.afbnet.printerconfig.facade.StampeutentiFacade</local>

the Eclipse IDE give me the following error:
cvc-complex-type.2.4.a: Invalid content was found starting with element 'local'. One of '{"http://java.sun.com/xml/ns/j2ee":local-
 home}' is expected.
web.xml
0
Comment
Question by:dionisio_79
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 20

Expert Comment

by:chaitu chaitu
ID: 39207173
try

ejb-local-ref>
<ejb-ref-name>ejb/StampeutentiFacade</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>it.afbnet.printerconfig.facade.StampeutentiFacade</local-home>
<ejb-link>StampeutentiFacade</ejb-link>
</ejb-local-ref>

http://docs.oracle.com/cd/E13222_01/wls/docs81/webapp/web_xml.html#1013984
0
 
LVL 20

Expert Comment

by:chaitu chaitu
ID: 39207176
http://victor-jan.blogspot.in/2010/01/blog-post.html

does below class represents local EJB interface??
<local>it.afbnet.printerconfig.facade.StampeutentiFacade</local>
0
 

Author Comment

by:dionisio_79
ID: 39207190
1) I've tried with the code you suggest but now I got the following error:
cvc-complex-type.2.4.a: Invalid content was found starting with element 'ejb-link'. One of '{"http://java.sun.com/xml/ns/j2ee":local}' is
 expected.

2) It's a no-interface bean. Anyway, if I try with a local interface it gives me the same error.
0
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
LVL 20

Expert Comment

by:chaitu chaitu
ID: 39207201
<ejb-ref-name>ejb/StampeutentiFacade</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>it.afbnet.printerconfig.facade.localhome</local-home>
<local>it.afbnet.printerconfig.facade.localinterface</local>
<ejb-link>StampeutentiFacade</ejb-link>
</ejb-local-ref>
0
 

Accepted Solution

by:
dionisio_79 earned 0 total points
ID: 39210118
I left the file as it was initially the error doesn't gives me problems during compilation so it's ok
0
 
LVL 20

Expert Comment

by:chaitu chaitu
ID: 39210120
SO now you deploy the ear successfully.
0
 

Author Closing Comment

by:dionisio_79
ID: 39218432
compilation of the project works regardless the error the IDE gives me
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

631 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question