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.printerco nfig.facad e.Stampeut entiFacade </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
I've got the following problem in my web.xml file.
At line
<local>it.afbnet.printerco
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
http://victor-jan.blogspot.in/2010/01/blog-post.html
does below class represents local EJB interface??
<local>it.afbnet.printerco nfig.facad e.Stampeut entiFacade </local>
does below class represents local EJB interface??
<local>it.afbnet.printerco
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.
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/Stampeut entiFacade </ejb-ref- name>
<ejb-ref-type>Session</ejb -ref-type>
<local-home>it.afbnet.prin terconfig. facade.loc alhome</lo cal-home>
<local>it.afbnet.printerco nfig.facad e.localint erface</lo cal>
<ejb-link>StampeutentiFaca de</ejb-li nk>
</ejb-local-ref>
<ejb-ref-type>Session</ejb
<local-home>it.afbnet.prin
<local>it.afbnet.printerco
<ejb-link>StampeutentiFaca
</ejb-local-ref>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SO now you deploy the ear successfully.
ASKER
compilation of the project works regardless the error the IDE gives me
ejb-local-ref>
<ejb-ref-name>ejb/Stampeut
<ejb-ref-type>Session</ejb
<local-home>it.afbnet.prin
<ejb-link>StampeutentiFaca
</ejb-local-ref>
http://docs.oracle.com/cd/E13222_01/wls/docs81/webapp/web_xml.html#1013984