ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Cody <paul.c...@lucidainc.com>
Subject RE: EJBJar
Date Tue, 09 Oct 2001 01:57:25 GMT
Steven,

Looks like you and I are going the same thing today.  I've yet to get *all*
my issues resolved also...  Here's what I have so far.  Ping me with other
questions if you want...

$ pwd
/home/pcody/dev/insight

$ find . -type d

./docs
./ejbcgen
./lib
./src
./src/dd
./src/java
./src/java/com
./src/java/com/lucida
./src/java/com/lucida/insight
./src/java/com/lucida/insight/ui
./src/war
./src/war/insight
./src/war/insight/html

$ ls -l src/dd/*
-rw-r--r--    1 Administ None          833 Oct  8 11:18
src/dd/Client-ejb-jar.xml
-rw-r--r--    1 Administ None          360 Oct  5 11:21
src/dd/Client-weblogic-ejb-jar.xml

$ cat src/dd/Client-ejb-jar.xml
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE ejb-jar PUBLIC
  '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN'
  'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'
>

<ejb-jar>
  <description>The Client is the abstraction of session data</description>
  <display-name>Client Component</display-name>
  <enterprise-beans>

    <session>
      <description>This ejb allows you to do not much yet</description>
      <display-name>client</display-name>
      <ejb-name>client</ejb-name>
      <home>com.lucida.insight.ui.ClientHome</home>
      <remote>com.lucida.insight.ui.Client</remote>
      <ejb-class>com.lucida.insight.ui.ClientBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Bean</transaction-type>
    </session>

  </enterprise-beans>
</ejb-jar>

$ cat src/dd/Client-weblogic-ejb-jar.xml
<?xml version="1.0"?>

<!DOCTYPE weblogic-ejb-jar PUBLIC
  '-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN'
  'http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd'
>

<weblogic-ejb-jar>
  <weblogic-enterprise-bean>
    <ejb-name>client</ejb-name>
    <jndi-name>model/client</jndi-name>
  </weblogic-enterprise-bean>
</weblogic-ejb-jar>

$ cat build.xml

  [snip]

  <!-- build-ejb classpath -->
  <path id="build-ejb.classpath">
    <pathelement location="${build.classes}"/> 
    <fileset dir="${build.lib}">
      <include name="**/*.jar"/>
    </fileset>
  </path>

  <!-- build ejb jars -->
  <target name="build-ejb-jars" depends="build-compile" >
    <ejbjar srcdir="${build.classes}" descriptordir="${home.src.dd}">
      <classpath refid="build-ejb.classpath"/>
      <weblogic destdir="${build}/deploy" compiler="default">
        <wlclasspath>
	    <!-- --><pathelement location="${build.classes}"/><!-- -->
	    <pathelement
location="${weblogic.home.server}/lib/weblogic.jar"/> 
        </wlclasspath>
      </weblogic>
      <include name="**/*-ejb-jar.xml"/>
      <exclude name="**/*weblogic*.xml"/>
    </ejbjar>
  </target>

> 
> Currently I'm trying to create my ejb jar file and I continue 
> to get the
> following message:
> 
> 1.  [ejbjar] Could not resolve ( publicId: -//Sun 
> Microsystems, Inc.//DTD
> Enterprise JavaBeans 1.1//EN, systemId:
> http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd) to a local entity
> 
> 2.  [ejbjar] Could not resolve ( publicId: -//BEA Systems, Inc.//DTD
> WebLogic 6.0.0 EJB//EN, systemId:
> http://www.bea.com/servers/wls600/dtd/weblogic-e
> jb-jar.dtd) to a local entity
> 

I get the first one, but ont the second.  It does not seem to affect the
outcome of the task.
Also see http://www.onjava.com/pub/a/onjava/2001/06/25/antejb.html.

> 3.  [ejbc] <Oct 8, 2001 3:32:43 PM CDT> <Warning> <EJB> <EJB 
> Deployment:
> DealManagerBean has a class 
> com.ees.everest.deal.ejb.client.DealManagerHome
> which is in the classpath. This class should only be located 
> in the ejb-jar
> file.>
> Does this mean I need to reset my classpath?  If so, how?
> 
> 4.  How do I add additional class files to my ejb jar file?
> 
> Thanks for any help!
> 
> Steven
>

Also read this message:

http://www.jguru.com/forums/view.jsp?EID=491773
 

Mime
View raw message