Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Can't get simple servlet to work
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