Solved

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

Posted on 2013-05-30
8
559 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn different types of Android Layout and some basics of an Android App.
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…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

734 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