tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jose Moreira <>
Subject RE: Sample App
Date Fri, 07 Feb 2003 12:01:52 GMT

i believe im doing it but when i compile i get no .java in WEB-INF/...

build.xml excerpt:


  <property name=""      value="myapp"/>
  <property name="app.path"      value="/${}"/>
  <property name="app.version"   value="0.1-dev"/>
  <property name="build.home"    value="${basedir}/build"/>
  <property name="catalina.home" value="../../../.."/> <!-- UPDATE THIS! -->
  <property name="dist.home"     value="${basedir}/dist"/>
  <property name="docs.home"     value="${basedir}/docs"/>
  <property name="manager.url"   value="http://localhost:8080/manager"/>
  <property name="src.home"      value="${basedir}/src"/>
  <property name="web.home"      value="${basedir}/web"/>


    <!-- Compile Java classes as necessary -->
    <mkdir    dir="${build.home}/WEB-INF/classes"/>
    <javac srcdir="${src.home}"
        <classpath refid="compile.classpath"/>

-----Mensagem original-----
De: Mark Eggers []
Enviada: quinta-feira, 6 de Fevereiro de 2003 20:42
Para: Tomcat Users List
Assunto: Re: Sample App


This looks like a packaging issue.  If you've compiled
your bean in src/mypackage/feijao with a package
definition of src.mypackage.feijao, then you'll need
to place the class file in:


where the WEB-INF directory is the one that lives
inside your particular web-app.

just my two cents . . . .

--- Josi_Moreira <> wrote:
> Im building a simple test with the jsp sample app
> just by adding a custom
> bean and a test.jsp but i get :
> java.lang.NoClassDefFoundError: src/mypackage/feijao
>         at
> java.lang.Class.getDeclaredConstructors0(Native
> Method)

Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message