You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Hiller, Dean D (Dean)" <dh...@avaya.com> on 2004/08/12 21:00:20 UTC

tomcat build broken with strange javac error(never seen this one before)

I have never seen an error from javac like this before(and I am by no
means new to java).  I have even read the JLS and am not sure what in
the world this is.  Can anyone point me somewhere on how to resolve this
issue?  Or possibly point me to a build.xml for tomcat5 that works?  The
one on the website does not work as I get the below.  I am using
1.4.2_05.  Does the build.xml file work for anyone else?  If so, what
version of java are you using?

 

 

build-catalina-core:

    [javac] Compiling 302 source files to
C:\ROOT\views\jakartaviews\tomcatTry\jakarta-tomcat-5\build\classes

    [javac]
C:\ROOT\views\jakartaviews\tomcatTry\jakarta-tomcat-catalina\catalina\sr
c\share\org\apache\catalina\Container.java:23: cannot access
javax.servlet.ServletException

    [javac] bad class file:
C:\usr\share\java\servlet-api-2.4\lib\servlet-api.jar(javax/servlet/Serv
letException.class)

    [javac] class file has wrong version 49.0, should be 48.0

    [javac] Please remove or make sure it appears in the correct
subdirectory of the classpath.

    [javac] import javax.servlet.ServletException;

    [javac]                      ^

    [javac] 1 error

 

Also, I really want to know more about this error and how it is
possible.  Does anyone know what this means?  Ps.  Am I on the wrong
list?  Is this really a problem with the servlet api jar?, but which
project is that and who do I talk to???  

thanks,

dean


Re: tomcat build broken with strange javac error(never seen this one before)

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
At 02:20 PM 8/12/2004, Joshua Paul wrote:
>Stop sending me e-mail.

Don't tell us - you subscribed.  See the email headers in this message,
specifically the List-Unsubscribe: header, and send a blank email to
that address.

When you subscribed, there was another email that told you how to
unsubscribe later, it was the same email address.





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


Re: tomcat build broken with strange javac error(never seen this one before)

Posted by Joshua Paul <jo...@arimiami.com>.
Stop sending me e-mail.
----- Original Message ----- 
From: "Hiller, Dean D (Dean)" <dh...@avaya.com>
To: <to...@jakarta.apache.org>
Sent: Thursday, August 12, 2004 3:00 PM
Subject: tomcat build broken with strange javac error(never seen this one
before)


I have never seen an error from javac like this before(and I am by no
means new to java).  I have even read the JLS and am not sure what in
the world this is.  Can anyone point me somewhere on how to resolve this
issue?  Or possibly point me to a build.xml for tomcat5 that works?  The
one on the website does not work as I get the below.  I am using
1.4.2_05.  Does the build.xml file work for anyone else?  If so, what
version of java are you using?





build-catalina-core:

    [javac] Compiling 302 source files to
C:\ROOT\views\jakartaviews\tomcatTry\jakarta-tomcat-5\build\classes

    [javac]
C:\ROOT\views\jakartaviews\tomcatTry\jakarta-tomcat-catalina\catalina\sr
c\share\org\apache\catalina\Container.java:23: cannot access
javax.servlet.ServletException

    [javac] bad class file:
C:\usr\share\java\servlet-api-2.4\lib\servlet-api.jar(javax/servlet/Serv
letException.class)

    [javac] class file has wrong version 49.0, should be 48.0

    [javac] Please remove or make sure it appears in the correct
subdirectory of the classpath.

    [javac] import javax.servlet.ServletException;

    [javac]                      ^

    [javac] 1 error



Also, I really want to know more about this error and how it is
possible.  Does anyone know what this means?  Ps.  Am I on the wrong
list?  Is this really a problem with the servlet api jar?, but which
project is that and who do I talk to???

thanks,

dean




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


Re: tomcat build broken with strange javac error(never seen this one before)

Posted by Filip Hanik - Dev <de...@hanik.com>.
post on tomcat-user in the future, thanks!

these are simple steps

cvs co jakarta-tomcat-5
cd jakarta-tomcat-5
ant update
ant download
ant dist


Filip

----- Original Message ----- 
From: "Hiller, Dean D (Dean)" <dh...@avaya.com>
To: <to...@jakarta.apache.org>
Sent: Thursday, August 12, 2004 2:00 PM
Subject: tomcat build broken with strange javac error(never seen this one before)


I have never seen an error from javac like this before(and I am by no
means new to java).  I have even read the JLS and am not sure what in
the world this is.  Can anyone point me somewhere on how to resolve this
issue?  Or possibly point me to a build.xml for tomcat5 that works?  The
one on the website does not work as I get the below.  I am using
1.4.2_05.  Does the build.xml file work for anyone else?  If so, what
version of java are you using?

 

 

build-catalina-core:

    [javac] Compiling 302 source files to
C:\ROOT\views\jakartaviews\tomcatTry\jakarta-tomcat-5\build\classes

    [javac]
C:\ROOT\views\jakartaviews\tomcatTry\jakarta-tomcat-catalina\catalina\sr
c\share\org\apache\catalina\Container.java:23: cannot access
javax.servlet.ServletException

    [javac] bad class file:
C:\usr\share\java\servlet-api-2.4\lib\servlet-api.jar(javax/servlet/Serv
letException.class)

    [javac] class file has wrong version 49.0, should be 48.0

    [javac] Please remove or make sure it appears in the correct
subdirectory of the classpath.

    [javac] import javax.servlet.ServletException;

    [javac]                      ^

    [javac] 1 error

 

Also, I really want to know more about this error and how it is
possible.  Does anyone know what this means?  Ps.  Am I on the wrong
list?  Is this really a problem with the servlet api jar?, but which
project is that and who do I talk to???  

thanks,

dean



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