You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michael Bergknoff <be...@yahoo.com> on 2001/04/25 02:02:21 UTC

HelloWorld example

The example hello world servlet distributed with
tomcat
is accessed via the standalone tomcat as:
http://localhost:8080/examples/servlet/HelloWorldExample

With mod_jk and apache what is the URL to access the
same servlet? I have included the 
mod_jk.conf-auto in httpd.conf. Is there any other
config. required?

Thanks,
Mike

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Re: HelloWorld example

Posted by Jeff Kilbride <je...@kilbride.com>.
Hi Mike,

It looks like the request isn't being forwarded to Tomcat by Apache. That
usually means there's a JkMount statement missing. How are you including
your mod_jk.conf-auto into httpd.conf?

Look at the mod_jk.conf-auto file and you should see statements like these:

-----------------
LoadModule jk_module libexec/mod_jk.so

JkWorkersFile /path/to/tomcat/conf/workers.properties
JkLogFile /path/to/tomcat/logs/mod_jk.log
JkLogLevel error

Alias /examples "/path/to/tomcat/webapps/examples"
<Directory "/path/to/tomcat/webapps/examples">
    Options Indexes FollowSymLinks
</Directory>

JkMount /examples/servlet/* ajp12
JkMount /examples/*.jsp ajp12
-----------------

Did you restart apache after installing the /examples context?

Thanks,
--jeff


----- Original Message -----
From: "Michael Bergknoff" <be...@yahoo.com>
To: <to...@jakarta.apache.org>
Sent: Tuesday, April 24, 2001 6:06 PM
Subject: Re: HelloWorld example


> httpd/logs/access_log is the apache log.
> The error_log in the same directory doesn't have any
> new entries. The only message from today is:
> [Tue Apr 24 16:35:33 2001] [notice] Apache/1.3.12
> (Unix)  (Red Hat/Linux) mod_jk PHP/3.0.15
> mod_perl/1.21 configured -- resuming normal operations
>
>
> Thanks,
> Mike
> --- Tan Khim Siang <ta...@dv9.com> wrote:
> > Mike, check the error log of apache instead.
> >
> > Khim
> > ----- Original Message -----
> > From: Michael Bergknoff <be...@yahoo.com>
> > To: <to...@jakarta.apache.org>
> > Sent: Wednesday, April 25, 2001 8:45 AM
> > Subject: Re: HelloWorld example
> >
> >
> > > The error appears to come from apache.
> > > No message is printed to any tomcat logs.
> > > In httpd/logs/access_log I get this:
> > > 127.0.0.1 - - [24/Apr/2001:17:42:42 -0700] "GET
> > > /examples/servlet/HelloWorldExample HTTP/1.0" 403
> > 298
> > >
> > > Thanks,
> > > Mike
> > >
> > >
> > > --- Jeff Kilbride <je...@kilbride.com> wrote:
> > > > Is this 403 page being generated by Apache or
> > > > Tomcat? Check your Apache or
> > > > Tomcat logs, if you're not sure.
> > > >
> > > > --jeff
> > > >
> > > > ----- Original Message -----
> > > > From: "Michael Bergknoff" <be...@yahoo.com>
> > > > To: <to...@jakarta.apache.org>
> > > > Sent: Tuesday, April 24, 2001 5:34 PM
> > > > Subject: Re: HelloWorld example
> > > >
> > > >
> > > > > I get a 403 Forbidden error with that URL
> > > > > (You don't have permission to access
> > > > > /examples/servlet/HelloWorldExample on this
> > > > server).
> > > > >
> > > > > Thanks,
> > > > > Mike
> > > > >
> > > > > --- Jeff Kilbride <je...@kilbride.com> wrote:
> > > > > >
> > > >
> > http://localhost/examples/servlet/HelloWorldExample
> > > > > >
> > > > > > Just get rid of the "8080" port designation.
> > For
> > > > the
> > > > > > examples, the
> > > > > > mod_jk.conf-auto should work without any
> > > > > > modification.
> > > > > >
> > > > > > Thanks,
> > > > > > --jeff
> > > > > >
> > > > > > ----- Original Message -----
> > > > > > From: "Michael Bergknoff" <be...@yahoo.com>
> > > > > > To: <to...@jakarta.apache.org>
> > > > > > Sent: Tuesday, April 24, 2001 5:02 PM
> > > > > > Subject: HelloWorld example
> > > > > >
> > > > > >
> > > > > > > The example hello world servlet
> > distributed
> > > > with
> > > > > > > tomcat
> > > > > > > is accessed via the standalone tomcat as:
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> http://localhost:8080/examples/servlet/HelloWorldExample
> > > > > > >
> > > > > > > With mod_jk and apache what is the URL to
> > > > access
> > > > > > the
> > > > > > > same servlet? I have included the
> > > > > > > mod_jk.conf-auto in httpd.conf. Is there
> > any
> > > > other
> > > > > > > config. required?
> > > > > > >
> > > > > > > Thanks,
> > > > > > > Mike
> > > > > > >
> > > > > > >
> > > >
> > __________________________________________________
> > > > > > > Do You Yahoo!?
> > > > > > > Yahoo! Auctions - buy the things you want
> > at
> > > > great
> > > > > > prices
> > > > > > > http://auctions.yahoo.com/
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > __________________________________________________
> > > > > Do You Yahoo!?
> > > > > Yahoo! Auctions - buy the things you want at
> > great
> > > > prices
> > > > > http://auctions.yahoo.com/
> > > > >
> > > >
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Auctions - buy the things you want at great
> > prices
> > > http://auctions.yahoo.com/
> > >
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>


Database applets - help

Posted by Dana Marcusanu <dm...@yahoo.com>.
Hi, 
I was wondering if you can help me. I am using Tomcat 3.2.1, MM.MYSQL
2.0.4 and MySQL database. I am trying to access data from the database by
using the following applet:
import java.sql.*;
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import java.util.Vector;

public class exa extends Applet {

    private Statement stat;
    private Button b1;
    private String message = "Alles Ok";
    private String message2, message3;
    private int x, y;
    private Vector results;

    public void init () {
        x = 5;
        y = 90;
        b1 = new Button("Search");
        b1.addActionListener(new ClickHandler());
        add(b1);
        try {
	    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
            System.out.println("Driver loaded");
            message = "Driver loaded";
            repaint();
        }
        catch (Exception e) {
            System.out.println("Driver not loaded");
            e.printStackTrace();
            message = "Driver not loaded";
            repaint();
        }
    }

    public void start() {
        String url = "jdbc:mysql://129.1.66.14:3306/test1";
        String query = "Select * from people";
        try {
            Connection conn = DriverManager.getConnection(url);
            stat = conn.createStatement();
            ResultSet rs = stat.executeQuery(query);
            while (rs.next()) {
                String voor = rs.getString(1);
                results.addElement(voor);
            }
        }
        catch (Exception e) {
            e.printStackTrace();
            message2 = "connection error";
            repaint();
        }
    }

    public void paint (Graphics g) {
        g.drawString(message, 5, 50);
        if (message2 != null) {
            g.drawString(message2, 5, 70);
        }
        if (message3 != null) {
            g.drawString(message2, x, y);
        }
    }

    class ClickHandler implements ActionListener {
        public void actionPerformed (ActionEvent e) {
            int index = 1;
            message3 = results.elementAt(index).toString();
            repaint();
        }
    }
}

I got connection error and I don't know how to fix it. Any suggestion will
be welcome.

Thanks, Dana Marcusanu 

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Re: HelloWorld example

Posted by Jeff Kilbride <je...@kilbride.com>.
There you go! Sometimes it's the simple things...

--jeff

----- Original Message ----- 
From: "Michael Bergknoff" <be...@yahoo.com>
To: <to...@jakarta.apache.org>
Sent: Tuesday, April 24, 2001 6:24 PM
Subject: Re: HelloWorld example


> You got it!
> Permissions on the webapps/examples were 775 but
> tomcat was installed under my home dir which was 700.
> I guess since I started tomcat from my own user id
> it worked fine from tomcat but failed from apache
> since it wasn't running as my user id. After changing
> my home dir to 755 apache now works also.
> 
> Thanks again,
> Mike
> 
> --- Tan Khim Siang <ta...@dv9.com> wrote:
> > Mike, how about the permissions of the directories
> > where the examples are
> > held?  Are they ok?  755 should be fine.
> > ----- Original Message -----
> > From: Michael Bergknoff <be...@yahoo.com>
> > To: <to...@jakarta.apache.org>
> > Sent: Wednesday, April 25, 2001 9:06 AM
> > Subject: Re: HelloWorld example
> > 
> > 
> > > httpd/logs/access_log is the apache log.
> > > The error_log in the same directory doesn't have
> > any
> > > new entries. The only message from today is:
> > > [Tue Apr 24 16:35:33 2001] [notice] Apache/1.3.12
> > > (Unix)  (Red Hat/Linux) mod_jk PHP/3.0.15
> > > mod_perl/1.21 configured -- resuming normal
> > operations
> > >
> > >
> > > Thanks,
> > > Mike
> > > --- Tan Khim Siang <ta...@dv9.com> wrote:
> > > > Mike, check the error log of apache instead.
> > > >
> > > > Khim
> > > > ----- Original Message -----
> > > > From: Michael Bergknoff <be...@yahoo.com>
> > > > To: <to...@jakarta.apache.org>
> > > > Sent: Wednesday, April 25, 2001 8:45 AM
> > > > Subject: Re: HelloWorld example
> > > >
> > > >
> > > > > The error appears to come from apache.
> > > > > No message is printed to any tomcat logs.
> > > > > In httpd/logs/access_log I get this:
> > > > > 127.0.0.1 - - [24/Apr/2001:17:42:42 -0700]
> > "GET
> > > > > /examples/servlet/HelloWorldExample HTTP/1.0"
> > 403
> > > > 298
> > > > >
> > > > > Thanks,
> > > > > Mike
> > > > >
> > > > >
> > > > > --- Jeff Kilbride <je...@kilbride.com> wrote:
> > > > > > Is this 403 page being generated by Apache
> > or
> > > > > > Tomcat? Check your Apache or
> > > > > > Tomcat logs, if you're not sure.
> > > > > >
> > > > > > --jeff
> > > > > >
> > > > > > ----- Original Message -----
> > > > > > From: "Michael Bergknoff" <be...@yahoo.com>
> > > > > > To: <to...@jakarta.apache.org>
> > > > > > Sent: Tuesday, April 24, 2001 5:34 PM
> > > > > > Subject: Re: HelloWorld example
> > > > > >
> > > > > >
> > > > > > > I get a 403 Forbidden error with that URL
> > > > > > > (You don't have permission to access
> > > > > > > /examples/servlet/HelloWorldExample on
> > this
> > > > > > server).
> > > > > > >
> > > > > > > Thanks,
> > > > > > > Mike
> > > > > > >
> > > > > > > --- Jeff Kilbride <je...@kilbride.com>
> > wrote:
> > > > > > > >
> > > > > >
> > > >
> > http://localhost/examples/servlet/HelloWorldExample
> > > > > > > >
> > > > > > > > Just get rid of the "8080" port
> > designation.
> > > > For
> > > > > > the
> > > > > > > > examples, the
> > > > > > > > mod_jk.conf-auto should work without any
> > > > > > > > modification.
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > > --jeff
> > > > > > > >
> > > > > > > > ----- Original Message -----
> > > > > > > > From: "Michael Bergknoff"
> > <be...@yahoo.com>
> > > > > > > > To: <to...@jakarta.apache.org>
> > > > > > > > Sent: Tuesday, April 24, 2001 5:02 PM
> > > > > > > > Subject: HelloWorld example
> > > > > > > >
> > > > > > > >
> > > > > > > > > The example hello world servlet
> > > > distributed
> > > > > > with
> > > > > > > > > tomcat
> > > > > > > > > is accessed via the standalone tomcat
> > as:
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> http://localhost:8080/examples/servlet/HelloWorldExample
> > > > > > > > >
> > > > > > > > > With mod_jk and apache what is the URL
> > to
> > > > > > access
> > > > > > > > the
> > > > > > > > > same servlet? I have included the
> > > > > > > > > mod_jk.conf-auto in httpd.conf. Is
> > there
> > > > any
> > > > > > other
> > > > > > > > > config. required?
> > > > > > > > >
> > > > > > > > > Thanks,
> > > > > > > > > Mike
> > > > > > > > >
> > > > > > > > >
> > > > > >
> > > >
> > __________________________________________________
> > > > > > > > > Do You Yahoo!?
> > > > > > > > > Yahoo! Auctions - buy the things you
> > want
> > > > at
> > > > > > great
> > > > > > > > prices
> > > > > > > > > http://auctions.yahoo.com/
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > >
> > __________________________________________________
> > > > > > > Do You Yahoo!?
> > > > > > > Yahoo! Auctions - buy the things you want
> > at
> > > > great
> > > > > > prices
> > > > > > > http://auctions.yahoo.com/
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > __________________________________________________
> > > > > Do You Yahoo!?
> > > > > Yahoo! Auctions - buy the things you want at
> > great
> > > > prices
> > > > > http://auctions.yahoo.com/
> > > > >
> > > >
> > > >
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Auctions - buy the things you want at great
> > prices
> > > http://auctions.yahoo.com/
> > >
> > 
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
> 


Re: HelloWorld example

Posted by Michael Bergknoff <be...@yahoo.com>.
You got it!
Permissions on the webapps/examples were 775 but
tomcat was installed under my home dir which was 700.
I guess since I started tomcat from my own user id
it worked fine from tomcat but failed from apache
since it wasn't running as my user id. After changing
my home dir to 755 apache now works also.

Thanks again,
Mike

--- Tan Khim Siang <ta...@dv9.com> wrote:
> Mike, how about the permissions of the directories
> where the examples are
> held?  Are they ok?  755 should be fine.
> ----- Original Message -----
> From: Michael Bergknoff <be...@yahoo.com>
> To: <to...@jakarta.apache.org>
> Sent: Wednesday, April 25, 2001 9:06 AM
> Subject: Re: HelloWorld example
> 
> 
> > httpd/logs/access_log is the apache log.
> > The error_log in the same directory doesn't have
> any
> > new entries. The only message from today is:
> > [Tue Apr 24 16:35:33 2001] [notice] Apache/1.3.12
> > (Unix)  (Red Hat/Linux) mod_jk PHP/3.0.15
> > mod_perl/1.21 configured -- resuming normal
> operations
> >
> >
> > Thanks,
> > Mike
> > --- Tan Khim Siang <ta...@dv9.com> wrote:
> > > Mike, check the error log of apache instead.
> > >
> > > Khim
> > > ----- Original Message -----
> > > From: Michael Bergknoff <be...@yahoo.com>
> > > To: <to...@jakarta.apache.org>
> > > Sent: Wednesday, April 25, 2001 8:45 AM
> > > Subject: Re: HelloWorld example
> > >
> > >
> > > > The error appears to come from apache.
> > > > No message is printed to any tomcat logs.
> > > > In httpd/logs/access_log I get this:
> > > > 127.0.0.1 - - [24/Apr/2001:17:42:42 -0700]
> "GET
> > > > /examples/servlet/HelloWorldExample HTTP/1.0"
> 403
> > > 298
> > > >
> > > > Thanks,
> > > > Mike
> > > >
> > > >
> > > > --- Jeff Kilbride <je...@kilbride.com> wrote:
> > > > > Is this 403 page being generated by Apache
> or
> > > > > Tomcat? Check your Apache or
> > > > > Tomcat logs, if you're not sure.
> > > > >
> > > > > --jeff
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "Michael Bergknoff" <be...@yahoo.com>
> > > > > To: <to...@jakarta.apache.org>
> > > > > Sent: Tuesday, April 24, 2001 5:34 PM
> > > > > Subject: Re: HelloWorld example
> > > > >
> > > > >
> > > > > > I get a 403 Forbidden error with that URL
> > > > > > (You don't have permission to access
> > > > > > /examples/servlet/HelloWorldExample on
> this
> > > > > server).
> > > > > >
> > > > > > Thanks,
> > > > > > Mike
> > > > > >
> > > > > > --- Jeff Kilbride <je...@kilbride.com>
> wrote:
> > > > > > >
> > > > >
> > >
> http://localhost/examples/servlet/HelloWorldExample
> > > > > > >
> > > > > > > Just get rid of the "8080" port
> designation.
> > > For
> > > > > the
> > > > > > > examples, the
> > > > > > > mod_jk.conf-auto should work without any
> > > > > > > modification.
> > > > > > >
> > > > > > > Thanks,
> > > > > > > --jeff
> > > > > > >
> > > > > > > ----- Original Message -----
> > > > > > > From: "Michael Bergknoff"
> <be...@yahoo.com>
> > > > > > > To: <to...@jakarta.apache.org>
> > > > > > > Sent: Tuesday, April 24, 2001 5:02 PM
> > > > > > > Subject: HelloWorld example
> > > > > > >
> > > > > > >
> > > > > > > > The example hello world servlet
> > > distributed
> > > > > with
> > > > > > > > tomcat
> > > > > > > > is accessed via the standalone tomcat
> as:
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
http://localhost:8080/examples/servlet/HelloWorldExample
> > > > > > > >
> > > > > > > > With mod_jk and apache what is the URL
> to
> > > > > access
> > > > > > > the
> > > > > > > > same servlet? I have included the
> > > > > > > > mod_jk.conf-auto in httpd.conf. Is
> there
> > > any
> > > > > other
> > > > > > > > config. required?
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > > Mike
> > > > > > > >
> > > > > > > >
> > > > >
> > >
> __________________________________________________
> > > > > > > > Do You Yahoo!?
> > > > > > > > Yahoo! Auctions - buy the things you
> want
> > > at
> > > > > great
> > > > > > > prices
> > > > > > > > http://auctions.yahoo.com/
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > >
> __________________________________________________
> > > > > > Do You Yahoo!?
> > > > > > Yahoo! Auctions - buy the things you want
> at
> > > great
> > > > > prices
> > > > > > http://auctions.yahoo.com/
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> __________________________________________________
> > > > Do You Yahoo!?
> > > > Yahoo! Auctions - buy the things you want at
> great
> > > prices
> > > > http://auctions.yahoo.com/
> > > >
> > >
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Auctions - buy the things you want at great
> prices
> > http://auctions.yahoo.com/
> >
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Re: HelloWorld example

Posted by Tan Khim Siang <ta...@dv9.com>.
Mike, how about the permissions of the directories where the examples are
held?  Are they ok?  755 should be fine.
----- Original Message -----
From: Michael Bergknoff <be...@yahoo.com>
To: <to...@jakarta.apache.org>
Sent: Wednesday, April 25, 2001 9:06 AM
Subject: Re: HelloWorld example


> httpd/logs/access_log is the apache log.
> The error_log in the same directory doesn't have any
> new entries. The only message from today is:
> [Tue Apr 24 16:35:33 2001] [notice] Apache/1.3.12
> (Unix)  (Red Hat/Linux) mod_jk PHP/3.0.15
> mod_perl/1.21 configured -- resuming normal operations
>
>
> Thanks,
> Mike
> --- Tan Khim Siang <ta...@dv9.com> wrote:
> > Mike, check the error log of apache instead.
> >
> > Khim
> > ----- Original Message -----
> > From: Michael Bergknoff <be...@yahoo.com>
> > To: <to...@jakarta.apache.org>
> > Sent: Wednesday, April 25, 2001 8:45 AM
> > Subject: Re: HelloWorld example
> >
> >
> > > The error appears to come from apache.
> > > No message is printed to any tomcat logs.
> > > In httpd/logs/access_log I get this:
> > > 127.0.0.1 - - [24/Apr/2001:17:42:42 -0700] "GET
> > > /examples/servlet/HelloWorldExample HTTP/1.0" 403
> > 298
> > >
> > > Thanks,
> > > Mike
> > >
> > >
> > > --- Jeff Kilbride <je...@kilbride.com> wrote:
> > > > Is this 403 page being generated by Apache or
> > > > Tomcat? Check your Apache or
> > > > Tomcat logs, if you're not sure.
> > > >
> > > > --jeff
> > > >
> > > > ----- Original Message -----
> > > > From: "Michael Bergknoff" <be...@yahoo.com>
> > > > To: <to...@jakarta.apache.org>
> > > > Sent: Tuesday, April 24, 2001 5:34 PM
> > > > Subject: Re: HelloWorld example
> > > >
> > > >
> > > > > I get a 403 Forbidden error with that URL
> > > > > (You don't have permission to access
> > > > > /examples/servlet/HelloWorldExample on this
> > > > server).
> > > > >
> > > > > Thanks,
> > > > > Mike
> > > > >
> > > > > --- Jeff Kilbride <je...@kilbride.com> wrote:
> > > > > >
> > > >
> > http://localhost/examples/servlet/HelloWorldExample
> > > > > >
> > > > > > Just get rid of the "8080" port designation.
> > For
> > > > the
> > > > > > examples, the
> > > > > > mod_jk.conf-auto should work without any
> > > > > > modification.
> > > > > >
> > > > > > Thanks,
> > > > > > --jeff
> > > > > >
> > > > > > ----- Original Message -----
> > > > > > From: "Michael Bergknoff" <be...@yahoo.com>
> > > > > > To: <to...@jakarta.apache.org>
> > > > > > Sent: Tuesday, April 24, 2001 5:02 PM
> > > > > > Subject: HelloWorld example
> > > > > >
> > > > > >
> > > > > > > The example hello world servlet
> > distributed
> > > > with
> > > > > > > tomcat
> > > > > > > is accessed via the standalone tomcat as:
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> http://localhost:8080/examples/servlet/HelloWorldExample
> > > > > > >
> > > > > > > With mod_jk and apache what is the URL to
> > > > access
> > > > > > the
> > > > > > > same servlet? I have included the
> > > > > > > mod_jk.conf-auto in httpd.conf. Is there
> > any
> > > > other
> > > > > > > config. required?
> > > > > > >
> > > > > > > Thanks,
> > > > > > > Mike
> > > > > > >
> > > > > > >
> > > >
> > __________________________________________________
> > > > > > > Do You Yahoo!?
> > > > > > > Yahoo! Auctions - buy the things you want
> > at
> > > > great
> > > > > > prices
> > > > > > > http://auctions.yahoo.com/
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > __________________________________________________
> > > > > Do You Yahoo!?
> > > > > Yahoo! Auctions - buy the things you want at
> > great
> > > > prices
> > > > > http://auctions.yahoo.com/
> > > > >
> > > >
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Auctions - buy the things you want at great
> > prices
> > > http://auctions.yahoo.com/
> > >
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>



Re: HelloWorld example

Posted by Michael Bergknoff <be...@yahoo.com>.
httpd/logs/access_log is the apache log.
The error_log in the same directory doesn't have any
new entries. The only message from today is:
[Tue Apr 24 16:35:33 2001] [notice] Apache/1.3.12
(Unix)  (Red Hat/Linux) mod_jk PHP/3.0.15
mod_perl/1.21 configured -- resuming normal operations


Thanks,
Mike
--- Tan Khim Siang <ta...@dv9.com> wrote:
> Mike, check the error log of apache instead.
> 
> Khim
> ----- Original Message ----- 
> From: Michael Bergknoff <be...@yahoo.com>
> To: <to...@jakarta.apache.org>
> Sent: Wednesday, April 25, 2001 8:45 AM
> Subject: Re: HelloWorld example
> 
> 
> > The error appears to come from apache.
> > No message is printed to any tomcat logs.
> > In httpd/logs/access_log I get this:
> > 127.0.0.1 - - [24/Apr/2001:17:42:42 -0700] "GET
> > /examples/servlet/HelloWorldExample HTTP/1.0" 403
> 298
> > 
> > Thanks,
> > Mike
> > 
> > 
> > --- Jeff Kilbride <je...@kilbride.com> wrote:
> > > Is this 403 page being generated by Apache or
> > > Tomcat? Check your Apache or
> > > Tomcat logs, if you're not sure.
> > > 
> > > --jeff
> > > 
> > > ----- Original Message -----
> > > From: "Michael Bergknoff" <be...@yahoo.com>
> > > To: <to...@jakarta.apache.org>
> > > Sent: Tuesday, April 24, 2001 5:34 PM
> > > Subject: Re: HelloWorld example
> > > 
> > > 
> > > > I get a 403 Forbidden error with that URL
> > > > (You don't have permission to access
> > > > /examples/servlet/HelloWorldExample on this
> > > server).
> > > >
> > > > Thanks,
> > > > Mike
> > > >
> > > > --- Jeff Kilbride <je...@kilbride.com> wrote:
> > > > >
> > >
> http://localhost/examples/servlet/HelloWorldExample
> > > > >
> > > > > Just get rid of the "8080" port designation.
> For
> > > the
> > > > > examples, the
> > > > > mod_jk.conf-auto should work without any
> > > > > modification.
> > > > >
> > > > > Thanks,
> > > > > --jeff
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "Michael Bergknoff" <be...@yahoo.com>
> > > > > To: <to...@jakarta.apache.org>
> > > > > Sent: Tuesday, April 24, 2001 5:02 PM
> > > > > Subject: HelloWorld example
> > > > >
> > > > >
> > > > > > The example hello world servlet
> distributed
> > > with
> > > > > > tomcat
> > > > > > is accessed via the standalone tomcat as:
> > > > > >
> > > > >
> > > >
> > >
> >
>
http://localhost:8080/examples/servlet/HelloWorldExample
> > > > > >
> > > > > > With mod_jk and apache what is the URL to
> > > access
> > > > > the
> > > > > > same servlet? I have included the
> > > > > > mod_jk.conf-auto in httpd.conf. Is there
> any
> > > other
> > > > > > config. required?
> > > > > >
> > > > > > Thanks,
> > > > > > Mike
> > > > > >
> > > > > >
> > >
> __________________________________________________
> > > > > > Do You Yahoo!?
> > > > > > Yahoo! Auctions - buy the things you want
> at
> > > great
> > > > > prices
> > > > > > http://auctions.yahoo.com/
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> __________________________________________________
> > > > Do You Yahoo!?
> > > > Yahoo! Auctions - buy the things you want at
> great
> > > prices
> > > > http://auctions.yahoo.com/
> > > >
> > > 
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Auctions - buy the things you want at great
> prices
> > http://auctions.yahoo.com/
> > 
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Re: HelloWorld example

Posted by Tan Khim Siang <ta...@dv9.com>.
Mike, check the error log of apache instead.

Khim
----- Original Message ----- 
From: Michael Bergknoff <be...@yahoo.com>
To: <to...@jakarta.apache.org>
Sent: Wednesday, April 25, 2001 8:45 AM
Subject: Re: HelloWorld example


> The error appears to come from apache.
> No message is printed to any tomcat logs.
> In httpd/logs/access_log I get this:
> 127.0.0.1 - - [24/Apr/2001:17:42:42 -0700] "GET
> /examples/servlet/HelloWorldExample HTTP/1.0" 403 298
> 
> Thanks,
> Mike
> 
> 
> --- Jeff Kilbride <je...@kilbride.com> wrote:
> > Is this 403 page being generated by Apache or
> > Tomcat? Check your Apache or
> > Tomcat logs, if you're not sure.
> > 
> > --jeff
> > 
> > ----- Original Message -----
> > From: "Michael Bergknoff" <be...@yahoo.com>
> > To: <to...@jakarta.apache.org>
> > Sent: Tuesday, April 24, 2001 5:34 PM
> > Subject: Re: HelloWorld example
> > 
> > 
> > > I get a 403 Forbidden error with that URL
> > > (You don't have permission to access
> > > /examples/servlet/HelloWorldExample on this
> > server).
> > >
> > > Thanks,
> > > Mike
> > >
> > > --- Jeff Kilbride <je...@kilbride.com> wrote:
> > > >
> > http://localhost/examples/servlet/HelloWorldExample
> > > >
> > > > Just get rid of the "8080" port designation. For
> > the
> > > > examples, the
> > > > mod_jk.conf-auto should work without any
> > > > modification.
> > > >
> > > > Thanks,
> > > > --jeff
> > > >
> > > > ----- Original Message -----
> > > > From: "Michael Bergknoff" <be...@yahoo.com>
> > > > To: <to...@jakarta.apache.org>
> > > > Sent: Tuesday, April 24, 2001 5:02 PM
> > > > Subject: HelloWorld example
> > > >
> > > >
> > > > > The example hello world servlet distributed
> > with
> > > > > tomcat
> > > > > is accessed via the standalone tomcat as:
> > > > >
> > > >
> > >
> >
> http://localhost:8080/examples/servlet/HelloWorldExample
> > > > >
> > > > > With mod_jk and apache what is the URL to
> > access
> > > > the
> > > > > same servlet? I have included the
> > > > > mod_jk.conf-auto in httpd.conf. Is there any
> > other
> > > > > config. required?
> > > > >
> > > > > Thanks,
> > > > > Mike
> > > > >
> > > > >
> > __________________________________________________
> > > > > Do You Yahoo!?
> > > > > Yahoo! Auctions - buy the things you want at
> > great
> > > > prices
> > > > > http://auctions.yahoo.com/
> > > > >
> > > >
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Auctions - buy the things you want at great
> > prices
> > > http://auctions.yahoo.com/
> > >
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
> 



Re: HelloWorld example

Posted by Michael Bergknoff <be...@yahoo.com>.
The error appears to come from apache.
No message is printed to any tomcat logs.
In httpd/logs/access_log I get this:
127.0.0.1 - - [24/Apr/2001:17:42:42 -0700] "GET
/examples/servlet/HelloWorldExample HTTP/1.0" 403 298

Thanks,
Mike


--- Jeff Kilbride <je...@kilbride.com> wrote:
> Is this 403 page being generated by Apache or
> Tomcat? Check your Apache or
> Tomcat logs, if you're not sure.
> 
> --jeff
> 
> ----- Original Message -----
> From: "Michael Bergknoff" <be...@yahoo.com>
> To: <to...@jakarta.apache.org>
> Sent: Tuesday, April 24, 2001 5:34 PM
> Subject: Re: HelloWorld example
> 
> 
> > I get a 403 Forbidden error with that URL
> > (You don't have permission to access
> > /examples/servlet/HelloWorldExample on this
> server).
> >
> > Thanks,
> > Mike
> >
> > --- Jeff Kilbride <je...@kilbride.com> wrote:
> > >
> http://localhost/examples/servlet/HelloWorldExample
> > >
> > > Just get rid of the "8080" port designation. For
> the
> > > examples, the
> > > mod_jk.conf-auto should work without any
> > > modification.
> > >
> > > Thanks,
> > > --jeff
> > >
> > > ----- Original Message -----
> > > From: "Michael Bergknoff" <be...@yahoo.com>
> > > To: <to...@jakarta.apache.org>
> > > Sent: Tuesday, April 24, 2001 5:02 PM
> > > Subject: HelloWorld example
> > >
> > >
> > > > The example hello world servlet distributed
> with
> > > > tomcat
> > > > is accessed via the standalone tomcat as:
> > > >
> > >
> >
>
http://localhost:8080/examples/servlet/HelloWorldExample
> > > >
> > > > With mod_jk and apache what is the URL to
> access
> > > the
> > > > same servlet? I have included the
> > > > mod_jk.conf-auto in httpd.conf. Is there any
> other
> > > > config. required?
> > > >
> > > > Thanks,
> > > > Mike
> > > >
> > > >
> __________________________________________________
> > > > Do You Yahoo!?
> > > > Yahoo! Auctions - buy the things you want at
> great
> > > prices
> > > > http://auctions.yahoo.com/
> > > >
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Auctions - buy the things you want at great
> prices
> > http://auctions.yahoo.com/
> >
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Re: HelloWorld example

Posted by Jeff Kilbride <je...@kilbride.com>.
Is this 403 page being generated by Apache or Tomcat? Check your Apache or
Tomcat logs, if you're not sure.

--jeff

----- Original Message -----
From: "Michael Bergknoff" <be...@yahoo.com>
To: <to...@jakarta.apache.org>
Sent: Tuesday, April 24, 2001 5:34 PM
Subject: Re: HelloWorld example


> I get a 403 Forbidden error with that URL
> (You don't have permission to access
> /examples/servlet/HelloWorldExample on this server).
>
> Thanks,
> Mike
>
> --- Jeff Kilbride <je...@kilbride.com> wrote:
> > http://localhost/examples/servlet/HelloWorldExample
> >
> > Just get rid of the "8080" port designation. For the
> > examples, the
> > mod_jk.conf-auto should work without any
> > modification.
> >
> > Thanks,
> > --jeff
> >
> > ----- Original Message -----
> > From: "Michael Bergknoff" <be...@yahoo.com>
> > To: <to...@jakarta.apache.org>
> > Sent: Tuesday, April 24, 2001 5:02 PM
> > Subject: HelloWorld example
> >
> >
> > > The example hello world servlet distributed with
> > > tomcat
> > > is accessed via the standalone tomcat as:
> > >
> >
> http://localhost:8080/examples/servlet/HelloWorldExample
> > >
> > > With mod_jk and apache what is the URL to access
> > the
> > > same servlet? I have included the
> > > mod_jk.conf-auto in httpd.conf. Is there any other
> > > config. required?
> > >
> > > Thanks,
> > > Mike
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Auctions - buy the things you want at great
> > prices
> > > http://auctions.yahoo.com/
> > >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>


Re: HelloWorld example

Posted by Michael Bergknoff <be...@yahoo.com>.
I get a 403 Forbidden error with that URL
(You don't have permission to access
/examples/servlet/HelloWorldExample on this server).

Thanks,
Mike

--- Jeff Kilbride <je...@kilbride.com> wrote:
> http://localhost/examples/servlet/HelloWorldExample
> 
> Just get rid of the "8080" port designation. For the
> examples, the
> mod_jk.conf-auto should work without any
> modification.
> 
> Thanks,
> --jeff
> 
> ----- Original Message -----
> From: "Michael Bergknoff" <be...@yahoo.com>
> To: <to...@jakarta.apache.org>
> Sent: Tuesday, April 24, 2001 5:02 PM
> Subject: HelloWorld example
> 
> 
> > The example hello world servlet distributed with
> > tomcat
> > is accessed via the standalone tomcat as:
> >
>
http://localhost:8080/examples/servlet/HelloWorldExample
> >
> > With mod_jk and apache what is the URL to access
> the
> > same servlet? I have included the
> > mod_jk.conf-auto in httpd.conf. Is there any other
> > config. required?
> >
> > Thanks,
> > Mike
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Auctions - buy the things you want at great
> prices
> > http://auctions.yahoo.com/
> >
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Re: HelloWorld example

Posted by Jeff Kilbride <je...@kilbride.com>.
http://localhost/examples/servlet/HelloWorldExample

Just get rid of the "8080" port designation. For the examples, the
mod_jk.conf-auto should work without any modification.

Thanks,
--jeff

----- Original Message -----
From: "Michael Bergknoff" <be...@yahoo.com>
To: <to...@jakarta.apache.org>
Sent: Tuesday, April 24, 2001 5:02 PM
Subject: HelloWorld example


> The example hello world servlet distributed with
> tomcat
> is accessed via the standalone tomcat as:
> http://localhost:8080/examples/servlet/HelloWorldExample
>
> With mod_jk and apache what is the URL to access the
> same servlet? I have included the
> mod_jk.conf-auto in httpd.conf. Is there any other
> config. required?
>
> Thanks,
> Mike
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>