----------------------------------------------------------------
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!!!
----------------------------------------------------------------

uh I hung myself on this type of problem for a few days....

when you compile, the classpath you set in your IDE ( or arguements called
at command line) need to be dupplicated in your jserv configuration.

the line below
wrapper.classpath=c:\myweb\jsdk2.0\lib\jsdk.jar
in jserv.properties sets your classpath for the java environment at
runtime under jserv/apache.

I use the line

                }//
                catch(Exception ex){ //
            out.println("Error inserting project
information.<BR>"+ex.toString()+"<br>" + System.getProperties());} // 

to display any error messages.

The message includes information on your Jserv classpath configuration and
so provides an easy way to diagnose what is occuring.

I have discovered (the hard way) is is best to test programs as a simple
java application before porting across to servlets. the IDe I use provides
a nice interface to tracking errors....

On Tue, 11 Jul 2000, Boshu Liao wrote:

> ----------------------------------------------------------------
> 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!!!
> ----------------------------------------------------------------
> 
> Hi,
> 
> Version: Apache Jserv 1.1.2 in Windows 98.
> Problem: Could not access servlets with a package name.
> 
> Detail Description: For example, if I have a servlet Hello.class without
> a package name in the servlets folder, I can access the servlet by
> http://mymachine/servlets/Hello.
> 
> However, if a package name such as javaservlets.examples is added into
> the Hello.java and recompile and put the new Hello.class in my servlets
> folder. I can not access the servlet by http://mymachine/servlets/Hello.
> A not found message appears in my browser. According to the Jserv
> documentation, the servlet should be accessed by
> http://mymachine/servlets/javaservlets.examples.Hello. However, this
> still does not work (Not Found message appears).
> 
> Anybody has the same experience? what  should I do to make the servlets
> with package name to accessible in my Jserv 1.1.2? Your response is
> greatly appreciated.
> 
> Boshu Liao
> GA Tech
> 
> 
> 
> 
> 
> --
> --------------------------------------------------------------
> 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]

Reply via email to