Solved

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

Posted on 2013-05-30
8
541 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 20

Expert Comment

by:chaitu chaitu
Comment Utility
<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
Comment Utility
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
Comment Utility
SO now you deploy the ear successfully.
0
 

Author Closing Comment

by:dionisio_79
Comment Utility
compilation of the project works regardless the error the IDE gives me
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
word0 challenge 3 55
API Soap Calls 4 55
micro services vs rest web services 16 45
Scraping specific data within an XML document 19 44
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
The viewer will learn how to implement Singleton Design Pattern in Java.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now