tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jose Moreira <jmore...@e-terno.net>
Subject RE: Sample App
Date Fri, 07 Feb 2003 12:01:52 GMT
Hello,

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

build.xml excerpt:

...

  <property name="app.name"      value="myapp"/>
  <property name="app.path"      value="/${app.name}"/>
  <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}"
          destdir="${build.home}/WEB-INF/classes"
            debug="${compile.debug}"
      deprecation="${compile.deprecation}"
         optimize="${compile.optimize}">
        <classpath refid="compile.classpath"/>
    </javac>




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


Jose,

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:

WEB-INF/classes/src/mypackage/feijao/beanclass.class

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

HTH
/mde/
just my two cents . . . .

--- Josi_Moreira <jmoreira@e-terno.net> 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.
http://mailplus.yahoo.com

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



Mime
View raw message