Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Can't get simple servlet to work

Re: Can't get simple servlet to work

From: dmz17 <dmz17_at_nospam.nowhere.com>
Date: Sat, 11 Jan 2003 00:55:18 +0100
Message-ID: <pan.2003.01.10.23.55.18.358645@nospam.nowhere.com>


On Fri, 10 Jan 2003 17:54:38 +0000, Peter Chatterton wrote:

> UPDATE
> I took out the package declaration, called it XAGServlet2, and it works!
> http://localhost/servlet/XAGServlet2/
> But I don't know why.
> Should I take this to a Java group?

>> > > Peter.

No, why? You just need to understand basic Java.

You attempt to run a class. A class is uniquely identified by its package and class name.

Java works by translating the package 'path' into directory path. The starting node is whatever your particular J2EE environment wants it to be.

As I said: try to pack it as a war file and deploy it. Then it should work automatically.

Good luck!

Cheers,

dmz17 Received on Fri Jan 10 2003 - 17:55:18 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US