You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "grobe.org" <ga...@grobe.org> on 2000/04/16 02:11:51 UTC

next step ?

I've successfully installed apache1.3.12 and tomcat3.1 (I believe because the examples test pages (jsp & servlets) have worked). Ant is also installed (and really cool), as it has built my java applications and placed all files under the webapps dir of /usr/local/tomcat.

I'm a little confused on the context mappings and am just asking for a little guidance because all of the docs I've read so far are short and configured differently. I believe what I've got setup so far is correct, except, when I access the web server, the page goes to where my DocumentRoot vars point to. I think I've got to work on the server.xml file?

How do I override that and make it point to /usr/local/tomcat/webapps/myProj w/o having to put in anything extra in the url (i.e. like the examples dir here at the end http://myMachine/examples), I would just like http://myMachine ... I'm sure getting my servlets working is also going to be a prob afterwards (nothing ever goes smoothly), so do I need to do anything extra for those? And how are .war files made?

Also, since apache is a much more robust server than tomcat, how do I make apache do all the work and just use tomcat to serve my jsp's and servlets?

TIA,

Gary

--- 
What is this talk of 'release'? Klingons do not make software 'releases'. 
Our software 'escapes' leaving a bloody trail of designers and quality 
assurance people in it's wake." - Klingon Programmer


Re: next step ?

Posted by Andy Riedel <an...@hearme.com>.
June,

This looks like your JDK might be the wrong version. I compile against JDK1.2.2. What are you using?

Andy
  ----- Original Message ----- 
  From: June Lee 
  To: tomcat-user@jakarta.apache.org 
  Sent: Sunday, April 16, 2000 4:32 AM
  Subject: Re: next step ?


  Hi, andy! 
  Thank you! 
  I have built the Tomcat, but I encountered some new problems: 
      1. When I build the Tomcat, Java compile error: 
  /usr/local/jakarta/build/tomcat/classes/org/apache/tomcat/shell/AdminImpl_Stub.java:56: Wrong number of arguments in method. 
                  ref.invoke(this, $method_stopService_0, null, 5971692918487801095L); 
                            ^ 
  /usr/local/jakarta/build/tomcat/classes/org/apache/tomcat/shell/AdminImpl_Stub.java:77: Wrong number of arguments in method. 
                  ref.invoke(this, $method_stopService_1, new java.lang.Object[] {new java.lang.Boolean($param_boolean_1)}, 2030536004644895953L); 
                            ^ 
  2 errors 
      2. When I start tomcat, no class def error" 
   Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tomcat/startup/Tomcat.class 

  Thank you! 

  June 
    
    

  Andy Riedel wrote: 

     June, Follow these steps: 1) Checkout the jakarta-ant module from the cvs repository2) Set your CLASSPATH env variable to include tools.jar located in the JDK lib directory3) Run the bootstrap script located in the jakarta-ant directory4) Run the build script in the jakarta-ant directory After these steps, you will be able to build the jakarta-tomcat module. Andy 
      ----- Original Message -----
      From: June Lee
      To: tomcat-user@jakarta.apache.org
      Sent: Sunday, April 16, 2000 12:30 AM
      Subject: Re: next step ?
       Could you tell me how to install build Tomcat from source files. 
      When I build it, the following error information displayed! 
      Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/Main 
      Thank you! 

      "grobe.org" wrote: 

        I've successfully installed apache1.3.12 and tomcat3.1 (I believe because the examples test pages (jsp & servlets) have worked). Ant is also installed (and really cool), as it has built my java applications and placed all files under the webapps dir of /usr/local/tomcat. 
        I'm a little confused on the context mappings and am just asking for a little guidance because all of the docs I've read so far are short and configured differently. I believe what I've got setup so far is correct, except, when I access the web server, the page goes to where my DocumentRoot vars point to. I think I've got to work on the server.xml file? 

        How do I override that and make it point to /usr/local/tomcat/webapps/myProj w/o having to put in anything extra in the url (i.e. like the examples dir here at the end http://myMachine/examples), I would just like http://myMachine ... I'm sure getting my servlets working is also going to be a prob afterwards (nothing ever goes smoothly), so do I need to do anything extra for those? And how are .war files made? 

        Also, since apache is a much more robust server than tomcat, how do I make apache do all the work and just use tomcat to serve my jsp's and servlets?TIA, Gary --- 
        What is this talk of 'release'? Klingons do not make software 'releases'. 
        Our software 'escapes' leaving a bloody trail of designers and quality 
        assurance people in it's wake." - Klingon Programmer

      -------------------------------------------------------------------------- To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org For additional commmands, email: tomcat-user-help@jakarta.apache.org
  -------------------------------------------------------------------------- To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org For additional commmands, email: tomcat-user-help@jakarta.apache.org 

Re: next step ?

Posted by Andy Riedel <an...@hearme.com>.
June,

Follow these steps:

1) Checkout the jakarta-ant module from the cvs repository
2) Set your CLASSPATH env variable to include tools.jar located in the JDK lib directory
3) Run the bootstrap script located in the jakarta-ant directory
4) Run the build script in the jakarta-ant directory

After these steps, you will be able to build the jakarta-tomcat module.

Andy
  ----- Original Message ----- 
  From: June Lee 
  To: tomcat-user@jakarta.apache.org 
  Sent: Sunday, April 16, 2000 12:30 AM
  Subject: Re: next step ?


  Could you tell me how to install build Tomcat from source files. 
  When I build it, the following error information displayed! 
  Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/Main 
  Thank you! 

  "grobe.org" wrote: 

    I've successfully installed apache1.3.12 and tomcat3.1 (I believe because the examples test pages (jsp & servlets) have worked). Ant is also installed (and really cool), as it has built my java applications and placed all files under the webapps dir of /usr/local/tomcat. 
    I'm a little confused on the context mappings and am just asking for a little guidance because all of the docs I've read so far are short and configured differently. I believe what I've got setup so far is correct, except, when I access the web server, the page goes to where my DocumentRoot vars point to. I think I've got to work on the server.xml file? 

    How do I override that and make it point to /usr/local/tomcat/webapps/myProj w/o having to put in anything extra in the url (i.e. like the examples dir here at the end http://myMachine/examples), I would just like http://myMachine ... I'm sure getting my servlets working is also going to be a prob afterwards (nothing ever goes smoothly), so do I need to do anything extra for those? And how are .war files made? 

    Also, since apache is a much more robust server than tomcat, how do I make apache do all the work and just use tomcat to serve my jsp's and servlets?TIA, Gary --- 
    What is this talk of 'release'? Klingons do not make software 'releases'. 
    Our software 'escapes' leaving a bloody trail of designers and quality 
    assurance people in it's wake." - Klingon Programmer

  -------------------------------------------------------------------------- To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org For additional commmands, email: tomcat-user-help@jakarta.apache.org