aspose file tools*
The moose likes BEA/Weblogic and the fly likes weblogic.appc giving error while creating jar from ant with weblogic10.0 jars Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "weblogic.appc giving error while creating jar from ant with weblogic10.0 jars" Watch "weblogic.appc giving error while creating jar from ant with weblogic10.0 jars" New topic
Author

weblogic.appc giving error while creating jar from ant with weblogic10.0 jars

vika mishra
Greenhorn

Joined: Feb 11, 2010
Posts: 12
I am migrating from WL7 to WL10 and facing the error while migrating from ejbc to appc:-
jar-ejb-general:

[jar] Building jar: D:\nestportal\nestp\build\jars\nestportal-ejb-temp-brij.jar

[java] com/bea/xml/XmlException

[java] <Jan 17, 2011 10:14:02 AM IST> <Error> <J2EE> <BEA-160187> <weblogic.appc failed to compile your application. Recompile with the -verbose option for more details. Please see the error message(s) below.>

[java] Java Result: 1

vika mishra
Greenhorn

Joined: Feb 11, 2010
Posts: 12
Please find the attached build files used for preparing build


<target name="jar-ejb-general" depends="jar-common,jar-dao,compile-ejb-general"
description="Create a jar containing the General EJB.">
<jar jarfile="${build.jars.dir}/${name}-ejb-temp-brij.jar">
<fileset dir="${build.dest.dir}">
<patternset refid="ejb-common.classes"/>
<patternset refid="ejb-common.support"/>
<patternset refid="general.ejb.classes"/>
<patternset refid="general.ejb.support"/>
</fileset>
<fileset dir="${src.dir}/com/globalone/app/nest/ejb/general">
<include name="META-INF/*.xml"/>
</fileset>
</jar>
<!--
we have to explicitly specify the classpath because of some odd class-cast
exceptions when parsing the XML
-->

<java classname='weblogic.appc' fork="yes">
<classpath>
<fileset dir="${lib.dir}">
<include name="**/*.jar"/>
<include name="**/*.zip"/>
</fileset>
<pathelement location="${build.jars.dir}/${name}-common.jar"/>
<pathelement location="${build.jars.dir}/${name}-dao.jar"/>
</classpath>
<!--<arg line="-output ${build.jars.dir}/${name}-ejb-general.jar ${build.jars.dir}/${name}-ejb-temp-brij.jar"/>-->
<arg value="${build.jars.dir}/${name}-ejb-temp-brij.jar"/>
</java>

<!-- <java classname='appc' fork="yes">
<classpath>
<fileset dir="${lib.dir}">
<include name="**/*.jar"/>
<include name="**/*.zip"/>
</fileset>
<pathelement location="${build.jars.dir}/${name}-common.jar"/>
<pathelement location="${build.jars.dir}/${name}-dao.jar"/>
</classpath>
<arg line="-output ${build.jars.dir}/${name}-ejb-general.jar ${build.jars.dir}/${name}-ejb-temp-brij.jar"/>
<arg value="${build.jars.dir}/${name}-ejb-temp-brij.jar"/>
</java>-->

<!-- Delete temporary Jar file -->
<!--<delete file="${build.jars.dir}/${name}-ejb-temp.jar"/>-->
</target>

vika mishra
Greenhorn

Joined: Feb 11, 2010
Posts: 12
my weblogic-ejb-jar.xml is as :-

<?xml version="1.0" encoding="UTF-8"?>
<weblogic-ejb-jar xmlns="http://www.bea.com/ns/weblogic/90" xmlns:j2ee="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-ejb-jar.xsd">
<weblogic-enterprise-bean>
<ejb-name>GeneralMgr</ejb-name>
<caching-descriptor>
<max-beans-in-free-pool>100</max-beans-in-free-pool>
</caching-descriptor>
<jndi-name>nest.ejb.general.GeneralMgrEJB</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
vika mishra
Greenhorn

Joined: Feb 11, 2010
Posts: 12
my ekb-jar.xml is as :-
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar
xmlns="http://java.sun.com/xml/ns/j2ee"
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">
<description>Deployment for General Manager EJB.</description>
<display-name>General Manager</display-name>
<enterprise-beans>
<session>
<description>The GeneralBean retrieves the details for generic Nest objects</description>
<ejb-name>GeneralMgr</ejb-name>
<home>com.app.nest.ejb.general.GeneralMgrHome</home>
<remote>com.app.nest.ejb.general.GeneralMgr</remote>
<ejb-class>com.app.nest.ejb.general.GeneralMgrBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<env-entry>
<env-entry-name>dataSourceName</env-entry-name>
<env-entry-type>java.lang.String </env-entry-type>
<env-entry-value>generalDataSource</env-entry-value>
</env-entry>
</session>
</enterprise-beans>
</ejb-jar>











 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: weblogic.appc giving error while creating jar from ant with weblogic10.0 jars