[Installation, Configuration & DEPLOYMENT] - Re: running EJB pplication in jboss giving NoClassDefFoundEr
by Shiveeta
ok will chk that out.
However whil running the ant command i got a message indicating that the classpath is being picked :- <Using base Classpath>
.
| D:\shivi_wrk_ejb\documentation-example\examples\build>ant intro-interest-client
| Buildfile: build.xml
|
| validate:
|
| fail_if_not_valid:
|
| init:
| [echo] Using JBoss directory=D:\downloads\JBoss\jboss-4.2.2.GA\jboss-4.2.2.
| GA
| [echo] Using base classpath=D:\downloads\JBoss\jboss-4.2.2.GA\jboss-4.2.2.G
| A\client\jboss-j2ee.jar;D:\downloads\JBoss\jboss-4.2.2.GA\jboss-4.2.2.GA\client\
| jaas.jar;D:\downloads\JBoss\jboss-4.2.2.GA\jboss-4.2.2.GA\client\jbosssx-client.
| jar;D:\downloads\JBoss\jboss-4.2.2.GA\jboss-4.2.2.GA\client\jboss-client.jar;D:\
| downloads\JBoss\jboss-4.2.2.GA\jboss-4.2.2.GA\client\jnp-client.jar;D:\downloads
| \JBoss\jboss-4.2.2.GA\tomcat\lib\servlet.jar
| [echo] Using Source directory=D:\shivi_wrk_ejb\documentation-example\exampl
| es
| [echo] Using Build directory=D:\shivi_wrk_ejb\documentation-example\example
| s/build-examples
|
| intro-interest-client:
|
| compile:
|
| interest-client:
| [java] Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss
| /logging/Logger
| [java] at org.jnp.interfaces.NamingContext.<clinit>(NamingContext.java:
| 160)
| [java] at org.jnp.interfaces.NamingContextFactory.getInitialContext(Nam
| ingContextFactory.java:56)
| [java] at javax.naming.spi.NamingManager.getInitialContext(NamingManage
| r.java:667)
| [java] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.
| java:247)
| [java] at javax.naming.InitialContext.init(InitialContext.java:223)
| [java] at javax.naming.InitialContext.<init>(InitialContext.java:175)
| [java] at org.jboss.docs.interest.InterestClient.main(InterestClient.ja
| va:27)
| [java] Java Result: 1
|
| BUILD SUCCESSFUL
| Total time: 1 second
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146750#4146750
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146750
17 years, 12 months
[Installation, Configuration & DEPLOYMENT] - Re: running EJB pplication in jboss giving NoClassDefFoundEr
by Shiveeta
the classpath i am setting in My computer-> Properties -> Environment variables. the build.xml used is :-
<?xml version="1.0" encoding="UTF-8" ?>
| <!--
| Ant build file for the documentation tutorial code
| Writer of a chapter with an example have to include a foroward
| to their build file. This latest build file suppose arguments
| sets here :
| src.dir : Directory where the source are : manual\src\examples
| build.dir : Base directory where to store generated files (class/ejb/war/...)
| classpath : Classpath used to make any compilation (set up here by verifing
| which version of JBoss is used.
|
| -->
|
| <project name="CMP" default="main" basedir="../">
|
| <property name="env" environment="env" value="" location=""/>
| <!-- Override with your JBoss server dist location if the JBOSS_DIST env var is not set -->
| <property name="jboss.dist" value="${env.JBOSS_DIST}"/>
| <!-- Override with your web server servlet jar location. The default assumes that
| JBOSS_DIST points to a JBoss/Tomcat bundle distribution
| -->
| <property name="servlet.jar" value="${env.JBOSS_DIST}}/../tomcat/lib/servlet.jar"/>
| <property name="src.dir" value="${basedir}"/>
| <property name="src.resources" value="${basedir}/resources"/>
| <property name="build.dir" value="${basedir}/build-examples"/>
| <property name="dist.dir" value="${basedir}/../../dist-examples"/>
|
| <path id="base.path_22">
| <pathelement location="${jboss.dist}/client/ejb.jar"/>
| <pathelement location="${jboss.dist}/client/jaas.jar"/>
| <pathelement location="${jboss.dist}/client/jbosssx-client.jar"/>
| <pathelement location="${jboss.dist}/client/jboss-client.jar"/>
| <pathelement location="${jboss.dist}/client/jnp-client.jar"/>
| <pathelement location="${servlet.jar}"/>
| </path>
| <path id="base.path_23">
| <pathelement location="${jboss.dist}/client/jboss-j2ee.jar"/>
| <pathelement location="${jboss.dist}/client/jaas.jar"/>
| <pathelement location="${jboss.dist}/client/jbosssx-client.jar"/>
| <pathelement location="${jboss.dist}/client/jboss-client.jar"/>
| <pathelement location="${jboss.dist}/client/jnp-client.jar"/>
| <pathelement location="${servlet.jar}"/>
| </path>
|
| <target name="validate">
| <available property="classpath_id" value="base.path_22" file="${jboss.dist}/client/ejb.jar" />
| <available property="classpath_id" value="base.path_23" file="${jboss.dist}/client/jboss-j2ee.jar" />
| </target>
|
| <target name="fail_if_not_valid" unless="classpath_id">
| <fail message="jboss.dist=${jboss.dist} is not a valid JBoss dist directory"/>
| </target>
|
| <target name="init" depends="validate,fail_if_not_valid">
| <property name="classpath" refid="${classpath_id}" />
| <echo message="Using JBoss directory=${jboss.dist}" />
| <echo message="Using base classpath=${classpath}" />
| <echo message="Using Source directory=${src.dir}" />
| <echo message="Using Build directory=${build.dir}" />
| </target>
|
| <!-- Clean build and dist -->
| <target name="clean" depends="init">
| <delete dir="${build.dir}"/>
| <delete dir="${dist.dir}"/>
| </target>
|
| <!-- No default Target -->
| <target name="main" depends="init">
| <echo message="Specify which target you want to run. Example: build cmp-cd-list" />
| </target>
|
| <!-- Target to create files to store on the Web site -->
|
| <target name="dist" depends="clean">
| <mkdir dir="${dist.dir}"/>
| <!-- Bundle all the sources and build script in one file -->
| <zip zipfile="${dist.dir}/documentation-example.zip" basedir="${src.dir}/../"
| includes="examples/**" />
| <tar tarfile="${dist.dir}/documentation-example.tar" basedir="${src.dir}/../"
| includes="examples/**" />
| <gzip src="${dist.dir}/documentation-example.tar" zipfile="${dist.dir}/documentation-example.tar.gz" />
| <!-- Add Chapter specific files here
| <antcall target="cmp-cd-dist" />
| -->
| </target>
|
| <!-- *************************************************************************** -->
| <!-- Chapter 1 - First Steps -->
| <target name="intro-interest-compile" depends="init">
| <ant antfile="org/jboss/docs/interest/build.xml" target="compile" />
| </target>
|
| <target name="intro-interest-jar" depends="init">
| <ant antfile="org/jboss/docs/interest/build.xml" target="ejb-jar" />
| </target>
|
| <target name="intro-interest-ear" depends="init">
| <ant antfile="org/jboss/docs/interest/build.xml" target="ear" />
| </target>
|
| <target name="intro-interest-deploy" depends="init">
| <ant antfile="org/jboss/docs/interest/build.xml" target="deploy-ejb-jar" />
| </target>
|
| <target name="intro-interest-client" depends="init">
| <ant antfile="org/jboss/docs/interest/build.xml" target="interest-client" />
| </target>
|
|
|
| </project>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146743#4146743
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146743
17 years, 12 months
[JBossWS] - Re: Cannot obtain wsdl service
by schmil
On changing to JAX-WS i got the following Error message:
2008-04-23 17:39:08,214 ERROR [OrderServiceClient] Exception during Webservice call:
| java.lang.IllegalArgumentException: Cannot obtain wsdl service: {http://localhost:8080/ina}DitaServiceHandlerService we have [{urn:ina:ws:dita:de}DitaServiceHandlerService]
| at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaDataInternal(JAXWSClientMetaDataBuilder.java:145)
| at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaData(JAXWSClientMetaDataBuilder.java:87)
| at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.<init>(ServiceDelegateImpl.java:131)
| at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:61)
| at javax.xml.ws.Service.<init>(Service.java:56)
| at javax.xml.ws.Service.create(Service.java:680)
| at OrderServiceClient.sendOrders(OrderServiceClient.java:155)
|
and after replacing
QName qname = new QName("http://localhost:8080/ina", "DitaServiceHandlerService");
with
QName qname = new QName("urn:ina:ws:dita:de", "DitaServiceHandlerService");
and copying
- jaxb-api.jar
- jboss-jaxws.jar
- jboss-saaj.jar
from client\ to lib\endorsed\
it works fine. Thanks
Lars
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146738#4146738
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146738
17 years, 12 months