You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by he...@apache.org on 2004/07/07 11:24:02 UTC

cvs commit: ws-axis/contrib/ews/samples/servlet/war2 build.xml

hemapani    2004/07/07 02:24:02

  Modified:    contrib/ews/samples/ejb/bookquote/com/jwsbook/jaxrpc
                        BookQuoteBean.java
               contrib/ews/samples/servlet/war2 build.xml
  Removed:     contrib/ews/samples/ejb/bookquote/com/jwsbook/jaxrpc
                        InvalidIsbnException.java
               contrib/ews/samples/servlet/war2/org/jwsbook/jaxrpc
                        BookQuote.java BookQuoteBean.java
  Log:
  fix the war2 test case
  
  Revision  Changes    Path
  1.2       +1 -12     ws-axis/contrib/ews/samples/ejb/bookquote/com/jwsbook/jaxrpc/BookQuoteBean.java
  
  Index: BookQuoteBean.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/samples/ejb/bookquote/com/jwsbook/jaxrpc/BookQuoteBean.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BookQuoteBean.java	14 Jun 2004 08:22:55 -0000	1.1
  +++ BookQuoteBean.java	7 Jul 2004 09:24:02 -0000	1.2
  @@ -1,17 +1,6 @@
   package com.jwsbook.jaxrpc;
  -public class BookQuoteBean  implements javax.ejb.SessionBean{
  +public class BookQuoteBean  implements BookQuote{
   	public float getBookPrice(java.lang.String isbn){
   			return 0.0f;
   	}
  -	public javax.naming.Context getInitialContext()throws javax.naming.NamingException{
  -		java.util.Properties env = new java.util.Properties();
  -		env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
  -		env.put(javax.naming.Context.PROVIDER_URL, "127.0.0.1:1099");
  -		return new javax.naming.InitialContext(env);
  -	}
  -	public void ejbCreate() {}
  -	public void ejbActivate() throws javax.ejb.EJBException, java.rmi.RemoteException {}
  -	public void ejbPassivate() throws javax.ejb.EJBException, java.rmi.RemoteException {}
  -	public void ejbRemove() throws javax.ejb.EJBException, java.rmi.RemoteException {}
  -	public void setSessionContext(javax.ejb.SessionContext arg0)throws javax.ejb.EJBException, java.rmi.RemoteException {}
   }
  
  
  
  1.3       +2 -9      ws-axis/contrib/ews/samples/servlet/war2/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/samples/servlet/war2/build.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- build.xml	24 Jun 2004 05:39:48 -0000	1.2
  +++ build.xml	7 Jul 2004 09:24:02 -0000	1.3
  @@ -2,13 +2,6 @@
   	<property name="geronimo.home" value="C:\Servers\incubator-geronimo-1.0-M1-bin\incubator-geronimo-1.0-M1"/>
   	<property name="build" value="build"/>
   	<property name="jar.dir" location="../../../target/generated/samples/"/>
  -	
  -	<path id="test.class.path">
  -        <pathelement path="classes"/>
  -        <pathelement path="${geronimo.home}/repository/openejb/jars/openejb-core-2.0-M1.jar"/>
  -        <pathelement path="${geronimo.home}/repository/geronimo-spec/jars/geronimo-spec-j2ee-1.0-M1.jar"/>
  -        <pathelement path="${geronimo.home}/repository/geronimo/jars/geronimo-core-1.0-M1.jar"/>
  -    </path>
   	<target name="war" description="Create the web application" >
   		<mkdir dir="${build}" />
   		<mkdir dir="${build}/WEB-INF/lib"/>
  @@ -23,11 +16,11 @@
   			</fileset>
   		</copy>
   		<javac destdir="${build}/WEB-INF/classes" debug="on">
  -			<classpath refid="test.class.path" />
  +			<classpath refid="maven.dependency.classpath" />
   			<src path="."/>
   		</javac>
   	    <jar jarfile="${jar.dir}/simple.war" basedir="${build}"/>
  -	    <delete dir="${build}"></delete>
  +	    <delete dir="${build}"/>
   	</target>
   </project>