Link to home
Start Free TrialLog in
Avatar of dionisio_79
dionisio_79

asked on

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

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
Avatar of chaitu chaitu
chaitu chaitu
Flag of India image

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
http://victor-jan.blogspot.in/2010/01/blog-post.html

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

ASKER

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.
<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>
ASKER CERTIFIED SOLUTION
Avatar of dionisio_79
dionisio_79

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SO now you deploy the ear successfully.
compilation of the project works regardless the error the IDE gives me