[Fwd: [Fwd: Problem Deploying TrailBlazer on JBoss-SOA-Platform 4.2 GA Dist]]
by Seh Chwan Lim
hi,
I would like to use the ESB TrailBlazer for a demo to a potential customer
but can't seem to get it deployed on the JBoss-SOA-Platform 4.2 GA Binary Dist.
Therefore, would appreciate if someone can help to shed some light.
I have tried to run "ant deploy" from the TB root, but however, it
always gives the error:
esb.built:
[echo] Please build the ESB with "ant dist" in the ESB parent
[echo] directory in order to run the Trailblazer application.
I have downloaded the build.xml from Revision 16260 (see attached build file) and try to do a
deploy. Yet the same error (as above) occurs.
After that, I downloaded the build.xml from Revision 16999 (see attached build file)
and run "ant deploy", it gives me the following error:
BUILD FAILED
/opt/jboss-soa-p.4.2.0/jboss-as/samples/trailblazer/build.xml:146:
/opt/jboss-soa-p.4.2.0/jboss-as/samples/trailblazer/${test.util.dir} not
found.
Thanks in advance for your attention and help.
rgds
Seh Chwan
Solution Architect, ASEAN
<project name="TRAILBLAZER" default="war" basedir=".">
<!-- UPDATE THIS WITH YOUR JBOSS_HOME AND SERVER -->
<property name="trailblazer.dir" location="."/>
<property name="esb.home.dir" value="${trailblazer.dir}/../.."/>
<property name="install.dir" value="${esb.home.dir}/install"/>
<property file="${install.dir}/deployment.properties"/>
<property name="org.jboss.esb.server.home" value="/jboss-4.2.0.GA"/>
<property name="org.jboss.esb.server.config" value="default"/>
<property name="trailblazer.dir" value="."/>
<!-- properties for the esb part of the trailblazer -->
<property name="esb.dest" value="${basedir}/esb/build"/>
<property name="classes.dir" value="${basedir}/esb/build/classes"/>
<property name="esb.testclasses.dir" value="${basedir}/esb/build/classes/tests/"/>
<property name="esb.src.dir" value="${basedir}/esb/src"/>
<property name="esb.test.dir" value="${basedir}/esb/test"/>
<property name="esb.lib.dir" value="${basedir}/esb/lib"/>
<property name="report.dir" value="${basedir}/esb/build/tests"/>
<!-- properties for the client(web) part of the trailblazer -->
<property name="client.dir" value="${basedir}/client"/>
<property name="esb.samples.trailblazer.client.dest"
value="${basedir}/client/build"/>
<property name="esb.samples.trailblazer.client.classes.dir"
value="${basedir}/client/build/classes"/>
<property name="esb.samples.trailblazer.client.testclasses.dir"
value="${basedir}/client/build/classes/tests/"/>
<property name="esb.samples.trailblazer.client.src.dir"
value="${basedir}/client/src"/>
<property name="esb.samples.trailblazer.client.test.dir"
value="${basedir}/client/test"/>
<property name="esb.samples.trailblazer.client.lib.dir"
value="${basedir}/client/lib"/>
<property name="esb.samples.trailblazer.client.tests.report.dir"
value="${basedir}/client/build/tests"/>
<property environment="env" />
<property name="esb.lib.file" value="jbossesb-rosetta.jar"/>
<property name="soa.esb.lib.dist.dir" value="${esb.home.dir}/lib"/>
<property name="soa.esb.lib.src.dir" value="../../build/jbossesb/lib"/>
<available file="${esb.lib.file}"
filepath="${soa.esb.lib.dist.dir}"
property="soa.esb.lib.dir"
value="${soa.esb.lib.dist.dir}"/>
<available file="${esb.lib.file}"
filepath="${soa.esb.lib.src.dir}"
property="soa.esb.lib.dir"
value="${soa.esb.lib.src.dir}"/>
<property name="soa.esb.lib.ext.dir" value="${soa.esb.lib.dir}/ext"/>
<!-- wstools classpath -->
<path id="wstools.classpath">
<fileset dir="${client.dir}/lib/ext/jboss-jaxws.jar"/>
<fileset dir="${client.dir}/lib/ext/jbossws-client.jar"/>
<fileset dir="${esb.samples.trailblazer.client.lib.dir}" includes="*.jar"/>
</path>
<!-- classpath -->
<path id="esb.samples.trailblazer.esb.classpath">
<fileset dir="${soa.esb.lib.dir}/ext" includes="*.jar"/>
<fileset dir="${esb.lib.dir}/ext" includes="*.jar"/>
<fileset dir="${org.jboss.esb.server.home}/client" includes="jbossall-client.jar jbossws-client.jar mail.jar"/>
<fileset dir="${soa.esb.lib.dir}" includes="*.jar"/>
<fileset dir="${esb.samples.trailblazer.client.lib.dir}/ext" includes="*.jar"/>
</path>
<!-- classpath for running the listener-->
<path id="esb.samples.trailblazer.esb.classpath.run">
<fileset dir="${soa.esb.lib.ext.dir}"
includes="jaxr-api*.jar,scout*.jar,juddi*.jar"/>
<fileset dir="${esb.dest}/dist" includes="trailblazer-esb.jar"/>
<fileset dir="${esb.home.dir}/lib/ext" includes="*.jar" excludes="jaxr-api*.jar,scout*.jar,juddi*.jar"/>
<fileset dir="${soa.esb.lib.ext.dir}" includes="*.jar" excludes="jaxr-api*.jar,scout*.jar,juddi*.jar"/>
<fileset dir="${org.jboss.esb.server.home}/client" includes="jbossall-client.jar jbossws-client.jar mail.jar"/>
<fileset dir="${soa.esb.lib.dir}" includes="*.jar"/>
<fileset dir="${esb.lib.dir}/ext" includes="*.jar"/>
<!-- for finding the jbossesb-properties.xml file -->
<pathelement location="${basedir}"/>
</path>
<path id="esb.samples.trailblazer.esb.classpath.client">
<fileset dir="${soa.esb.lib.ext.dir}"/>
<fileset dir="${esb.lib.dir}/ext" includes="*.jar"/>
<fileset dir="${org.jboss.esb.server.home}/client" includes="jboss-jaxrpc.jar jbossall-client.jar jbossws-client.jar mail.jar"/>
<fileset dir="${soa.esb.lib.dir}" includes="*.jar"/>
<fileset dir="${esb.samples.trailblazer.client.lib.dir}/ext" includes="*.jar"/>
<fileset dir="${esb.dest}/dist" includes="trailblazer-esb.jar"/>
<pathelement location="${classes.dir}"/>
</path>
<target name="clean">
<delete dir="${esb.dest}"/>
<delete dir="${esb.samples.trailblazer.client.dest}"/>
</target>
<!-- =================================================================== -->
<!-- wstools is not currently used, but is useful for producing WS -->
<!-- deployment files. -->
<!-- =================================================================== -->
<taskdef name="wstools" classname="org.jboss.ws.tools.ant.wstools">
<classpath>
<pathelement location="client/lib/ext/jboss-jaxws.jar"/>
<pathelement location="client/lib/ext/jbossws-core.jar"/>
<pathelement location="${esb.home.dir}/lib/ext/activation.jar"/>
<pathelement location="${esb.home.dir}/lib/ext/jbossall-client.jar"/>
<pathelement location="${esb.home.dir}/lib/ext/mail.jar"/>
<pathelement path="${esb.samples.trailblazer.client.classes.dir}"/>
</classpath>
</taskdef>
<target name="wstools">
<wstools
dest="client/WEB-INF"
config="client/resources/wstools-config.xml"
/>
</target>
<!-- =================================================================== -->
<!-- Prepares the directory structure -->
<!-- =================================================================== -->
<target name="esb.built" unless="soa.esb.lib.dir">
<echo>Please build the ESB with "ant dist" in the ESB parent</echo>
<echo>directory in order to run the Trailblazer application.</echo>
<fail>Please build ESB first.</fail>
</target>
<target name="trailblazer.prepare" depends="esb.built,clean" if="soa.esb.lib.dir">
<mkdir dir="${esb.dest}"/>
<mkdir dir="${esb.dest}/dist"/>
<mkdir dir="${esb.dest}/classes"/>
<mkdir dir="${esb.samples.trailblazer.client.dest}"/>
<mkdir dir="${esb.samples.trailblazer.client.dest}/dist"/>
<mkdir dir="${esb.samples.trailblazer.client.dest}/classes"/>
</target>
<!-- Compilation targets -->
<!-- ___________________ -->
<!-- ESB COMPILATION -->
<target name="esb.compile"
depends="trailblazer.prepare"
description="Compiling Trailblazer ESB classes">
<javac
destdir="${classes.dir}"
classpathref="esb.samples.trailblazer.esb.classpath"
debug="true">
<src path="${esb.src.dir}"/>
</javac>
</target>
<!-- CLIENT(WEB) COMPILATION -->
<target name="client.compile"
depends="trailblazer.prepare"
description="Compiling Trailblazer client classes">
<javac destdir="${esb.samples.trailblazer.client.classes.dir}"
classpathref="esb.samples.trailblazer.esb.classpath.client" debug="true">
<src path="${esb.samples.trailblazer.client.src.dir}"/>
</javac>
</target>
<!-- JAR/WAR targets -->
<target name="esb.jar" depends="compile" >
<property name="esb.build.dir" value="${esb.dest}" />
<!-- ESB Client JAR -->
<echo message="Building Trailblazer ESB archives"/>
<jar destfile="${esb.build.dir}/dist/trailblazer-esb.jar"
basedir="${classes.dir}"
includes="**/*.class" excludes="**/web/*.class">
</jar>
<!-- ESB Deployment (.esb) -->
<copy todir="${esb.build.dir}/META-INF">
<fileset dir="esb/conf" includes="jboss-esb.xml,deployment.xml" />
</copy>
<jar destfile="${esb.build.dir}/dist/trailblazer.esb">
<fileset dir="${classes.dir}" excludes="**/web/*.class" />
<fileset dir="${esb.build.dir}" includes="META-INF/**" />
<fileset dir="esb/conf" includes="jbmq-service.xml"/>
<fileset dir="${basedir}" includes="trailblazer.properties,template/**" />
</jar>
</target>
<target name="war" depends="compile">
<!-- Web side WAR -->
<echo message="Building Trailblazer WAR file"/>
<delete file="${esb.samples.trailblazer.client.dest}/dist/trailblazer.war" />
<war warfile="${esb.samples.trailblazer.client.dest}/dist/trailblazer.war"
webxml="${basedir}/client/resources/web.xml">
<classes dir="${esb.samples.trailblazer.client.classes.dir}">
<include name="**/loanbroker/*.class"/>
<include name="**/trailblazer/web/*.class"/>
<include name="trailblazer.properties"/>
</classes>
<webinf dir="${basedir}/client/resources">
<include name="jaxrpc-mapping.xml"/>
<include name="webservices.xml"/>
<include name="wsdl/*"/>
</webinf>
<lib dir="${esb.dest}/dist">
<include name="trailblazer-esb.jar"/>
</lib>
<fileset dir="client/jsp">
<include name="**/*.jsp"/>
</fileset>
</war>
</target>
<target name="deploy" depends="jar, war">
<property name="target-server" value="${org.jboss.esb.server.home}/server/${org.jboss.esb.server.config}" />
<echo message="Deploying Trailblazer EAR and WAR files to target server '${target-server}'."/>
<copy todir="${target-server}/deploy">
<fileset dir="${esb.dest}/dist/" includes="trailblazer.esb" />
<fileset dir="${esb.samples.trailblazer.client.dest}/dist/" includes="trailblazer.war" />
</copy>
</target>
<!-- Short target names -->
<target name="compile" depends="esb.compile,client.compile"/>
<target name="jar" depends="esb.jar"/>
<!-- run the ESB listeners -->
<!-- set the first argument to 0 for an indefinite run for the listener launcher -->
<!-- arg1 = # of seconds to let the listener threads run -->
<!-- arg2 = location of the esb config file which describes the listener configurations for a Message aware listener config -->
<!-- arg3 (if any) = location of the esb config file which describes the listener configurations for a NON-Message aware listener config (gateway)-->
<target name="runESB" depends="jar">
<echo>Running ESB Trailblazer listeners</echo>
<java fork="yes" classname="org.jboss.soa.esb.listeners.StandAloneBootStrapper" failonerror="true">
<jvmarg value="-Dorg.jboss.soa.esb.propertyFile=${trailblazer.dir}/esb/jbossesb-properties.xml"/>
<arg value="${trailblazer.dir}/esb/conf/jboss-esb.xml"/>
<classpath refid="esb.samples.trailblazer.esb.classpath.run"/>
</java>
</target>
<!-- javadocs paths -->
<path id="esb.samples.trailblazer.esb.javadocs.path">
<pathelement path="esb/classes"/>
</path>
</project>
<project name="TRAILBLAZER" default="war" basedir=".">
<!-- UPDATE THIS WITH YOUR JBOSS_HOME AND SERVER -->
<property name="trailblazer.dir" location="."/>
<property name="esb.home.dir" value="${trailblazer.dir}/../.."/>
<property name="install.dir" value="${esb.home.dir}/install"/>
<property file="${install.dir}/deployment.properties"/>
<property name="trailblazer.dir" value="."/>
<!-- properties for the esb part of the trailblazer -->
<property name="esb.dest" value="${basedir}/esb/build"/>
<property name="classes.dir" value="${basedir}/esb/build/classes"/>
<property name="esb.testclasses.dir" value="${basedir}/esb/build/classes/tests/"/>
<property name="esb.src.dir" value="${basedir}/esb/src"/>
<property name="esb.test.dir" value="${basedir}/esb/test"/>
<property name="esb.lib.dir" value="${basedir}/esb/lib"/>
<property name="report.dir" value="${basedir}/esb/build/tests"/>
<!-- properties for the client(web) part of the trailblazer -->
<property name="client.dir" value="${basedir}/client"/>
<property name="esb.samples.trailblazer.client.dest" value="${basedir}/client/build"/>
<property name="esb.samples.trailblazer.client.classes.dir" value="${basedir}/client/build/classes"/>
<property name="esb.samples.trailblazer.client.testclasses.dir" value="${basedir}/client/build/classes/tests/"/>
<property name="esb.samples.trailblazer.client.src.dir" value="${basedir}/client/src"/>
<property name="esb.samples.trailblazer.client.test.dir" value="${basedir}/client/test"/>
<property name="esb.samples.trailblazer.client.lib.dir" value="${basedir}/client/lib"/>
<property name="esb.samples.trailblazer.client.tests.report.dir" value="${basedir}/client/build/tests"/>
<property environment="env"/>
<property name="esb.lib.file" value="jbossesb-rosetta.jar"/>
<property name="soa.esb.lib.dist.dir" value="${esb.home.dir}/../../lib"/>
<property name="soa.esb.lib.src.dir" value="../../build/jbossesb/lib"/>
<property name="esb.default.dir" value="../../server/default"/>
<property name="esb.sar.lib.dir" value="${esb.default.dir}/deploy/jbossesb.sar/lib"/>
<!-- Path to server -->
<available file="jbossws.sar" filepath="${org.jboss.esb.server.home}/server/${org.jboss.esb.server.config}/deploy" property="soa.esb.config.dir" value="${org.jboss.esb.server.home}/server/${org.jboss.esb.server.config}"/>
<available file="jbossws.sar" filepath="${esb.default.dir}/deploy" property="soa.esb.config.dir" value="${esb.default.dir}"/>
<!-- Path to ESB libs -->
<available file="${esb.lib.file}" filepath="${soa.esb.config.dir}/deploy/jbossesb.sar/lib" property="soa.esb.lib.dir" value="${soa.esb.config.dir}/deploy/jbossesb.sar/lib"/>
<!-- Path to log4j.jar -->
<available file="client" filepath="${org.jboss.esb.server.home}" property="log4j.lib.dir" value="${org.jboss.esb.server.home}/client"/>
<available file="log4j.jar" filepath="${soa.esb.lib.dist.dir}/ext" property="log4j.lib.dir" value="${soa.esb.lib.dist.dir}/ext"/>
<!-- Path to testutil.jar -->
<available file="test-util.jar" filepath="${soa.esb.lib.src.dir}" property="test.util.dir" value="${soa.esb.lib.src.dir}"/>
<available file="test-util.jar" filepath="${trailblazer.dir}/esb/lib/ext" property="test.util.dir" value="${trailblazer.dir}/esb/lib/ext"/>
<!-- classpath -->
<path id="esb.samples.trailblazer.esb.classpath">
<fileset dir="${soa.esb.lib.dir}" includes="*.jar"/>
<fileset dir="${esb.lib.dir}/ext" includes="*.jar"/>
<fileset dir="${soa.esb.config.dir}/lib" includes="mail.jar antlr.jar"/>
<fileset dir="${esb.samples.trailblazer.client.lib.dir}/ext" includes="*.jar"/>
<fileset dir="${test.util.dir}" includes="test-util.jar"/>
<fileset dir="${log4j.lib.dir}" includes="log4j.jar"/>
</path>
<!-- classpath for running the listener-->
<path id="esb.samples.trailblazer.esb.classpath.run">
<fileset dir="${soa.esb.lib.dir}" includes="jaxr-api*.jar,scout*.jar,juddi*.jar"/>
<fileset dir="${esb.dest}/dist" includes="trailblazer-esb.jar"/>
<fileset dir="${esb.home.dir}/lib/ext" includes="*.jar" excludes="jaxr-api*.jar,scout*.jar,juddi*.jar"/>
<fileset dir="${soa.esb.lib.dir}" includes="*.jar" excludes="jaxr-api*.jar,scout*.jar,juddi*.jar"/>
<fileset dir="${log4j.lib.dir}" includes="jbossall-client.jar jbossws-client.jar mail.jar"/>
<fileset dir="${soa.esb.lib.dir}" includes="*.jar"/>
<fileset dir="${esb.lib.dir}/ext" includes="*.jar"/>
<!-- for finding the jbossesb-properties.xml file -->
<pathelement location="${basedir}"/>
</path>
<path id="esb.samples.trailblazer.esb.classpath.client">
<fileset dir="${soa.esb.lib.dir}"/>
<fileset dir="${esb.lib.dir}/ext" includes="*.jar"/>
<fileset dir="${log4j.lib.dir}" includes="jboss-jaxrpc.jar jbossall-client.jar jbossws-client.jar mail.jar log4j.jar"/>
<fileset dir="${soa.esb.config.dir}/deploy/jbossws.sar" includes="jboss-jaxrpc.jar"/>
<fileset dir="${soa.esb.lib.dir}" includes="*.jar"/>
<fileset dir="${esb.samples.trailblazer.client.lib.dir}/ext" includes="*.jar"/>
<fileset dir="${esb.dest}/dist" includes="trailblazer-esb.jar"/>
<pathelement location="${classes.dir}"/>
</path>
<target name="clean">
<delete dir="${esb.dest}"/>
<delete dir="${esb.samples.trailblazer.client.dest}"/>
</target>
<target name="messaging-config">
<property name="org.jboss.esb.server.deploy.dir" value="${org.jboss.esb.server.home}/server/${org.jboss.esb.server.config}/deploy"/>
<condition property="messaging.present">
<available file="${org.jboss.esb.server.deploy.dir}/jboss-messaging"/>
</condition>
<condition property="messaging.present">
<available file="${org.jboss.esb.server.deploy.dir}/jboss-messaging.sar"/>
</condition>
<condition property="jbossmq.present">
<not>
<isset property="messaging.present"/>
</not>
</condition>
</target>
<!-- dependencies specific to JBoss Messaging -->
<target name="messaging-dependencies" if="messaging.present">
<property name="jms.service.file" value="jbm-queue-service.xml"/>
<property name="jms.description" value="JBoss Messaging"/>
</target>
<!-- dependencies specific to JBoss MQ -->
<target name="jbossmq-dependencies" if="jbossmq.present">
<property name="jms.service.file" value="jbmq-queue-service.xml"/>
<property name="jms.description" value="JBoss MQ"/>
</target>
<!-- =================================================================== -->
<!-- Prepares the directory structure -->
<!-- =================================================================== -->
<target name="esb.built" unless="soa.esb.lib.dir">
<echo>Please build the ESB with "ant dist" in the ESB parent</echo>
<echo>directory in order to run the Trailblazer application.</echo>
<fail>Please build ESB first.</fail>
</target>
<target name="trailblazer.prepare" depends="esb.built,clean" if="soa.esb.lib.dir">
<mkdir dir="${esb.dest}"/>
<mkdir dir="${esb.dest}/dist"/>
<mkdir dir="${esb.dest}/classes"/>
<mkdir dir="${esb.samples.trailblazer.client.dest}"/>
<mkdir dir="${esb.samples.trailblazer.client.dest}/dist"/>
<mkdir dir="${esb.samples.trailblazer.client.dest}/classes"/>
</target>
<!-- Compilation targets -->
<!-- ___________________ -->
<!-- ESB COMPILATION -->
<target name="esb.compile" depends="trailblazer.prepare" description="Compiling Trailblazer ESB classes">
<javac destdir="${classes.dir}" classpathref="esb.samples.trailblazer.esb.classpath" debug="true">
<src path="${esb.src.dir}"/>
</javac>
</target>
<!-- CLIENT(WEB) COMPILATION -->
<target name="client.compile" depends="trailblazer.prepare" description="Compiling Trailblazer client classes">
<javac destdir="${esb.samples.trailblazer.client.classes.dir}" classpathref="esb.samples.trailblazer.esb.classpath.client" debug="true">
<src path="${esb.samples.trailblazer.client.src.dir}"/>
</javac>
</target>
<!-- JAR/WAR targets -->
<target name="esb.jar" depends="messaging-config, messaging-dependencies, jbossmq-dependencies, compile">
<property name="esb.build.dir" value="${esb.dest}"/>
<echo>${jms.service.file}</echo>
<!-- ESB Client JAR -->
<echo message="Building Trailblazer ESB archives"/>
<jar destfile="${esb.build.dir}/dist/trailblazer-esb.jar" basedir="${classes.dir}" includes="**/*.class" excludes="**/web/*.class">
</jar>
<!-- ESB Deployment (.esb) -->
<copy todir="${esb.build.dir}/META-INF">
<fileset dir="esb/conf" includes="jboss-esb.xml,deployment.xml"/>
</copy>
<jar destfile="${esb.build.dir}/dist/trailblazer.esb">
<fileset dir="${classes.dir}" excludes="**/web/*.class"/>
<fileset dir="${esb.build.dir}" includes="META-INF/**"/>
<fileset dir="${basedir}/esb/conf" includes="${jms.service.file}"/>
<fileset dir="${basedir}" includes="trailblazer.properties,template/**"/>
</jar>
</target>
<target name="war" depends="compile">
<!-- Web side WAR -->
<echo message="Building Trailblazer WAR file"/>
<delete file="${esb.samples.trailblazer.client.dest}/dist/trailblazer.war"/>
<war warfile="${esb.samples.trailblazer.client.dest}/dist/trailblazer.war" webxml="${basedir}/client/resources/web.xml">
<classes dir="${esb.samples.trailblazer.client.classes.dir}">
<include name="**/loanbroker/*.class"/>
<include name="**/trailblazer/web/*.class"/>
<include name="trailblazer.properties"/>
</classes>
<webinf dir="${basedir}/client/resources">
<include name="wsdl/*"/>
</webinf>
<lib dir="${esb.dest}/dist">
<include name="trailblazer-esb.jar"/>
</lib>
<fileset dir="client/jsp">
<include name="**/*.jsp"/>
</fileset>
</war>
</target>
<target name="deploy" depends="jar, war">
<property name="target-server" value="${org.jboss.esb.server.home}/server/${org.jboss.esb.server.config}"/>
<echo message="Deploying Trailblazer EAR and WAR files to target server '${target-server}'."/>
<copy todir="${target-server}/deploy">
<fileset dir="${esb.dest}/dist/" includes="trailblazer.esb"/>
<fileset dir="${esb.samples.trailblazer.client.dest}/dist/" includes="trailblazer.war"/>
</copy>
</target>
<!-- Short target names -->
<target name="compile" depends="esb.compile,client.compile"/>
<target name="jar" depends="esb.jar"/>
<!-- run the ESB listeners -->
<!-- set the first argument to 0 for an indefinite run for the listener launcher -->
<!-- arg1 = # of seconds to let the listener threads run -->
<!-- arg2 = location of the esb config file which describes the listener configurations for a Message aware listener config -->
<!-- arg3 (if any) = location of the esb config file which describes the listener configurations for a NON-Message aware listener config (gateway)-->
<target name="runESB" depends="jar">
<echo>Running ESB Trailblazer listeners</echo>
<java fork="yes" classname="org.jboss.soa.esb.listeners.StandAloneBootStrapper" failonerror="true">
<jvmarg value="-Dorg.jboss.soa.esb.propertyFile=${trailblazer.dir}/esb/jbossesb-properties.xml"/>
<arg value="${trailblazer.dir}/esb/conf/jboss-esb.xml"/>
<classpath refid="esb.samples.trailblazer.esb.classpath.run"/>
</java>
</target>
<!-- javadocs paths -->
<path id="esb.samples.trailblazer.esb.javadocs.path">
<pathelement path="esb/classes"/>
</path>
</project>
18 years, 1 month
[JBoss AOP] - java.lang.NoClassDefFoundError. Cant find an interface at lo
by elysch
Hello again.
I'm still very new to all this. I haven't been able to get my application working for a long time now. I'm sure I'm doing something wrong.
I hope I'm not asking a very dumb question, but I haven't been able to find a solution yet.
I'm getting the following error in the jboss console at loadtime:
11:30:16,578 ERROR [[action]] Servlet.service() para servlet action lanzÃÂÃÂÃÂÃÂÃÂÃÂÃÂó excepciÃÂÃÂÃÂÃÂÃÂÃÂÃÂón
| java.lang.NoClassDefFoundError: com/mitalteli/bolsaDeTrabajo/useCaseSlices/specific/consultarVacantes/IAspectoServicioConsultarVacantesBase
| at com.mitalteli.bolsaDeTrabajo.web.consultarVacantes.ControladorConsultarVacantesImpl.populateConsultarVacantesScreen(ControladorConsultarVac
| antesImpl.java:71)
| at com.mitalteli.bolsaDeTrabajo.web.consultarVacantes.ConsultarVacantes._poblarPantallaConsultarVacantes(ConsultarVacantes.java:72)
| at com.mitalteli.bolsaDeTrabajo.web.consultarVacantes.ConsultarVacantes.execute(ConsultarVacantes.java:19)
| at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
| at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
| at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
| at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
| at org.andromda.presentation.bpm4struts.ActionServlet.doGet(ActionServlet.java:39)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:619)
Maybe it's just a matter of a classpath or something like that.
The ear contains:
bolsaDeTrabajo-1.0-SNAPSHOT.ear
| |---\META-INF\jboss-app.xml
| |
| |---\bolsaDeTrabajo-web-1.0-SNAPSHOT.war
| |
| |---\WEB-INF\classes\com\mitalteli\bolsaDeTrabajo\web\consultarVacantes\
| ControladorConsultarVacantesImpl.class
| |
| |---\bolsaDeTrabajo-aop-1.0-SNAPSHOT.aop
| |---\com\mitalteli\bolsaDeTrabajo\useCaseSlices\specific\consultarVacantes\
| IAspectoServicioConsultarVacantesBase.class
As you can see, it is there, but in a different "sub-package".
ControladorConsultarVacantesImpl contains at line 72 (inside the populateConsultarVacantesScreen method):
...
| EmpresaVO[] empresas = ((com.mitalteli.bolsaDeTrabajo.useCaseSlices.specific.consultarVacantes.IAspectoServicioConsultarVacantesBase) getServicioConsultarVacantes()).getAllEmpresas();
| ...
I had to do that, because the original ServicioConsultarVacantesBase class didn't have a getAllEmpresas() and it's added with an introduction-mixin like this:
The jboss-app.xml contains:
<!-- **************************************************************************** -->
| <!-- INICIO: com.mitalteli.bolsaDeTrabajo.service.ServicioConsultarVacantesBase -->
|
| <introduction class="com.mitalteli.bolsaDeTrabajo.service.ServicioConsultarVacantesBase">
| <mixin>
| <interfaces>
| com.mitalteli.bolsaDeTrabajo.useCaseSlices.specific.consultarVacantes.IAspectoServicioConsultarVacantesBase
| </interfaces>
| <class>com.mitalteli.bolsaDeTrabajo.useCaseSlices.specific.consultarVacantes.MixinAspectoServicioConsultarVacantesBase</class>
| <construction>new com.mitalteli.bolsaDeTrabajo.useCaseSlices.specific.consultarVacantes.MixinAspectoServicioConsultarVacantesBase(this)</construction>
| </mixin>
| </introduction>
|
| <!-- FIN: com.mitalteli.bolsaDeTrabajo.service.ServicioConsultarVacantesBase -->
well... I hope it's a simple rookie mistake.
I don't want to fill up this message with thing's I don't know that will help. Feel free to ask me for any thing else if you think it's necessary. I could also upload the source code and the ear file to my site if anybody need's it.
The ear file has that structure, because it comes from an AndroMDA project, and I'm adding a bunch of functionality with AOP. Almost every thing related to my AOP code is inside the bolsaDeTrabajo-aop-1.0-SNAPSHOT.aop sub-package. I mean the DataAccessObject modifications, and the control/business layer modifications. I decided to leave the presentation layer almost without aspects because of the complexity of ti, that's why the ControladorConsultarVacantesImpl class has AOP related coding, and it's outside the AOP sub-package.
Thank you all, in advace.
Ely.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150215#4150215
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150215
18 years, 1 month
[EJB 3.0] - @Interceptors not working
by tharter
I've just been beating this problem to death for about 3 days now. Maybe a year or so back I wrote some custom EJB3 interceptors. All was well. Now I find for no reason I can discern that they simply do not get invoked anymore.
Specifically there is nothing super complex going on. I have an interceptor class, annotated method @AroundInvoke and a bean method in my deployment unit marked with @Interceptors(MyInterceptor.class). This has worked for quite some time. Lately, due to some reliability problems, I switched from jrocket R26.4 to R27.4. It appears that JBoss still DEPLOYS the interceptors
2008-05-12 18:44:32,431 DEBUG [org.jboss.ejb3.EJBContainer] Method interceptors for public com.tradedesksoftware.etsdata.users.group.Company com.tradedesksoftware.etsdata.DataManagerBean.getCompany(int): [InterceptorInfo{class=class com.tradedesksoftware.interceptors.AuthReturnInterceptor, aroundInvoke=Intercept}]
However when the business method is invoked, no interceptor. Same things seems to happen in unit tests using Embeddable EJB3, where the same interceptors also seemed to work fine previously. Even if I just add a 'do-nothing' interceptor that just spits out a log message, still not called.
Anyone have even a clue what I can do to try to figure this out? I'm at a loss here. Cannot go back to R26.4 of jrockit and can't live without the interceptors either :(
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150212#4150212
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150212
18 years, 1 month