Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 14617 invoked from network); 26 Nov 2006 16:00:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Nov 2006 16:00:50 -0000 Received: (qmail 46296 invoked by uid 500); 26 Nov 2006 16:00:59 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 45699 invoked by uid 500); 26 Nov 2006 16:00:58 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 45688 invoked by uid 99); 26 Nov 2006 16:00:58 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Nov 2006 08:00:58 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of manu.t.george@gmail.com designates 64.233.182.188 as permitted sender) Received: from [64.233.182.188] (HELO nf-out-0910.google.com) (64.233.182.188) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Nov 2006 08:00:46 -0800 Received: by nf-out-0910.google.com with SMTP id x37so1788112nfc for ; Sun, 26 Nov 2006 08:00:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hdtBtObes+pcVYgbqIIMyRypNkjQg/wNUEus5PROyl/+8qpVyXe2tIsU84l8YAjqDieupQsVBLjS4RMWKS5x89ss/u5vzR6K5qITLhVhFJiyE0GEeCsQH+sXCtHZn+f/jmDVWU/D548Byrg2ei0JbqHstYAR0yjDJS4rMNt8cJ4= Received: by 10.82.164.9 with SMTP id m9mr1834998bue.1164556823711; Sun, 26 Nov 2006 08:00:23 -0800 (PST) Received: by 10.82.163.20 with HTTP; Sun, 26 Nov 2006 08:00:23 -0800 (PST) Message-ID: <466797bd0611260800t4b2be0feuada2301bdf62a9be@mail.gmail.com> Date: Sun, 26 Nov 2006 21:30:23 +0530 From: "Manu George" To: user@geronimo.apache.org Subject: Re: Ejb web services and jndi name In-Reply-To: <4569AEA2.4030306@email.it> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4567621E.2070800@email.it> <45684DF4.4060508@email.it> <456973F4.5040504@email.it> <466797bd0611260655r51691dc1x94b7b4c52e2b4667@mail.gmail.com> <4569AEA2.4030306@email.it> X-Virus-Checked: Checked by ClamAV on apache.org Hi Francesco, We give the address only in the wsdl like shown below A thing i noticed is that you have not used the tag in your ejb-jar.xml file which is required to identify it as a web service. Thanks Manu On 11/26/06, Francesco Sessa wrote: > Hi, > i have searched for wsdl in mailing list archive, and i have found some > interesting thread. > But the wsdl file was generated with wscompile, and i changed only the > soap address location (the file generated did not contain any address). > I read the problem releated to the JIRA, but i try with my browser, and > it don't add the slash. > I think that the problem is in configuration files of both server and > client, but i don't understand where. > As an examples, if i create a ws with servlets, in the geronimo-web or > other deployment descriptor i can put tag; > but in my case, with ejb, when i deploy the jan on the server, what is > the tag in the deployment descriptor in which i can specify the address? > In wsdl? in openejb-jar? in ejb-jar? > And the jndi name to lookup the service? > > I'm becoming crazy. > > Thanks > > Manu George ha scritto: > > Hi Francesco, > > Have a look whether your problem related to this JIRA. > > http://issues.apache.org/jira/browse/GERONIMO-1597 > > > > Regards > > Manu > > > > On 11/26/06, Francesco Sessa wrote: > >> Hi All, > >> I insert the web-service-address in the openejb-jar.xml, like the > >> following code: > >> > >> > >> > >> CiaoWSBean > >> CiaoWSBean > >> /ejb/CiaoWS > >> > >> > >> > >> but the http://localhost:8080/ejb/CiaoWS?WSDL is not available. > >> > >> nobody can help me? > >> Please it's very important. > >> > >> Francesco Sessa ha scritto: > >> > Hi, > >> > I believed that the service-ref element in the geronimo-web.xml was > >> > enught. > >> > I have modified the web.xml but i receive this message: > >> > > >> > java.lang.RuntimeException: Could not open stream to wsdl file > >> > > >> > I know that it's not clear if the wsdl is accessible to the web > >> > service client, but whitch it is the solution? > >> > > >> > > >> > Please help me. > >> > this is the new web.xml > >> > > >> > > >> > > >> > > >> > >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > >> > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > >> > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" > >> > version="2.4"> > >> > > >> > > >> > JSP 2.0 Examples. > >> > > >> > JSP 2.0 Examples > >> > > >> > CiaoWSClient.jsp > >> > > >> > > >> > CiaoWSService > >> > org.eclipse.Ciao.CiaoWSService > >> > META-INF/CiaoWSService.wsdl > >> > META-INF/mapping.xml > >> > > >> > > >> > > >> > How to know the url address of the service? > >> > > >> > Thanks > >> > > >> > David Jencks ha scritto: > >> >> A couple of obvious problems are that you don't have a service-ref in > >> >> the web.xml and it's not clear if the wsdl is accessible to the web > >> >> service client (which IIUC is the web app) > >> >> > >> >> thanks > >> >> david jencks > >> >> > >> >> On Nov 24, 2006, at 1:20 PM, Francesco Sessa wrote: > >> >> > >> >>> Hi all, > >> >>> I'm a new user of geronimo. > >> >>> To complete my bachelor thesis, i need to create simples web > >> services > >> >>> with ejb. > >> >>> I create the Jar file and deploy it on application server, but, > >> when i > >> >>> try to connect my client > >> >>> to my web services, i receive the message that the jndi name isn't > >> >>> correct. > >> >>> I think that the error was in the deployment xml of the client, > >> but i > >> >>> don't be able to get the wsdl of the service > >> >>> via browser (i try with the url written in the wsdl, but, > >> evidently, it > >> >>> isn't correct). > >> >>> Please, i must deliver my work monday morning. > >> >>> > >> >>> endpoint interface > >> >>> package org.eclipse.Ciao; > >> >>> > >> >>> import java.rmi.RemoteException; > >> >>> import java.rmi.Remote; > >> >>> > >> >>> public interface CiaoWSService extends Remote{ > >> >>> public String getString(String name) throws RemoteException; > >> >>> } > >> >>> > >> >>> home interface > >> >>> package org.eclipse.Ciao; > >> >>> > >> >>> import java.rmi.RemoteException; > >> >>> import javax.ejb.*; > >> >>> > >> >>> public interface CiaoWSHome extends EJBHome{ > >> >>> CiaoWS create() throws RemoteException, CreateException; > >> >>> } > >> >>> > >> >>> remote interface > >> >>> package org.eclipse.Ciao; > >> >>> > >> >>> import java.rmi.RemoteException; > >> >>> import javax.ejb.*; > >> >>> > >> >>> public interface CiaoWS extends EJBObject{ > >> >>> > >> >>> public String getString(String name) throws RemoteException; > >> >>> } > >> >>> > >> >>> bean implementation > >> >>> package org.eclipse.Ciao; > >> >>> > >> >>> import javax.ejb.*; > >> >>> import java.rmi.RemoteException; > >> >>> > >> >>> public class CiaoWSBean implements SessionBean{ > >> >>> > >> >>> public String getString(String name) throws RemoteException{ > >> >>> return "Ciao " + name; > >> >>> } > >> >>> public void ejbCreate(){} > >> >>> public void ejbRemove(){} > >> >>> public void ejbActivate(){} > >> >>> public void ejbPassivate(){} > >> >>> public void setSessionContext(SessionContext sc){} > >> >>> } > >> >>> > >> >>> > >> ---------------------------------------------------------------------------------------------- > >> > >> >>> > >> >>> wsdl generated with jwsdp > >> >>> > >> >>> > >> >>> > >> >>> >> targetNamespace="urn:geronimo-ciaows" > >> >>> xmlns:tns="urn:geronimo:ciaows" > >> >>> xmlns="http://schemas.xmlsoap.org/wsdl/" > >> >>> xmlns:xsd="http://www.w3.org/2001/XMLSchema" > >> >>> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> >> >>> > >> message="tns:CiaoWSService_getStringResponse"/> > >> >>> > >> >>> >> >>> style="rpc"/> > >> >>> > >> >>> > >> >>> > >> >>> >> >>> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > >> use="encoded" > >> >>> namespace="http://ciaows.org/wsdl"/> > >> >>> > >> >>> >> >>> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > >> use="encoded" > >> >>> namespace="http://ciaows.org/wsdl"/> > >> >>> > >> >>> >> binding="tns:CiaoWSServiceBinding"> > >> >>> >> >>> > >> location="http://127.0.0.1:8080/ejb/CiaoWS"/> > >> > >> >>> > >> >>> > >> ------------------------------------------------------------------------------------- > >> > >> >>> > >> >>> ejb-jar.xml > >> >>> > >> >>> > >> >>> >> >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > >> >>> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > >> >>> http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd" version="2.1"> > >> >>> Web Service CiaoWS > >> >>> Ciao WS > >> >>> > >> >>> > >> >>> CiaoWSBean > >> >>> org.eclipse.Ciao.CiaoWSHome > >> >>> org.eclipse.Ciao.CiaoWS > >> >>> org.eclipse.Ciao.CiaoWSBean > >> >>> Stateless > >> >>> Container > >> >>> > >> >>> > >> >>> > >> >>> > >> -------------------------------------------------------------------------------------------- > >> > >> >>> > >> >>> openejb-jar.xml > >> >>> > >> >>> > >> >>> >> >>> xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1" > >> >>> xmlns:pkgen="http://www.openejb.org/xml/ns/pkgen-2.0" > >> >>> xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1" > >> >>> xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1"> > >> >>> > >> >>> > >> >>> default > >> >>> CiaoWSBean_artifact_in_openejb > >> >>> 1.0 > >> >>> car > >> >>> > >> >>> > >> >>> > >> >>> geronimo > >> >>> geronimo-webservices > >> >>> jar > >> >>> > >> >>> > >> >>> geronimo > >> >>> geronimo-axis > >> >>> jar > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> CiaoWSBean > >> >>> CiaoWSBean > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> --------------------------------------------------------------------------------------- > >> > >> >>> > >> >>> webservices.xml > >> >>> > >> >>> > >> >>> >> >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > >> >>> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > >> >>> http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd" > >> >>> xmlns:ger="http://ciaows.org/wsdl" > >> >>> version="1.1"> > >> >>> > >> >>> > >> >>> CiaoWS > >> >>> > >> >>> META-INF/CiaoWSService.wsdl > >> >>> > >> META-INF/mapping.xml > >> >>> > >> >>> CiaoWS > >> >>> ger:CiaoWSServicePort > >> >>> > >> >>> org.eclipse.Ciao.CiaoWSService > >> >>> > >> >>> > >> >>> CiaoWSBean > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> ------------------------------------------------------------------------------------------ > >> > >> >>> > >> >>> mapping.xml generated with jwsdp > >> >>> > >> >>> > >> >>> >> >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1" > >> >>> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > >> >>> http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd"> > >> >>> > >> >>> org.eclipse > >> >>> http://ciaows.org/types > >> >>> > >> >>> > >> >>> org.eclipse > >> >>> http://ciaows.org/wsdl > >> >>> > >> >>> > >> >>> org.eclipse.CiaoWSService > >> >>> >> >>> > >> xmlns:serviceNS="http://ciaows.org/wsdl">serviceNS:CiaoWSService > >> > >> >>> > >> >>> > >> >>> CiaoWSServicePort > >> >>> CiaoWSServicePort > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> org.eclipse.Ciao.CiaoWSService > >> > >> >>> > >> >>> >> >>> > >> xmlns:portTypeNS="http://ciaows.org/wsdl">portTypeNS:CiaoWSService > >> > >> >>> > >> >>> >> >>> > >> xmlns:bindingNS="http://ciaows.org/wsdl">bindingNS:CiaoWSServiceBinding > >> > >> >>> > >> >>> > >> >>> getString > >> >>> getString > >> >>> > >> >>> 0 > >> >>> java.lang.String > >> >>> > >> >>> >> >>> > >> xmlns:wsdlMsgNS="http://ciaows.org/wsdl">wsdlMsgNS:CiaoWSService_getString > >> > >> >>> > >> >>> String_1 > >> >>> IN > >> >>> > >> >>> > >> >>> > >> >>> java.lang.String > >> >>> >> >>> > >> xmlns:wsdlMsgNS="http://ciaows.org/wsdl">wsdlMsgNS:CiaoWSService_getStringResponse > >> > >> >>> > >> >>> result > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> ------------------------------------------------------------------------------------- > >> > >> >>> > >> >>> client jsp implementation > >> >>> > >> >>> <%@ page import="org.eclipse.Ciao.CiaoWSHome, > >> >>> org.eclipse.Ciao.CiaoWS, > >> >>> javax.naming.InitialContext, > >> >>> javax.naming.Context, > >> >>> java.util.*"%> > >> >>> > >> >>> > >> >>> > >> >>> OpenEJB -- EJB for Tomcat > >> >>> > >> >>> > >> >>> > >> >>> Stateless Session bean - HelloBean - says: > >> >>> <% > >> >>> Context initCtx = new InitialContext(); > >> >>> > >> >>> Object object = initCtx.lookup("java:comp/env/ejb/CiaoWSBean"); > >> >>> > >> >>> CiaoWSHome ciaoHome = (CiaoWSHome) > >> >>> javax.rmi.PortableRemoteObject.narrow(object, > >> CiaoWSHome.class); > >> >>> CiaoWS bean = ciaoHome.create(); > >> >>> %> > >> >>> <%= bean.getString("Francesco") %> > >> >>> > >> >>> > >> >>> > >> --------------------------------------------------------------------- > >> >>> web.xml > >> >>> > >> >>> > >> >>> > >> >>> >> >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > >> >>> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > >> >>> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" > >> >>> version="2.4"> > >> >>> > >> >>> > >> >>> JSP 2.0 Examples. > >> >>> > >> >>> JSP 2.0 Examples > >> >>> > >> >>> CiaoWSClient.jsp > >> >>> > >> >>> > >> >>> > >> >>> > >> --------------------------------------------------------------------------- > >> > >> >>> > >> >>> geronimo-web.xml > >> >>> > >> >>> >> xmlns="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1"> > >> >>> > >> >>> > >> >>> default > >> >>> ejbref-war > >> >>> 1.0-SNAPSHOT > >> >>> car > >> >>> > >> >>> > >> >>> /CiaoWSClient > >> >>> > >> >>> > >> >>> ejb/CiaoWS > >> >>> > >> >>> CiaoWS > >> >>> http://localhost:8080/CiaoWS > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> ------------------------------------------------------------------------------ > >> > >> >>> > >> >>> > >> >>> I hope in one quick answer. thanks > >> >>> > >> >>> Francesco > >> >>> > >> >>> PS. Sorry for my english. > >> >>> > >> >>> > >> >> > >> >> > >> >> > >> > > >> > > >> > > >> > > >> > >> > >> > > > > > > >