ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hines, John" <John.Hi...@cingular.com>
Subject RE: Help! I broke something simple!
Date Tue, 27 Jul 2004 00:10:46 GMT
Thanks, 8.1.  I'll try that.  

Any idea where I can go download the 8.1 dtds from BEA to look at them?  

-----Original Message-----
From: Srikrishna.Partha@wellsfargo.com
[mailto:Srikrishna.Partha@wellsfargo.com] 
Sent: Monday, July 26, 2004 7:08 PM
To: user@ant.apache.org
Subject: RE: Help! I broke something simple!

What version of weblogic you are using  ? I am assuming it is 8.1.  The
DTD's you are using in weblogic descriptor should be incompatible .Check the
individual jar's build file from the source and change the descriptor to
point to 8.1 location.

-----Original Message-----
From: Hines, John [mailto:John.Hines@cingular.com]
Sent: Monday, July 26, 2004 4:51 PM
To: 'Ant Users List'
Subject: Help! I broke something simple!


The regular build guy left on vacation yesterday so I dragged all the new
source code up to the build and selected build.  Here's what happened.  What
does "Unrecognized publicId " mean?  Any ideas on how to fix things?  Thanks
in advance for your time.

John.hines@Cingular.com

***************the error*******************************
compile:

     [echo] Compiling com/cingular/telepos/compass/bean/**

     [echo] Building compassbean.jar

   [ejbjar] building compassbean.jar with 14 files

   [ejbjar] Unrecognized publicId -//BEA Systems, Inc.//DTD WebLogic 6.0.0
EJB//
EN - using EJB 1.1 compiler

 

     [ejbc] ERROR: ejbc found errors while processing the descriptor for
/opt/ap
p/qacbasmw04/bea81/weblogic81/cbasphase3/build/compassbean-generic.jar:

 

 

 

     [ejbc] ERROR: Error from ejbc: Error processing 'META-INF/ejb-jar.xml':
[EJ
B:012023]In weblogic-ejb-jar.xml, a stateless-session-descriptor element was
fou
nd for EJB 'CompassClient'. This EJB was not declared as an Stateless
Session be
an in ejb-jar.xml.

 

 

     [ejbc] ERROR: ejbc couldn't load descriptor from jar

 

 

BUILD FAILED

file:/opt/app/qacbasmw04/bea81/weblogic81/cbasphase3/build.xml:245:
Exception wh
ile calling weblogic.ejbc. Details: Ejbc reported an error



**********************Hre's ejb-jar.xml*****************************
<?xml version="1.0" encoding="UTF-8" ?> 
<!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>
  <description>no description</description> 
- <enterprise-beans>
- <session>
  <description>no description</description> 
  <display-name>CompassClient</display-name> 
  <ejb-name>CompassClient</ejb-name> 
  <home>com.cingular.telepos.compass.bean.CompassClientHome</home> 
  <remote>com.cingular.telepos.compass.bean.CompassClient</remote> 
  <ejb-class>com.cingular.telepos.compass.bean.CompassClientBean</ejb-class>

  <session-type>Stateless</session-type> 
  <transaction-type>Container</transaction-type> 
- <env-entry>
  <env-entry-name>url</env-entry-name> 
  <env-entry-type>java.lang.String</env-entry-type> 
  <env-entry-value>t3://comptest3.sbms.sbc.com:8002</env-entry-value> 
  </env-entry>
- <env-entry>
  <env-entry-name>principal</env-entry-name> 
  <env-entry-type>java.lang.String</env-entry-type> 
  <env-entry-value>system</env-entry-value> 
  </env-entry>
- <env-entry>
  <env-entry-name>credentials</env-entry-name> 
  <env-entry-type>java.lang.String</env-entry-type> 
  <env-entry-value>welcome1</env-entry-value> 
  </env-entry>
  </session>
  </enterprise-beans>
  </ejb-jar>

********************Here's 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>CompassClient</ejb-name> 
+ <stateless-session-descriptor>
- <pool>
  <max-beans-in-free-pool>50</max-beans-in-free-pool> 
  <initial-beans-in-free-pool>5</initial-beans-in-free-pool> 
  </pool>
  </stateless-session-descriptor>
  <jndi-name>ejb/CompassClient</jndi-name> 
  </weblogic-enterprise-bean>
  </weblogic-ejb-jar>
********************Here's application.xml**************
- <project name="CBAS" default="buildall"
basedir="/opt/app/qacbasmw04/bea81/weblogic81/cbasphase3/">
- <!--  last modified by jh8899 to eliminate need to put files in ext
directory 
  --> 
- <!--  modify to suite your needs 
  --> 
  <property name="bea.home" value="/opt/app/qacbasmw04/bea81" /> 
  <property name="local.deploy"
value="${bea.home}/weblogic81/config/cbasdomain/applications" /> 
- <!--  set global properties for this build 
  --> 
  <property name="src"
location="/opt/app/qacbasmw04/bea81/weblogic81/cbasphase3/src" /> 
  <property name="build"
location="/opt/app/qacbasmw04/bea81/weblogic81/cbasphase3/build" /> 
  <property name="cingular" value="com/cingular" /> 
- <path id="class.path">
  <pathelement location="${java.home}/jre/lib/rt.jar" /> 
  <pathelement location="${java.home}/lib/tools.jar" /> 
  <pathelement location="${bea.home}/weblogic81/server/lib/weblogic.jar" /> 
- <!--  should not need to include cam, compass and oasys jars in classpath 
  --> 
- <fileset dir="build/classes">
  <include name="**/*.class" /> 
  </fileset>
- <fileset dir="app_jars">
  <include name="**/*.jar" /> 
  </fileset>
  </path>
- <!--  DO NOT MODIFY  FROM HERE ON DOWN 
  --> 
- <target name="help">
  <echo>build help</echo> 
  <echo>build [*buildall|beans|telepos|posdotcom|jsp|webapp|ear] * -
default</echo> 
  <echo>build
[clean|clean_beans|clean_posdotcom|clean_telepos|clean_jsp]</echo> 
  <echo>build
[local_deploy|dev_deploy|qa_deploy|training_deploy|prod_deploy]</echo> 
  <echo>example: build buildall dev_deploy</echo> 
  </target>
- <target name="buildall" depends="init">
- <!--  build common code 
  --> 
  <antcall target="common" /> 
- <!--  build posdotcom codebase 
  --> 
  <antcall target="posdotcom" /> 
- <!--  build telepos 
  --> 
  <antcall target="telepos" /> 
- <!--  build beans
  --> 
  <antcall target="beans" /> 
- <!--  build JSP 
  --> 
  <antcall target="jsp" /> 
- <!--  build the webapp war file 
  --> 
  <antcall target="webapp" /> 
- <!--  build ear file 
  --> 
  <antcall target="ear" /> 
  </target>
- <target name="common">
- <antcall target="compile">
  <param name="dir" value="${cingular}/common" /> 
  <param name="destdir" value="${build}/classes" /> 
  </antcall>
  </target>
- <target name="posdotcom">
- <antcall target="compile">
  <param name="dir" value="${cingular}/posdotcom" /> 
  <param name="destdir" value="${build}/classes" /> 
  </antcall>
  </target>
- <target name="telepos">
- <antcall target="compile">
  <param name="dir" value="${cingular}/telepos" /> 
  <param name="destdir" value="${build}/classes" /> 
  </antcall>
  </target>
- <target name="beans">
- <antcall target="compile_bean">
  <param name="dir" value="${cingular}/telepos/bulkactv/consumer" /> 
  <param name="bean" value="bulkactv" /> 
  <param name="destdir" value="${build}" /> 
  </antcall>
- <antcall target="compile_bean">
  <param name="dir" value="${cingular}/telepos/compass/bean" /> 
  <param name="bean" value="compassbean" /> 
  <param name="destdir" value="${build}" /> 
  </antcall>
  </target>
- <!--  deploy targets 
  --> 
- <target name="qa_deploy">
- <antcall name="remote_deploy">
  <param name="server" value="${qa.deploy.server}" /> 
  <param name="remotedir" value="${qa.deploy.remote.dir}" /> 
  <param name="userid" value="${qa.userid}" /> 
  <param name="password" value="${qa_password}" /> 
  </antcall>
  </target>
- <target name="dev_deploy">
- <antcall name="remote_deploy">
  <param name="server" value="${dev.deploy.server}" /> 
  <param name="remotedir" value="${dev.deploy.remote.dir}" /> 
  <param name="userid" value="${dev.userid}" /> 
  <param name="password" value="${dev.password}" /> 
  </antcall>
  </target>
- <!--   Worker Targets   
  --> 
- <target name="init">
  <echo>Creating directories</echo> 
  <mkdir dir="${build}" /> 
  <mkdir dir="${build}/classes" /> 
  </target>
- <target name="jsp">
  <echo>compiling JSP's</echo> 
  <echo>${build}</echo> 
- <java classname="weblogic.jspc" fork="true" classpathref="class.path">
  <arg value="-webapp" /> 
  <arg value="webapp" /> 
  <arg value="-depend" /> 
  <arg value="-k" /> 
  <arg value="-verbose" /> 
  <arg value="-classpath" /> 
  <arg value="${build}/classes/" /> 
  <arg value="-d" /> 
  <arg value="${build}" /> 
  <arg value="-compileAll" /> 
- <!-- arg value="webapp/*.jsp*" /
  --> 
  </java>
- <java classname="weblogic.jspc" fork="true" classpathref="class.path">
  <arg value="-webapp" /> 
  <arg value="webapp/WLNP" /> 
  <arg value="-depend" /> 
  <arg value="-k" /> 
  <arg value="-verbose" /> 
  <arg value="-classpath" /> 
  <arg value="${build}/classes/" /> 
  <arg value="-d" /> 
  <arg value="${build}" /> 
  <arg value="-compileAll" /> 
- <!-- arg value="webapp/WLNP/*.jsp*" /
  --> 
  </java>
  <echo>JSP compilation done</echo> 
  </target>
- <target name="webapp">
  <echo>Building cbas.war</echo> 
- <war destfile="${build}/cbas.war" webxml="webapp/WEB-INF/web.xml"
compress="no" manifest="${src}/META-INF/MANIFEST.MF">
- <fileset dir="webapp">
  <include name="*.jsp*" /> 
  <include name="*.htm*" /> 
  <include name="*.gif" /> 
  <include name="*.inc*" /> 
  <include name="CareImages/*.gif" /> 
  <include name="*.css" /> 
  <include name="scripts/**" /> 
  <include name="stylesheet/**" /> 
  <include name="WLNP/**" /> 
  </fileset>
- <lib dir="app_jars/cam">
  <include name="activation.jar" /> 
  <include name="log4j-1.2.6.jar" /> 
  <include name="camcore.jar" /> 
  <include name="camexception.jar" /> 
  <include name="camutil.jar" /> 
  <include name="commons-logging.jar" /> 
  <include name="jaxen-1.0_saxpath.jar" /> 
  <include name="jaxen-core-1.0.jar" /> 
  <include name="jaxen-jdom-1.0.jar" /> 
  <include name="jdom-b8.jar" /> 
  <include name="mail.jar" /> 
  <include name="mediator-client.jar" /> 
  <include name="sax-2.0.1.jar" /> 
  </lib>
- <lib dir="app_jars/compass">
  <include name="*.jar" /> 
  </lib>
- <lib dir="app_jars/oasys">
  <include name="*.jar" /> 
  </lib>
- <lib dir="app_jars/quickpay">
  <include name="*.jar" /> 
  </lib>
- <lib dir="app_jars/watchDog">
  <include name="*.jar" /> 
  </lib>
- <classes dir="build/classes">
  <include name="**/*.class" /> 
  </classes>
  </war>
  </target>
- <target name="ear">
  <echo>Building cbas.ear</echo> 
- <ear destfile="${build}/cbas.ear" appxml="application.xml" compress="no"
manifest="${src}/META-INF/MANIFEST.MF">
  <fileset dir="${build}" includes="*.jar,*.war" /> 
  <fileset dir="app_jars/cam" includes="*.jar" /> 
  <fileset dir="app_jars/compass" includes="*.jar" /> 
  <fileset dir="app_jars/oasys" includes="*.jar" /> 
  <fileset dir="app_jars/quickpay" includes="*.jar" /> 
  <fileset dir="app_jars/watchDog" includes="*.jar" /> 
  </ear>
  </target>
- <target name="compile">
  <echo>Compiling ${dir}/**</echo> 
  <javac srcdir="${src}" destdir="${destdir}" includes="${dir}/**/*"
debug="on" classpathref="class.path" /> 
  </target>
- <target name="compile_bean">
  <echo>Compiling ${bean}</echo> 
- <antcall target="compile">
  <param name="dir" value="${dir}" /> 
  <param name="destdir" value="${build}/classes" /> 
  </antcall>
  <echo>Building ${bean}.jar</echo> 
- <ejbjar srcdir="${build}/classes" descriptordir="${src}/${dir}/descriptor"
basejarname="${bean}" flatdestdir="yes" dependency="full"
manifest="${src}/${dir}/META-INF/MANIFEST.MF">
  <weblogic destdir="${destdir}" /> 
  <classpath refid="class.path" /> 
- <support dir="app_jars/oasys/">
  <include name="*.jar" /> 
  </support>
- <support dir="app_jars/compass/">
  <include name="*.jar" /> 
  </support>
  <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
2.0//EN" location="${bea.home}/weblogic81/ejb-jar_2_0.dtd" /> 
  <dtd publicId="-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN"
location="${bea.home}/weblogic81/weblogic-ejb-jar.dtd" /> 
  </ejbjar>
  </target>
- <!--  Clean Targets 
  --> 
- <target name="clean">
  <delete dir="${build}" /> 
  </target>
- <target name="clean_jsp">
  <delete dir="${build}/jsp_servlet" /> 
  </target>
- <target name="clean_telepos">
  <delete dir="${build}/classes/${cingular}/telepos" /> 
  </target>
- <target name="clean_posdotcom">
  <delete dir="${build}/classes/${cingular}/posdotcom" /> 
  </target>
- <target name="clean_beans">
  <delete dir="${build}/classes/${cingular}/telepos/bulkactv/consumer" /> 
  <delete dir="${build}/classes/${cingular}/telepos/compass/bean" /> 
  </target>
- <target name="local_deploy">
- <copy todir="${local.deploy}">
- <fileset dir="${build}">
  <include name="cbas.ear" /> 
  </fileset>
  </copy>
  </target>
- <target name="remote_deploy">
- <ftp server="${server}" remotedir="${remotedir}" userid="${userid}"
password="${password}" action="put" binary="yes">
- <fileset dir="${build}">
  <include name="cbas.ear" /> 
  </fileset>
  </ftp>
  </target>
  </project>
********************Here's application.xml**************
 <!DOCTYPE application (View Source for full doctype...)> 
- <application>
  <display-name>cbas</display-name> 
- <module>
  <ejb>compassbean.jar</ejb> 
  </module>
- <module>
  <ejb>bulkactv.jar</ejb> 
  </module>
- <module>
- <web>
  <web-uri>cbas.war</web-uri> 
  <context-root>cbas</context-root> 
  </web>
  </module>
  </application>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message