Sure, it it in the attachment. But, I don't understand what this XML file have to do with Tomcat and JSP compiler errors? I suppose I have to copy my JAR or my classes into some Tomcat folder, so Tomcat could find them, but I don't know which folder? I have already copied it into apache-tomcat-5.5.12\server\lib and apache-tomcat-5.5.12\webapps\jsp-examples\WEB-INF\lib, but it seems Tomcat still can't find it. Is there any other folder I should try or some XML settings file I should edit?
Thank you in advance, Milan -----Original Message----- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Sunday, November 20, 2005 6:14 PM To: Tomcat Users List Subject: Re: Calling EJBs Buongiuorno Milan- Can we see the contents of your ejb-jar.xml? Gratsi, M- ----- Original Message ----- From: "Milan Tomic" <[EMAIL PROTECTED]> To: <users@tomcat.apache.org> Sent: Sunday, November 20, 2005 8:37 AM Subject: Calling EJBs > Hi, > > > > I have developed my first EJB and deployed it into JBoss. When I try to > call > my EJB from JSP page stored in Tomcat I gen an compiler error saying that > it > can't find my EJB's interfaces. I have copied my EJB JAR into all Tomcat's > lib folders, but the error is still present. :) > > > > What should I do? > > > > Thank you in advance, > > Milan > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
<?xml version="1.0"?> <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd"> <ejb-jar> <enterprise-beans> <entity> <ejb-name>MestoEJB</ejb-name> <home>MestoHomeRemote</home> <remote>MestoRemote</remote> <ejb-class>MestoBean</ejb-class> <persistence-type>Container</persistence-type> <prim-key-class>java.lang.String</prim-key-class> <reentrant>False</reentrant> <cmp-version>2.x</cmp-version> <abstract-schema-name>mesto</abstract-schema-name> <cmp-field><field-name>posta</field-name></cmp-field> <cmp-field><field-name>ime</field-name></cmp-field> <primkey-field>posta</primkey-field> <security-identity><use-caller-identity/></security-identity> </entity> <entity> <ejb-name>OsebaEJB</ejb-name> <home>OsebaHomeRemote</home> <remote>OsebaRemote</remote> <ejb-class>OsebaBean</ejb-class> <persistence-type>Container</persistence-type> <prim-key-class>java.lang.String</prim-key-class> <reentrant>False</reentrant> <cmp-version>2.x</cmp-version> <abstract-schema-name>Oseba</abstract-schema-name> <cmp-field><field-name>id</field-name></cmp-field> <cmp-field><field-name>ime</field-name></cmp-field> <cmp-field><field-name>priimek</field-name></cmp-field> <cmp-field><field-name>naslov</field-name></cmp-field> <cmp-field><field-name>kraj</field-name></cmp-field> <cmp-field><field-name>telefon</field-name></cmp-field> <cmp-field><field-name>datumRojstva</field-name></cmp-field> <primkey-field>id</primkey-field> <security-identity><use-caller-identity/></security-identity> </entity> <session> <ejb-name>VmesniEJB</ejb-name> <home>VmesniHomeRemote</home> <remote>VmesniRemote</remote> <ejb-class>VmesniBean</ejb-class> <session-type>Stateless</session-type> <transaction-type>Container</transaction-type> <ejb-ref> <ejb-ref-name>ejb/MestoHomeRemote</ejb-ref-name> <ejb-ref-type>Entity</ejb-ref-type> <home>MestoHomeRemote</home> <remote>MestoRemote</remote> </ejb-ref> <ejb-ref> <ejb-ref-name>ejb/OsebaHomeRemote</ejb-ref-name> <ejb-ref-type>Entity</ejb-ref-type> <home>OsebaHomeRemote</home> <remote>OsebaRemote</remote> </ejb-ref> <security-identity><use-caller-identity/></security-identity> </session> </enterprise-beans> <assembly-descriptor> <security-role> <description> This role represents everyone who is allowed full access to the beans. </description> <role-name>everyone</role-name> </security-role> <method-permission> <role-name>everyone</role-name> <method> <ejb-name>OsebaEJB</ejb-name> <method-name>*</method-name> </method> <method> <ejb-name>MestoEJB</ejb-name> <method-name>*</method-name> </method> <method> <ejb-name>VmesniEJB</ejb-name> <method-name>*</method-name> </method> </method-permission> <container-transaction> <method> <ejb-name>OsebaEJB</ejb-name> <method-name>*</method-name> </method> <method> <ejb-name>MestoEJB</ejb-name> <method-name>*</method-name> </method> <method> <ejb-name>VmesniEJB</ejb-name> <method-name>*</method-name> </method> <trans-attribute>Required</trans-attribute> </container-transaction> </assembly-descriptor> </ejb-jar>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]