----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
IF
class name: myclass.class
package: com.mycompany.mypackage
repository: /servlets
zone name: /servlets
THEN
myclass.class needs to be in /servlets/com/mycompany/mypackage
The servlet is then accessed with
http://yourdomainname/servlets/com.mycompany.mypackage.myclass
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Elias
Sarraf
Sent: Wednesday, July 12, 2000 2:08 PM
To: 'Java Apache Users'
Subject: packaged servlet
----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
I know this has been discussed several times - but I could not get any of
suggestions to work.
I am trying to run a servlet built with JBuilder on a Linux JServ
installation. If I build the servlet with a blank package name in JBuilder,
then I can run it ok - by putting it in my servlets directory. If I fill in
the package name - then I get an error. I used a package name of HelloWorld
and a servlet name of helloWorld. Then the servlet won't run from the
servlets directory - I get an Internal Server Error. I put the servlet in a
servlets/HelloWorld directory, then I added the HelloWorld directory to my
repository in the zone.properties file and tried to run the servlet with
www.em-sys.net/servlet/HelloWorld.helloWorld - I get a page not found error.
I am using Apache 1.3.12 and JServ 1.1.2 on Red Hat 6.0.
www.em-sys.net/servlet/IsItWorking reports the JServ 1.1.2 is working. If
the helloWorld is compiled without a package name - it runs fine with
www.em-sys.net/servlet/helloWorld.
Thanks to all for your help.
Elias
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]