You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Sitai Sun <st...@yahoo.com> on 2002/02/07 22:25:44 UTC

Why cannot I change zone.properties file?

Hi, 

I am new to apache and jserv. these days, i installed apache1.3.23,
JSDK2.0 and apachejserv1.1.2 into my redhat7.2 with DSO support.
Everything going well except that i cannot change repository in
zone.properties file.
Apache is intalled into: /usr/local/apache
JSDk is: /usr/local/JSDK2.0
zone.properties file is in /apache/conf/jserv/ directory.

I want to change the repository into:
repositories=/home/ssun/www/servlets
However, it doesn't work when i test with Hello servlet that i saved in
directory: /home/ssun/www/servlets. The error message in jerv.log is
attached at the end of this mail.

If i change it back to the original:
repositories=/usr/local/apache/servlets
it works.

What's the problem? What else configuration file do i need to change as
well?

Thanks a lot,
Sitai

Error messge is:
==================================================
[07/02/2002 16:21:51:522 EST] Error creating classloader for servlet
zone root : java.lang.IllegalArgumentException: Repository
/home/ssun/www/servlets doesn't exist!
[07/02/2002 16:21:53:091 EST] java.lang.Exception: The classloader was
not properly instantiated because of a configuration error. 
This is probably due to the fact that one of your property 
files is misconfigured or could not be found. Please check 
the paths and permissions on all of your properties files. 
Also check to make sure that the paths and permissions on 
all of the paths within your properties files are also correct.

	at
org.apache.jserv.JServServletManager.checkReload(JServServletManager.java:416)
	at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:255)
	at org.apache.jserv.JServConnection.run(JServConnection.java:188)
	at java.lang.Thread.run(Thread.java:484)


__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Why cannot I change zone.properties file?

Posted by Sitai Sun <st...@yahoo.com>.
Hi, alex.

Thanks for your answer. I think it is the read permission that created
the problem. Unforturnately, I am not familiar with permission setting.
Is it correct to use the command: 'ls -l' to get permission info?

After login with root, with 'ls -l', I got the info of directory ssun
is: drwx------, which is different with others in /usr/local/apache
directory, which is:drwxr-xr-x.

In fact, ssun is an account i created(/home/ssun/). if i want to put
the servlet zone under this directory, do I have to change it to
'drwxr-xr-x', how to change it?

Thanks again,
Sitai

--- Alex Dyas <ad...@twowaytv.co.uk> wrote:
> On Thu, 7 Feb 2002, Sitai Sun wrote:
> 
> > Hi,
> >
> > I am new to apache and jserv. these days, i installed apache1.3.23,
> > JSDK2.0 and apachejserv1.1.2 into my redhat7.2 with DSO support.
> > Everything going well except that i cannot change repository in
> > zone.properties file.
> > Apache is intalled into: /usr/local/apache
> > JSDk is: /usr/local/JSDK2.0
> > zone.properties file is in /apache/conf/jserv/ directory.
> >
> > I want to change the repository into:
> > repositories=/home/ssun/www/servlets
> > However, it doesn't work when i test with Hello servlet that i
> saved in
> > directory: /home/ssun/www/servlets. The error message in jerv.log
> is
> > attached at the end of this mail.
> >
> > If i change it back to the original:
> > repositories=/usr/local/apache/servlets
> > it works.
> >
> > What's the problem? What else configuration file do i need to
> change as
> > well?
> >
> > Thanks a lot,
> > Sitai
> >
> > Error messge is:
> > ==================================================
> > [07/02/2002 16:21:51:522 EST] Error creating classloader for
> servlet
> > zone root : java.lang.IllegalArgumentException: Repository
> > /home/ssun/www/servlets doesn't exist!
> > [07/02/2002 16:21:53:091 EST] java.lang.Exception: The classloader
> was
> > not properly instantiated because of a configuration error.
> > This is probably due to the fact that one of your property
> > files is misconfigured or could not be found. Please check
> > the paths and permissions on all of your properties files.
> > Also check to make sure that the paths and permissions on
> > all of the paths within your properties files are also correct.
> >
> > 	at
> >
>
org.apache.jserv.JServServletManager.checkReload(JServServletManager.java:416)
> > 	at
> >
>
org.apache.jserv.JServConnection.processRequest(JServConnection.java:255)
> > 	at org.apache.jserv.JServConnection.run(JServConnection.java:188)
> > 	at java.lang.Thread.run(Thread.java:484)
> 
> Have you checked permissions on /usr/local/apache/servlets ?  Make
> sure the
> user that apache is running as (nobody?) can read this path.
> 
> alex..
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Why cannot I change zone.properties file?

Posted by Alex Dyas <ad...@twowaytv.co.uk>.
On Thu, 7 Feb 2002, Sitai Sun wrote:

> Hi,
>
> I am new to apache and jserv. these days, i installed apache1.3.23,
> JSDK2.0 and apachejserv1.1.2 into my redhat7.2 with DSO support.
> Everything going well except that i cannot change repository in
> zone.properties file.
> Apache is intalled into: /usr/local/apache
> JSDk is: /usr/local/JSDK2.0
> zone.properties file is in /apache/conf/jserv/ directory.
>
> I want to change the repository into:
> repositories=/home/ssun/www/servlets
> However, it doesn't work when i test with Hello servlet that i saved in
> directory: /home/ssun/www/servlets. The error message in jerv.log is
> attached at the end of this mail.
>
> If i change it back to the original:
> repositories=/usr/local/apache/servlets
> it works.
>
> What's the problem? What else configuration file do i need to change as
> well?
>
> Thanks a lot,
> Sitai
>
> Error messge is:
> ==================================================
> [07/02/2002 16:21:51:522 EST] Error creating classloader for servlet
> zone root : java.lang.IllegalArgumentException: Repository
> /home/ssun/www/servlets doesn't exist!
> [07/02/2002 16:21:53:091 EST] java.lang.Exception: The classloader was
> not properly instantiated because of a configuration error.
> This is probably due to the fact that one of your property
> files is misconfigured or could not be found. Please check
> the paths and permissions on all of your properties files.
> Also check to make sure that the paths and permissions on
> all of the paths within your properties files are also correct.
>
> 	at
> org.apache.jserv.JServServletManager.checkReload(JServServletManager.java:416)
> 	at
> org.apache.jserv.JServConnection.processRequest(JServConnection.java:255)
> 	at org.apache.jserv.JServConnection.run(JServConnection.java:188)
> 	at java.lang.Thread.run(Thread.java:484)

Have you checked permissions on /usr/local/apache/servlets ?  Make sure the
user that apache is running as (nobody?) can read this path.

alex..


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org