Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2013-05-30
8
Medium Priority
?
587 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
  • 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
Industry Leaders: 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Suggested Courses

971 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